Skip to main content

neighbor_groups

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

Overview

Nameneighbor_groups
TypeResource
Idazure_extras.managed_network_fabric.neighbor_groups

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
annotationstringSwitch configuration description.
configurationStatestringConfiguration state of the resource. Known values are: "Succeeded", "Failed", "Rejected", "Accepted", "Provisioned", "ErrorProvisioning", "Deprovisioning", "Deprovisioned", "ErrorDeprovisioning", "DeferredControl", "Provisioning", "PendingCommit", and "PendingAdministrativeUpdate". (Succeeded, Failed, Rejected, Accepted, Provisioned, ErrorProvisioning, Deprovisioning, Deprovisioned, ErrorDeprovisioning, DeferredControl, Provisioning, PendingCommit, PendingAdministrativeUpdate)
destinationobjectAn array of destination IPv4 Addresses or IPv6 Addresses. Required.
identityobjectThe managed service identities assigned to this resource.
lastOperationobjectDetails of the last operation performed on the resource.
locationstringThe geo-location where the resource lives. Required.
networkFabricIdsarrayAssociated Network Fabric Resource IDs.
networkTapIdsarrayList of NetworkTap IDs where neighbor group is associated.
networkTapRuleIdsarrayList of Network Tap Rule IDs where neighbor group is associated.
provisioningStatestringThe provisioning state of the resource. Known values are: "Accepted", "Succeeded", "Updating", "Deleting", "Failed", and "Canceled". (Accepted, Succeeded, Updating, Deleting, Failed, Canceled)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, neighbor_group_name, subscription_idGets the Neighbor Group.
list_by_resource_groupselectresource_group_name, subscription_idDisplays NeighborGroups list by resource group GET method.
list_by_subscriptionselectsubscription_idDisplays NeighborGroups list by subscription GET method.
createinsertresource_group_name, neighbor_group_name, subscription_id, location, propertiesImplements the Neighbor Group PUT method.
updateupdateresource_group_name, neighbor_group_name, subscription_idUpdates the Neighbor Group.
deletedeleteresource_group_name, neighbor_group_name, subscription_idImplements Neighbor Group DELETE method.
resyncexecresource_group_name, neighbor_group_name, subscription_idResync the Neighbor Group after a configuration change.

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
neighbor_group_namestringName of the Neighbor Group. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Gets the Neighbor Group.

SELECT
id,
name,
annotation,
configurationState,
destination,
identity,
lastOperation,
location,
networkFabricIds,
networkTapIds,
networkTapRuleIds,
provisioningState,
systemData,
tags,
type
FROM azure_extras.managed_network_fabric.neighbor_groups
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND neighbor_group_name = '{{ neighbor_group_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Implements the Neighbor Group PUT method.

INSERT INTO azure_extras.managed_network_fabric.neighbor_groups (
tags,
location,
properties,
identity,
resource_group_name,
neighbor_group_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}' /* required */,
'{{ identity }}',
'{{ resource_group_name }}',
'{{ neighbor_group_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
identity,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

Updates the Neighbor Group.

UPDATE azure_extras.managed_network_fabric.neighbor_groups
SET
tags = '{{ tags }}',
properties = '{{ properties }}',
identity = '{{ identity }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND neighbor_group_name = '{{ neighbor_group_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
identity,
location,
properties,
systemData,
tags,
type;

DELETE examples

Implements Neighbor Group DELETE method.

DELETE FROM azure_extras.managed_network_fabric.neighbor_groups
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND neighbor_group_name = '{{ neighbor_group_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Resync the Neighbor Group after a configuration change.

EXEC azure_extras.managed_network_fabric.neighbor_groups.resync 
@resource_group_name='{{ resource_group_name }}' --required,
@neighbor_group_name='{{ neighbor_group_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;