archive_versions
Creates, updates, deletes, gets or lists a archive_versions
resource.
Overview
Name | archive_versions |
Type | Resource |
Id | azure.container_registry.archive_versions |
Fields
- vw_archive_versions
- archive_versions
Name | Datatype | Description |
---|---|---|
archiveName | text | field from the properties object |
archiveVersionName | text | field from the properties object |
archive_version_error_message | text | field from the properties object |
packageType | text | field from the properties object |
provisioning_state | text | field from the properties object |
registryName | text | field from the properties object |
resourceGroupName | text | field from the properties object |
subscriptionId | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | The properties of an export pipeline. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | archiveName, archiveVersionName, packageType, registryName, resourceGroupName, subscriptionId | Gets the properties of the archive version. |
list | SELECT | archiveName, packageType, registryName, resourceGroupName, subscriptionId | Lists all archive versions for the specified container registry, repository type and archive name. |
create | INSERT | archiveName, archiveVersionName, packageType, registryName, resourceGroupName, subscriptionId | Creates a archive for a container registry with the specified parameters. |
delete | DELETE | archiveName, archiveVersionName, packageType, registryName, resourceGroupName, subscriptionId | Deletes a archive version from a container registry. |
SELECT
examples
Lists all archive versions for the specified container registry, repository type and archive name.
- vw_archive_versions
- archive_versions
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 }}';
SELECT
properties
FROM azure.container_registry.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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.container_registry.archive_versions (
archiveName,
archiveVersionName,
packageType,
registryName,
resourceGroupName,
subscriptionId
)
SELECT
'{{ archiveName }}',
'{{ archiveVersionName }}',
'{{ packageType }}',
'{{ registryName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}'
;
- name: your_resource_model_name
props: []
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 }}';