Skip to main content

certificate_maps

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

Overview

Namecertificate_maps
TypeResource
Idgoogle.certificatemanager.certificate_maps

Fields

NameDatatypeDescription
namestringIdentifier. A user-defined name of the Certificate Map. Certificate Map names must be unique globally and match pattern projects/*/locations/*/certificateMaps/*.
descriptionstringOptional. One or more paragraphs of text description of a certificate map.
createTimestringOutput only. The creation timestamp of a Certificate Map.
gclbTargetsarrayOutput only. A list of GCLB targets that use this Certificate Map. A Target Proxy is only present on this list if it's attached to a Forwarding Rule.
labelsobjectOptional. Set of labels associated with a Certificate Map.
updateTimestringOutput only. The update timestamp of a Certificate Map.

Methods

NameAccessible byRequired ParamsDescription
getSELECTcertificateMapsId, locationsId, projectsIdGets details of a single CertificateMap.
listSELECTlocationsId, projectsIdLists CertificateMaps in a given project and location.
createINSERTlocationsId, projectsIdCreates a new CertificateMap in a given project and location.
deleteDELETEcertificateMapsId, locationsId, projectsIdDeletes a single CertificateMap. A Certificate Map can't be deleted if it contains Certificate Map Entries. Remove all the entries from the map before calling this method.
patchUPDATEcertificateMapsId, locationsId, projectsIdUpdates a CertificateMap.

SELECT examples

Lists CertificateMaps in a given project and location.

SELECT
name,
description,
createTime,
gclbTargets,
labels,
updateTime
FROM google.certificatemanager.certificate_maps
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

INSERT example

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

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

UPDATE example

Updates a certificate_maps resource.

/*+ update */
UPDATE google.certificatemanager.certificate_maps
SET
name = '{{ name }}',
description = '{{ description }}',
labels = '{{ labels }}'
WHERE
certificateMapsId = '{{ certificateMapsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

DELETE example

Deletes the specified certificate_maps resource.

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