Skip to main content

trust_configs

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

Overview

Nametrust_configs
TypeResource
Idgoogle.certificatemanager.trust_configs

Fields

NameDatatypeDescription
namestringIdentifier. A user-defined name of the trust config. TrustConfig names must be unique globally and match pattern projects/*/locations/*/trustConfigs/*.
descriptionstringOptional. One or more paragraphs of text description of a TrustConfig.
allowlistedCertificatesarrayOptional. A certificate matching an allowlisted certificate is always considered valid as long as the certificate is parseable, proof of private key possession is established, and constraints on the certificate's SAN field are met.
createTimestringOutput only. The creation timestamp of a TrustConfig.
etagstringThis checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
labelsobjectOptional. Set of labels associated with a TrustConfig.
trustStoresarrayOptional. Set of trust stores to perform validation against. This field is supported when TrustConfig is configured with Load Balancers, currently not supported for SPIFFE certificate validation. Only one TrustStore specified is currently allowed.
updateTimestringOutput only. The last update timestamp of a TrustConfig.

Methods

NameAccessible byRequired ParamsDescription
getSELECTlocationsId, projectsId, trustConfigsIdGets details of a single TrustConfig.
listSELECTlocationsId, projectsIdLists TrustConfigs in a given project and location.
createINSERTlocationsId, projectsIdCreates a new TrustConfig in a given project and location.
deleteDELETElocationsId, projectsId, trustConfigsIdDeletes a single TrustConfig.
patchUPDATElocationsId, projectsId, trustConfigsIdUpdates a TrustConfig.

SELECT examples

Lists TrustConfigs in a given project and location.

SELECT
name,
description,
allowlistedCertificates,
createTime,
etag,
labels,
trustStores,
updateTime
FROM google.certificatemanager.trust_configs
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

INSERT example

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

/*+ create */
INSERT INTO google.certificatemanager.trust_configs (
locationsId,
projectsId,
name,
labels,
description,
etag,
trustStores,
allowlistedCertificates
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ name }}',
'{{ labels }}',
'{{ description }}',
'{{ etag }}',
'{{ trustStores }}',
'{{ allowlistedCertificates }}'
;

UPDATE example

Updates a trust_configs resource.

/*+ update */
UPDATE google.certificatemanager.trust_configs
SET
name = '{{ name }}',
labels = '{{ labels }}',
description = '{{ description }}',
etag = '{{ etag }}',
trustStores = '{{ trustStores }}',
allowlistedCertificates = '{{ allowlistedCertificates }}'
WHERE
locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND trustConfigsId = '{{ trustConfigsId }}';

DELETE example

Deletes the specified trust_configs resource.

/*+ delete */
DELETE FROM google.certificatemanager.trust_configs
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND trustConfigsId = '{{ trustConfigsId }}';