Compartilhar via


AutomationRunbookResource.CreateTestJobAsync Método

Definição

Crie um trabalho de teste do runbook.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/testJob
  • Operação IdTestJob_Create
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Automation.Models.RunbookTestJob>> CreateTestJobAsync (Azure.ResourceManager.Automation.Models.RunbookTestJobCreateContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateTestJobAsync : Azure.ResourceManager.Automation.Models.RunbookTestJobCreateContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Automation.Models.RunbookTestJob>>
override this.CreateTestJobAsync : Azure.ResourceManager.Automation.Models.RunbookTestJobCreateContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Automation.Models.RunbookTestJob>>
Public Overridable Function CreateTestJobAsync (content As RunbookTestJobCreateContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of RunbookTestJob))

Parâmetros

content
RunbookTestJobCreateContent

Os parâmetros fornecidos para a operação criar trabalho de teste.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

content é nulo.

Aplica-se a