Skip to main content

routes

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

Overview

Nameroutes
TypeResource
Idazure.cdn.routes

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
propertiesobjectThe JSON object that contains the properties of the Routes to create.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, profileName, endpointName, routeName, subscriptionIdGets an existing route with the specified route name under the specified subscription, resource group, profile, and AzureFrontDoor endpoint.
list_by_endpointselectresourceGroupName, profileName, endpointName, subscriptionIdLists all of the existing origins within a profile.
createinsertresourceGroupName, profileName, endpointName, routeName, subscriptionIdCreates a new route with the specified route name under the specified subscription, resource group, profile, and AzureFrontDoor endpoint.
updateupdateresourceGroupName, profileName, endpointName, routeName, subscriptionIdUpdates an existing route with the specified route name under the specified subscription, resource group, profile, and AzureFrontDoor endpoint.
deletedeleteresourceGroupName, profileName, endpointName, routeName, subscriptionIdDeletes an existing route with the specified route name under the specified subscription, resource group, profile, and AzureFrontDoor endpoint.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
endpointNamestringName of the endpoint under the profile which is unique globally.
profileNamestringName of the Azure Front Door Standard or Azure Front Door Premium profile which is unique within the resource group.
resourceGroupNamestringName of the Resource group within the Azure subscription.
routeNamestringName of the routing rule.
subscriptionIdstringAzure Subscription ID.

SELECT examples

Gets an existing route with the specified route name under the specified subscription, resource group, profile, and AzureFrontDoor endpoint.

SELECT
properties
FROM azure.cdn.routes
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND profileName = '{{ profileName }}' -- required
AND endpointName = '{{ endpointName }}' -- required
AND routeName = '{{ routeName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;

INSERT examples

Creates a new route with the specified route name under the specified subscription, resource group, profile, and AzureFrontDoor endpoint.

INSERT INTO azure.cdn.routes (
data__properties,
resourceGroupName,
profileName,
endpointName,
routeName,
subscriptionId
)
SELECT
'{{ properties }}',
'{{ resourceGroupName }}',
'{{ profileName }}',
'{{ endpointName }}',
'{{ routeName }}',
'{{ subscriptionId }}'
RETURNING
properties
;

UPDATE examples

Updates an existing route with the specified route name under the specified subscription, resource group, profile, and AzureFrontDoor endpoint.

UPDATE azure.cdn.routes
SET
data__properties = '{{ properties }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}' --required
AND profileName = '{{ profileName }}' --required
AND endpointName = '{{ endpointName }}' --required
AND routeName = '{{ routeName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
RETURNING
properties;

DELETE examples

Deletes an existing route with the specified route name under the specified subscription, resource group, profile, and AzureFrontDoor endpoint.

DELETE FROM azure.cdn.routes
WHERE resourceGroupName = '{{ resourceGroupName }}' --required
AND profileName = '{{ profileName }}' --required
AND endpointName = '{{ endpointName }}' --required
AND routeName = '{{ routeName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
;