Skip to main content

afd_endpoints

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

Overview

Nameafd_endpoints
TypeResource
Idazure.cdn.afd_endpoints

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
autoGeneratedDomainNameLabelScopestringIndicates the endpoint name reuse scope. The default value is TenantReuse. Known values are: "TenantReuse", "SubscriptionReuse", "ResourceGroupReuse", and "NoReuse". (TenantReuse, SubscriptionReuse, ResourceGroupReuse, NoReuse)
deploymentStatusstringKnown values are: "NotStarted", "InProgress", "Succeeded", and "Failed". (NotStarted, InProgress, Succeeded, Failed)
enabledStatestringWhether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'. Known values are: "Enabled" and "Disabled". (Enabled, Disabled)
hostNamestringThe host name of the endpoint structured as {endpointName}.{DNSZone}, e.g. contoso.azureedge.net.
locationstringThe geo-location where the resource lives. Required.
profileNamestringThe name of the profile which holds the endpoint.
provisioningStatestringProvisioning status. Known values are: "Succeeded", "Failed", "Updating", "Deleting", and "Creating". (Succeeded, Failed, Updating, Deleting, Creating)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, profile_name, endpoint_name, subscription_idGets an existing AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile.
list_by_profileselectresource_group_name, profile_name, subscription_idLists existing AzureFrontDoor endpoints.
createinsertresource_group_name, profile_name, endpoint_name, subscription_id, locationCreates a new AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile.
updateupdateresource_group_name, profile_name, endpoint_name, subscription_idUpdates an existing AzureFrontDoor 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 domains, use the Update Custom Domain operation.
deletedeleteresource_group_name, profile_name, endpoint_name, subscription_idDeletes an existing AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile.
list_resource_usageexecresource_group_name, profile_name, endpoint_name, subscription_idChecks the quota and actual usage of endpoints under the given Azure Front Door profile.
purge_contentexecresource_group_name, profile_name, endpoint_name, subscription_id, contentPathsRemoves a content from AzureFrontDoor.
validate_custom_domainexecresource_group_name, profile_name, endpoint_name, subscription_id, hostNameValidates the custom domain mapping to ensure it maps to the correct Azure Front Door 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
endpoint_namestringName of the endpoint under the profile which is unique globally. Required.
profile_namestringName of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is unique within the resource group. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Gets an existing AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile.

SELECT
id,
name,
autoGeneratedDomainNameLabelScope,
deploymentStatus,
enabledState,
hostName,
location,
profileName,
provisioningState,
systemData,
tags,
type
FROM azure.cdn.afd_endpoints
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND profile_name = '{{ profile_name }}' -- required
AND endpoint_name = '{{ endpoint_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

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

INSERT INTO azure.cdn.afd_endpoints (
tags,
location,
properties,
resource_group_name,
profile_name,
endpoint_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}',
'{{ resource_group_name }}',
'{{ profile_name }}',
'{{ endpoint_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

Updates an existing AzureFrontDoor 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 domains, use the Update Custom Domain operation.

UPDATE azure.cdn.afd_endpoints
SET
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND profile_name = '{{ profile_name }}' --required
AND endpoint_name = '{{ endpoint_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type;

DELETE examples

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

DELETE FROM azure.cdn.afd_endpoints
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND profile_name = '{{ profile_name }}' --required
AND endpoint_name = '{{ endpoint_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Checks the quota and actual usage of endpoints under the given Azure Front Door profile.

EXEC azure.cdn.afd_endpoints.list_resource_usage 
@resource_group_name='{{ resource_group_name }}' --required,
@profile_name='{{ profile_name }}' --required,
@endpoint_name='{{ endpoint_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;