Skip to main content

afd_origin_groups

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

Overview

Nameafd_origin_groups
TypeResource
Idazure.cdn.afd_origin_groups

Fields

NameDatatypeDescription
deployment_statustextfield from the properties object
health_probe_settingstextfield from the properties object
load_balancing_settingstextfield from the properties object
originGroupNametextfield from the properties object
profileNametextfield from the properties object
profile_nametextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
session_affinity_statetextfield from the properties object
subscriptionIdtextfield from the properties object
traffic_restoration_time_to_healed_or_new_endpoints_in_minutestextfield from the properties object

Methods

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

SELECT examples

Lists all of the existing origin groups within a profile.

SELECT
deployment_status,
health_probe_settings,
load_balancing_settings,
originGroupName,
profileName,
profile_name,
provisioning_state,
resourceGroupName,
session_affinity_state,
subscriptionId,
traffic_restoration_time_to_healed_or_new_endpoints_in_minutes
FROM azure.cdn.vw_afd_origin_groups
WHERE profileName = '{{ profileName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

UPDATE example

Updates a afd_origin_groups resource.

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

DELETE example

Deletes the specified afd_origin_groups resource.

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