domains
Creates, updates, deletes, gets or lists a domains
resource.
Overview
Name | domains |
Type | Resource |
Id | azure.app_service.domains |
Fields
Name | Datatype | Description |
---|---|---|
id | string | Resource Id. |
name | string | Resource Name. |
kind | string | Kind of resource. |
location | string | Resource Location. |
properties | object | Domain resource specific properties |
tags | object | Resource tags. |
type | string | Resource type. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | domainName, resourceGroupName, subscriptionId | Description for Get a domain. |
list | SELECT | subscriptionId | Description for Get all domains in a subscription. |
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | Description for Get all domains in a resource group. |
create_or_update | INSERT | domainName, resourceGroupName, subscriptionId | Description for Creates or updates a domain. |
delete | DELETE | domainName, resourceGroupName, subscriptionId | Description for Delete a domain. |
update | UPDATE | domainName, resourceGroupName, subscriptionId | Description for Creates or updates a domain. |
check_availability | EXEC | subscriptionId | Description for Check if a domain is available for registration. |
renew | EXEC | domainName, resourceGroupName, subscriptionId | Description for Renew a domain. |
transfer_out | EXEC | domainName, resourceGroupName, subscriptionId |
SELECT
examples
Description for Get all domains in a subscription.
SELECT
id,
name,
kind,
location,
properties,
tags,
type
FROM azure.app_service.domains
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new domains
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.app_service.domains (
domainName,
resourceGroupName,
subscriptionId,
kind,
location,
tags,
properties
)
SELECT
'{{ domainName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ kind }}',
'{{ location }}',
'{{ tags }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: id
value: string
- name: name
value: string
- name: kind
value: string
- name: location
value: string
- name: type
value: string
- name: tags
value: object
- name: properties
value:
- name: contactAdmin
value:
- name: addressMailing
value:
- name: address1
value: string
- name: address2
value: string
- name: city
value: string
- name: country
value: string
- name: postalCode
value: string
- name: state
value: string
- name: email
value: string
- name: fax
value: string
- name: jobTitle
value: string
- name: nameFirst
value: string
- name: nameLast
value: string
- name: nameMiddle
value: string
- name: organization
value: string
- name: phone
value: string
- name: registrationStatus
value: string
- name: provisioningState
value: string
- name: nameServers
value:
- string
- name: privacy
value: boolean
- name: createdTime
value: string
- name: expirationTime
value: string
- name: lastRenewedTime
value: string
- name: autoRenew
value: boolean
- name: readyForDnsRecordManagement
value: boolean
- name: managedHostNames
value:
- - name: name
value: string
- name: siteNames
value:
- string
- name: azureResourceName
value: string
- name: azureResourceType
value: string
- name: customHostNameDnsRecordType
value: string
- name: hostNameType
value: string
- name: consent
value:
- name: agreementKeys
value:
- string
- name: agreedBy
value: string
- name: agreedAt
value: string
- name: domainNotRenewableReasons
value:
- string
- name: dnsType
value: string
- name: dnsZoneId
value: string
- name: targetDnsType
value: string
- name: authCode
value: string
UPDATE
example
Updates a domains
resource.
/*+ update */
UPDATE azure.app_service.domains
SET
kind = '{{ kind }}',
properties = '{{ properties }}'
WHERE
domainName = '{{ domainName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified domains
resource.
/*+ delete */
DELETE FROM azure.app_service.domains
WHERE domainName = '{{ domainName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';