Share via


CognitiveServicesExtensions.GetCognitiveServicesCommitmentPlansAsync Method

Definition

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

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/commitmentPlans
  • Operation Id: CommitmentPlans_ListPlansBySubscription
  • Default Api Version: 2023-05-01
  • Resource: CognitiveServicesCommitmentPlanResource
public static Azure.AsyncPageable<Azure.ResourceManager.CognitiveServices.CognitiveServicesCommitmentPlanResource> GetCognitiveServicesCommitmentPlansAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetCognitiveServicesCommitmentPlansAsync : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.CognitiveServices.CognitiveServicesCommitmentPlanResource>
<Extension()>
Public Function GetCognitiveServicesCommitmentPlansAsync (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of CognitiveServicesCommitmentPlanResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to