Partager via


ContainerServiceManagedClusterResource.GetContainerServiceAgentPool Méthode

Définition

Obtient le pool d’agents de cluster managé spécifié.

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

Paramètres

agentPoolName
String

Nom du pool d’agents.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

agentPoolName est une chaîne vide, et on s’attendait à ce qu’elle ne soit pas vide.

agentPoolName a la valeur null.

S’applique à