Skip to main content

region_ssl_policies

Creates, updates, deletes, gets or lists a region_ssl_policies resource.

Overview

Nameregion_ssl_policies
TypeResource
Idgoogle.compute.region_ssl_policies

Fields

NameDatatypeDescription
idstring[Output Only] The unique identifier for the resource. This identifier is defined by the server.
namestringName of the resource. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
descriptionstringAn optional description of this resource. Provide this property when you create the resource.
creationTimestampstring[Output Only] Creation timestamp in RFC3339 text format.
customFeaturesarrayA list of features enabled when the selected profile is CUSTOM. The method returns the set of features that can be specified in this list. This field must be empty if the profile is not CUSTOM.
enabledFeaturesarray[Output Only] The list of features enabled in the SSL policy.
fingerprintstringFingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a SslPolicy. An up-to-date fingerprint must be provided in order to update the SslPolicy, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve an SslPolicy.
kindstring[Output only] Type of the resource. Always compute#sslPolicyfor SSL policies.
minTlsVersionstringThe minimum version of SSL protocol that can be used by the clients to establish a connection with the load balancer. This can be one of TLS_1_0, TLS_1_1, TLS_1_2.
profilestringProfile specifies the set of SSL features that can be used by the load balancer when negotiating SSL with clients. This can be one of COMPATIBLE, MODERN, RESTRICTED, or CUSTOM. If using CUSTOM, the set of SSL features to enable must be specified in the customFeatures field.
regionstring[Output Only] URL of the region where the regional SSL policy resides. This field is not applicable to global SSL policies.
selfLinkstring[Output Only] Server-defined URL for the resource.
warningsarray[Output Only] If potential misconfigurations are detected for this SSL policy, this field will be populated with warning messages.

Methods

NameAccessible byRequired ParamsDescription
getSELECTproject, region, sslPolicyLists all of the ordered rules present in a single specified policy.
listSELECTproject, regionLists all the SSL policies that have been configured for the specified project and region.
insertINSERTproject, regionCreates a new policy in the specified project and region using the data included in the request.
deleteDELETEproject, region, sslPolicyDeletes the specified SSL policy. The SSL policy resource can be deleted only if it is not in use by any TargetHttpsProxy or TargetSslProxy resources.
patchUPDATEproject, region, sslPolicyPatches the specified SSL policy with the data included in the request.

SELECT examples

Lists all the SSL policies that have been configured for the specified project and region.

SELECT
id,
name,
description,
creationTimestamp,
customFeatures,
enabledFeatures,
fingerprint,
kind,
minTlsVersion,
profile,
region,
selfLink,
warnings
FROM google.compute.region_ssl_policies
WHERE project = '{{ project }}'
AND region = '{{ region }}';

INSERT example

Use the following StackQL query and manifest file to create a new region_ssl_policies resource.

/*+ create */
INSERT INTO google.compute.region_ssl_policies (
project,
region,
name,
description,
profile,
minTlsVersion,
enabledFeatures,
customFeatures,
fingerprint,
warnings,
region
)
SELECT
'{{ project }}',
'{{ region }}',
'{{ name }}',
'{{ description }}',
'{{ profile }}',
'{{ minTlsVersion }}',
'{{ enabledFeatures }}',
'{{ customFeatures }}',
'{{ fingerprint }}',
'{{ warnings }}',
'{{ region }}'
;

UPDATE example

Updates a region_ssl_policies resource.

/*+ update */
UPDATE google.compute.region_ssl_policies
SET
name = '{{ name }}',
description = '{{ description }}',
profile = '{{ profile }}',
minTlsVersion = '{{ minTlsVersion }}',
enabledFeatures = '{{ enabledFeatures }}',
customFeatures = '{{ customFeatures }}',
fingerprint = '{{ fingerprint }}',
warnings = '{{ warnings }}',
region = '{{ region }}'
WHERE
project = '{{ project }}'
AND region = '{{ region }}'
AND sslPolicy = '{{ sslPolicy }}';

DELETE example

Deletes the specified region_ssl_policies resource.

/*+ delete */
DELETE FROM google.compute.region_ssl_policies
WHERE project = '{{ project }}'
AND region = '{{ region }}'
AND sslPolicy = '{{ sslPolicy }}';