Dela via


ITestJobOperations.CreateWithHttpMessagesAsync Metod

Definition

Skapa ett testjobb för runbooken. http://aka.ms/azureautomationsdk/testjoboperations

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

Parametrar

resourceGroupName
String

Namnet på en Azure-resursgrupp.

automationAccountName
String

Namnet på Automation-kontot.

runbookName
String

Parametrarna som angavs för åtgärden skapa testjobb.

parameters
TestJobCreateParameters

Parametrarna som angavs för åtgärden skapa testjobb.

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