Skip to main content

domain_aliases

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

Overview

Namedomain_aliases
TypeResource
Idgoogleadmin.directory.domain_aliases

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
creationTimestring (int64)The creation time of the domain alias. (Read-only).
domainAliasNamestringThe domain alias name.
etagstringETag of the resource.
kindstringKind of resource this is. (default: admin#directory#domainAlias)
parentDomainNamestringThe parent domain name that the domain alias is associated with. This can either be a primary or secondary domain name within a customer.
verifiedbooleanIndicates the verification state of a domain alias. (Read-only)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectcustomer, domainAliasNameRetrieves a domain alias of the customer.
listselectcustomer, parentDomainNameLists the domain aliases of the customer.
insertinsertcustomerInserts a domain alias of the customer.
deletedeletecustomer, domainAliasNameDeletes a domain Alias of the customer.

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
customerstring
domainAliasNamestring
parentDomainNamestring

SELECT examples

Retrieves a domain alias of the customer.

SELECT
creationTime,
domainAliasName,
etag,
kind,
parentDomainName,
verified
FROM googleadmin.directory.domain_aliases
WHERE customer = '{{ customer }}' -- required
AND domainAliasName = '{{ domainAliasName }}' -- required;

INSERT examples

Inserts a domain alias of the customer.

INSERT INTO googleadmin.directory.domain_aliases (
data__kind,
data__parentDomainName,
data__verified,
data__creationTime,
data__etag,
data__domainAliasName,
customer
)
SELECT
'{{ kind }}',
'{{ parentDomainName }}',
{{ verified }},
'{{ creationTime }}',
'{{ etag }}',
'{{ domainAliasName }}',
'{{ customer }}'
RETURNING
creationTime,
domainAliasName,
etag,
kind,
parentDomainName,
verified
;

DELETE examples

Deletes a domain Alias of the customer.

DELETE FROM googleadmin.directory.domain_aliases
WHERE customer = '{{ customer }}' --required
AND domainAliasName = '{{ domainAliasName }}' --required;