Skip to main content

origins

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

Overview

Nameorigins
TypeResource
Idazure.cdn.origins

Fields

The following fields are returned by SELECT queries:

OK. The request has succeeded.

NameDatatypeDescription
propertiesobjectThe JSON object that contains the properties of the origin.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, profileName, endpointName, originName, subscriptionIdGets an existing origin within an endpoint.
list_by_endpointselectresourceGroupName, profileName, endpointName, subscriptionIdLists all of the existing origins within an endpoint.
createinsertresourceGroupName, profileName, endpointName, originName, subscriptionIdCreates a new origin within the specified endpoint.
updateupdateresourceGroupName, profileName, endpointName, originName, subscriptionIdUpdates an existing origin within an endpoint.
deletedeleteresourceGroupName, profileName, endpointName, originName, subscriptionIdDeletes an existing origin within an endpoint.

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.
originNamestringName of the origin which is unique within the endpoint.
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 origin within an endpoint.

SELECT
properties
FROM azure.cdn.origins
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND profileName = '{{ profileName }}' -- required
AND endpointName = '{{ endpointName }}' -- required
AND originName = '{{ originName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;

INSERT examples

Creates a new origin within the specified endpoint.

INSERT INTO azure.cdn.origins (
data__properties,
resourceGroupName,
profileName,
endpointName,
originName,
subscriptionId
)
SELECT
'{{ properties }}',
'{{ resourceGroupName }}',
'{{ profileName }}',
'{{ endpointName }}',
'{{ originName }}',
'{{ subscriptionId }}'
RETURNING
properties
;

UPDATE examples

Updates an existing origin within an endpoint.

UPDATE azure.cdn.origins
SET
data__properties = '{{ properties }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}' --required
AND profileName = '{{ profileName }}' --required
AND endpointName = '{{ endpointName }}' --required
AND originName = '{{ originName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
RETURNING
properties;

DELETE examples

Deletes an existing origin within an endpoint.

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