Share via


MockableCognitiveServicesSubscriptionResource.GetCognitiveServicesAccountsAsync Method

Definition

Returns all the resources of a particular type belonging to a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/accounts
  • Operation Id: Accounts_List
  • Default Api Version: 2024-10-01
  • Resource: CognitiveServicesAccountResource
public virtual Azure.AsyncPageable<Azure.ResourceManager.CognitiveServices.CognitiveServicesAccountResource> GetCognitiveServicesAccountsAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetCognitiveServicesAccountsAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.CognitiveServices.CognitiveServicesAccountResource>
override this.GetCognitiveServicesAccountsAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.CognitiveServices.CognitiveServicesAccountResource>
Public Overridable Function GetCognitiveServicesAccountsAsync (Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of CognitiveServicesAccountResource)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

An async collection of CognitiveServicesAccountResource that may take multiple service requests to iterate over.

Applies to