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:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the private link resource.
packageSourceobjectThe package source of the archive.
provisioningStatestringThe provisioning state of the archive at the time the operation was called. Known values are: "Creating", "Updating", "Deleting", "Succeeded", "Failed", and "Canceled". (Creating, Updating, Deleting, Succeeded, Failed, Canceled)
publishedVersionstringThe published version of the archive.
repositoryEndpointstring:vartype repository_endpoint: str
repositoryEndpointPrefixstring:vartype repository_endpoint_prefix: str
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, registry_name, package_type, archive_name, subscription_idGets the properties of the archive.
listselectresource_group_name, registry_name, package_type, subscription_idLists all archives for the specified container registry and package type.
createinsertresource_group_name, registry_name, package_type, archive_name, subscription_idCreates a archive for a container registry with the specified parameters.
updateupdateresource_group_name, registry_name, package_type, archive_name, subscription_idUpdates a archive for a container registry with the specified parameters.
deletedeleteresource_group_name, registry_name, package_type, archive_name, subscription_idDeletes 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
archive_namestringThe name of the archive resource. Required.
package_typestringThe package type. Required.
registry_namestringThe name of the container registry. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Gets the properties of the archive.

SELECT
id,
name,
packageSource,
provisioningState,
publishedVersion,
repositoryEndpoint,
repositoryEndpointPrefix,
systemData,
type
FROM azure.container_registry.archives
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND registry_name = '{{ registry_name }}' -- required
AND package_type = '{{ package_type }}' -- required
AND archive_name = '{{ archive_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

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

INSERT INTO azure.container_registry.archives (
properties,
resource_group_name,
registry_name,
package_type,
archive_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ registry_name }}',
'{{ package_type }}',
'{{ archive_name }}',
'{{ subscription_id }}'
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
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND registry_name = '{{ registry_name }}' --required
AND package_type = '{{ package_type }}' --required
AND archive_name = '{{ archive_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

DELETE examples

Deletes a archive from a container registry.

DELETE FROM azure.container_registry.archives
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND registry_name = '{{ registry_name }}' --required
AND package_type = '{{ package_type }}' --required
AND archive_name = '{{ archive_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;