NetworkFabricIPPrefixCollection.GetIfExists(String, CancellationToken) Method

Definition

Tries to get details for this resource from the service.

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

Parameters

ipPrefixName
String

Name of the IP Prefix.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

ipPrefixName is null.

Applies to