neighbor_groups
Creates, updates, deletes, gets or lists a neighbor_groups
resource.
Overview
Name | neighbor_groups |
Type | Resource |
Id | azure.managed_network_fabric.neighbor_groups |
Fields
- vw_neighbor_groups
- neighbor_groups
Name | Datatype | Description |
---|---|---|
annotation | text | field from the properties object |
destination | text | field from the properties object |
location | text | The geo-location where the resource lives |
neighborGroupName | text | field from the properties object |
network_tap_ids | text | field from the properties object |
network_tap_rule_ids | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
subscriptionId | text | field from the properties object |
tags | text | Resource tags. |
Name | Datatype | Description |
---|---|---|
location | string | The geo-location where the resource lives |
properties | object | Neighbor Group Properties defines the properties of the resource. |
tags | object | Resource tags. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | neighborGroupName, resourceGroupName, subscriptionId | Gets the Neighbor Group. |
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | Displays NeighborGroups list by resource group GET method. |
list_by_subscription | SELECT | subscriptionId | Displays NeighborGroups list by subscription GET method. |
create | INSERT | neighborGroupName, resourceGroupName, subscriptionId, data__properties | Implements the Neighbor Group PUT method. |
delete | DELETE | neighborGroupName, resourceGroupName, subscriptionId | Implements Neighbor Group DELETE method. |
update | UPDATE | neighborGroupName, resourceGroupName, subscriptionId | Updates the Neighbor Group. |
SELECT
examples
Displays NeighborGroups list by subscription GET method.
- vw_neighbor_groups
- neighbor_groups
SELECT
annotation,
destination,
location,
neighborGroupName,
network_tap_ids,
network_tap_rule_ids,
provisioning_state,
resourceGroupName,
subscriptionId,
tags
FROM azure.managed_network_fabric.vw_neighbor_groups
WHERE subscriptionId = '{{ subscriptionId }}';
SELECT
location,
properties,
tags
FROM azure.managed_network_fabric.neighbor_groups
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new neighbor_groups
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.managed_network_fabric.neighbor_groups (
neighborGroupName,
resourceGroupName,
subscriptionId,
data__properties,
tags,
location,
properties
)
SELECT
'{{ neighborGroupName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ tags }}',
'{{ location }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: tags
value: object
- name: location
value: string
- name: properties
value:
- name: annotation
value: string
- name: destination
value:
- name: ipv4Addresses
value:
- string
- name: ipv6Addresses
value:
- string
- name: networkTapIds
value:
- []
- name: networkTapRuleIds
value:
- []
- name: provisioningState
value: []
UPDATE
example
Updates a neighbor_groups
resource.
/*+ update */
UPDATE azure.managed_network_fabric.neighbor_groups
SET
properties = '{{ properties }}',
tags = '{{ tags }}'
WHERE
neighborGroupName = '{{ neighborGroupName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified neighbor_groups
resource.
/*+ delete */
DELETE FROM azure.managed_network_fabric.neighbor_groups
WHERE neighborGroupName = '{{ neighborGroupName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';