Skip to main content

top_level_domains

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

Overview

Nametop_level_domains
TypeResource
Idazure.domain_registration.top_level_domains

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
kindstringKind of resource.
privacybooleanIf true, then the top level domain supports domain privacy; otherwise, false.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectname, subscription_idGet details of a top-level domain. Description for Get details of a top-level domain.
listselectsubscription_idGet all top-level domains supported for registration. Description for Get all top-level domains supported for registration.
list_agreementsexecname, subscription_idGets all legal agreements that user needs to accept before purchasing a domain. Description for Gets all legal agreements that user needs to accept before purchasing a domain.

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
namestringName of the top-level domain. Required.
subscription_idstring

SELECT examples

Get details of a top-level domain. Description for Get details of a top-level domain.

SELECT
id,
name,
kind,
privacy,
systemData,
type
FROM azure.domain_registration.top_level_domains
WHERE name = '{{ name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

Lifecycle Methods

Gets all legal agreements that user needs to accept before purchasing a domain. Description for Gets all legal agreements that user needs to accept before purchasing a domain.

EXEC azure.domain_registration.top_level_domains.list_agreements 
@name='{{ name }}' --required,
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"includePrivacy": {{ includePrivacy }},
"forTransfer": {{ forTransfer }}
}'
;