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

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringIdentifier. A user-defined name of the trust config. TrustConfig names must be unique globally and match pattern projects/*/locations/*/trustConfigs/*.
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.
createTimestring (google-datetime)Output only. The creation timestamp of a TrustConfig.
descriptionstringOptional. One or more paragraphs of text description 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.
updateTimestring (google-datetime)Output only. The last update timestamp of a TrustConfig.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, trustConfigsIdGets details of a single TrustConfig.
listselectprojectsId, locationsIdpageSize, pageToken, filter, orderByLists TrustConfigs in a given project and location.
createinsertprojectsId, locationsIdtrustConfigIdCreates a new TrustConfig in a given project and location.
patchupdateprojectsId, locationsId, trustConfigsIdupdateMaskUpdates a TrustConfig.
deletedeleteprojectsId, locationsId, trustConfigsIdetagDeletes a single TrustConfig.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
locationsIdstring
projectsIdstring
trustConfigsIdstring
etagstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
trustConfigIdstring
updateMaskstring (google-fieldmask)

SELECT examples

Gets details of a single TrustConfig.

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

INSERT examples

Creates a new TrustConfig in a given project and location.

INSERT INTO google.certificatemanager.trust_configs (
data__name,
data__labels,
data__description,
data__etag,
data__trustStores,
data__allowlistedCertificates,
projectsId,
locationsId,
trustConfigId
)
SELECT
'{{ name }}',
'{{ labels }}',
'{{ description }}',
'{{ etag }}',
'{{ trustStores }}',
'{{ allowlistedCertificates }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ trustConfigId }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples

Updates a TrustConfig.

UPDATE google.certificatemanager.trust_configs
SET
data__name = '{{ name }}',
data__labels = '{{ labels }}',
data__description = '{{ description }}',
data__etag = '{{ etag }}',
data__trustStores = '{{ trustStores }}',
data__allowlistedCertificates = '{{ allowlistedCertificates }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND trustConfigsId = '{{ trustConfigsId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
done,
error,
metadata,
response;

DELETE examples

Deletes a single TrustConfig.

DELETE FROM google.certificatemanager.trust_configs
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND trustConfigsId = '{{ trustConfigsId }}' --required
AND etag = '{{ etag }}';