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

The following fields are returned by SELECT queries:

Successful operation

NameDatatypeDescription
idstringResource ID.
namestringResource name.
etagstringA unique read-only string that changes whenever the resource is updated.
propertiesobjectIndicates the properties of the routing rule
systemDataobjectThe system metadata related to this resource.
typestringResource type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectGets a network manager routing configuration routing rule.
listselectList all network manager routing configuration routing rules.
create_or_updateinsertCreates or updates an routing rule.
deletedeleteforceDeletes a routing rule.

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
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.

SELECT examples

Gets a network manager routing configuration routing rule.

SELECT
id,
name,
etag,
properties,
systemData,
type
FROM azure.network.routing_rules
;

INSERT examples

Creates or updates an routing rule.

INSERT INTO azure.network.routing_rules (
data__properties
)
SELECT
'{{ properties }}'
RETURNING
id,
name,
etag,
properties,
systemData,
type
;

DELETE examples

Deletes a routing rule.

DELETE FROM azure.network.routing_rules
WHERE force = '{{ force }}'
;