Skip to main content

runs

Creates, updates, deletes, gets or lists a runs resource.

Overview

Nameruns
TypeResource
Idazure.container_registry.runs

Fields

The following fields are returned by SELECT queries:

The request was successful; the request was well-formed and received properly.

NameDatatypeDescription
idstringThe resource ID.
namestringThe name of the resource.
propertiesobjectThe properties of a run.
systemDataobjectMetadata pertaining to creation and last modification of the resource.
typestringThe type of the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, registryName, runIdGets the detailed information for a given run.
listselectsubscriptionId, resourceGroupName, registryName$filter, $topGets all the runs for a registry.
updateupdatesubscriptionId, resourceGroupName, registryName, runIdPatch the run properties.
cancelexecsubscriptionId, resourceGroupName, registryName, runIdCancel an existing run.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
registryNamestringThe name of the container registry.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
runIdstringThe run ID.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.
$filterstringThe runs filter to apply on the operation. Arithmetic operators are not supported. The allowed string function is 'contains'. All logical operators except 'Not', 'Has', 'All' are allowed.
$topinteger (int32)$top is supported for get list of runs, which limits the maximum number of runs to return.

SELECT examples

Gets the detailed information for a given run.

SELECT
id,
name,
properties,
systemData,
type
FROM azure.container_registry.runs
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND registryName = '{{ registryName }}' -- required
AND runId = '{{ runId }}' -- required
;

UPDATE examples

Patch the run properties.

UPDATE azure.container_registry.runs
SET
data__isArchiveEnabled = {{ isArchiveEnabled }}
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND registryName = '{{ registryName }}' --required
AND runId = '{{ runId }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

Lifecycle Methods

Cancel an existing run.

EXEC azure.container_registry.runs.cancel 
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@registryName='{{ registryName }}' --required,
@runId='{{ runId }}' --required
;