dns_authorizations
Creates, updates, deletes, gets or lists a dns_authorizations
resource.
Overview
Name | dns_authorizations |
Type | Resource |
Id | google.certificatemanager.dns_authorizations |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Identifier. A user-defined name of the dns authorization. DnsAuthorization names must be unique globally and match pattern projects/*/locations/*/dnsAuthorizations/* . |
description | string | Optional. One or more paragraphs of text description of a DnsAuthorization. |
createTime | string | Output only. The creation timestamp of a DnsAuthorization. |
dnsResourceRecord | object | The structure describing the DNS Resource Record that needs to be added to DNS configuration for the authorization to be usable by certificate. |
domain | string | Required. Immutable. A domain that is being authorized. A DnsAuthorization resource covers a single domain and its wildcard, e.g. authorization for example.com can be used to issue certificates for example.com and *.example.com . |
labels | object | Optional. Set of labels associated with a DnsAuthorization. |
type | string | Optional. Immutable. Type of DnsAuthorization. If unset during resource creation the following default will be used: - in location global : FIXED_RECORD, - in other locations: PER_PROJECT_RECORD. |
updateTime | string | Output only. The last update timestamp of a DnsAuthorization. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | dnsAuthorizationsId, locationsId, projectsId | Gets details of a single DnsAuthorization. |
list | SELECT | locationsId, projectsId | Lists DnsAuthorizations in a given project and location. |
create | INSERT | locationsId, projectsId | Creates a new DnsAuthorization in a given project and location. |
delete | DELETE | dnsAuthorizationsId, locationsId, projectsId | Deletes a single DnsAuthorization. |
patch | UPDATE | dnsAuthorizationsId, locationsId, projectsId | Updates a DnsAuthorization. |
SELECT
examples
Lists DnsAuthorizations in a given project and location.
SELECT
name,
description,
createTime,
dnsResourceRecord,
domain,
labels,
type,
updateTime
FROM google.certificatemanager.dns_authorizations
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new dns_authorizations
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.certificatemanager.dns_authorizations (
locationsId,
projectsId,
name,
labels,
description,
domain,
type
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ name }}',
'{{ labels }}',
'{{ description }}',
'{{ domain }}',
'{{ type }}'
;
- name: your_resource_model_name
props:
- name: name
value: string
- name: createTime
value: string
- name: updateTime
value: string
- name: labels
value: object
- name: description
value: string
- name: domain
value: string
- name: dnsResourceRecord
value:
- name: name
value: string
- name: type
value: string
- name: data
value: string
- name: type
value: string
UPDATE
example
Updates a dns_authorizations
resource.
/*+ update */
UPDATE google.certificatemanager.dns_authorizations
SET
name = '{{ name }}',
labels = '{{ labels }}',
description = '{{ description }}',
domain = '{{ domain }}',
type = '{{ type }}'
WHERE
dnsAuthorizationsId = '{{ dnsAuthorizationsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';
DELETE
example
Deletes the specified dns_authorizations
resource.
/*+ delete */
DELETE FROM google.certificatemanager.dns_authorizations
WHERE dnsAuthorizationsId = '{{ dnsAuthorizationsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';