task_runs
Creates, updates, deletes, gets or lists a task_runs
resource.
Overview
Name | task_runs |
Type | Resource |
Id | azure.container_registry.task_runs |
Fields
- vw_task_runs
- task_runs
Name | Datatype | Description |
---|---|---|
force_update_tag | text | field from the properties object |
identity | text | Managed identity for the resource. |
location | text | The location of the resource |
provisioning_state | text | field from the properties object |
registryName | text | field from the properties object |
resourceGroupName | text | field from the properties object |
run_request | text | field from the properties object |
run_result | text | field from the properties object |
subscriptionId | text | field from the properties object |
taskRunName | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
identity | object | Managed identity for the resource. |
location | string | The location of the resource |
properties | object | The properties of task run. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | registryName, resourceGroupName, subscriptionId, taskRunName | Gets the detailed information for a given task run. |
list | SELECT | registryName, resourceGroupName, subscriptionId | Lists all the task runs for a specified container registry. |
create | INSERT | registryName, resourceGroupName, subscriptionId, taskRunName | Creates a task run for a container registry with the specified parameters. |
delete | DELETE | registryName, resourceGroupName, subscriptionId, taskRunName | Deletes a specified task run resource. |
update | UPDATE | registryName, resourceGroupName, subscriptionId, taskRunName | Updates a task run with the specified parameters. |
SELECT
examples
Lists all the task runs for a specified container registry.
- vw_task_runs
- task_runs
SELECT
force_update_tag,
identity,
location,
provisioning_state,
registryName,
resourceGroupName,
run_request,
run_result,
subscriptionId,
taskRunName
FROM azure.container_registry.vw_task_runs
WHERE registryName = '{{ registryName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
identity,
location,
properties
FROM azure.container_registry.task_runs
WHERE registryName = '{{ registryName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new task_runs
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.container_registry.task_runs (
registryName,
resourceGroupName,
subscriptionId,
taskRunName,
identity,
properties,
location
)
SELECT
'{{ registryName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ taskRunName }}',
'{{ identity }}',
'{{ properties }}',
'{{ location }}'
;
- name: your_resource_model_name
props:
- name: identity
value:
- name: principalId
value: string
- name: tenantId
value: string
- name: type
value: string
- name: userAssignedIdentities
value: object
- name: properties
value:
- name: provisioningState
value: string
- name: runRequest
value:
- name: type
value: string
- name: isArchiveEnabled
value: boolean
- name: agentPoolName
value: string
- name: logTemplate
value: string
- name: runResult
value:
- name: properties
value:
- name: runId
value: string
- name: status
value: string
- name: lastUpdatedTime
value: string
- name: runType
value: string
- name: agentPoolName
value: string
- name: createTime
value: string
- name: startTime
value: string
- name: finishTime
value: string
- name: outputImages
value:
- - name: registry
value: string
- name: repository
value: string
- name: tag
value: string
- name: digest
value: string
- name: task
value: string
- name: imageUpdateTrigger
value:
- name: id
value: string
- name: timestamp
value: string
- name: images
value:
- - name: registry
value: string
- name: repository
value: string
- name: tag
value: string
- name: digest
value: string
- name: sourceTrigger
value:
- name: id
value: string
- name: eventType
value: string
- name: commitId
value: string
- name: pullRequestId
value: string
- name: repositoryUrl
value: string
- name: branchName
value: string
- name: providerType
value: string
- name: timerTrigger
value:
- name: timerTriggerName
value: string
- name: scheduleOccurrence
value: string
- name: platform
value:
- name: os
value: string
- name: architecture
value: string
- name: variant
value: string
- name: agentConfiguration
value:
- name: cpu
value: integer
- name: sourceRegistryAuth
value: string
- name: customRegistries
value:
- string
- name: runErrorMessage
value: string
- name: updateTriggerToken
value: string
- name: logArtifact
value:
- name: registry
value: string
- name: repository
value: string
- name: tag
value: string
- name: digest
value: string
- name: provisioningState
value: string
- name: isArchiveEnabled
value: boolean
- name: forceUpdateTag
value: string
- name: location
value: string
UPDATE
example
Updates a task_runs
resource.
/*+ update */
UPDATE azure.container_registry.task_runs
SET
identity = '{{ identity }}',
properties = '{{ properties }}',
location = '{{ location }}',
tags = '{{ tags }}'
WHERE
registryName = '{{ registryName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND taskRunName = '{{ taskRunName }}';
DELETE
example
Deletes the specified task_runs
resource.
/*+ delete */
DELETE FROM azure.container_registry.task_runs
WHERE registryName = '{{ registryName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND taskRunName = '{{ taskRunName }}';