Skip to main content

dns_authorizations

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

Overview

Namedns_authorizations
TypeResource
Idgoogle.certificatemanager.dns_authorizations

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringIdentifier. A user-defined name of the dns authorization. DnsAuthorization names must be unique globally and match pattern projects/*/locations/*/dnsAuthorizations/*.
createTimestring (google-datetime)Output only. The creation timestamp of a DnsAuthorization.
descriptionstringOptional. One or more paragraphs of text description of a DnsAuthorization.
dnsResourceRecordobjectOutput only. DNS Resource Record that needs to be added to DNS configuration. (id: DnsResourceRecord)
domainstringRequired. 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.
labelsobjectOptional. Set of labels associated with a DnsAuthorization.
typestringOptional. 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.
updateTimestring (google-datetime)Output only. The last update timestamp of a DnsAuthorization.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, dnsAuthorizationsIdGets details of a single DnsAuthorization.
listselectprojectsId, locationsIdpageSize, pageToken, filter, orderByLists DnsAuthorizations in a given project and location.
createinsertprojectsId, locationsIddnsAuthorizationIdCreates a new DnsAuthorization in a given project and location.
patchupdateprojectsId, locationsId, dnsAuthorizationsIdupdateMaskUpdates a DnsAuthorization.
deletedeleteprojectsId, locationsId, dnsAuthorizationsIdDeletes a single DnsAuthorization.

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

SELECT examples

Gets details of a single DnsAuthorization.

SELECT
name,
createTime,
description,
dnsResourceRecord,
domain,
labels,
type,
updateTime
FROM google.certificatemanager.dns_authorizations
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND dnsAuthorizationsId = '{{ dnsAuthorizationsId }}' -- required;

INSERT examples

Creates a new DnsAuthorization in a given project and location.

INSERT INTO google.certificatemanager.dns_authorizations (
data__name,
data__labels,
data__description,
data__domain,
data__type,
projectsId,
locationsId,
dnsAuthorizationId
)
SELECT
'{{ name }}',
'{{ labels }}',
'{{ description }}',
'{{ domain }}',
'{{ type }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ dnsAuthorizationId }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples

Updates a DnsAuthorization.

UPDATE google.certificatemanager.dns_authorizations
SET
data__name = '{{ name }}',
data__labels = '{{ labels }}',
data__description = '{{ description }}',
data__domain = '{{ domain }}',
data__type = '{{ type }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND dnsAuthorizationsId = '{{ dnsAuthorizationsId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
done,
error,
metadata,
response;

DELETE examples

Deletes a single DnsAuthorization.

DELETE FROM google.certificatemanager.dns_authorizations
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND dnsAuthorizationsId = '{{ dnsAuthorizationsId }}' --required;