NetworkFabricNeighborGroupCollection.GetIfExists Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/neighborGroups/{neighborGroupName}
  • Operation Id: NeighborGroups_Get
public virtual Azure.NullableResponse<Azure.ResourceManager.ManagedNetworkFabric.NetworkFabricNeighborGroupResource> GetIfExists (string neighborGroupName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.ManagedNetworkFabric.NetworkFabricNeighborGroupResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.ManagedNetworkFabric.NetworkFabricNeighborGroupResource>
Public Overridable Function GetIfExists (neighborGroupName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of NetworkFabricNeighborGroupResource)

Parameters

neighborGroupName
String

Name of the Neighbor Group.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

neighborGroupName is an empty string, and was expected to be non-empty.

neighborGroupName is null.

Applies to