次の方法で共有


NetAppVolumeCollection.GetIfExistsAsync(String, CancellationToken) メソッド

定義

サービスからこのリソースの詳細の取得を試みます。

  • 要求パス/サブスクリプション/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}
  • 操作IdVolumes_Get
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.NetApp.NetAppVolumeResource>> GetIfExistsAsync (string volumeName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.NetApp.NetAppVolumeResource>>
override this.GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.NetApp.NetAppVolumeResource>>
Public Overridable Function GetIfExistsAsync (volumeName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of NetAppVolumeResource))

パラメーター

volumeName
String

ボリュームの名前。

cancellationToken
CancellationToken

使用する取り消しトークン。

戻り値

例外

volumeName は空の文字列であり、空でないと想定されていました。

volumeName が null です。

適用対象