Partager via


ManagedClusterSnapshotCollection.GetAsync(String, CancellationToken) Méthode

Définition

Obtient un cluster managé instantané.

  • Chemin/abonnements de la demande/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedclustersnapshots/{resourceName}
  • IdManagedClusterSnapshots_Get d’opération
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ContainerService.ManagedClusterSnapshotResource>> GetAsync (string resourceName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ContainerService.ManagedClusterSnapshotResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ContainerService.ManagedClusterSnapshotResource>>
Public Overridable Function GetAsync (resourceName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ManagedClusterSnapshotResource))

Paramètres

resourceName
String

Nom de la ressource de cluster managé.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

resourceName est une chaîne vide et devait être non vide.

resourceName a la valeur null.

S’applique à