Aracılığıyla paylaş


NetworkVirtualApplianceSkuCollection.GetIfExistsAsync Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Network/networkVirtualApplianceSkus/{skuName}
  • Operation Id: VirtualApplianceSkus_Get
  • Default Api Version: 2023-09-01
  • Resource: NetworkVirtualApplianceSkuResource
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Network.NetworkVirtualApplianceSkuResource>> GetIfExistsAsync (string skuName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Network.NetworkVirtualApplianceSkuResource>>
override this.GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Network.NetworkVirtualApplianceSkuResource>>
Public Overridable Function GetIfExistsAsync (skuName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of NetworkVirtualApplianceSkuResource))

Parameters

skuName
String

Name of the Sku.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

skuName is null.

Applies to