Skip to main content

origin_groups

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

Overview

Nameorigin_groups
TypeResource
Idazure.cdn.origin_groups

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
healthProbeSettingsobjectHealth probe settings to the origin that is used to determine the health of the origin.
originsarrayThe source of the content being delivered via CDN within given origin group.
provisioningStatestringProvisioning status of the origin group. Known values are: "Succeeded", "Failed", "Updating", "Deleting", and "Creating". (Succeeded, Failed, Updating, Deleting, Creating)
resourceStatestringResource status of the origin group. Known values are: "Creating", "Active", and "Deleting". (Creating, Active, Deleting)
responseBasedOriginErrorDetectionSettingsobjectThe JSON object that contains the properties to determine origin health using real requests/responses. This property is currently not supported.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
trafficRestorationTimeToHealedOrNewEndpointsInMinutesintegerTime in minutes to shift the traffic to the endpoint gradually when an unhealthy endpoint comes healthy or a new endpoint is added. Default is 10 mins. This property is currently not supported.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, profile_name, endpoint_name, origin_group_name, subscription_idGets an existing origin group within an endpoint.
list_by_endpointselectresource_group_name, profile_name, endpoint_name, subscription_idLists all of the existing origin groups within an endpoint.
createinsertresource_group_name, profile_name, endpoint_name, origin_group_name, subscription_idCreates a new origin group within the specified endpoint.
updateupdateresource_group_name, profile_name, endpoint_name, origin_group_name, subscription_idUpdates an existing origin group within an endpoint.
deletedeleteresource_group_name, profile_name, endpoint_name, origin_group_name, subscription_idDeletes an existing origin group within an endpoint.

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
endpoint_namestringName of the endpoint under the profile which is unique globally. Required.
origin_group_namestringName of the origin group which is unique within the endpoint. Required.
profile_namestringName of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is unique within the resource group. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Gets an existing origin group within an endpoint.

SELECT
id,
name,
healthProbeSettings,
origins,
provisioningState,
resourceState,
responseBasedOriginErrorDetectionSettings,
systemData,
trafficRestorationTimeToHealedOrNewEndpointsInMinutes,
type
FROM azure.cdn.origin_groups
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND profile_name = '{{ profile_name }}' -- required
AND endpoint_name = '{{ endpoint_name }}' -- required
AND origin_group_name = '{{ origin_group_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates a new origin group within the specified endpoint.

INSERT INTO azure.cdn.origin_groups (
properties,
resource_group_name,
profile_name,
endpoint_name,
origin_group_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ profile_name }}',
'{{ endpoint_name }}',
'{{ origin_group_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

UPDATE examples

Updates an existing origin group within an endpoint.

UPDATE azure.cdn.origin_groups
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND profile_name = '{{ profile_name }}' --required
AND endpoint_name = '{{ endpoint_name }}' --required
AND origin_group_name = '{{ origin_group_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

DELETE examples

Deletes an existing origin group within an endpoint.

DELETE FROM azure.cdn.origin_groups
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND profile_name = '{{ profile_name }}' --required
AND endpoint_name = '{{ endpoint_name }}' --required
AND origin_group_name = '{{ origin_group_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;