tasks
Creates, updates, deletes, gets or lists a tasks
resource.
Overview
Name | tasks |
Type | Resource |
Id | azure.container_registry.tasks |
Fields
- vw_tasks
- tasks
Name | Datatype | Description |
---|---|---|
id | text | Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" |
name | text | The name of the resource |
agent_configuration | text | field from the properties object |
agent_pool_name | text | field from the properties object |
creation_date | text | field from the properties object |
credentials | text | field from the properties object |
identity | text | Managed identity for the resource. |
is_system_task | text | field from the properties object |
log_template | text | field from the properties object |
platform | text | field from the properties object |
provisioning_state | text | field from the properties object |
registryName | text | field from the properties object |
resourceGroupName | text | field from the properties object |
status | text | field from the properties object |
step | text | field from the properties object |
subscriptionId | text | field from the properties object |
system_data | text | field from the properties object |
taskName | text | field from the properties object |
timeout | text | field from the properties object |
trigger | text | field from the properties object |
type | text | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
Name | Datatype | Description |
---|---|---|
id | string | Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" |
name | string | The name of the resource |
identity | object | Managed identity for the resource. |
properties | object | The properties of a task. |
systemData | object | Metadata pertaining to creation and last modification of the resource. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | registryName, resourceGroupName, subscriptionId, taskName | Get the properties of a specified task. |
list | SELECT | registryName, resourceGroupName, subscriptionId | Lists all the tasks for a specified container registry. |
create | INSERT | registryName, resourceGroupName, subscriptionId, taskName | Creates a task for a container registry with the specified parameters. |
delete | DELETE | registryName, resourceGroupName, subscriptionId, taskName | Deletes a specified task. |
update | UPDATE | registryName, resourceGroupName, subscriptionId, taskName | Updates a task with the specified parameters. |
SELECT
examples
Lists all the tasks for a specified container registry.
- vw_tasks
- tasks
SELECT
id,
name,
agent_configuration,
agent_pool_name,
creation_date,
credentials,
identity,
is_system_task,
log_template,
platform,
provisioning_state,
registryName,
resourceGroupName,
status,
step,
subscriptionId,
system_data,
taskName,
timeout,
trigger,
type
FROM azure.container_registry.vw_tasks
WHERE registryName = '{{ registryName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
id,
name,
identity,
properties,
systemData,
type
FROM azure.container_registry.tasks
WHERE registryName = '{{ registryName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new tasks
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.container_registry.tasks (
registryName,
resourceGroupName,
subscriptionId,
taskName,
identity,
properties
)
SELECT
'{{ registryName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ taskName }}',
'{{ identity }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: id
value: string
- name: name
value: string
- name: type
value: string
- name: systemData
value:
- name: createdBy
value: string
- name: createdByType
value: string
- name: createdAt
value: string
- name: lastModifiedBy
value: string
- name: lastModifiedByType
value: string
- name: lastModifiedAt
value: string
- 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: creationDate
value: string
- name: status
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: agentPoolName
value: string
- name: timeout
value: integer
- name: step
value:
- name: type
value: string
- name: baseImageDependencies
value:
- - name: type
value: string
- name: registry
value: string
- name: repository
value: string
- name: tag
value: string
- name: digest
value: string
- name: contextPath
value: string
- name: contextAccessToken
value: string
- name: trigger
value:
- name: timerTriggers
value:
- - name: schedule
value: string
- name: status
value: string
- name: name
value: string
- name: sourceTriggers
value:
- - name: sourceRepository
value:
- name: sourceControlType
value: string
- name: repositoryUrl
value: string
- name: branch
value: string
- name: sourceControlAuthProperties
value:
- name: tokenType
value: string
- name: token
value: string
- name: refreshToken
value: string
- name: scope
value: string
- name: expiresIn
value: integer
- name: sourceTriggerEvents
value:
- string
- name: status
value: string
- name: name
value: string
- name: baseImageTrigger
value:
- name: baseImageTriggerType
value: string
- name: updateTriggerEndpoint
value: string
- name: updateTriggerPayloadType
value: string
- name: status
value: string
- name: name
value: string
- name: credentials
value:
- name: sourceRegistry
value:
- name: loginMode
value: string
- name: customRegistries
value: object
- name: logTemplate
value: string
- name: isSystemTask
value: boolean
UPDATE
example
Updates a tasks
resource.
/*+ update */
UPDATE azure.container_registry.tasks
SET
identity = '{{ identity }}',
properties = '{{ properties }}',
tags = '{{ tags }}'
WHERE
registryName = '{{ registryName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND taskName = '{{ taskName }}';
DELETE
example
Deletes the specified tasks
resource.
/*+ delete */
DELETE FROM azure.container_registry.tasks
WHERE registryName = '{{ registryName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND taskName = '{{ taskName }}';