Freigeben über


ComputeExtensions.GetSnapshots Methode

Definition

Überlädt

GetSnapshots(ResourceGroupResource)

Ruft eine Auflistung von SnapshotResources in ResourceGroupResource ab.

GetSnapshots(SubscriptionResource, CancellationToken)

Listet Momentaufnahmen unter einem Abonnement auf.

  • Anforderungspfad/abonnements/{subscriptionId}/providers/Microsoft.Compute/snapshots
  • Vorgang IdSnapshots_List

GetSnapshots(ResourceGroupResource)

Ruft eine Auflistung von SnapshotResources in ResourceGroupResource ab.

public static Azure.ResourceManager.Compute.SnapshotCollection GetSnapshots (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetSnapshots : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.Compute.SnapshotCollection
<Extension()>
Public Function GetSnapshots (resourceGroupResource As ResourceGroupResource) As SnapshotCollection

Parameter

resourceGroupResource
ResourceGroupResource

Der ResourceGroupResource instance, für den die Methode ausgeführt wird.

Gibt zurück

Ein Objekt, das die Auflistung von SnapshotResources und deren Vorgänge über eine SnapshotResource darstellt.

Gilt für:

GetSnapshots(SubscriptionResource, CancellationToken)

Listet Momentaufnahmen unter einem Abonnement auf.

  • Anforderungspfad/abonnements/{subscriptionId}/providers/Microsoft.Compute/snapshots
  • Vorgang IdSnapshots_List
public static Azure.Pageable<Azure.ResourceManager.Compute.SnapshotResource> GetSnapshots (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetSnapshots : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Compute.SnapshotResource>
<Extension()>
Public Function GetSnapshots (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of SnapshotResource)

Parameter

subscriptionResource
SubscriptionResource

Der SubscriptionResource instance, für den die Methode ausgeführt wird.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Eine Sammlung von, bei der SnapshotResource möglicherweise mehrere Dienstanforderungen zum Durchlaufen verwendet werden.

Gilt für: