Condividi tramite


ContainerAppJobResource.StartAsync Method

Definition

Start a Container Apps Job

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}/start
  • Operation Id: Jobs_Start
  • Default Api Version: 2024-03-01
  • Resource: ContainerAppJobResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.AppContainers.Models.ContainerAppJobExecutionBase>> StartAsync (Azure.WaitUntil waitUntil, Azure.ResourceManager.AppContainers.Models.ContainerAppJobExecutionTemplate template = default, System.Threading.CancellationToken cancellationToken = default);
abstract member StartAsync : Azure.WaitUntil * Azure.ResourceManager.AppContainers.Models.ContainerAppJobExecutionTemplate * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.AppContainers.Models.ContainerAppJobExecutionBase>>
override this.StartAsync : Azure.WaitUntil * Azure.ResourceManager.AppContainers.Models.ContainerAppJobExecutionTemplate * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.AppContainers.Models.ContainerAppJobExecutionBase>>
Public Overridable Function StartAsync (waitUntil As WaitUntil, Optional template As ContainerAppJobExecutionTemplate = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of ContainerAppJobExecutionBase))

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

template
ContainerAppJobExecutionTemplate

Properties used to start a job execution.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

template is null.

Applies to