Skip to main content

routes

Creates, updates, deletes, gets or lists a routes resource.

Overview

Nameroutes
TypeResource
Idazure.cdn.routes

Fields

NameDatatypeDescription
cache_configurationtextfield from the properties object
custom_domainstextfield from the properties object
deployment_statustextfield from the properties object
enabled_statetextfield from the properties object
endpointNametextfield from the properties object
endpoint_nametextfield from the properties object
forwarding_protocoltextfield from the properties object
https_redirecttextfield from the properties object
link_to_default_domaintextfield from the properties object
origin_grouptextfield from the properties object
origin_pathtextfield from the properties object
patterns_to_matchtextfield from the properties object
profileNametextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
routeNametextfield from the properties object
rule_setstextfield from the properties object
subscriptionIdtextfield from the properties object
supported_protocolstextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTendpointName, profileName, resourceGroupName, routeName, subscriptionIdGets an existing route with the specified route name under the specified subscription, resource group, profile, and AzureFrontDoor endpoint.
list_by_endpointSELECTendpointName, profileName, resourceGroupName, subscriptionIdLists all of the existing origins within a profile.
createINSERTendpointName, profileName, resourceGroupName, routeName, subscriptionIdCreates a new route with the specified route name under the specified subscription, resource group, profile, and AzureFrontDoor endpoint.
deleteDELETEendpointName, profileName, resourceGroupName, routeName, subscriptionIdDeletes an existing route with the specified route name under the specified subscription, resource group, profile, and AzureFrontDoor endpoint.
updateUPDATEendpointName, profileName, resourceGroupName, routeName, subscriptionIdUpdates an existing route with the specified route name under the specified subscription, resource group, profile, and AzureFrontDoor endpoint.

SELECT examples

Lists all of the existing origins within a profile.

SELECT
cache_configuration,
custom_domains,
deployment_status,
enabled_state,
endpointName,
endpoint_name,
forwarding_protocol,
https_redirect,
link_to_default_domain,
origin_group,
origin_path,
patterns_to_match,
profileName,
provisioning_state,
resourceGroupName,
routeName,
rule_sets,
subscriptionId,
supported_protocols
FROM azure.cdn.vw_routes
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 routes resource.

/*+ create */
INSERT INTO azure.cdn.routes (
endpointName,
profileName,
resourceGroupName,
routeName,
subscriptionId,
properties
)
SELECT
'{{ endpointName }}',
'{{ profileName }}',
'{{ resourceGroupName }}',
'{{ routeName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

UPDATE example

Updates a routes resource.

/*+ update */
UPDATE azure.cdn.routes
SET
properties = '{{ properties }}'
WHERE
endpointName = '{{ endpointName }}'
AND profileName = '{{ profileName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND routeName = '{{ routeName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified routes resource.

/*+ delete */
DELETE FROM azure.cdn.routes
WHERE endpointName = '{{ endpointName }}'
AND profileName = '{{ profileName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND routeName = '{{ routeName }}'
AND subscriptionId = '{{ subscriptionId }}';