afd_custom_domains
Creates, updates, deletes, gets or lists a afd_custom_domains
resource.
Overview
Name | afd_custom_domains |
Type | Resource |
Id | azure.cdn.afd_custom_domains |
Fields
- vw_afd_custom_domains
- afd_custom_domains
Name | Datatype | Description |
---|---|---|
azure_dns_zone | text | field from the properties object |
customDomainName | text | field from the properties object |
deployment_status | text | field from the properties object |
domain_validation_state | text | field from the properties object |
extended_properties | text | field from the properties object |
host_name | text | field from the properties object |
pre_validated_custom_domain_resource_id | text | field from the properties object |
profileName | text | field from the properties object |
profile_name | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
subscriptionId | text | field from the properties object |
tls_settings | text | field from the properties object |
validation_properties | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | The JSON object that contains the properties of the domain to create. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | customDomainName, profileName, resourceGroupName, subscriptionId | Gets an existing AzureFrontDoor domain with the specified domain name under the specified subscription, resource group and profile. |
list_by_profile | SELECT | profileName, resourceGroupName, subscriptionId | Lists existing AzureFrontDoor domains. |
create | INSERT | customDomainName, profileName, resourceGroupName, subscriptionId | Creates a new domain within the specified profile. |
delete | DELETE | customDomainName, profileName, resourceGroupName, subscriptionId | Deletes an existing AzureFrontDoor domain with the specified domain name under the specified subscription, resource group and profile. |
update | UPDATE | customDomainName, profileName, resourceGroupName, subscriptionId | Updates an existing domain within a profile. |
refresh_validation_token | EXEC | customDomainName, profileName, resourceGroupName, subscriptionId | Updates the domain validation token. |
SELECT
examples
Lists existing AzureFrontDoor domains.
- vw_afd_custom_domains
- afd_custom_domains
SELECT
azure_dns_zone,
customDomainName,
deployment_status,
domain_validation_state,
extended_properties,
host_name,
pre_validated_custom_domain_resource_id,
profileName,
profile_name,
provisioning_state,
resourceGroupName,
subscriptionId,
tls_settings,
validation_properties
FROM azure.cdn.vw_afd_custom_domains
WHERE profileName = '{{ profileName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
properties
FROM azure.cdn.afd_custom_domains
WHERE profileName = '{{ profileName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new afd_custom_domains
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.cdn.afd_custom_domains (
customDomainName,
profileName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ customDomainName }}',
'{{ profileName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: profileName
value: string
- name: tlsSettings
value:
- name: certificateType
value: string
- name: minimumTlsVersion
value: string
- name: secret
value:
- name: id
value: string
- name: provisioningState
value: string
- name: deploymentStatus
value: string
- name: domainValidationState
value: string
- name: hostName
value: string
- name: extendedProperties
value: object
- name: validationProperties
value:
- name: validationToken
value: string
- name: expirationDate
value: string
UPDATE
example
Updates a afd_custom_domains
resource.
/*+ update */
UPDATE azure.cdn.afd_custom_domains
SET
properties = '{{ properties }}'
WHERE
customDomainName = '{{ customDomainName }}'
AND profileName = '{{ profileName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified afd_custom_domains
resource.
/*+ delete */
DELETE FROM azure.cdn.afd_custom_domains
WHERE customDomainName = '{{ customDomainName }}'
AND profileName = '{{ profileName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';