Partilhar via


AutomationRunbookResource.CreateTestJob 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 Azure.Response<Azure.ResourceManager.Automation.Models.RunbookTestJob> CreateTestJob (Azure.ResourceManager.Automation.Models.RunbookTestJobCreateContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateTestJob : Azure.ResourceManager.Automation.Models.RunbookTestJobCreateContent * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Automation.Models.RunbookTestJob>
override this.CreateTestJob : Azure.ResourceManager.Automation.Models.RunbookTestJobCreateContent * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Automation.Models.RunbookTestJob>
Public Overridable Function CreateTestJob (content As RunbookTestJobCreateContent, Optional cancellationToken As CancellationToken = Nothing) As 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