CognitiveServicesExtensions.GetCognitiveServicesAccounts 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.
Overloads
GetCognitiveServicesAccounts(SubscriptionResource, CancellationToken) |
Returns all the resources of a particular type belonging to a subscription.
|
GetCognitiveServicesAccounts(ResourceGroupResource) |
Gets a collection of CognitiveServicesAccountResources in the ResourceGroupResource. MockingTo mock this method, please mock GetCognitiveServicesAccounts() instead. |
GetCognitiveServicesAccounts(SubscriptionResource, CancellationToken)
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 static Azure.Pageable<Azure.ResourceManager.CognitiveServices.CognitiveServicesAccountResource> GetCognitiveServicesAccounts (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetCognitiveServicesAccounts : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.CognitiveServices.CognitiveServicesAccountResource>
<Extension()>
Public Function GetCognitiveServicesAccounts (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of CognitiveServicesAccountResource)
Parameters
- subscriptionResource
- SubscriptionResource
The SubscriptionResource instance the method will execute against.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of CognitiveServicesAccountResource that may take multiple service requests to iterate over.
Exceptions
subscriptionResource
is null.
Applies to
GetCognitiveServicesAccounts(ResourceGroupResource)
Gets a collection of CognitiveServicesAccountResources in the ResourceGroupResource. MockingTo mock this method, please mock GetCognitiveServicesAccounts() instead.
public static Azure.ResourceManager.CognitiveServices.CognitiveServicesAccountCollection GetCognitiveServicesAccounts (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetCognitiveServicesAccounts : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.CognitiveServices.CognitiveServicesAccountCollection
<Extension()>
Public Function GetCognitiveServicesAccounts (resourceGroupResource As ResourceGroupResource) As CognitiveServicesAccountCollection
Parameters
- resourceGroupResource
- ResourceGroupResource
The ResourceGroupResource instance the method will execute against.
Returns
An object representing collection of CognitiveServicesAccountResources and their operations over a CognitiveServicesAccountResource.
Exceptions
resourceGroupResource
is null.