Condividi tramite


MockableContainerRegistryTasksResourceGroupResource.ScheduleRunAsync Method

Definition

Schedules a new run based on the request parameters and add it to the run queue.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/scheduleRun.
  • Operation Id. : Registries_ScheduleRun.
  • Default Api Version. : 2025-03-01-preview.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ContainerRegistry.Tasks.RunResource>> ScheduleRunAsync(string registryName, Azure.ResourceManager.ContainerRegistry.Tasks.Models.RunContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member ScheduleRunAsync : string * Azure.ResourceManager.ContainerRegistry.Tasks.Models.RunContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ContainerRegistry.Tasks.RunResource>>
override this.ScheduleRunAsync : string * Azure.ResourceManager.ContainerRegistry.Tasks.Models.RunContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ContainerRegistry.Tasks.RunResource>>
Public Overridable Function ScheduleRunAsync (registryName As String, content As RunContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of RunResource))

Parameters

registryName
String

The name of the container registry.

content
RunContent

The request body.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

registryName or content is null.

registryName is an empty string, and was expected to be non-empty.

Applies to