Skip to main content

certificate_map_entries

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

Overview

Namecertificate_map_entries
TypeResource
Idgoogle.certificatemanager.certificate_map_entries

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringIdentifier. A user-defined name of the Certificate Map Entry. Certificate Map Entry names must be unique globally and match pattern projects/*/locations/*/certificateMaps/*/certificateMapEntries/*.
certificatesarrayOptional. A set of Certificates defines for the given hostname. There can be defined up to four certificates in each Certificate Map Entry. Each certificate must match pattern projects/*/locations/*/certificates/*.
createTimestring (google-datetime)Output only. The creation timestamp of a Certificate Map Entry.
descriptionstringOptional. One or more paragraphs of text description of a certificate map entry.
hostnamestringA Hostname (FQDN, e.g. example.com) or a wildcard hostname expression (*.example.com) for a set of hostnames with common suffix. Used as Server Name Indication (SNI) for selecting a proper certificate.
labelsobjectOptional. Set of labels associated with a Certificate Map Entry.
matcherstringA predefined matcher for particular cases, other than SNI selection.
statestringOutput only. A serving state of this Certificate Map Entry.
updateTimestring (google-datetime)Output only. The update timestamp of a Certificate Map Entry.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, certificateMapsId, certificateMapEntriesIdGets details of a single CertificateMapEntry.
listselectprojectsId, locationsId, certificateMapsIdpageSize, pageToken, filter, orderByLists CertificateMapEntries in a given project and location.
createinsertprojectsId, locationsId, certificateMapsIdcertificateMapEntryIdCreates a new CertificateMapEntry in a given project and location.
patchupdateprojectsId, locationsId, certificateMapsId, certificateMapEntriesIdupdateMaskUpdates a CertificateMapEntry.
deletedeleteprojectsId, locationsId, certificateMapsId, certificateMapEntriesIdDeletes a single CertificateMapEntry.

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

SELECT examples

Gets details of a single CertificateMapEntry.

SELECT
name,
certificates,
createTime,
description,
hostname,
labels,
matcher,
state,
updateTime
FROM google.certificatemanager.certificate_map_entries
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND certificateMapsId = '{{ certificateMapsId }}' -- required
AND certificateMapEntriesId = '{{ certificateMapEntriesId }}' -- required;

INSERT examples

Creates a new CertificateMapEntry in a given project and location.

INSERT INTO google.certificatemanager.certificate_map_entries (
data__name,
data__description,
data__labels,
data__hostname,
data__matcher,
data__certificates,
projectsId,
locationsId,
certificateMapsId,
certificateMapEntryId
)
SELECT
'{{ name }}',
'{{ description }}',
'{{ labels }}',
'{{ hostname }}',
'{{ matcher }}',
'{{ certificates }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ certificateMapsId }}',
'{{ certificateMapEntryId }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples

Updates a CertificateMapEntry.

UPDATE google.certificatemanager.certificate_map_entries
SET
data__name = '{{ name }}',
data__description = '{{ description }}',
data__labels = '{{ labels }}',
data__hostname = '{{ hostname }}',
data__matcher = '{{ matcher }}',
data__certificates = '{{ certificates }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND certificateMapsId = '{{ certificateMapsId }}' --required
AND certificateMapEntriesId = '{{ certificateMapEntriesId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
done,
error,
metadata,
response;

DELETE examples

Deletes a single CertificateMapEntry.

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