Skip to main content

routing_rules

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

Overview

Namerouting_rules
TypeResource
Idazure.network.routing_rules

Fields

NameDatatypeDescription
idtextResource ID.
nametextResource name.
descriptiontextfield from the properties object
configurationNametextfield from the properties object
destinationtextfield from the properties object
etagtextA unique read-only string that changes whenever the resource is updated.
networkManagerNametextfield from the properties object
next_hoptextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
resource_guidtextfield from the properties object
ruleCollectionNametextfield from the properties object
ruleNametextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
typetextResource type.

Methods

NameAccessible byRequired ParamsDescription
getSELECTconfigurationName, networkManagerName, resourceGroupName, ruleCollectionName, ruleName, subscriptionIdGets a network manager routing configuration routing rule.
listSELECTconfigurationName, networkManagerName, resourceGroupName, ruleCollectionName, subscriptionIdList all network manager routing configuration routing rules.
create_or_updateINSERTconfigurationName, networkManagerName, resourceGroupName, ruleCollectionName, ruleName, subscriptionIdCreates or updates an routing rule.
deleteDELETEconfigurationName, networkManagerName, resourceGroupName, ruleCollectionName, ruleName, subscriptionIdDeletes a routing rule.

SELECT examples

List all network manager routing configuration 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 }}';

INSERT example

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

/*+ create */
INSERT INTO azure.network.routing_rules (
configurationName,
networkManagerName,
resourceGroupName,
ruleCollectionName,
ruleName,
subscriptionId,
properties
)
SELECT
'{{ configurationName }}',
'{{ networkManagerName }}',
'{{ resourceGroupName }}',
'{{ ruleCollectionName }}',
'{{ ruleName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

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 }}';