Skip to main content

route_policies

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

Overview

Nameroute_policies
TypeResource
Idazure.managed_network_fabric.route_policies

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
locationstringThe geo-location where the resource lives
propertiesobjectResource properties.
tagsobjectResource tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, routePolicyNameImplements Route Policy GET method.
list_by_resource_groupselectsubscriptionId, resourceGroupNameImplements RoutePolicies list by resource group GET method.
list_by_subscriptionselectsubscriptionIdImplements RoutePolicies list by subscription GET method.
createinsertsubscriptionId, resourceGroupName, routePolicyName, data__location, data__propertiesImplements Route Policy PUT method.
updateupdatesubscriptionId, resourceGroupName, routePolicyNameAPI to update certain properties of the Route Policy resource.
deletedeletesubscriptionId, resourceGroupName, routePolicyNameImplements Route Policy DELETE method.
validate_configurationexecsubscriptionId, resourceGroupName, routePolicyNameValidates the configuration of the resources.
commit_configurationexecsubscriptionId, resourceGroupName, routePolicyNameCommits the configuration of the given resources.

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
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
routePolicyNamestringName of the Route Policy.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.

SELECT examples

Implements Route Policy GET method.

SELECT
location,
properties,
tags
FROM azure.managed_network_fabric.route_policies
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND routePolicyName = '{{ routePolicyName }}' -- required
;

INSERT examples

Implements Route Policy PUT method.

INSERT INTO azure.managed_network_fabric.route_policies (
data__tags,
data__location,
data__properties,
subscriptionId,
resourceGroupName,
routePolicyName
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}' /* required */,
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ routePolicyName }}'
RETURNING
location,
properties,
tags
;

UPDATE examples

API to update certain properties of the Route Policy resource.

UPDATE azure.managed_network_fabric.route_policies
SET
data__properties = '{{ properties }}',
data__tags = '{{ tags }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND routePolicyName = '{{ routePolicyName }}' --required
RETURNING
location,
properties,
tags;

DELETE examples

Implements Route Policy DELETE method.

DELETE FROM azure.managed_network_fabric.route_policies
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND routePolicyName = '{{ routePolicyName }}' --required
;

Lifecycle Methods

Validates the configuration of the resources.

EXEC azure.managed_network_fabric.route_policies.validate_configuration 
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@routePolicyName='{{ routePolicyName }}' --required
;