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

The following fields are returned by SELECT queries:

OK. The request has succeeded.

NameDatatypeDescription
propertiesobjectThe JSON object that contains the properties of the custom domain to create.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, profileName, endpointName, customDomainName, subscriptionIdGets an existing custom domain within an endpoint.
list_by_endpointselectresourceGroupName, profileName, endpointName, subscriptionIdLists all of the existing custom domains within an endpoint.
createinsertresourceGroupName, profileName, endpointName, customDomainName, subscriptionIdCreates a new custom domain within an endpoint.
deletedeleteresourceGroupName, profileName, endpointName, customDomainName, subscriptionIdDeletes an existing custom domain within an endpoint.
disable_custom_httpsexecresourceGroupName, profileName, endpointName, customDomainName, subscriptionIdDisable https delivery of the custom domain.
enable_custom_httpsexecresourceGroupName, profileName, endpointName, customDomainName, subscriptionId, certificateSource, protocolTypeEnable https delivery of the custom 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
customDomainNamestringName of the custom domain within an endpoint.
endpointNamestringName of the endpoint under the profile which is unique globally.
profileNamestringName of the CDN profile which is unique within the resource group.
resourceGroupNamestringName of the Resource group within the Azure subscription.
subscriptionIdstringAzure Subscription ID.

SELECT examples

Gets an existing custom domain within an endpoint.

SELECT
properties
FROM azure.cdn.custom_domains
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND profileName = '{{ profileName }}' -- required
AND endpointName = '{{ endpointName }}' -- required
AND customDomainName = '{{ customDomainName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;

INSERT examples

Creates a new custom domain within an endpoint.

INSERT INTO azure.cdn.custom_domains (
data__properties,
resourceGroupName,
profileName,
endpointName,
customDomainName,
subscriptionId
)
SELECT
'{{ properties }}',
'{{ resourceGroupName }}',
'{{ profileName }}',
'{{ endpointName }}',
'{{ customDomainName }}',
'{{ subscriptionId }}'
RETURNING
properties
;

DELETE examples

Deletes an existing custom domain within an endpoint.

DELETE FROM azure.cdn.custom_domains
WHERE resourceGroupName = '{{ resourceGroupName }}' --required
AND profileName = '{{ profileName }}' --required
AND endpointName = '{{ endpointName }}' --required
AND customDomainName = '{{ customDomainName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
;

Lifecycle Methods

Disable https delivery of the custom domain.

EXEC azure.cdn.custom_domains.disable_custom_https 
@resourceGroupName='{{ resourceGroupName }}' --required,
@profileName='{{ profileName }}' --required,
@endpointName='{{ endpointName }}' --required,
@customDomainName='{{ customDomainName }}' --required,
@subscriptionId='{{ subscriptionId }}' --required
;