origin_groups
Creates, updates, deletes, gets or lists a origin_groups
resource.
Overview
Name | origin_groups |
Type | Resource |
Id | azure.cdn.origin_groups |
Fields
- vw_origin_groups
- origin_groups
Name | Datatype | Description |
---|---|---|
endpointName | text | field from the properties object |
health_probe_settings | text | field from the properties object |
originGroupName | text | field from the properties object |
origins | text | field from the properties object |
profileName | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
resource_state | text | field from the properties object |
response_based_origin_error_detection_settings | text | field from the properties object |
subscriptionId | text | field from the properties object |
traffic_restoration_time_to_healed_or_new_endpoints_in_minutes | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | The JSON object that contains the properties of the origin group. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | endpointName, originGroupName, profileName, resourceGroupName, subscriptionId | Gets an existing origin group within an endpoint. |
list_by_endpoint | SELECT | endpointName, profileName, resourceGroupName, subscriptionId | Lists all of the existing origin groups within an endpoint. |
create | INSERT | endpointName, originGroupName, profileName, resourceGroupName, subscriptionId | Creates a new origin group within the specified endpoint. |
delete | DELETE | endpointName, originGroupName, profileName, resourceGroupName, subscriptionId | Deletes an existing origin group within an endpoint. |
update | UPDATE | endpointName, originGroupName, profileName, resourceGroupName, subscriptionId | Updates an existing origin group within an endpoint. |
SELECT
examples
Lists all of the existing origin groups within an endpoint.
- vw_origin_groups
- origin_groups
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 }}';
SELECT
properties
FROM azure.cdn.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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.cdn.origin_groups (
endpointName,
originGroupName,
profileName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ endpointName }}',
'{{ originGroupName }}',
'{{ profileName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: healthProbeSettings
value:
- name: probePath
value: string
- name: probeRequestType
value: string
- name: probeProtocol
value: string
- name: probeIntervalInSeconds
value: integer
- name: origins
value:
- - name: id
value: string
- name: trafficRestorationTimeToHealedOrNewEndpointsInMinutes
value: integer
- name: responseBasedOriginErrorDetectionSettings
value:
- name: responseBasedDetectedErrorTypes
value: string
- name: responseBasedFailoverThresholdPercentage
value: integer
- name: httpErrorRanges
value:
- - name: begin
value: integer
- name: end
value: integer
- name: resourceState
value: string
- name: provisioningState
value: string
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 }}';