Skip to main content

routing_rule_collections

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

Overview

Namerouting_rule_collections
TypeResource
Idazure.network.routing_rule_collections

Fields

NameDatatypeDescription
idtextResource ID.
nametextResource name.
descriptiontextfield from the properties object
applies_totextfield from the properties object
configurationNametextfield from the properties object
disable_bgp_route_propagationtextfield from the properties object
etagtextA unique read-only string that changes whenever the resource is updated.
networkManagerNametextfield 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
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
typetextResource type.

Methods

NameAccessible byRequired ParamsDescription
getSELECTconfigurationName, networkManagerName, resourceGroupName, ruleCollectionName, subscriptionIdGets a network manager routing configuration rule collection.
listSELECTconfigurationName, networkManagerName, resourceGroupName, subscriptionIdLists all the rule collections in a routing configuration, in a paginated format.
create_or_updateINSERTconfigurationName, networkManagerName, resourceGroupName, ruleCollectionName, subscriptionIdCreates or updates a routing rule collection.
deleteDELETEconfigurationName, networkManagerName, resourceGroupName, ruleCollectionName, subscriptionIdDeletes an routing rule collection.

SELECT examples

Lists all the rule collections in a routing configuration, in a paginated format.

SELECT
id,
name,
description,
applies_to,
configurationName,
disable_bgp_route_propagation,
etag,
networkManagerName,
provisioning_state,
resourceGroupName,
resource_guid,
ruleCollectionName,
subscriptionId,
system_data,
type
FROM azure.network.vw_routing_rule_collections
WHERE configurationName = '{{ configurationName }}'
AND networkManagerName = '{{ networkManagerName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

DELETE example

Deletes the specified routing_rule_collections resource.

/*+ delete */
DELETE FROM azure.network.routing_rule_collections
WHERE configurationName = '{{ configurationName }}'
AND networkManagerName = '{{ networkManagerName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND ruleCollectionName = '{{ ruleCollectionName }}'
AND subscriptionId = '{{ subscriptionId }}';