Partilhar via


AutomationAccountResource.GetAutomationRunbookAsync Método

Definição

Recupere o runbook identificado pelo nome do runbook.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}
  • Operação 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))

Parâmetros

runbookName
String

O nome do runbook.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

runbookName é uma cadeia de caracteres vazia e esperava-se que não estivesse vazia.

runbookName é nulo.

Aplica-se a