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
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
cacheConfigurationobjectThe caching configuration for this route. To disable caching, do not provide a cacheConfiguration object.
customDomainsarrayDomains referenced by this endpoint.
deploymentStatusstringKnown values are: "NotStarted", "InProgress", "Succeeded", and "Failed". (NotStarted, InProgress, Succeeded, Failed)
enabledStatestringWhether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'. Known values are: "Enabled" and "Disabled". (Enabled, Disabled)
endpointNamestringThe name of the endpoint which holds the route.
forwardingProtocolstringProtocol this rule will use when forwarding traffic to backends. Known values are: "HttpOnly", "HttpsOnly", and "MatchRequest". (HttpOnly, HttpsOnly, MatchRequest)
httpsRedirectstringWhether to automatically redirect HTTP traffic to HTTPS traffic. Note that this is a easy way to set up this rule and it will be the first rule that gets executed. Known values are: "Enabled" and "Disabled". (Enabled, Disabled)
linkToDefaultDomainstringwhether this route will be linked to the default endpoint domain. Known values are: "Enabled" and "Disabled". (Enabled, Disabled)
originGroupobjectReference to another resource.
originPathstringA directory path on the origin that AzureFrontDoor can use to retrieve content from, e.g. contoso.cloudapp.net/originpath.
patternsToMatcharrayThe route patterns of the rule.
provisioningStatestringProvisioning status. Known values are: "Succeeded", "Failed", "Updating", "Deleting", and "Creating". (Succeeded, Failed, Updating, Deleting, Creating)
ruleSetsarrayrule sets referenced by this endpoint.
supportedProtocolsarrayList of supported protocols for this route.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, profile_name, endpoint_name, route_name, subscription_idGets an existing route with the specified route name under the specified subscription, resource group, profile, and AzureFrontDoor endpoint.
list_by_endpointselectresource_group_name, profile_name, endpoint_name, subscription_idLists all of the existing origins within a profile.
createinsertresource_group_name, profile_name, endpoint_name, route_name, subscription_idCreates a new route with the specified route name under the specified subscription, resource group, profile, and AzureFrontDoor endpoint.
updateupdateresource_group_name, profile_name, endpoint_name, route_name, subscription_idUpdates an existing route with the specified route name under the specified subscription, resource group, profile, and AzureFrontDoor endpoint.
deletedeleteresource_group_name, profile_name, endpoint_name, route_name, subscription_idDeletes 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
endpoint_namestringName of the endpoint under the profile which is unique globally. Required.
profile_namestringName of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is unique within the resource group. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
route_namestringName of the routing rule. Required.
subscription_idstring

SELECT examples

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

SELECT
id,
name,
cacheConfiguration,
customDomains,
deploymentStatus,
enabledState,
endpointName,
forwardingProtocol,
httpsRedirect,
linkToDefaultDomain,
originGroup,
originPath,
patternsToMatch,
provisioningState,
ruleSets,
supportedProtocols,
systemData,
type
FROM azure.cdn.routes
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND profile_name = '{{ profile_name }}' -- required
AND endpoint_name = '{{ endpoint_name }}' -- required
AND route_name = '{{ route_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- 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 (
properties,
resource_group_name,
profile_name,
endpoint_name,
route_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ profile_name }}',
'{{ endpoint_name }}',
'{{ route_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

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
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND profile_name = '{{ profile_name }}' --required
AND endpoint_name = '{{ endpoint_name }}' --required
AND route_name = '{{ route_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

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 resource_group_name = '{{ resource_group_name }}' --required
AND profile_name = '{{ profile_name }}' --required
AND endpoint_name = '{{ endpoint_name }}' --required
AND route_name = '{{ route_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;