CognitiveServicesAccountResource.GetModels(CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.Pageable<Azure.ResourceManager.CognitiveServices.Models.CognitiveServicesAccountModel> GetModels (System.Threading.CancellationToken cancellationToken = default);
abstract member GetModels : System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.CognitiveServices.Models.CognitiveServicesAccountModel>
override this.GetModels : System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.CognitiveServices.Models.CognitiveServicesAccountModel>
Public Overridable Function GetModels (Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of CognitiveServicesAccountModel)
Parameters
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of CognitiveServicesAccountModel that may take multiple service requests to iterate over.