origins
Creates, updates, deletes, gets or lists a origins
resource.
Overview
Name | origins |
Type | Resource |
Id | azure.cdn.origins |
Fields
- vw_origins
- origins
Name | Datatype | Description |
---|---|---|
enabled | text | field from the properties object |
endpointName | 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 |
originName | text | field from the properties object |
origin_host_header | text | field from the properties object |
priority | text | field from the properties object |
private_endpoint_status | text | field from the properties object |
private_link_alias | text | field from the properties object |
private_link_approval_message | text | field from the properties object |
private_link_location | text | field from the properties object |
private_link_resource_id | 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 |
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 | endpointName, originName, profileName, resourceGroupName, subscriptionId | Gets an existing origin within an endpoint. |
list_by_endpoint | SELECT | endpointName, profileName, resourceGroupName, subscriptionId | Lists all of the existing origins within an endpoint. |
create | INSERT | endpointName, originName, profileName, resourceGroupName, subscriptionId | Creates a new origin within the specified endpoint. |
delete | DELETE | endpointName, originName, profileName, resourceGroupName, subscriptionId | Deletes an existing origin within an endpoint. |
update | UPDATE | endpointName, originName, profileName, resourceGroupName, subscriptionId | Updates an existing origin within an endpoint. |
SELECT
examples
Lists all of the existing origins within an endpoint.
- vw_origins
- origins
SELECT
enabled,
endpointName,
host_name,
http_port,
https_port,
originName,
origin_host_header,
priority,
private_endpoint_status,
private_link_alias,
private_link_approval_message,
private_link_location,
private_link_resource_id,
profileName,
provisioning_state,
resourceGroupName,
resource_state,
subscriptionId,
weight
FROM azure.cdn.vw_origins
WHERE endpointName = '{{ endpointName }}'
AND profileName = '{{ profileName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
properties
FROM azure.cdn.origins
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 origins
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.cdn.origins (
endpointName,
originName,
profileName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ endpointName }}',
'{{ originName }}',
'{{ profileName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- 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: enabled
value: boolean
- name: privateLinkAlias
value: string
- name: privateLinkResourceId
value: string
- name: privateLinkLocation
value: string
- name: privateLinkApprovalMessage
value: string
- name: resourceState
value: string
- name: provisioningState
value: string
- name: privateEndpointStatus
value: []
UPDATE
example
Updates a origins
resource.
/*+ update */
UPDATE azure.cdn.origins
SET
properties = '{{ properties }}'
WHERE
endpointName = '{{ endpointName }}'
AND originName = '{{ originName }}'
AND profileName = '{{ profileName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified origins
resource.
/*+ delete */
DELETE FROM azure.cdn.origins
WHERE endpointName = '{{ endpointName }}'
AND originName = '{{ originName }}'
AND profileName = '{{ profileName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';