Share via


NetworkCloudRackSkuCollection.GetIfExists(String, CancellationToken) Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.NetworkCloud/rackSkus/{rackSkuName}
  • Operation Id: RackSkus_Get
public virtual Azure.NullableResponse<Azure.ResourceManager.NetworkCloud.NetworkCloudRackSkuResource> GetIfExists (string rackSkuName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.NetworkCloud.NetworkCloudRackSkuResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.NetworkCloud.NetworkCloudRackSkuResource>
Public Overridable Function GetIfExists (rackSkuName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of NetworkCloudRackSkuResource)

Parameters

rackSkuName
String

The name of the rack SKU.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

rackSkuName is null.

Applies to