Skip to main content

archive_versions

Creates, updates, deletes, gets or lists an archive_versions resource.

Overview

Namearchive_versions
TypeResource
Idazure.container_registry.archive_versions

Fields

The following fields are returned by SELECT queries:

The request was successful; the request was well-formed and received properly.

NameDatatypeDescription
idstringThe resource ID.
namestringThe name of the resource.
propertiesobjectThe properties of the archive.
systemDataobjectMetadata pertaining to creation and last modification of the resource.
typestringThe type of the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, registryName, packageType, archiveName, archiveVersionNameGets the properties of the archive version.
listselectsubscriptionId, resourceGroupName, registryName, packageType, archiveNameLists all archive versions for the specified container registry, repository type and archive name.
createinsertsubscriptionId, resourceGroupName, registryName, packageType, archiveName, archiveVersionNameCreates a archive for a container registry with the specified parameters.
deletedeletesubscriptionId, resourceGroupName, registryName, packageType, archiveName, archiveVersionNameDeletes 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.

NameDatatypeDescription
archiveNamestringThe name of the archive resource.
archiveVersionNamestringThe name of the archive version resource.
packageTypestringThe type of the package resource.
registryNamestringThe name of the container registry.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.

SELECT examples

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
;

INSERT examples

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
;

DELETE examples

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
;