image_versions
Creates, updates, deletes, gets or lists an image_versions resource.
Overview
| Name | image_versions |
| Type | Resource |
| Id | azure.devcenter.image_versions |
Fields
The following fields are returned by SELECT queries:
- get
- list_by_image
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". # pylint: disable=line-too-long |
name | string | The name of the resource. |
excludeFromLatest | boolean | If the version should be excluded from being treated as the latest version. |
osDiskImageSizeInGb | integer | The size of the OS disk image, in GB. |
provisioningState | string | The provisioning state of the resource. Known values are: "NotSpecified", "Accepted", "Running", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "Succeeded", "Failed", "Canceled", "MovingResources", "TransientFailure", "RolloutInProgress", and "StorageProvisioningFailed". |
publishedDate | string (date-time) | The datetime that the backing image version was published. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". # pylint: disable=line-too-long |
name | string | The name of the resource. |
excludeFromLatest | boolean | If the version should be excluded from being treated as the latest version. |
osDiskImageSizeInGb | integer | The size of the OS disk image, in GB. |
provisioningState | string | The provisioning state of the resource. Known values are: "NotSpecified", "Accepted", "Running", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "Succeeded", "Failed", "Canceled", "MovingResources", "TransientFailure", "RolloutInProgress", and "StorageProvisioningFailed". |
publishedDate | string (date-time) | The datetime that the backing image version was published. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | resource_group_name, dev_center_name, gallery_name, image_name, version_name, subscription_id | Gets an image version. | |
list_by_image | select | resource_group_name, dev_center_name, gallery_name, image_name, subscription_id | Lists versions for an image. |
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.
| Name | Datatype | Description |
|---|---|---|
dev_center_name | string | The name of the devcenter. Required. |
gallery_name | string | The name of the gallery. Required. |
image_name | string | The name of the image. Required. |
resource_group_name | string | The name of the resource group. The name is case insensitive. Required. |
subscription_id | string | |
version_name | string | The version of the image. Required. |
SELECT examples
- get
- list_by_image
Gets an image version.
SELECT
id,
name,
excludeFromLatest,
osDiskImageSizeInGb,
provisioningState,
publishedDate,
systemData,
type
FROM azure.devcenter.image_versions
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND dev_center_name = '{{ dev_center_name }}' -- required
AND gallery_name = '{{ gallery_name }}' -- required
AND image_name = '{{ image_name }}' -- required
AND version_name = '{{ version_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
Lists versions for an image.
SELECT
id,
name,
excludeFromLatest,
osDiskImageSizeInGb,
provisioningState,
publishedDate,
systemData,
type
FROM azure.devcenter.image_versions
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND dev_center_name = '{{ dev_center_name }}' -- required
AND gallery_name = '{{ gallery_name }}' -- required
AND image_name = '{{ image_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;