Freigeben über


AutomationAccountResource.GetAutomationRunbookAsync Methode

Definition

Rufen Sie das runbook ab, das durch den Runbooknamen identifiziert wurde.

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

Parameter

runbookName
String

Der Runbookname.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

runbookName ist eine leere Zeichenfolge und wurde erwartet, dass sie nicht leer ist.

runbookName ist NULL.

Gilt für: