Skip to main content

routing_intent

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

Overview

Namerouting_intent
TypeResource
Idazure.network.routing_intent

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringResource ID.
namestringName of the resource.
etagstringA unique read-only string that changes whenever the resource is updated.
provisioningStatestringThe provisioning state of the RoutingIntent resource. Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". (Failed, Succeeded, Canceled, Creating, Updating, Deleting)
routingPoliciesarrayList of routing policies.
typestringResource type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, virtual_hub_name, routing_intent_name, subscription_idRetrieves the details of a RoutingIntent.
listselectresource_group_name, virtual_hub_name, subscription_idRetrieves the details of all RoutingIntent child resources of the VirtualHub.
create_or_updateinsertresource_group_name, virtual_hub_name, routing_intent_name, subscription_idCreates a RoutingIntent resource if it doesn't exist else updates the existing RoutingIntent.
create_or_updatereplaceresource_group_name, virtual_hub_name, routing_intent_name, subscription_idCreates a RoutingIntent resource if it doesn't exist else updates the existing RoutingIntent.
deletedeleteresource_group_name, virtual_hub_name, routing_intent_name, subscription_idDeletes a RoutingIntent.

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
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
routing_intent_namestringThe name of the resource that is unique within a resource group. This name can be used to access the resource. Required.
subscription_idstring
virtual_hub_namestringThe name of the VirtualHub. Required.

SELECT examples

Retrieves the details of a RoutingIntent.

SELECT
id,
name,
etag,
provisioningState,
routingPolicies,
type
FROM azure.network.routing_intent
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND virtual_hub_name = '{{ virtual_hub_name }}' -- required
AND routing_intent_name = '{{ routing_intent_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates a RoutingIntent resource if it doesn't exist else updates the existing RoutingIntent.

INSERT INTO azure.network.routing_intent (
id,
name,
properties,
resource_group_name,
virtual_hub_name,
routing_intent_name,
subscription_id
)
SELECT
'{{ id }}',
'{{ name }}',
'{{ properties }}',
'{{ resource_group_name }}',
'{{ virtual_hub_name }}',
'{{ routing_intent_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
etag,
properties,
type
;

REPLACE examples

Creates a RoutingIntent resource if it doesn't exist else updates the existing RoutingIntent.

REPLACE azure.network.routing_intent
SET
id = '{{ id }}',
name = '{{ name }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND virtual_hub_name = '{{ virtual_hub_name }}' --required
AND routing_intent_name = '{{ routing_intent_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
etag,
properties,
type;

DELETE examples

Deletes a RoutingIntent.

DELETE FROM azure.network.routing_intent
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND virtual_hub_name = '{{ virtual_hub_name }}' --required
AND routing_intent_name = '{{ routing_intent_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;