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

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringResource ID.
namestringResource name.
appliesToarrayGroups for configuration. Required.
descriptionstringA description of the routing rule collection.
disableBgpRoutePropagationstringDetermines whether BGP route propagation is enabled. Defaults to true. Known values are: "False" and "True". (False, True)
etagstringA unique read-only string that changes whenever the resource is updated.
provisioningStatestringThe provisioning state of the resource. Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". (Failed, Succeeded, Canceled, Creating, Updating, Deleting)
resourceGuidstringUnique identifier for this resource.
systemDataobjectThe system metadata related to this resource.
typestringResource type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, network_manager_name, configuration_name, rule_collection_name, subscription_idGets a network manager routing configuration rule collection.
listselectresource_group_name, network_manager_name, configuration_name, subscription_id$top, $skipTokenLists all the rule collections in a routing configuration, in a paginated format.
create_or_updateinsertresource_group_name, network_manager_name, configuration_name, rule_collection_name, subscription_idCreates or updates a routing rule collection.
create_or_updatereplaceresource_group_name, network_manager_name, configuration_name, rule_collection_name, subscription_idCreates or updates a routing rule collection.
deletedeleteresource_group_name, network_manager_name, configuration_name, rule_collection_name, subscription_idforceDeletes an routing rule collection.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
configuration_namestringThe name of the network manager Routing Configuration. Required.
network_manager_namestringThe name of the network manager. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
rule_collection_namestringThe name of the network manager routing Configuration rule collection. Required.
subscription_idstring
$skipTokenstringSkipToken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls. Default value is None.
$topintegerAn optional query parameter which specifies the maximum number of records to be returned by the server. Default value is None.
forcebooleanDeletes the resource even if it is part of a deployed configuration. If the configuration has been deployed, the service will do a cleanup deployment in the background, prior to the delete. Default value is None.

SELECT examples

Gets a network manager routing configuration rule collection.

SELECT
id,
name,
appliesTo,
description,
disableBgpRoutePropagation,
etag,
provisioningState,
resourceGuid,
systemData,
type
FROM azure.network.routing_rule_collections
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND network_manager_name = '{{ network_manager_name }}' -- required
AND configuration_name = '{{ configuration_name }}' -- required
AND rule_collection_name = '{{ rule_collection_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates or updates a routing rule collection.

INSERT INTO azure.network.routing_rule_collections (
properties,
resource_group_name,
network_manager_name,
configuration_name,
rule_collection_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ network_manager_name }}',
'{{ configuration_name }}',
'{{ rule_collection_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
etag,
properties,
systemData,
type
;

REPLACE examples

Creates or updates a routing rule collection.

REPLACE azure.network.routing_rule_collections
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND network_manager_name = '{{ network_manager_name }}' --required
AND configuration_name = '{{ configuration_name }}' --required
AND rule_collection_name = '{{ rule_collection_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
etag,
properties,
systemData,
type;

DELETE examples

Deletes an routing rule collection.

DELETE FROM azure.network.routing_rule_collections
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND network_manager_name = '{{ network_manager_name }}' --required
AND configuration_name = '{{ configuration_name }}' --required
AND rule_collection_name = '{{ rule_collection_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND force = '{{ force }}'
;