Skip to main content

client_tls_policies

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

Overview

Nameclient_tls_policies
TypeResource
Idgoogle.networksecurity.client_tls_policies

Fields

NameDatatypeDescription
namestringRequired. Name of the ClientTlsPolicy resource. It matches the pattern projects/*/locations/{location}/clientTlsPolicies/{client_tls_policy}
descriptionstringOptional. Free-text description of the resource.
clientCertificateobjectSpecification of certificate provider. Defines the mechanism to obtain the certificate and private key for peer to peer authentication.
createTimestringOutput only. The timestamp when the resource was created.
labelsobjectOptional. Set of label tags associated with the resource.
serverValidationCaarrayOptional. Defines the mechanism to obtain the Certificate Authority certificate to validate the server certificate. If empty, client does not validate the server certificate.
snistringOptional. Server Name Indication string to present to the server during TLS handshake. E.g: "secure.example.com".
updateTimestringOutput only. The timestamp when the resource was updated.

Methods

NameAccessible byRequired ParamsDescription
projects_locations_client_tls_policies_getSELECTclientTlsPoliciesId, locationsId, projectsIdGets details of a single ClientTlsPolicy.
projects_locations_client_tls_policies_listSELECTlocationsId, projectsIdLists ClientTlsPolicies in a given project and location.
projects_locations_client_tls_policies_createINSERTlocationsId, projectsIdCreates a new ClientTlsPolicy in a given project and location.
projects_locations_client_tls_policies_deleteDELETEclientTlsPoliciesId, locationsId, projectsIdDeletes a single ClientTlsPolicy.
projects_locations_client_tls_policies_patchUPDATEclientTlsPoliciesId, locationsId, projectsIdUpdates 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.

/*+ 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 }}'
;

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 }}';