archives
Creates, updates, deletes, gets or lists a archives
resource.
Overview
Name | archives |
Type | Resource |
Id | azure.container_registry.archives |
Fields
- vw_archives
- archives
Name | Datatype | Description |
---|---|---|
archiveName | text | field from the properties object |
packageType | text | field from the properties object |
package_source | text | field from the properties object |
provisioning_state | text | field from the properties object |
published_version | text | field from the properties object |
registryName | text | field from the properties object |
repository_endpoint | text | field from the properties object |
repository_endpoint_prefix | 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 a archive. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | archiveName, packageType, registryName, resourceGroupName, subscriptionId | Gets the properties of the archive. |
list | SELECT | packageType, registryName, resourceGroupName, subscriptionId | Lists all archives for the specified container registry and package type. |
create | INSERT | archiveName, packageType, registryName, resourceGroupName, subscriptionId | Creates a archive for a container registry with the specified parameters. |
delete | DELETE | archiveName, packageType, registryName, resourceGroupName, subscriptionId | Deletes a archive from a container registry. |
update | UPDATE | archiveName, packageType, registryName, resourceGroupName, subscriptionId | Updates a archive for a container registry with the specified parameters. |
SELECT
examples
Lists all archives for the specified container registry and package type.
- vw_archives
- archives
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 }}';
SELECT
properties
FROM azure.container_registry.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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.container_registry.archives (
archiveName,
packageType,
registryName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ archiveName }}',
'{{ packageType }}',
'{{ registryName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: packageSource
value:
- name: type
value: string
- name: url
value: string
- name: publishedVersion
value: string
- name: repositoryEndpointPrefix
value: string
- name: repositoryEndpoint
value: string
- name: provisioningState
value: string
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 }}';