Skip to main content

endpoints

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

Overview

Nameendpoints
TypeResource
Idazure.cdn.endpoints

Fields

NameDatatypeDescription
content_types_to_compresstextfield from the properties object
custom_domainstextfield from the properties object
default_origin_grouptextfield from the properties object
delivery_policytextfield from the properties object
endpointNametextfield from the properties object
geo_filterstextfield from the properties object
host_nametextfield from the properties object
is_compression_enabledtextfield from the properties object
is_http_allowedtextfield from the properties object
is_https_allowedtextfield from the properties object
locationtextResource location.
optimization_typetextfield from the properties object
origin_groupstextfield from the properties object
origin_host_headertextfield from the properties object
origin_pathtextfield from the properties object
originstextfield from the properties object
probe_pathtextfield from the properties object
profileNametextfield from the properties object
provisioning_statetextfield from the properties object
query_string_caching_behaviortextfield from the properties object
resourceGroupNametextfield from the properties object
resource_statetextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
url_signing_keystextfield from the properties object
web_application_firewall_policy_linktextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTendpointName, profileName, resourceGroupName, subscriptionIdGets an existing CDN endpoint with the specified endpoint name under the specified subscription, resource group and profile.
list_by_profileSELECTprofileName, resourceGroupName, subscriptionIdLists existing CDN endpoints.
createINSERTendpointName, profileName, resourceGroupName, subscriptionIdCreates a new CDN endpoint with the specified endpoint name under the specified subscription, resource group and profile.
deleteDELETEendpointName, profileName, resourceGroupName, subscriptionIdDeletes an existing CDN endpoint with the specified endpoint name under the specified subscription, resource group and profile.
updateUPDATEendpointName, profileName, resourceGroupName, 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.
load_contentEXECendpointName, profileName, resourceGroupName, subscriptionId, data__contentPathsPre-loads a content to CDN. Available for Verizon Profiles.
purge_contentEXECendpointName, profileName, resourceGroupName, subscriptionId, data__contentPathsRemoves a content from CDN.
startEXECendpointName, profileName, resourceGroupName, subscriptionIdStarts an existing CDN endpoint that is on a stopped state.
stopEXECendpointName, profileName, resourceGroupName, subscriptionIdStops an existing running CDN endpoint.
validate_custom_domainEXECendpointName, profileName, resourceGroupName, subscriptionId, data__hostNameValidates the custom domain mapping to ensure it maps to the correct CDN endpoint in DNS.

SELECT examples

Lists existing CDN endpoints.

SELECT
content_types_to_compress,
custom_domains,
default_origin_group,
delivery_policy,
endpointName,
geo_filters,
host_name,
is_compression_enabled,
is_http_allowed,
is_https_allowed,
location,
optimization_type,
origin_groups,
origin_host_header,
origin_path,
origins,
probe_path,
profileName,
provisioning_state,
query_string_caching_behavior,
resourceGroupName,
resource_state,
subscriptionId,
tags,
url_signing_keys,
web_application_firewall_policy_link
FROM azure.cdn.vw_endpoints
WHERE profileName = '{{ profileName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

UPDATE example

Updates a endpoints resource.

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

DELETE example

Deletes the specified endpoints resource.

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