registries
Creates, updates, deletes, gets or lists a registries resource.
Overview
| Name | registries |
| Type | Resource |
| Id | azure.container_registry_tasks.registries |
Fields
The following fields are returned by SELECT queries:
- get_build_source_upload_url
| Name | Datatype | Description |
|---|---|---|
relativePath | string | The relative path to the source. This is used to submit the subsequent queue build request. |
uploadUrl | string | The URL where the client can upload the source. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_build_source_upload_url | select | resource_group_name, registry_name, subscription_id | Get the upload location for the user to be able to upload the source. | |
schedule_run | exec | resource_group_name, registry_name, subscription_id, type | Schedules a new run based on the request parameters and add it to the run queue. |
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 |
|---|---|---|
registry_name | string | The name of the container registry. Required. |
resource_group_name | string | The name of the resource group. The name is case insensitive. Required. |
subscription_id | string |
SELECT examples
- get_build_source_upload_url
Get the upload location for the user to be able to upload the source.
SELECT
relativePath,
uploadUrl
FROM azure.container_registry_tasks.registries
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND registry_name = '{{ registry_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
Lifecycle Methods
- schedule_run
Schedules a new run based on the request parameters and add it to the run queue.
EXEC azure.container_registry_tasks.registries.schedule_run
@resource_group_name='{{ resource_group_name }}' --required,
@registry_name='{{ registry_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"type": "{{ type }}",
"isArchiveEnabled": {{ isArchiveEnabled }},
"agentPoolName": "{{ agentPoolName }}",
"logTemplate": "{{ logTemplate }}"
}'
;