Partilhar via


ContainerServiceManagedClusterResource.GetContainerServiceAgentPoolAsync 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}
  • Operação IdAgentPools_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ContainerService.ContainerServiceAgentPoolResource>> GetContainerServiceAgentPoolAsync (string agentPoolName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetContainerServiceAgentPoolAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ContainerService.ContainerServiceAgentPoolResource>>
override this.GetContainerServiceAgentPoolAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ContainerService.ContainerServiceAgentPoolResource>>
Public Overridable Function GetContainerServiceAgentPoolAsync (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 esperava-se que não estivesse vazia.

agentPoolName é nulo.

Aplica-se a