Skip to main content

archives

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

Overview

Namearchives
TypeResource
Idazure.container_registry.archives

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, archiveNameGets the properties of the archive.
listselectsubscriptionId, resourceGroupName, registryName, packageTypeLists all archives for the specified container registry and package type.
createinsertsubscriptionId, resourceGroupName, registryName, packageType, archiveNameCreates a archive for a container registry with the specified parameters.
updateupdatesubscriptionId, resourceGroupName, registryName, packageType, archiveNameUpdates a archive for a container registry with the specified parameters.
deletedeletesubscriptionId, resourceGroupName, registryName, packageType, archiveNameDeletes a archive 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.
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.

SELECT
id,
name,
properties,
systemData,
type
FROM azure.container_registry.archives
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND registryName = '{{ registryName }}' -- required
AND packageType = '{{ packageType }}' -- required
AND archiveName = '{{ archiveName }}' -- required
;

INSERT examples

Creates a archive for a container registry with the specified parameters.

INSERT INTO azure.container_registry.archives (
data__properties,
subscriptionId,
resourceGroupName,
registryName,
packageType,
archiveName
)
SELECT
'{{ properties }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ registryName }}',
'{{ packageType }}',
'{{ archiveName }}'
RETURNING
id,
name,
properties,
systemData,
type
;

UPDATE examples

Updates a archive for a container registry with the specified parameters.

UPDATE azure.container_registry.archives
SET
data__properties = '{{ properties }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND registryName = '{{ registryName }}' --required
AND packageType = '{{ packageType }}' --required
AND archiveName = '{{ archiveName }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

DELETE examples

Deletes a archive from a container registry.

DELETE FROM azure.container_registry.archives
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND registryName = '{{ registryName }}' --required
AND packageType = '{{ packageType }}' --required
AND archiveName = '{{ archiveName }}' --required
;