Skip to main content

archives

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

Overview

Namearchives
TypeResource
Idazure.container_registry.archives

Fields

NameDatatypeDescription
archiveNametextfield from the properties object
packageTypetextfield from the properties object
package_sourcetextfield from the properties object
provisioning_statetextfield from the properties object
published_versiontextfield from the properties object
registryNametextfield from the properties object
repository_endpointtextfield from the properties object
repository_endpoint_prefixtextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTarchiveName, packageType, registryName, resourceGroupName, subscriptionIdGets the properties of the archive.
listSELECTpackageType, registryName, resourceGroupName, subscriptionIdLists all archives for the specified container registry and package type.
createINSERTarchiveName, packageType, registryName, resourceGroupName, subscriptionIdCreates a archive for a container registry with the specified parameters.
deleteDELETEarchiveName, packageType, registryName, resourceGroupName, subscriptionIdDeletes a archive from a container registry.
updateUPDATEarchiveName, packageType, registryName, resourceGroupName, subscriptionIdUpdates a archive for a container registry with the specified parameters.

SELECT examples

Lists all archives for the specified container registry and package type.

SELECT
archiveName,
packageType,
package_source,
provisioning_state,
published_version,
registryName,
repository_endpoint,
repository_endpoint_prefix,
resourceGroupName,
subscriptionId
FROM azure.container_registry.vw_archives
WHERE 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 archives resource.

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

UPDATE example

Updates a archives resource.

/*+ update */
UPDATE azure.container_registry.archives
SET
properties = '{{ properties }}'
WHERE
archiveName = '{{ archiveName }}'
AND packageType = '{{ packageType }}'
AND registryName = '{{ registryName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified archives resource.

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