Dela via


IModuleOperations.CreateOrUpdateWithHttpMessagesAsync Metod

Definition

Skapa eller uppdatera modulen som identifieras med modulnamnet. http://aka.ms/azureautomationsdk/moduleoperations

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.Automation.Models.Module>> CreateOrUpdateWithHttpMessagesAsync (string resourceGroupName, string automationAccountName, string moduleName, Microsoft.Azure.Management.Automation.Models.ModuleCreateOrUpdateParameters 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.ModuleCreateOrUpdateParameters * 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.Module>>
Public Function CreateOrUpdateWithHttpMessagesAsync (resourceGroupName As String, automationAccountName As String, moduleName As String, parameters As ModuleCreateOrUpdateParameters, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of Module))

Parametrar

resourceGroupName
String

Namnet på en Azure-resursgrupp.

automationAccountName
String

Namnet på Automation-kontot.

moduleName
String

Namnet på modulen.

parameters
ModuleCreateOrUpdateParameters

Parametrarna för att skapa eller uppdatera för modulen.

customHeaders
Dictionary<String,List<String>>

Rubrikerna som ska läggas till i begäran.

cancellationToken
CancellationToken

Annulleringstoken.

Returer

Undantag

Genereras när åtgärden returnerade en ogiltig statuskod

Utlöses när det inte går att deserialisera svaret

Genereras när en obligatorisk parameter är null

Gäller för