Freigeben über


NetAppVolumeSnapshotCollection.GetIfExistsAsync Methode

Definition

Versucht, Details für diese Ressource vom Dienst abzurufen.

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshots/{snapshotName}
  • Vorgangs-IdSnapshots_Get
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.NetApp.NetAppVolumeSnapshotResource>> GetIfExistsAsync (string snapshotName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.NetApp.NetAppVolumeSnapshotResource>>
override this.GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.NetApp.NetAppVolumeSnapshotResource>>
Public Overridable Function GetIfExistsAsync (snapshotName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of NetAppVolumeSnapshotResource))

Parameter

snapshotName
String

Der Name des Momentaufnahme.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

snapshotName ist eine leere Zeichenfolge und wurde erwartet, dass sie nicht leer ist.

snapshotName ist NULL.

Gilt für: