CognitiveServicesAgentApplicationResource.GetAgents(CancellationToken) 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.Pageable<Azure.ResourceManager.CognitiveServices.Models.CognitiveServicesAgentReference> GetAgents(System.Threading.CancellationToken cancellationToken = default);
abstract member GetAgents : System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.CognitiveServices.Models.CognitiveServicesAgentReference>
override this.GetAgents : System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.CognitiveServices.Models.CognitiveServicesAgentReference>
Public Overridable Function GetAgents (Optional cancellationToken As CancellationToken = Nothing) As Pageable(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