route_policies
Creates, updates, deletes, gets or lists a route_policies
resource.
Overview
Name | route_policies |
Type | Resource |
Id | azure.managed_network_fabric.route_policies |
Fields
- vw_route_policies
- route_policies
Name | Datatype | Description |
---|---|---|
address_family_type | text | field from the properties object |
administrative_state | text | field from the properties object |
annotation | text | field from the properties object |
configuration_state | text | field from the properties object |
default_action | text | field from the properties object |
location | text | The geo-location where the resource lives |
network_fabric_id | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
routePolicyName | text | field from the properties object |
statements | text | field from the properties object |
subscriptionId | text | field from the properties object |
tags | text | Resource tags. |
Name | Datatype | Description |
---|---|---|
location | string | The geo-location where the resource lives |
properties | object | RoutePolicyProperties defines the resource properties. |
tags | object | Resource tags. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | resourceGroupName, routePolicyName, subscriptionId | Implements Route Policy GET method. |
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | Implements RoutePolicies list by resource group GET method. |
list_by_subscription | SELECT | subscriptionId | Implements RoutePolicies list by subscription GET method. |
create | INSERT | resourceGroupName, routePolicyName, subscriptionId, data__location, data__properties | Implements Route Policy PUT method. |
delete | DELETE | resourceGroupName, routePolicyName, subscriptionId | Implements Route Policy DELETE method. |
update | UPDATE | resourceGroupName, routePolicyName, subscriptionId | API to update certain properties of the Route Policy resource. |
commit_configuration | EXEC | resourceGroupName, routePolicyName, subscriptionId | Commits the configuration of the given resources. |
validate_configuration | EXEC | resourceGroupName, routePolicyName, subscriptionId | Validates the configuration of the resources. |
SELECT
examples
Implements RoutePolicies list by subscription GET method.
- vw_route_policies
- route_policies
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 }}';
SELECT
location,
properties,
tags
FROM azure.managed_network_fabric.route_policies
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new route_policies
resource.
- All Properties
- Manifest
/*+ 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 }}'
;
- name: your_resource_model_name
props:
- name: tags
value: object
- name: location
value: string
- name: properties
value:
- name: annotation
value: string
- name: defaultAction
value: []
- name: statements
value:
- - name: annotation
value: string
- name: sequenceNumber
value: integer
- name: condition
value:
- name: type
value: string
- name: ipPrefixId
value: string
- name: ipCommunityIds
value:
- string
- name: ipExtendedCommunityIds
value:
- string
- name: action
value:
- name: localPreference
value: integer
- name: actionType
value: string
- name: ipCommunityProperties
value:
- name: add
value:
- name: ipCommunityIds
value:
- string
- name: ipExtendedCommunityProperties
value:
- name: add
value:
- name: ipExtendedCommunityIds
value:
- string
- name: networkFabricId
value: []
- name: addressFamilyType
value: string
- name: configurationState
value: []
- name: provisioningState
value: []
- name: administrativeState
value: []
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 }}';