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

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/*.
descriptionstringOptional. One or more paragraphs of text description of a certificate map entry.
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/*.
createTimestringOutput only. The creation timestamp 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.
updateTimestringOutput only. The update timestamp of a Certificate Map Entry.

Methods

NameAccessible byRequired ParamsDescription
getSELECTcertificateMapEntriesId, certificateMapsId, locationsId, projectsIdGets details of a single CertificateMapEntry.
listSELECTcertificateMapsId, locationsId, projectsIdLists CertificateMapEntries in a given project and location.
createINSERTcertificateMapsId, locationsId, projectsIdCreates a new CertificateMapEntry in a given project and location.
deleteDELETEcertificateMapEntriesId, certificateMapsId, locationsId, projectsIdDeletes a single CertificateMapEntry.
patchUPDATEcertificateMapEntriesId, certificateMapsId, locationsId, projectsIdUpdates a CertificateMapEntry.

SELECT examples

Lists CertificateMapEntries in a given project and location.

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

INSERT example

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

/*+ create */
INSERT INTO google.certificatemanager.certificate_map_entries (
certificateMapsId,
locationsId,
projectsId,
name,
description,
labels,
hostname,
matcher,
certificates
)
SELECT
'{{ certificateMapsId }}',
'{{ locationsId }}',
'{{ projectsId }}',
'{{ name }}',
'{{ description }}',
'{{ labels }}',
'{{ hostname }}',
'{{ matcher }}',
'{{ certificates }}'
;

UPDATE example

Updates a certificate_map_entries resource.

/*+ update */
UPDATE google.certificatemanager.certificate_map_entries
SET
name = '{{ name }}',
description = '{{ description }}',
labels = '{{ labels }}',
hostname = '{{ hostname }}',
matcher = '{{ matcher }}',
certificates = '{{ certificates }}'
WHERE
certificateMapEntriesId = '{{ certificateMapEntriesId }}'
AND certificateMapsId = '{{ certificateMapsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

DELETE example

Deletes the specified certificate_map_entries resource.

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