Share via


NetworkRackCollection.GetIfExistsAsync(String, CancellationToken) Method

Definition

Tries to get details for this resource from the service.

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

Parameters

networkRackName
String

Name of the Network Rack.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

networkRackName is null.

Applies to