Partager via


HybridRunbookWorkerCollection.CreateOrUpdateAsync Méthode

Définition

Créez un Runbook Worker hybride.

  • Chemin de la demande/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName}/hybridRunbookWorkers/{hybridRunbookWorkerId}
  • IdHybridRunbookWorkers_Create d’opération
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))

Paramètres

waitUntil
WaitUntil

Completed si la méthode doit attendre pour retourner jusqu’à ce que l’opération de longue durée soit terminée sur le service ; Started si elle doit être retournée après le démarrage de l’opération. Pour plus d’informations sur les opérations de longue durée, consultez Exemples d’opérations de Long-Running Azure.Core.

hybridRunbookWorkerId
String

ID de Runbook Worker hybride.

content
HybridRunbookWorkerCreateOrUpdateContent

Paramètres de création ou de mise à jour pour runbook Worker hybride.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

hybridRunbookWorkerId est une chaîne vide et devait être non vide.

hybridRunbookWorkerId ou content est null.

S’applique à