Delen via


JobsOperationsExtensions.CreateAsync Method

Definition

Creates a new job with the specified parameters. Existing job cannot be updated with this API and should instead be updated with the Update job API.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.DataBox.Models.JobResource> CreateAsync (this Microsoft.Azure.Management.DataBox.IJobsOperations operations, string resourceGroupName, string jobName, Microsoft.Azure.Management.DataBox.Models.JobResource jobResource, System.Threading.CancellationToken cancellationToken = default);
static member CreateAsync : Microsoft.Azure.Management.DataBox.IJobsOperations * string * string * Microsoft.Azure.Management.DataBox.Models.JobResource * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.DataBox.Models.JobResource>
<Extension()>
Public Function CreateAsync (operations As IJobsOperations, resourceGroupName As String, jobName As String, jobResource As JobResource, Optional cancellationToken As CancellationToken = Nothing) As Task(Of JobResource)

Parameters

operations
IJobsOperations

The operations group for this extension method.

resourceGroupName
String

The Resource Group Name

jobName
String

The name of the job Resource within the specified resource group. job names must be between 3 and 24 characters in length and use any alphanumeric and underscore only

jobResource
JobResource

Job details from request body.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to