Skip to main content

routing_intents

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

Overview

Namerouting_intents
TypeResource
Idazure.network.routing_intents

Fields

The following fields are returned by SELECT queries:

Request successful. Returns the details of the RoutingIntent retrieved.

NameDatatypeDescription
idstringResource ID.
namestringThe name of the resource that is unique within a resource group. This name can be used to access the resource.
etagstringA unique read-only string that changes whenever the resource is updated.
propertiesobjectProperties of the RoutingIntent resource.
typestringResource type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, virtualHubName, routingIntentNameRetrieves the details of a RoutingIntent.
listselectsubscriptionId, resourceGroupName, virtualHubNameRetrieves the details of all RoutingIntent child resources of the VirtualHub.
create_or_updateinsertsubscriptionId, resourceGroupName, virtualHubName, routingIntentNameCreates a RoutingIntent resource if it doesn't exist else updates the existing RoutingIntent.
deletedeletesubscriptionId, resourceGroupName, virtualHubName, routingIntentNameDeletes 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
resourceGroupNamestringThe resource group name of the RoutingIntent.
routingIntentNamestringThe name of the RoutingIntent.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.
virtualHubNamestringThe name of the VirtualHub.

SELECT examples

Retrieves the details of a RoutingIntent.

SELECT
id,
name,
etag,
properties,
type
FROM azure.network.routing_intents
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND virtualHubName = '{{ virtualHubName }}' -- required
AND routingIntentName = '{{ routingIntentName }}' -- required
;

INSERT examples

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

INSERT INTO azure.network.routing_intents (
data__properties,
data__name,
data__id,
subscriptionId,
resourceGroupName,
virtualHubName,
routingIntentName
)
SELECT
'{{ properties }}',
'{{ name }}',
'{{ id }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ virtualHubName }}',
'{{ routingIntentName }}'
RETURNING
id,
name,
etag,
properties,
type
;

DELETE examples

Deletes a RoutingIntent.

DELETE FROM azure.network.routing_intents
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND virtualHubName = '{{ virtualHubName }}' --required
AND routingIntentName = '{{ routingIntentName }}' --required
;