Skip to main content

neighbor_groups

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

Overview

Nameneighbor_groups
TypeResource
Idazure.managed_network_fabric.neighbor_groups

Fields

NameDatatypeDescription
annotationtextfield from the properties object
destinationtextfield from the properties object
locationtextThe geo-location where the resource lives
neighborGroupNametextfield from the properties object
network_tap_idstextfield from the properties object
network_tap_rule_idstextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTneighborGroupName, resourceGroupName, subscriptionIdGets the Neighbor Group.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdDisplays NeighborGroups list by resource group GET method.
list_by_subscriptionSELECTsubscriptionIdDisplays NeighborGroups list by subscription GET method.
createINSERTneighborGroupName, resourceGroupName, subscriptionId, data__propertiesImplements the Neighbor Group PUT method.
deleteDELETEneighborGroupName, resourceGroupName, subscriptionIdImplements Neighbor Group DELETE method.
updateUPDATEneighborGroupName, resourceGroupName, subscriptionIdUpdates the Neighbor Group.

SELECT examples

Displays NeighborGroups list by subscription GET method.

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 }}';

INSERT example

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

/*+ 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 }}'
;

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 }}';