client_tls_policies
Creates, updates, deletes, gets or lists a client_tls_policies
resource.
Overview
Name | client_tls_policies |
Type | Resource |
Id | google.networksecurity.client_tls_policies |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Required. Name of the ClientTlsPolicy resource. It matches the pattern projects/*/locations/{location}/clientTlsPolicies/{client_tls_policy} |
description | string | Optional. Free-text description of the resource. |
clientCertificate | object | Specification of certificate provider. Defines the mechanism to obtain the certificate and private key for peer to peer authentication. |
createTime | string | Output only. The timestamp when the resource was created. |
labels | object | Optional. Set of label tags associated with the resource. |
serverValidationCa | array | Optional. Defines the mechanism to obtain the Certificate Authority certificate to validate the server certificate. If empty, client does not validate the server certificate. |
sni | string | Optional. Server Name Indication string to present to the server during TLS handshake. E.g: "secure.example.com". |
updateTime | string | Output only. The timestamp when the resource was updated. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
projects_locations_client_tls_policies_get | SELECT | clientTlsPoliciesId, locationsId, projectsId | Gets details of a single ClientTlsPolicy. |
projects_locations_client_tls_policies_list | SELECT | locationsId, projectsId | Lists ClientTlsPolicies in a given project and location. |
projects_locations_client_tls_policies_create | INSERT | locationsId, projectsId | Creates a new ClientTlsPolicy in a given project and location. |
projects_locations_client_tls_policies_delete | DELETE | clientTlsPoliciesId, locationsId, projectsId | Deletes a single ClientTlsPolicy. |
projects_locations_client_tls_policies_patch | UPDATE | clientTlsPoliciesId, locationsId, projectsId | Updates the parameters of a single ClientTlsPolicy. |
SELECT
examples
Lists ClientTlsPolicies in a given project and location.
SELECT
name,
description,
clientCertificate,
createTime,
labels,
serverValidationCa,
sni,
updateTime
FROM google.networksecurity.client_tls_policies
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new client_tls_policies
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.networksecurity.client_tls_policies (
locationsId,
projectsId,
name,
description,
labels,
sni,
clientCertificate,
serverValidationCa
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ name }}',
'{{ description }}',
'{{ labels }}',
'{{ sni }}',
'{{ clientCertificate }}',
'{{ serverValidationCa }}'
;
- name: your_resource_model_name
props:
- name: name
value: string
- name: description
value: string
- name: createTime
value: string
- name: updateTime
value: string
- name: labels
value: object
- name: sni
value: string
- name: clientCertificate
value:
- name: grpcEndpoint
value:
- name: targetUri
value: string
- name: certificateProviderInstance
value:
- name: pluginInstance
value: string
- name: serverValidationCa
value:
- []
UPDATE
example
Updates a client_tls_policies
resource.
/*+ update */
UPDATE google.networksecurity.client_tls_policies
SET
name = '{{ name }}',
description = '{{ description }}',
labels = '{{ labels }}',
sni = '{{ sni }}',
clientCertificate = '{{ clientCertificate }}',
serverValidationCa = '{{ serverValidationCa }}'
WHERE
clientTlsPoliciesId = '{{ clientTlsPoliciesId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';
DELETE
example
Deletes the specified client_tls_policies
resource.
/*+ delete */
DELETE FROM google.networksecurity.client_tls_policies
WHERE clientTlsPoliciesId = '{{ clientTlsPoliciesId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';