CognitiveServicesAgentApplicationResource.GetAgentsAsync Method

Definition

Lists agents for an Agent Application.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/projects/{projectName}/applications/{name}/listAgents.
  • Operation Id. : AgentApplications_ListAgents.
  • Default Api Version. : 2026-01-15-preview.
  • Resource. : CognitiveServicesAgentApplicationResource.
public virtual Azure.AsyncPageable<Azure.ResourceManager.CognitiveServices.Models.CognitiveServicesAgentReference> GetAgentsAsync(System.Threading.CancellationToken cancellationToken = default);
abstract member GetAgentsAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.CognitiveServices.Models.CognitiveServicesAgentReference>
override this.GetAgentsAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.CognitiveServices.Models.CognitiveServicesAgentReference>
Public Overridable Function GetAgentsAsync (Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of CognitiveServicesAgentReference)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

A collection of CognitiveServicesAgentReference that may take multiple service requests to iterate over.

Applies to