Share via


MockableAutomationSubscriptionResource.GetAutomationAccountsAsync Method

Definition

Retrieve a list of accounts within a given subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Automation/automationAccounts
  • Operation Id: AutomationAccount_List
public virtual Azure.AsyncPageable<Azure.ResourceManager.Automation.AutomationAccountResource> GetAutomationAccountsAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetAutomationAccountsAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Automation.AutomationAccountResource>
override this.GetAutomationAccountsAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Automation.AutomationAccountResource>
Public Overridable Function GetAutomationAccountsAsync (Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of AutomationAccountResource)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to