tasks
Creates, updates, deletes, gets or lists a tasks
resource.
Overview
Name | tasks |
Type | Resource |
Id | azure.container_registry.tasks |
Fields
The following fields are returned by SELECT
queries:
- get
- list
The request was successful; the request was well-formed and received properly.
Name | Datatype | Description |
---|---|---|
id | string | The resource ID. |
name | string | The name of the resource. |
identity | object | Identity for the resource. |
location | string | The location of the resource. This cannot be changed after the resource is created. |
properties | object | The properties of a task. |
systemData | object | Metadata pertaining to creation and last modification of the resource. |
tags | object | The tags of the resource. |
type | string | The type of the resource. |
The request was successful; the request was well-formed and received properly.
Name | Datatype | Description |
---|---|---|
id | string | The resource ID. |
name | string | The name of the resource. |
identity | object | Identity for the resource. |
location | string | The location of the resource. This cannot be changed after the resource is created. |
properties | object | The properties of a task. |
systemData | object | Metadata pertaining to creation and last modification of the resource. |
tags | object | The tags of the resource. |
type | string | The type of the resource. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | subscriptionId , resourceGroupName , registryName , taskName | Get the properties of a specified task. | |
list | select | subscriptionId , resourceGroupName , registryName | Lists all the tasks for a specified container registry. | |
create | insert | subscriptionId , resourceGroupName , registryName , taskName | Creates a task for a container registry with the specified parameters. | |
update | update | subscriptionId , resourceGroupName , registryName , taskName | Updates a task with the specified parameters. | |
delete | delete | subscriptionId , resourceGroupName , registryName , taskName | Deletes a specified task. |
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.
Name | Datatype | Description |
---|---|---|
registryName | string | The name of the container registry. |
resourceGroupName | string | The name of the resource group. The name is case insensitive. |
subscriptionId | string (uuid) | The ID of the target subscription. The value must be an UUID. |
taskName | string | The name of the container registry task. |
SELECT
examples
- get
- list
Get the properties of a specified task.
SELECT
id,
name,
identity,
location,
properties,
systemData,
tags,
type
FROM azure.container_registry.tasks
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND registryName = '{{ registryName }}' -- required
AND taskName = '{{ taskName }}' -- required
;
Lists all the tasks for a specified container registry.
SELECT
id,
name,
identity,
location,
properties,
systemData,
tags,
type
FROM azure.container_registry.tasks
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND registryName = '{{ registryName }}' -- required
;
INSERT
examples
- create
- Manifest
Creates a task for a container registry with the specified parameters.
INSERT INTO azure.container_registry.tasks (
data__location,
data__tags,
data__identity,
data__properties,
subscriptionId,
resourceGroupName,
registryName,
taskName
)
SELECT
'{{ location }}',
'{{ tags }}',
'{{ identity }}',
'{{ properties }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ registryName }}',
'{{ taskName }}'
RETURNING
id,
name,
identity,
location,
properties,
systemData,
tags,
type
;
# Description fields are for documentation purposes
- name: tasks
props:
- name: subscriptionId
value: string (uuid)
description: Required parameter for the tasks resource.
- name: resourceGroupName
value: string
description: Required parameter for the tasks resource.
- name: registryName
value: string
description: Required parameter for the tasks resource.
- name: taskName
value: string
description: Required parameter for the tasks resource.
- name: location
value: string
description: |
The location of the resource. This cannot be changed after the resource is created.
- name: tags
value: object
description: |
The tags of the resource.
- name: identity
value: object
description: |
Identity for the resource.
- name: properties
value: object
description: |
The properties of a task.
UPDATE
examples
- update
Updates a task with the specified parameters.
UPDATE azure.container_registry.tasks
SET
data__identity = '{{ identity }}',
data__properties = '{{ properties }}',
data__tags = '{{ tags }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND registryName = '{{ registryName }}' --required
AND taskName = '{{ taskName }}' --required
RETURNING
id,
name,
identity,
location,
properties,
systemData,
tags,
type;
DELETE
examples
- delete
Deletes a specified task.
DELETE FROM azure.container_registry.tasks
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND registryName = '{{ registryName }}' --required
AND taskName = '{{ taskName }}' --required
;