Share via


NetworkFabricIPExtendedCommunityCollection.GetIfExistsAsync Method

Definition

Tries to get details for this resource from the service.

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

Parameters

ipExtendedCommunityName
String

Name of the IP Extended Community.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

ipExtendedCommunityName is null.

Applies to