custom_domains
Creates, updates, deletes, gets or lists a custom_domains
resource.
Overview
Name | custom_domains |
Type | Resource |
Id | azure.cdn.custom_domains |
Fields
- vw_custom_domains
- custom_domains
Name | Datatype | Description |
---|---|---|
customDomainName | text | field from the properties object |
custom_https_parameters | text | field from the properties object |
custom_https_provisioning_state | text | field from the properties object |
custom_https_provisioning_substate | text | field from the properties object |
endpointName | text | field from the properties object |
host_name | text | field from the properties object |
profileName | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
resource_state | text | field from the properties object |
subscriptionId | text | field from the properties object |
validation_data | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | The JSON object that contains the properties of the custom domain to create. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | customDomainName, endpointName, profileName, resourceGroupName, subscriptionId | Gets an existing custom domain within an endpoint. |
list_by_endpoint | SELECT | endpointName, profileName, resourceGroupName, subscriptionId | Lists all of the existing custom domains within an endpoint. |
create | INSERT | customDomainName, endpointName, profileName, resourceGroupName, subscriptionId | Creates a new custom domain within an endpoint. |
delete | DELETE | customDomainName, endpointName, profileName, resourceGroupName, subscriptionId | Deletes an existing custom domain within an endpoint. |
disable_custom_https | EXEC | customDomainName, endpointName, profileName, resourceGroupName, subscriptionId | Disable https delivery of the custom domain. |
enable_custom_https | EXEC | customDomainName, endpointName, profileName, resourceGroupName, subscriptionId, data__certificateSource, data__protocolType | Enable https delivery of the custom domain. |
SELECT
examples
Lists all of the existing custom domains within an endpoint.
- vw_custom_domains
- custom_domains
SELECT
customDomainName,
custom_https_parameters,
custom_https_provisioning_state,
custom_https_provisioning_substate,
endpointName,
host_name,
profileName,
provisioning_state,
resourceGroupName,
resource_state,
subscriptionId,
validation_data
FROM azure.cdn.vw_custom_domains
WHERE endpointName = '{{ endpointName }}'
AND profileName = '{{ profileName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
properties
FROM azure.cdn.custom_domains
WHERE endpointName = '{{ endpointName }}'
AND profileName = '{{ profileName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new custom_domains
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.cdn.custom_domains (
customDomainName,
endpointName,
profileName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ customDomainName }}',
'{{ endpointName }}',
'{{ profileName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: hostName
value: string
DELETE
example
Deletes the specified custom_domains
resource.
/*+ delete */
DELETE FROM azure.cdn.custom_domains
WHERE customDomainName = '{{ customDomainName }}'
AND endpointName = '{{ endpointName }}'
AND profileName = '{{ profileName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';