Skip to main content

afd_origin_groups

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

Overview

Nameafd_origin_groups
TypeResource
Idazure.cdn.afd_origin_groups

Fields

The following fields are returned by SELECT queries:

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

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, profileName, originGroupName, subscriptionIdGets an existing origin group within a profile.
list_by_profileselectresourceGroupName, profileName, subscriptionIdLists all of the existing origin groups within a profile.
createinsertresourceGroupName, profileName, originGroupName, subscriptionIdCreates a new origin group within the specified profile.
updateupdateresourceGroupName, profileName, originGroupName, subscriptionIdUpdates an existing origin group within a profile.
deletedeleteresourceGroupName, profileName, originGroupName, subscriptionIdDeletes an existing origin group within a profile.

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
originGroupNamestringName of the origin group which is unique within the profile.
profileNamestringName of the Azure Front Door Standard or Azure Front Door Premium 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 group within a profile.

SELECT
properties
FROM azure.cdn.afd_origin_groups
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND profileName = '{{ profileName }}' -- required
AND originGroupName = '{{ originGroupName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;

INSERT examples

Creates a new origin group within the specified profile.

INSERT INTO azure.cdn.afd_origin_groups (
data__properties,
resourceGroupName,
profileName,
originGroupName,
subscriptionId
)
SELECT
'{{ properties }}',
'{{ resourceGroupName }}',
'{{ profileName }}',
'{{ originGroupName }}',
'{{ subscriptionId }}'
RETURNING
properties
;

UPDATE examples

Updates an existing origin group within a profile.

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

DELETE examples

Deletes an existing origin group within a profile.

DELETE FROM azure.cdn.afd_origin_groups
WHERE resourceGroupName = '{{ resourceGroupName }}' --required
AND profileName = '{{ profileName }}' --required
AND originGroupName = '{{ originGroupName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
;