Compartilhar via


ContainerServiceAgentPoolCollection.GetAsync Método

Definição

Obtém o pool de agentes de cluster gerenciado especificado.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}
  • IdAgentPools_Get de operação
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ContainerService.ContainerServiceAgentPoolResource>> GetAsync (string agentPoolName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ContainerService.ContainerServiceAgentPoolResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ContainerService.ContainerServiceAgentPoolResource>>
Public Overridable Function GetAsync (agentPoolName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ContainerServiceAgentPoolResource))

Parâmetros

agentPoolName
String

O nome do pool de agentes.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

agentPoolName é uma cadeia de caracteres vazia e era esperado que não estivesse vazio.

agentPoolName é nulo.

Aplica-se a