Skip to main content

endpoints

Creates, updates, deletes, gets or lists an endpoints resource.

Overview

Nameendpoints
TypeResource
Idazure.cdn.endpoints

Fields

The following fields are returned by SELECT queries:

OK. The request has succeeded.

NameDatatypeDescription
locationstringResource location.
propertiesobjectThe JSON object that contains the properties required to create an endpoint.
tagsobjectResource tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, profileName, endpointName, subscriptionIdGets an existing CDN endpoint with the specified endpoint name under the specified subscription, resource group and profile.
list_by_profileselectresourceGroupName, profileName, subscriptionIdLists existing CDN endpoints.
createinsertresourceGroupName, profileName, endpointName, subscriptionIdCreates a new CDN endpoint with the specified endpoint name under the specified subscription, resource group and profile.
updateupdateresourceGroupName, profileName, endpointName, subscriptionIdUpdates an existing CDN endpoint with the specified endpoint name under the specified subscription, resource group and profile. Only tags can be updated after creating an endpoint. To update origins, use the Update Origin operation. To update origin groups, use the Update Origin group operation. To update custom domains, use the Update Custom Domain operation.
deletedeleteresourceGroupName, profileName, endpointName, subscriptionIdDeletes an existing CDN endpoint with the specified endpoint name under the specified subscription, resource group and profile.
startexecresourceGroupName, profileName, endpointName, subscriptionIdStarts an existing CDN endpoint that is on a stopped state.
stopexecresourceGroupName, profileName, endpointName, subscriptionIdStops an existing running CDN endpoint.
purge_contentexecresourceGroupName, profileName, endpointName, subscriptionId, contentPathsRemoves a content from CDN.
load_contentexecresourceGroupName, profileName, endpointName, subscriptionId, contentPathsPre-loads a content to CDN. Available for Verizon Profiles.
validate_custom_domainexecresourceGroupName, profileName, endpointName, subscriptionId, hostNameValidates the custom domain mapping to ensure it maps to the correct CDN endpoint in DNS.

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
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 CDN endpoint with the specified endpoint name under the specified subscription, resource group and profile.

SELECT
location,
properties,
tags
FROM azure.cdn.endpoints
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND profileName = '{{ profileName }}' -- required
AND endpointName = '{{ endpointName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;

INSERT examples

Creates a new CDN endpoint with the specified endpoint name under the specified subscription, resource group and profile.

INSERT INTO azure.cdn.endpoints (
data__location,
data__tags,
data__properties,
resourceGroupName,
profileName,
endpointName,
subscriptionId
)
SELECT
'{{ location }}',
'{{ tags }}',
'{{ properties }}',
'{{ resourceGroupName }}',
'{{ profileName }}',
'{{ endpointName }}',
'{{ subscriptionId }}'
RETURNING
location,
properties,
tags
;

UPDATE examples

Updates an existing CDN endpoint with the specified endpoint name under the specified subscription, resource group and profile. Only tags can be updated after creating an endpoint. To update origins, use the Update Origin operation. To update origin groups, use the Update Origin group operation. To update custom domains, use the Update Custom Domain operation.

UPDATE azure.cdn.endpoints
SET
data__tags = '{{ tags }}',
data__properties = '{{ properties }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}' --required
AND profileName = '{{ profileName }}' --required
AND endpointName = '{{ endpointName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
RETURNING
location,
properties,
tags;

DELETE examples

Deletes an existing CDN endpoint with the specified endpoint name under the specified subscription, resource group and profile.

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

Lifecycle Methods

Starts an existing CDN endpoint that is on a stopped state.

EXEC azure.cdn.endpoints.start 
@resourceGroupName='{{ resourceGroupName }}' --required,
@profileName='{{ profileName }}' --required,
@endpointName='{{ endpointName }}' --required,
@subscriptionId='{{ subscriptionId }}' --required
;