certificate_map_entries
Creates, updates, deletes, gets or lists a certificate_map_entries
resource.
Overview
Name | certificate_map_entries |
Type | Resource |
Id | google.certificatemanager.certificate_map_entries |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Identifier. A user-defined name of the Certificate Map Entry. Certificate Map Entry names must be unique globally and match pattern projects/*/locations/*/certificateMaps/*/certificateMapEntries/* . |
description | string | Optional. One or more paragraphs of text description of a certificate map entry. |
certificates | array | Optional. 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/* . |
createTime | string | Output only. The creation timestamp of a Certificate Map Entry. |
hostname | string | A 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. |
labels | object | Optional. Set of labels associated with a Certificate Map Entry. |
matcher | string | A predefined matcher for particular cases, other than SNI selection. |
state | string | Output only. A serving state of this Certificate Map Entry. |
updateTime | string | Output only. The update timestamp of a Certificate Map Entry. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | certificateMapEntriesId, certificateMapsId, locationsId, projectsId | Gets details of a single CertificateMapEntry. |
list | SELECT | certificateMapsId, locationsId, projectsId | Lists CertificateMapEntries in a given project and location. |
create | INSERT | certificateMapsId, locationsId, projectsId | Creates a new CertificateMapEntry in a given project and location. |
delete | DELETE | certificateMapEntriesId, certificateMapsId, locationsId, projectsId | Deletes a single CertificateMapEntry. |
patch | UPDATE | certificateMapEntriesId, certificateMapsId, locationsId, projectsId | Updates 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.
- All Properties
- Manifest
/*+ 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 }}'
;
- name: your_resource_model_name
props:
- name: name
value: string
- name: description
value: string
- name: createTime
value: string
- name: updateTime
value: string
- name: labels
value: object
- name: hostname
value: string
- name: matcher
value: string
- name: certificates
value:
- string
- name: state
value: string
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 }}';