afd_origins
Creates, updates, deletes, gets or lists a afd_origins
resource.
Overview
Name | afd_origins |
Type | Resource |
Id | azure.cdn.afd_origins |
Fields
- vw_afd_origins
- afd_origins
Name | Datatype | Description |
---|---|---|
azure_origin | text | field from the properties object |
deployment_status | text | field from the properties object |
enabled_state | text | field from the properties object |
enforce_certificate_name_check | text | field from the properties object |
host_name | text | field from the properties object |
http_port | text | field from the properties object |
https_port | text | field from the properties object |
originGroupName | text | field from the properties object |
originName | text | field from the properties object |
origin_group_name | text | field from the properties object |
origin_host_header | text | field from the properties object |
priority | 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 |
shared_private_link_resource | text | field from the properties object |
subscriptionId | text | field from the properties object |
weight | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | The JSON object that contains the properties of the origin. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | originGroupName, originName, profileName, resourceGroupName, subscriptionId | Gets an existing origin within an origin group. |
list_by_origin_group | SELECT | originGroupName, profileName, resourceGroupName, subscriptionId | Lists all of the existing origins within an origin group. |
create | INSERT | originGroupName, originName, profileName, resourceGroupName, subscriptionId | Creates a new origin within the specified origin group. |
delete | DELETE | originGroupName, originName, profileName, resourceGroupName, subscriptionId | Deletes an existing origin within an origin group. |
update | UPDATE | originGroupName, originName, profileName, resourceGroupName, subscriptionId | Updates an existing origin within an origin group. |
SELECT
examples
Lists all of the existing origins within an origin group.
- vw_afd_origins
- afd_origins
SELECT
azure_origin,
deployment_status,
enabled_state,
enforce_certificate_name_check,
host_name,
http_port,
https_port,
originGroupName,
originName,
origin_group_name,
origin_host_header,
priority,
profileName,
provisioning_state,
resourceGroupName,
shared_private_link_resource,
subscriptionId,
weight
FROM azure.cdn.vw_afd_origins
WHERE originGroupName = '{{ originGroupName }}'
AND profileName = '{{ profileName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
properties
FROM azure.cdn.afd_origins
WHERE originGroupName = '{{ originGroupName }}'
AND profileName = '{{ profileName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new afd_origins
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.cdn.afd_origins (
originGroupName,
originName,
profileName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ originGroupName }}',
'{{ originName }}',
'{{ profileName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: originGroupName
value: string
- name: azureOrigin
value:
- name: id
value: string
- name: hostName
value: string
- name: httpPort
value: integer
- name: httpsPort
value: integer
- name: originHostHeader
value: string
- name: priority
value: integer
- name: weight
value: integer
- name: sharedPrivateLinkResource
value:
- name: privateLinkLocation
value: string
- name: groupId
value: string
- name: requestMessage
value: string
- name: status
value: string
- name: enabledState
value: string
- name: enforceCertificateNameCheck
value: boolean
- name: provisioningState
value: string
- name: deploymentStatus
value: string
UPDATE
example
Updates a afd_origins
resource.
/*+ update */
UPDATE azure.cdn.afd_origins
SET
properties = '{{ properties }}'
WHERE
originGroupName = '{{ originGroupName }}'
AND originName = '{{ originName }}'
AND profileName = '{{ profileName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified afd_origins
resource.
/*+ delete */
DELETE FROM azure.cdn.afd_origins
WHERE originGroupName = '{{ originGroupName }}'
AND originName = '{{ originName }}'
AND profileName = '{{ profileName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';