Freigeben über


NetAppVolumeSnapshotCollection.GetIfExists(String, CancellationToken) Methode

Definition

Versucht, Details für diese Ressource aus dem Dienst abzurufen.

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