archive_versions
Creates, updates, deletes, gets or lists an archive_versions
resource.
Overview
Name | archive_versions |
Type | Resource |
Id | azure.container_registry.archive_versions |
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. |
properties | object | The properties of the archive. |
systemData | object | Metadata pertaining to creation and last modification 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. |
properties | object | The properties of the archive. |
systemData | object | Metadata pertaining to creation and last modification 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 , packageType , archiveName , archiveVersionName | Gets the properties of the archive version. | |
list | select | subscriptionId , resourceGroupName , registryName , packageType , archiveName | Lists all archive versions for the specified container registry, repository type and archive name. | |
create | insert | subscriptionId , resourceGroupName , registryName , packageType , archiveName , archiveVersionName | Creates a archive for a container registry with the specified parameters. | |
delete | delete | subscriptionId , resourceGroupName , registryName , packageType , archiveName , archiveVersionName | Deletes a archive version from a container registry. |
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 |
---|---|---|
archiveName | string | The name of the archive resource. |
archiveVersionName | string | The name of the archive version resource. |
packageType | string | The type of the package resource. |
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. |
SELECT
examples
- get
- list
Gets the properties of the archive version.
SELECT
id,
name,
properties,
systemData,
type
FROM azure.container_registry.archive_versions
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND registryName = '{{ registryName }}' -- required
AND packageType = '{{ packageType }}' -- required
AND archiveName = '{{ archiveName }}' -- required
AND archiveVersionName = '{{ archiveVersionName }}' -- required
;
Lists all archive versions for the specified container registry, repository type and archive name.
SELECT
id,
name,
properties,
systemData,
type
FROM azure.container_registry.archive_versions
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND registryName = '{{ registryName }}' -- required
AND packageType = '{{ packageType }}' -- required
AND archiveName = '{{ archiveName }}' -- required
;
INSERT
examples
- create
- Manifest
Creates a archive for a container registry with the specified parameters.
INSERT INTO azure.container_registry.archive_versions (
subscriptionId,
resourceGroupName,
registryName,
packageType,
archiveName,
archiveVersionName
)
SELECT
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ registryName }}',
'{{ packageType }}',
'{{ archiveName }}',
'{{ archiveVersionName }}'
RETURNING
id,
name,
properties,
systemData,
type
;
# Description fields are for documentation purposes
- name: archive_versions
props:
- name: subscriptionId
value: string (uuid)
description: Required parameter for the archive_versions resource.
- name: resourceGroupName
value: string
description: Required parameter for the archive_versions resource.
- name: registryName
value: string
description: Required parameter for the archive_versions resource.
- name: packageType
value: string
description: Required parameter for the archive_versions resource.
- name: archiveName
value: string
description: Required parameter for the archive_versions resource.
- name: archiveVersionName
value: string
description: Required parameter for the archive_versions resource.
DELETE
examples
- delete
Deletes a archive version from a container registry.
DELETE FROM azure.container_registry.archive_versions
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND registryName = '{{ registryName }}' --required
AND packageType = '{{ packageType }}' --required
AND archiveName = '{{ archiveName }}' --required
AND archiveVersionName = '{{ archiveVersionName }}' --required
;