routing_rules
Creates, updates, deletes, gets or lists a routing_rules
resource.
Overview
Name | routing_rules |
Type | Resource |
Id | azure.network.routing_rules |
Fields
- vw_routing_rules
- routing_rules
Name | Datatype | Description |
---|---|---|
id | text | Resource ID. |
name | text | Resource name. |
description | text | field from the properties object |
configurationName | text | field from the properties object |
destination | text | field from the properties object |
etag | text | A unique read-only string that changes whenever the resource is updated. |
networkManagerName | text | field from the properties object |
next_hop | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
resource_guid | text | field from the properties object |
ruleCollectionName | text | field from the properties object |
ruleName | text | field from the properties object |
subscriptionId | text | field from the properties object |
system_data | text | field from the properties object |
type | text | Resource type. |
Name | Datatype | Description |
---|---|---|
id | string | Resource ID. |
name | string | Resource name. |
etag | string | A unique read-only string that changes whenever the resource is updated. |
properties | object | Routing rule resource. |
systemData | object | Metadata pertaining to creation and last modification of the resource. |
type | string | Resource type. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | configurationName, networkManagerName, resourceGroupName, ruleCollectionName, ruleName, subscriptionId | Gets a network manager routing configuration routing rule. |
list | SELECT | configurationName, networkManagerName, resourceGroupName, ruleCollectionName, subscriptionId | List all network manager routing configuration routing rules. |
create_or_update | INSERT | configurationName, networkManagerName, resourceGroupName, ruleCollectionName, ruleName, subscriptionId | Creates or updates an routing rule. |
delete | DELETE | configurationName, networkManagerName, resourceGroupName, ruleCollectionName, ruleName, subscriptionId | Deletes a routing rule. |
SELECT
examples
List all network manager routing configuration routing rules.
- vw_routing_rules
- routing_rules
SELECT
id,
name,
description,
configurationName,
destination,
etag,
networkManagerName,
next_hop,
provisioning_state,
resourceGroupName,
resource_guid,
ruleCollectionName,
ruleName,
subscriptionId,
system_data,
type
FROM azure.network.vw_routing_rules
WHERE configurationName = '{{ configurationName }}'
AND networkManagerName = '{{ networkManagerName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND ruleCollectionName = '{{ ruleCollectionName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
id,
name,
etag,
properties,
systemData,
type
FROM azure.network.routing_rules
WHERE configurationName = '{{ configurationName }}'
AND networkManagerName = '{{ networkManagerName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND ruleCollectionName = '{{ ruleCollectionName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new routing_rules
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.network.routing_rules (
configurationName,
networkManagerName,
resourceGroupName,
ruleCollectionName,
ruleName,
subscriptionId,
properties
)
SELECT
'{{ configurationName }}',
'{{ networkManagerName }}',
'{{ resourceGroupName }}',
'{{ ruleCollectionName }}',
'{{ ruleName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: description
value: string
- name: provisioningState
value: []
- name: resourceGuid
value: string
- name: destination
value:
- name: type
value: []
- name: destinationAddress
value: string
- name: nextHop
value:
- name: nextHopType
value: []
- name: nextHopAddress
value: string
- name: systemData
value:
- name: createdBy
value: string
- name: createdByType
value: string
- name: createdAt
value: string
- name: lastModifiedBy
value: string
- name: lastModifiedByType
value: string
- name: lastModifiedAt
value: string
- name: id
value: string
- name: name
value: string
- name: type
value: string
- name: etag
value: string
DELETE
example
Deletes the specified routing_rules
resource.
/*+ delete */
DELETE FROM azure.network.routing_rules
WHERE configurationName = '{{ configurationName }}'
AND networkManagerName = '{{ networkManagerName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND ruleCollectionName = '{{ ruleCollectionName }}'
AND ruleName = '{{ ruleName }}'
AND subscriptionId = '{{ subscriptionId }}';