routing_intents
Creates, updates, deletes, gets or lists a routing_intents
resource.
Overview
Name | routing_intents |
Type | Resource |
Id | azure.network.routing_intents |
Fields
- vw_routing_intents
- routing_intents
Name | Datatype | Description |
---|---|---|
id | text | Resource ID. |
name | text | The name of the resource that is unique within a resource group. This name can be used to access the resource. |
etag | text | A unique read-only string that changes whenever the resource is updated. |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
routingIntentName | text | field from the properties object |
routing_policies | text | field from the properties object |
subscriptionId | text | field from the properties object |
type | text | Resource type. |
virtualHubName | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
id | string | Resource ID. |
name | string | The name of the resource that is unique within a resource group. This name can be used to access the resource. |
etag | string | A unique read-only string that changes whenever the resource is updated. |
properties | object | The properties of a RoutingIntent resource. |
type | string | Resource type. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | resourceGroupName, routingIntentName, subscriptionId, virtualHubName | Retrieves the details of a RoutingIntent. |
list | SELECT | resourceGroupName, subscriptionId, virtualHubName | Retrieves the details of all RoutingIntent child resources of the VirtualHub. |
create_or_update | INSERT | resourceGroupName, routingIntentName, subscriptionId, virtualHubName | Creates a RoutingIntent resource if it doesn't exist else updates the existing RoutingIntent. |
delete | DELETE | resourceGroupName, routingIntentName, subscriptionId, virtualHubName | Deletes a RoutingIntent. |
SELECT
examples
Retrieves the details of all RoutingIntent child resources of the VirtualHub.
- vw_routing_intents
- routing_intents
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 }}';
SELECT
id,
name,
etag,
properties,
type
FROM azure.network.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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.network.routing_intents (
resourceGroupName,
routingIntentName,
subscriptionId,
virtualHubName,
properties,
name,
id
)
SELECT
'{{ resourceGroupName }}',
'{{ routingIntentName }}',
'{{ subscriptionId }}',
'{{ virtualHubName }}',
'{{ properties }}',
'{{ name }}',
'{{ id }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: routingPolicies
value:
- - name: name
value: string
- name: destinations
value:
- string
- name: nextHop
value: string
- name: provisioningState
value: []
- name: name
value: string
- name: etag
value: string
- name: type
value: string
- name: id
value: string
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 }}';