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​

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringIdentifier. A user-defined name of the Certificate Map. Certificate Map names must be unique globally and match pattern projects/*/locations/*/certificateMaps/*.
createTimestring (google-datetime)Output only. The creation timestamp of a Certificate Map.
descriptionstringOptional. One or more paragraphs of text description 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.
tagsobjectOptional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: "123/environment": "production", "123/costCenter": "marketing"
updateTimestring (google-datetime)Output only. The update timestamp of a Certificate Map.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, certificateMapsIdGets details of a single CertificateMap.
listselectprojectsId, locationsIdfilter, orderBy, pageSize, pageTokenLists CertificateMaps in a given project and location.
createinsertprojectsId, locationsIdcertificateMapIdCreates a new CertificateMap in a given project and location.
patchupdateprojectsId, locationsId, certificateMapsIdupdateMaskUpdates a CertificateMap.
deletedeleteprojectsId, locationsId, certificateMapsIdDeletes 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.

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
certificateMapsIdstring
locationsIdstring
projectsIdstring
certificateMapIdstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
updateMaskstring (google-fieldmask)

SELECT examples​

Gets details of a single CertificateMap.

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

INSERT examples​

Creates a new CertificateMap in a given project and location.

INSERT INTO google.certificatemanager.certificate_maps (
data__description,
data__labels,
data__name,
data__tags,
projectsId,
locationsId,
certificateMapId
)
SELECT
'{{ description }}',
'{{ labels }}',
'{{ name }}',
'{{ tags }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ certificateMapId }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples​

Updates a CertificateMap.

UPDATE google.certificatemanager.certificate_maps
SET
data__description = '{{ description }}',
data__labels = '{{ labels }}',
data__name = '{{ name }}',
data__tags = '{{ tags }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND certificateMapsId = '{{ certificateMapsId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
done,
error,
metadata,
response;

DELETE examples​

Deletes 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.

DELETE FROM google.certificatemanager.certificate_maps
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND certificateMapsId = '{{ certificateMapsId }}' --required
;