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:

Successful response

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.
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, locationsIdpageSize, pageToken, filter, orderByLists 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,
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__name,
data__description,
data__labels,
projectsId,
locationsId,
certificateMapId
)
SELECT
'{{ name }}',
'{{ description }}',
'{{ labels }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ certificateMapId }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples

Updates a CertificateMap.

UPDATE google.certificatemanager.certificate_maps
SET
data__name = '{{ name }}',
data__description = '{{ description }}',
data__labels = '{{ labels }}'
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;