Freigeben über


HybridRunbookWorkerCollection.CreateOrUpdate Methode

Definition

Erstellen Sie einen Hybrid Runbook Worker.

  • Anforderungspfad/abonnements/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName}/hybridRunbookWorkers/{hybridRunbookWorkerId}
  • Vorgangs-IdHybridRunbookWorkers_Create
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Automation.HybridRunbookWorkerResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string hybridRunbookWorkerId, Azure.ResourceManager.Automation.Models.HybridRunbookWorkerCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Automation.Models.HybridRunbookWorkerCreateOrUpdateContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Automation.HybridRunbookWorkerResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Automation.Models.HybridRunbookWorkerCreateOrUpdateContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Automation.HybridRunbookWorkerResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, hybridRunbookWorkerId As String, content As HybridRunbookWorkerCreateOrUpdateContent, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of HybridRunbookWorkerResource)

Parameter

waitUntil
WaitUntil

Completed , wenn die Methode auf die Rückgabe warten soll, bis der zeitintensive Vorgang für den Dienst abgeschlossen ist; Started , wenn sie nach dem Starten des Vorgangs zurückgegeben werden soll. Weitere Informationen zu Vorgängen mit langer Ausführungszeit finden Sie unter Beispiele für Azure.Core-Long-Running-Vorgänge.

hybridRunbookWorkerId
String

Die Hybrid Runbook Worker-ID.

content
HybridRunbookWorkerCreateOrUpdateContent

Die Erstellungs- oder Aktualisierungsparameter für Hybrid Runbook Worker.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

hybridRunbookWorkerId ist eine leere Zeichenfolge und wurde erwartet, dass sie nicht leer ist.

hybridRunbookWorkerId oder content ist NULL.

Gilt für: