Skip to main content

origin_groups

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

Overview

Nameorigin_groups
TypeResource
Idazure.cdn.origin_groups

Fields

NameDatatypeDescription
endpointNametextfield from the properties object
health_probe_settingstextfield from the properties object
originGroupNametextfield from the properties object
originstextfield 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
response_based_origin_error_detection_settingstextfield 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
getSELECTendpointName, originGroupName, profileName, resourceGroupName, subscriptionIdGets an existing origin group within an endpoint.
list_by_endpointSELECTendpointName, profileName, resourceGroupName, subscriptionIdLists all of the existing origin groups within an endpoint.
createINSERTendpointName, originGroupName, profileName, resourceGroupName, subscriptionIdCreates a new origin group within the specified endpoint.
deleteDELETEendpointName, originGroupName, profileName, resourceGroupName, subscriptionIdDeletes an existing origin group within an endpoint.
updateUPDATEendpointName, originGroupName, profileName, resourceGroupName, subscriptionIdUpdates an existing origin group within an endpoint.

SELECT examples

Lists all of the existing origin groups within an endpoint.

SELECT
endpointName,
health_probe_settings,
originGroupName,
origins,
profileName,
provisioning_state,
resourceGroupName,
resource_state,
response_based_origin_error_detection_settings,
subscriptionId,
traffic_restoration_time_to_healed_or_new_endpoints_in_minutes
FROM azure.cdn.vw_origin_groups
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 origin_groups resource.

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

UPDATE example

Updates a origin_groups resource.

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

DELETE example

Deletes the specified origin_groups resource.

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