Skip to main content

archive_versions

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

Overview

Namearchive_versions
TypeResource
Idazure.container_registry.archive_versions

Fields

NameDatatypeDescription
archiveNametextfield from the properties object
archiveVersionNametextfield from the properties object
archive_version_error_messagetextfield from the properties object
packageTypetextfield from the properties object
provisioning_statetextfield from the properties object
registryNametextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTarchiveName, archiveVersionName, packageType, registryName, resourceGroupName, subscriptionIdGets the properties of the archive version.
listSELECTarchiveName, packageType, registryName, resourceGroupName, subscriptionIdLists all archive versions for the specified container registry, repository type and archive name.
createINSERTarchiveName, archiveVersionName, packageType, registryName, resourceGroupName, subscriptionIdCreates a archive for a container registry with the specified parameters.
deleteDELETEarchiveName, archiveVersionName, packageType, registryName, resourceGroupName, subscriptionIdDeletes a archive version from a container registry.

SELECT examples

Lists all archive versions for the specified container registry, repository type and archive name.

SELECT
archiveName,
archiveVersionName,
archive_version_error_message,
packageType,
provisioning_state,
registryName,
resourceGroupName,
subscriptionId
FROM azure.container_registry.vw_archive_versions
WHERE archiveName = '{{ archiveName }}'
AND packageType = '{{ packageType }}'
AND registryName = '{{ registryName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new archive_versions resource.

/*+ create */
INSERT INTO azure.container_registry.archive_versions (
archiveName,
archiveVersionName,
packageType,
registryName,
resourceGroupName,
subscriptionId
)
SELECT
'{{ archiveName }}',
'{{ archiveVersionName }}',
'{{ packageType }}',
'{{ registryName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}'
;

DELETE example

Deletes the specified archive_versions resource.

/*+ delete */
DELETE FROM azure.container_registry.archive_versions
WHERE archiveName = '{{ archiveName }}'
AND archiveVersionName = '{{ archiveVersionName }}'
AND packageType = '{{ packageType }}'
AND registryName = '{{ registryName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';