Share via


AutomationExtensions.GetAutomationAccounts Method

Definition

Overloads

GetAutomationAccounts(ResourceGroupResource)

Gets a collection of AutomationAccountResources in the ResourceGroupResource. MockingTo mock this method, please mock GetAutomationAccounts() instead.

GetAutomationAccounts(SubscriptionResource, CancellationToken)

Retrieve a list of accounts within a given subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Automation/automationAccounts
  • Operation Id: AutomationAccount_List

GetAutomationAccounts(ResourceGroupResource)

Source:
AutomationExtensions.cs
Source:
AutomationExtensions.cs

Gets a collection of AutomationAccountResources in the ResourceGroupResource. MockingTo mock this method, please mock GetAutomationAccounts() instead.

public static Azure.ResourceManager.Automation.AutomationAccountCollection GetAutomationAccounts (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetAutomationAccounts : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.Automation.AutomationAccountCollection
<Extension()>
Public Function GetAutomationAccounts (resourceGroupResource As ResourceGroupResource) As AutomationAccountCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of AutomationAccountResources and their operations over a AutomationAccountResource.

Exceptions

resourceGroupResource is null.

Applies to

GetAutomationAccounts(SubscriptionResource, CancellationToken)

Source:
AutomationExtensions.cs
Source:
AutomationExtensions.cs

Retrieve a list of accounts within a given subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Automation/automationAccounts
  • Operation Id: AutomationAccount_List
public static Azure.Pageable<Azure.ResourceManager.Automation.AutomationAccountResource> GetAutomationAccounts (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetAutomationAccounts : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Automation.AutomationAccountResource>
<Extension()>
Public Function GetAutomationAccounts (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of AutomationAccountResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to