Partilhar via


HybridRunbookWorkerCollection.CreateOrUpdateAsync Método

Definição

Crie um runbook worker híbrido.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName}/hybridRunbookWorkers/{hybridRunbookWorkerId}
  • Operação IdHybridRunbookWorkers_Create
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Automation.HybridRunbookWorkerResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string hybridRunbookWorkerId, Azure.ResourceManager.Automation.Models.HybridRunbookWorkerCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Automation.Models.HybridRunbookWorkerCreateOrUpdateContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Automation.HybridRunbookWorkerResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Automation.Models.HybridRunbookWorkerCreateOrUpdateContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Automation.HybridRunbookWorkerResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, hybridRunbookWorkerId As String, content As HybridRunbookWorkerCreateOrUpdateContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of HybridRunbookWorkerResource))

Parâmetros

waitUntil
WaitUntil

Completed se o método deve aguardar para retornar até que a operação de execução prolongada seja concluída no serviço; Started se ele deve retornar depois de iniciar a operação. Para obter mais informações sobre operações de execução prolongada, consulte Exemplos de operação de Long-Running do Azure.Core.

hybridRunbookWorkerId
String

A ID de trabalho do runbook híbrido.

content
HybridRunbookWorkerCreateOrUpdateContent

Os parâmetros de criação ou atualização para o hybrid runbook worker.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

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

hybridRunbookWorkerId ou content é nulo.

Aplica-se a