Compartir a través de


AutomationAccountResource.GetAutomationRunbookAsync Método

Definición

Recupere el runbook identificado por el nombre del runbook.

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}
  • IdRunbook_Get de operación
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))

Parámetros

runbookName
String

Nombre del runbook.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

runbookName es una cadena vacía y se espera que no esté vacía.

runbookName es null.

Se aplica a