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

NameDatatypeDescription
address_family_typetextfield from the properties object
administrative_statetextfield from the properties object
annotationtextfield from the properties object
configuration_statetextfield from the properties object
default_actiontextfield from the properties object
locationtextThe geo-location where the resource lives
network_fabric_idtextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
routePolicyNametextfield from the properties object
statementstextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, routePolicyName, subscriptionIdImplements Route Policy GET method.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdImplements RoutePolicies list by resource group GET method.
list_by_subscriptionSELECTsubscriptionIdImplements RoutePolicies list by subscription GET method.
createINSERTresourceGroupName, routePolicyName, subscriptionId, data__location, data__propertiesImplements Route Policy PUT method.
deleteDELETEresourceGroupName, routePolicyName, subscriptionIdImplements Route Policy DELETE method.
updateUPDATEresourceGroupName, routePolicyName, subscriptionIdAPI to update certain properties of the Route Policy resource.
commit_configurationEXECresourceGroupName, routePolicyName, subscriptionIdCommits the configuration of the given resources.
validate_configurationEXECresourceGroupName, routePolicyName, subscriptionIdValidates the configuration of the resources.

SELECT examples

Implements RoutePolicies list by subscription GET method.

SELECT
address_family_type,
administrative_state,
annotation,
configuration_state,
default_action,
location,
network_fabric_id,
provisioning_state,
resourceGroupName,
routePolicyName,
statements,
subscriptionId,
tags
FROM azure.managed_network_fabric.vw_route_policies
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new route_policies resource.

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

UPDATE example

Updates a route_policies resource.

/*+ update */
UPDATE azure.managed_network_fabric.route_policies
SET
properties = '{{ properties }}',
tags = '{{ tags }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND routePolicyName = '{{ routePolicyName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified route_policies resource.

/*+ delete */
DELETE FROM azure.managed_network_fabric.route_policies
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND routePolicyName = '{{ routePolicyName }}'
AND subscriptionId = '{{ subscriptionId }}';