ssl_policies
Creates, updates, deletes, gets or lists a ssl_policies
resource.
Overview
Name | ssl_policies |
Type | Resource |
Id | google.compute.ssl_policies |
Fields
Name | Datatype | Description |
---|---|---|
id | string | [Output Only] The unique identifier for the resource. This identifier is defined by the server. |
name | string | Name 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. |
description | string | An optional description of this resource. Provide this property when you create the resource. |
creationTimestamp | string | [Output Only] Creation timestamp in RFC3339 text format. |
customFeatures | array | A 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. |
enabledFeatures | array | [Output Only] The list of features enabled in the SSL policy. |
fingerprint | string | Fingerprint 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. |
kind | string | [Output only] Type of the resource. Always compute#sslPolicyfor SSL policies. |
minTlsVersion | string | The 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. |
profile | string | Profile 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. |
region | string | [Output Only] URL of the region where the regional SSL policy resides. This field is not applicable to global SSL policies. |
selfLink | string | [Output Only] Server-defined URL for the resource. |
warnings | array | [Output Only] If potential misconfigurations are detected for this SSL policy, this field will be populated with warning messages. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | project, sslPolicy | Lists all of the ordered rules present in a single specified policy. |
list | SELECT | project | Lists all the SSL policies that have been configured for the specified project. |
insert | INSERT | project | Returns the specified SSL policy resource. |
delete | DELETE | project, sslPolicy | Deletes the specified SSL policy. The SSL policy resource can be deleted only if it is not in use by any TargetHttpsProxy or TargetSslProxy resources. |
patch | UPDATE | project, sslPolicy | Patches 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.
SELECT
id,
name,
description,
creationTimestamp,
customFeatures,
enabledFeatures,
fingerprint,
kind,
minTlsVersion,
profile,
region,
selfLink,
warnings
FROM google.compute.ssl_policies
WHERE project = '{{ project }}';
INSERT
example
Use the following StackQL query and manifest file to create a new ssl_policies
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.compute.ssl_policies (
project,
name,
description,
profile,
minTlsVersion,
enabledFeatures,
customFeatures,
fingerprint,
warnings,
region
)
SELECT
'{{ project }}',
'{{ name }}',
'{{ description }}',
'{{ profile }}',
'{{ minTlsVersion }}',
'{{ enabledFeatures }}',
'{{ customFeatures }}',
'{{ fingerprint }}',
'{{ warnings }}',
'{{ region }}'
;
- name: your_resource_model_name
props:
- name: kind
value: string
- name: id
value: string
- name: creationTimestamp
value: string
- name: selfLink
value: string
- name: name
value: string
- name: description
value: string
- name: profile
value: string
- name: minTlsVersion
value: string
- name: enabledFeatures
value:
- string
- name: customFeatures
value:
- string
- name: fingerprint
value: string
- name: warnings
value:
- - name: code
value: string
- name: message
value: string
- name: data
value:
- - name: key
value: string
- name: value
value: string
- name: region
value: string
UPDATE
example
Updates a ssl_policies
resource.
/*+ update */
UPDATE google.compute.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 sslPolicy = '{{ sslPolicy }}';
DELETE
example
Deletes the specified ssl_policies
resource.
/*+ delete */
DELETE FROM google.compute.ssl_policies
WHERE project = '{{ project }}'
AND sslPolicy = '{{ sslPolicy }}';