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

The following fields are returned by SELECT queries:

NameDatatypeDescription
locationstringThe geo-location where the resource lives
propertiesobjectResource properties.
tagsobjectResource tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, neighborGroupNameGets the Neighbor Group.
list_by_resource_groupselectsubscriptionId, resourceGroupNameDisplays NeighborGroups list by resource group GET method.
list_by_subscriptionselectsubscriptionIdDisplays NeighborGroups list by subscription GET method.
createinsertsubscriptionId, resourceGroupName, neighborGroupName, data__propertiesImplements the Neighbor Group PUT method.
updateupdatesubscriptionId, resourceGroupName, neighborGroupNameUpdates the Neighbor Group.
deletedeletesubscriptionId, resourceGroupName, neighborGroupNameImplements Neighbor Group DELETE method.

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
neighborGroupNamestringName of the Neighbor Group.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.

SELECT examples

Gets the Neighbor Group.

SELECT
location,
properties,
tags
FROM azure.managed_network_fabric.neighbor_groups
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND neighborGroupName = '{{ neighborGroupName }}' -- required
;

INSERT examples

Implements the Neighbor Group PUT method.

INSERT INTO azure.managed_network_fabric.neighbor_groups (
data__tags,
data__location,
data__properties,
subscriptionId,
resourceGroupName,
neighborGroupName
)
SELECT
'{{ tags }}',
'{{ location }}',
'{{ properties }}' /* required */,
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ neighborGroupName }}'
RETURNING
location,
properties,
tags
;

UPDATE examples

Updates the Neighbor Group.

UPDATE azure.managed_network_fabric.neighbor_groups
SET
data__properties = '{{ properties }}',
data__tags = '{{ tags }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND neighborGroupName = '{{ neighborGroupName }}' --required
RETURNING
location,
properties,
tags;

DELETE examples

Implements Neighbor Group DELETE method.

DELETE FROM azure.managed_network_fabric.neighbor_groups
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND neighborGroupName = '{{ neighborGroupName }}' --required
;