Skip to main content

afd_endpoints

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

Overview

Nameafd_endpoints
TypeResource
Idazure.cdn.afd_endpoints

Fields

NameDatatypeDescription
auto_generated_domain_name_label_scopetextfield from the properties object
deployment_statustextfield from the properties object
enabled_statetextfield from the properties object
endpointNametextfield from the properties object
host_nametextfield from the properties object
locationtextResource location.
profileNametextfield from the properties object
profile_nametextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTendpointName, profileName, resourceGroupName, subscriptionIdGets an existing AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile.
list_by_profileSELECTprofileName, resourceGroupName, subscriptionIdLists existing AzureFrontDoor endpoints.
createINSERTendpointName, profileName, resourceGroupName, subscriptionIdCreates a new AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile.
deleteDELETEendpointName, profileName, resourceGroupName, subscriptionIdDeletes an existing AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile.
updateUPDATEendpointName, profileName, resourceGroupName, subscriptionIdUpdates 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.
purge_contentEXECendpointName, profileName, resourceGroupName, subscriptionId, data__contentPathsRemoves a content from AzureFrontDoor.
validate_custom_domainEXECendpointName, profileName, resourceGroupName, subscriptionId, data__hostNameValidates the custom domain mapping to ensure it maps to the correct Azure Front Door endpoint in DNS.

SELECT examples

Lists existing AzureFrontDoor endpoints.

SELECT
auto_generated_domain_name_label_scope,
deployment_status,
enabled_state,
endpointName,
host_name,
location,
profileName,
profile_name,
provisioning_state,
resourceGroupName,
subscriptionId,
tags
FROM azure.cdn.vw_afd_endpoints
WHERE profileName = '{{ profileName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

UPDATE example

Updates a afd_endpoints resource.

/*+ update */
UPDATE azure.cdn.afd_endpoints
SET
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
endpointName = '{{ endpointName }}'
AND profileName = '{{ profileName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified afd_endpoints resource.

/*+ delete */
DELETE FROM azure.cdn.afd_endpoints
WHERE endpointName = '{{ endpointName }}'
AND profileName = '{{ profileName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';