certificate_maps
Creates, updates, deletes, gets or lists a certificate_maps
resource.
Overview
Name | certificate_maps |
Type | Resource |
Id | google.certificatemanager.certificate_maps |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Identifier. A user-defined name of the Certificate Map. Certificate Map names must be unique globally and match pattern projects/*/locations/*/certificateMaps/* . |
description | string | Optional. One or more paragraphs of text description of a certificate map. |
createTime | string | Output only. The creation timestamp of a Certificate Map. |
gclbTargets | array | Output 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. |
labels | object | Optional. Set of labels associated with a Certificate Map. |
updateTime | string | Output only. The update timestamp of a Certificate Map. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | certificateMapsId, locationsId, projectsId | Gets details of a single CertificateMap. |
list | SELECT | locationsId, projectsId | Lists CertificateMaps in a given project and location. |
create | INSERT | locationsId, projectsId | Creates a new CertificateMap in a given project and location. |
delete | DELETE | certificateMapsId, locationsId, projectsId | 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. |
patch | UPDATE | certificateMapsId, locationsId, projectsId | Updates a CertificateMap. |
SELECT
examples
Lists CertificateMaps in a given project and location.
SELECT
name,
description,
createTime,
gclbTargets,
labels,
updateTime
FROM google.certificatemanager.certificate_maps
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new certificate_maps
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.certificatemanager.certificate_maps (
locationsId,
projectsId,
name,
description,
labels
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ name }}',
'{{ description }}',
'{{ labels }}'
;
- 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: gclbTargets
value:
- - name: targetHttpsProxy
value: string
- name: targetSslProxy
value: string
- name: ipConfigs
value:
- - name: ipAddress
value: string
- name: ports
value:
- integer
UPDATE
example
Updates a certificate_maps
resource.
/*+ update */
UPDATE google.certificatemanager.certificate_maps
SET
name = '{{ name }}',
description = '{{ description }}',
labels = '{{ labels }}'
WHERE
certificateMapsId = '{{ certificateMapsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';
DELETE
example
Deletes the specified certificate_maps
resource.
/*+ delete */
DELETE FROM google.certificatemanager.certificate_maps
WHERE certificateMapsId = '{{ certificateMapsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';