Partilhar via


ProvisionedClusterResource.GetHybridContainerServiceAgentPoolAsync Método

Definição

Obtém o pool de agentes no cluster provisionado do AKS híbrido

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

Parâmetros

agentPoolName
String

Parâmetro para o nome do pool de agentes no cluster provisionado.

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