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

NameDatatypeDescription
idtextResource ID.
nametextThe name of the resource that is unique within a resource group. This name can be used to access the resource.
etagtextA unique read-only string that changes whenever the resource is updated.
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
routingIntentNametextfield from the properties object
routing_policiestextfield from the properties object
subscriptionIdtextfield from the properties object
typetextResource type.
virtualHubNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, routingIntentName, subscriptionId, virtualHubNameRetrieves the details of a RoutingIntent.
listSELECTresourceGroupName, subscriptionId, virtualHubNameRetrieves the details of all RoutingIntent child resources of the VirtualHub.
create_or_updateINSERTresourceGroupName, routingIntentName, subscriptionId, virtualHubNameCreates a RoutingIntent resource if it doesn't exist else updates the existing RoutingIntent.
deleteDELETEresourceGroupName, routingIntentName, subscriptionId, virtualHubNameDeletes a RoutingIntent.

SELECT examples

Retrieves the details of all RoutingIntent child resources of the VirtualHub.

SELECT
id,
name,
etag,
provisioning_state,
resourceGroupName,
routingIntentName,
routing_policies,
subscriptionId,
type,
virtualHubName
FROM azure.network.vw_routing_intents
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND virtualHubName = '{{ virtualHubName }}';

INSERT example

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

/*+ create */
INSERT INTO azure.network.routing_intents (
resourceGroupName,
routingIntentName,
subscriptionId,
virtualHubName,
properties,
name,
id
)
SELECT
'{{ resourceGroupName }}',
'{{ routingIntentName }}',
'{{ subscriptionId }}',
'{{ virtualHubName }}',
'{{ properties }}',
'{{ name }}',
'{{ id }}'
;

DELETE example

Deletes the specified routing_intents resource.

/*+ delete */
DELETE FROM azure.network.routing_intents
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND routingIntentName = '{{ routingIntentName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND virtualHubName = '{{ virtualHubName }}';