Skip to main content

custom_domains

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

Overview

Namecustom_domains
TypeResource
Idazure.cdn.custom_domains

Fields

NameDatatypeDescription
customDomainNametextfield from the properties object
custom_https_parameterstextfield from the properties object
custom_https_provisioning_statetextfield from the properties object
custom_https_provisioning_substatetextfield from the properties object
endpointNametextfield from the properties object
host_nametextfield from the properties object
profileNametextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
resource_statetextfield from the properties object
subscriptionIdtextfield from the properties object
validation_datatextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTcustomDomainName, endpointName, profileName, resourceGroupName, subscriptionIdGets an existing custom domain within an endpoint.
list_by_endpointSELECTendpointName, profileName, resourceGroupName, subscriptionIdLists all of the existing custom domains within an endpoint.
createINSERTcustomDomainName, endpointName, profileName, resourceGroupName, subscriptionIdCreates a new custom domain within an endpoint.
deleteDELETEcustomDomainName, endpointName, profileName, resourceGroupName, subscriptionIdDeletes an existing custom domain within an endpoint.
disable_custom_httpsEXECcustomDomainName, endpointName, profileName, resourceGroupName, subscriptionIdDisable https delivery of the custom domain.
enable_custom_httpsEXECcustomDomainName, endpointName, profileName, resourceGroupName, subscriptionId, data__certificateSource, data__protocolTypeEnable https delivery of the custom domain.

SELECT examples

Lists all of the existing custom domains within an endpoint.

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 }}';

INSERT example

Use the following StackQL query and manifest file to create a new custom_domains resource.

/*+ create */
INSERT INTO azure.cdn.custom_domains (
customDomainName,
endpointName,
profileName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ customDomainName }}',
'{{ endpointName }}',
'{{ profileName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

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 }}';