endpoints
Creates, updates, deletes, gets or lists an endpoints
resource.
Overview
Name | endpoints |
Type | Resource |
Id | azure.cdn.endpoints |
Fields
The following fields are returned by SELECT
queries:
- get
- list_by_profile
OK. The request has succeeded.
Name | Datatype | Description |
---|---|---|
location | string | Resource location. |
properties | object | The JSON object that contains the properties required to create an endpoint. |
tags | object | Resource tags. |
OK. The request has succeeded.
Name | Datatype | Description |
---|---|---|
location | string | Resource location. |
properties | object | The JSON object that contains the properties required to create an endpoint. |
tags | object | Resource tags. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | resourceGroupName , profileName , endpointName , subscriptionId | Gets an existing CDN endpoint with the specified endpoint name under the specified subscription, resource group and profile. | |
list_by_profile | select | resourceGroupName , profileName , subscriptionId | Lists existing CDN endpoints. | |
create | insert | resourceGroupName , profileName , endpointName , subscriptionId | Creates a new CDN endpoint with the specified endpoint name under the specified subscription, resource group and profile. | |
update | update | resourceGroupName , profileName , endpointName , subscriptionId | 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. | |
delete | delete | resourceGroupName , profileName , endpointName , subscriptionId | Deletes an existing CDN endpoint with the specified endpoint name under the specified subscription, resource group and profile. | |
start | exec | resourceGroupName , profileName , endpointName , subscriptionId | Starts an existing CDN endpoint that is on a stopped state. | |
stop | exec | resourceGroupName , profileName , endpointName , subscriptionId | Stops an existing running CDN endpoint. | |
purge_content | exec | resourceGroupName , profileName , endpointName , subscriptionId , contentPaths | Removes a content from CDN. | |
load_content | exec | resourceGroupName , profileName , endpointName , subscriptionId , contentPaths | Pre-loads a content to CDN. Available for Verizon Profiles. | |
validate_custom_domain | exec | resourceGroupName , profileName , endpointName , subscriptionId , hostName | Validates 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.
Name | Datatype | Description |
---|---|---|
endpointName | string | Name of the endpoint under the profile which is unique globally. |
profileName | string | Name of the CDN profile which is unique within the resource group. |
resourceGroupName | string | Name of the Resource group within the Azure subscription. |
subscriptionId | string | Azure Subscription ID. |
SELECT
examples
- get
- list_by_profile
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
;
Lists existing CDN endpoints.
SELECT
location,
properties,
tags
FROM azure.cdn.endpoints
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND profileName = '{{ profileName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;
INSERT
examples
- create
- Manifest
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
;
# Description fields are for documentation purposes
- name: endpoints
props:
- name: resourceGroupName
value: string
description: Required parameter for the endpoints resource.
- name: profileName
value: string
description: Required parameter for the endpoints resource.
- name: endpointName
value: string
description: Required parameter for the endpoints resource.
- name: subscriptionId
value: string
description: Required parameter for the endpoints resource.
- name: location
value: string
description: |
Resource location.
- name: tags
value: object
description: |
Resource tags.
- name: properties
value: object
description: |
The JSON object that contains the properties required to create an endpoint.
UPDATE
examples
- update
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
- delete
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
- start
- stop
- purge_content
- load_content
- validate_custom_domain
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
;
Stops an existing running CDN endpoint.
EXEC azure.cdn.endpoints.stop
@resourceGroupName='{{ resourceGroupName }}' --required,
@profileName='{{ profileName }}' --required,
@endpointName='{{ endpointName }}' --required,
@subscriptionId='{{ subscriptionId }}' --required
;
Removes a content from CDN.
EXEC azure.cdn.endpoints.purge_content
@resourceGroupName='{{ resourceGroupName }}' --required,
@profileName='{{ profileName }}' --required,
@endpointName='{{ endpointName }}' --required,
@subscriptionId='{{ subscriptionId }}' --required
@@json=
'{
"contentPaths": "{{ contentPaths }}"
}'
;
Pre-loads a content to CDN. Available for Verizon Profiles.
EXEC azure.cdn.endpoints.load_content
@resourceGroupName='{{ resourceGroupName }}' --required,
@profileName='{{ profileName }}' --required,
@endpointName='{{ endpointName }}' --required,
@subscriptionId='{{ subscriptionId }}' --required
@@json=
'{
"contentPaths": "{{ contentPaths }}"
}'
;
Validates the custom domain mapping to ensure it maps to the correct CDN endpoint in DNS.
EXEC azure.cdn.endpoints.validate_custom_domain
@resourceGroupName='{{ resourceGroupName }}' --required,
@profileName='{{ profileName }}' --required,
@endpointName='{{ endpointName }}' --required,
@subscriptionId='{{ subscriptionId }}' --required
@@json=
'{
"hostName": "{{ hostName }}"
}'
;