Udostępnij za pośrednictwem


AutomationAccountCollection.GetAsync(String, CancellationToken) Method

Definition

Get information about an Automation Account.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}
  • Operation Id: AutomationAccount_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Automation.AutomationAccountResource>> GetAsync (string automationAccountName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Automation.AutomationAccountResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Automation.AutomationAccountResource>>
Public Overridable Function GetAsync (automationAccountName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of AutomationAccountResource))

Parameters

automationAccountName
String

The name of the automation account.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

automationAccountName is an empty string, and was expected to be non-empty.

automationAccountName is null.

Applies to