Share via


CognitiveServicesAccountResource.GetModelsAsync(CancellationToken) Method

Definition

List available Models for the requested Cognitive Services account

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

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to