afd_origin_groups
Creates, updates, deletes, gets or lists a afd_origin_groups
resource.
Overview
Name | afd_origin_groups |
Type | Resource |
Id | azure.cdn.afd_origin_groups |
Fields
- vw_afd_origin_groups
- afd_origin_groups
Name | Datatype | Description |
---|---|---|
deployment_status | text | field from the properties object |
health_probe_settings | text | field from the properties object |
load_balancing_settings | text | field from the properties object |
originGroupName | text | field from the properties object |
profileName | text | field from the properties object |
profile_name | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
session_affinity_state | 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 | originGroupName, profileName, resourceGroupName, subscriptionId | Gets an existing origin group within a profile. |
list_by_profile | SELECT | profileName, resourceGroupName, subscriptionId | Lists all of the existing origin groups within a profile. |
create | INSERT | originGroupName, profileName, resourceGroupName, subscriptionId | Creates a new origin group within the specified profile. |
delete | DELETE | originGroupName, profileName, resourceGroupName, subscriptionId | Deletes an existing origin group within a profile. |
update | UPDATE | originGroupName, profileName, resourceGroupName, subscriptionId | Updates an existing origin group within a profile. |
SELECT
examples
Lists all of the existing origin groups within a profile.
- vw_afd_origin_groups
- afd_origin_groups
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 }}';
SELECT
properties
FROM azure.cdn.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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.cdn.afd_origin_groups (
originGroupName,
profileName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ originGroupName }}',
'{{ profileName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: profileName
value: string
- name: loadBalancingSettings
value:
- name: sampleSize
value: integer
- name: successfulSamplesRequired
value: integer
- name: additionalLatencyInMilliseconds
value: integer
- name: healthProbeSettings
value:
- name: probePath
value: string
- name: probeRequestType
value: string
- name: probeProtocol
value: string
- name: probeIntervalInSeconds
value: integer
- name: trafficRestorationTimeToHealedOrNewEndpointsInMinutes
value: integer
- name: sessionAffinityState
value: string
- name: provisioningState
value: string
- name: deploymentStatus
value: string
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 }}';