Condividi tramite


IRunbookOperations.CreateOrUpdateWithHttpMessagesAsync Metodo

Definizione

Creare il runbook identificato dal nome del runbook. http://aka.ms/azureautomationsdk/runbookoperations

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.Automation.Models.Runbook>> CreateOrUpdateWithHttpMessagesAsync (string resourceGroupName, string automationAccountName, string runbookName, Microsoft.Azure.Management.Automation.Models.RunbookCreateOrUpdateParameters parameters, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateWithHttpMessagesAsync : string * string * string * Microsoft.Azure.Management.Automation.Models.RunbookCreateOrUpdateParameters * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.Automation.Models.Runbook>>
Public Function CreateOrUpdateWithHttpMessagesAsync (resourceGroupName As String, automationAccountName As String, runbookName As String, parameters As RunbookCreateOrUpdateParameters, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of Runbook))

Parametri

resourceGroupName
String

Nome di un gruppo di risorse di Azure.

automationAccountName
String

Nome dell'account di automazione.

runbookName
String

Nome del runbook.

parameters
RunbookCreateOrUpdateParameters

Parametri di creazione o aggiornamento per il runbook. Specificare un collegamento di contenuto per un runbook pubblicato o una bozza, non entrambi.

customHeaders
Dictionary<String,List<String>>

Intestazioni che verranno aggiunte alla richiesta.

cancellationToken
CancellationToken

Token di annullamento.

Restituisce

Eccezioni

Generata quando l'operazione ha restituito un codice di stato non valido

Generata quando non è possibile deserializzare la risposta

Generata quando un parametro obbligatorio è Null

Si applica a