Skip to main content

origins

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

Overview

Nameorigins
TypeResource
Idazure.cdn.origins

Fields

NameDatatypeDescription
enabledtextfield from the properties object
endpointNametextfield from the properties object
host_nametextfield from the properties object
http_porttextfield from the properties object
https_porttextfield from the properties object
originNametextfield from the properties object
origin_host_headertextfield from the properties object
prioritytextfield from the properties object
private_endpoint_statustextfield from the properties object
private_link_aliastextfield from the properties object
private_link_approval_messagetextfield from the properties object
private_link_locationtextfield from the properties object
private_link_resource_idtextfield from the properties object
profileNametextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
resource_statetextfield from the properties object
subscriptionIdtextfield from the properties object
weighttextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTendpointName, originName, profileName, resourceGroupName, subscriptionIdGets an existing origin within an endpoint.
list_by_endpointSELECTendpointName, profileName, resourceGroupName, subscriptionIdLists all of the existing origins within an endpoint.
createINSERTendpointName, originName, profileName, resourceGroupName, subscriptionIdCreates a new origin within the specified endpoint.
deleteDELETEendpointName, originName, profileName, resourceGroupName, subscriptionIdDeletes an existing origin within an endpoint.
updateUPDATEendpointName, originName, profileName, resourceGroupName, subscriptionIdUpdates an existing origin within an endpoint.

SELECT examples

Lists all of the existing origins within an endpoint.

SELECT
enabled,
endpointName,
host_name,
http_port,
https_port,
originName,
origin_host_header,
priority,
private_endpoint_status,
private_link_alias,
private_link_approval_message,
private_link_location,
private_link_resource_id,
profileName,
provisioning_state,
resourceGroupName,
resource_state,
subscriptionId,
weight
FROM azure.cdn.vw_origins
WHERE endpointName = '{{ endpointName }}'
AND profileName = '{{ profileName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

UPDATE example

Updates a origins resource.

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

DELETE example

Deletes the specified origins resource.

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