Skip to main content

afd_origins

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

Overview

Nameafd_origins
TypeResource
Idazure.cdn.afd_origins

Fields

NameDatatypeDescription
azure_origintextfield from the properties object
deployment_statustextfield from the properties object
enabled_statetextfield from the properties object
enforce_certificate_name_checktextfield from the properties object
host_nametextfield from the properties object
http_porttextfield from the properties object
https_porttextfield from the properties object
originGroupNametextfield from the properties object
originNametextfield from the properties object
origin_group_nametextfield from the properties object
origin_host_headertextfield from the properties object
prioritytextfield from the properties object
profileNametextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
shared_private_link_resourcetextfield from the properties object
subscriptionIdtextfield from the properties object
weighttextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECToriginGroupName, originName, profileName, resourceGroupName, subscriptionIdGets an existing origin within an origin group.
list_by_origin_groupSELECToriginGroupName, profileName, resourceGroupName, subscriptionIdLists all of the existing origins within an origin group.
createINSERToriginGroupName, originName, profileName, resourceGroupName, subscriptionIdCreates a new origin within the specified origin group.
deleteDELETEoriginGroupName, originName, profileName, resourceGroupName, subscriptionIdDeletes an existing origin within an origin group.
updateUPDATEoriginGroupName, originName, profileName, resourceGroupName, subscriptionIdUpdates an existing origin within an origin group.

SELECT examples

Lists all of the existing origins within an origin group.

SELECT
azure_origin,
deployment_status,
enabled_state,
enforce_certificate_name_check,
host_name,
http_port,
https_port,
originGroupName,
originName,
origin_group_name,
origin_host_header,
priority,
profileName,
provisioning_state,
resourceGroupName,
shared_private_link_resource,
subscriptionId,
weight
FROM azure.cdn.vw_afd_origins
WHERE originGroupName = '{{ originGroupName }}'
AND profileName = '{{ profileName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

UPDATE example

Updates a afd_origins resource.

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

DELETE example

Deletes the specified afd_origins resource.

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