Gallery Image Versions - Get

Retrieves information about a gallery Image Version.

HTTP
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}?api-version=2018-06-01
HTTP
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}?$expand=ReplicationStatus&api-version=2018-06-01

URI Parameters

Name In Required Type Description
galleryImageName
path True

string

The name of the gallery Image Definition in which the Image Version resides.

galleryImageVersionName
path True

string

The name of the gallery Image Version to be retrieved.

galleryName
path True

string

The name of the Shared Image Gallery in which the Image Definition resides.

resourceGroupName
path True

string

The name of the resource group.

subscriptionId
path True

string

Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

api-version
query True

string

Client Api Version.

$expand
query

ReplicationStatusTypes

The expand expression to apply on the operation.

Responses

Name Type Description
200 OK

GalleryImageVersion

OK

Other Status Codes

CloudError

Error response describing why the operation failed.

Security

azure_auth

Azure Active Directory OAuth2 Flow

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation impersonate your user account

Examples

Sample request

HTTP
GET https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName/images/myGalleryImageName/versions/1.0.0?$expand=ReplicationStatus&api-version=2018-06-01

Sample response

JSON
{
  "properties": {
    "publishingProfile": {
      "targetRegions": [
        {
          "name": "West US",
          "regionalReplicaCount": 1
        },
        {
          "name": "East US",
          "regionalReplicaCount": 2
        }
      ],
      "source": {
        "managedImage": {
          "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}"
        }
      },
      "replicaCount": 1,
      "publishedDate": "2018-01-01T00:00:00Z"
    },
    "storageProfile": {
      "osDiskImage": {
        "sizeInGB": 10,
        "hostCaching": "ReadOnly"
      },
      "dataDiskImages": [
        {
          "lun": 1,
          "sizeInGB": 10,
          "hostCaching": "None"
        }
      ]
    },
    "replicationStatus": {
      "aggregatedState": "Completed",
      "summary": [
        {
          "region": "West US",
          "state": "Completed",
          "details": "",
          "progress": 100
        },
        {
          "region": "East US",
          "state": "Completed",
          "details": "",
          "progress": 100
        }
      ]
    },
    "provisioningState": "Succeeded"
  },
  "location": "West US",
  "name": "1.0.0"
}

Sample request

HTTP
GET https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName/images/myGalleryImageName/versions/1.0.0?$expand=ReplicationStatus&api-version=2018-06-01

Sample response

JSON
{
  "properties": {
    "publishingProfile": {
      "targetRegions": [
        {
          "name": "West US",
          "regionalReplicaCount": 1
        },
        {
          "name": "East US",
          "regionalReplicaCount": 2
        }
      ],
      "source": {
        "managedImage": {
          "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}"
        }
      },
      "replicaCount": 1,
      "publishedDate": "2018-01-01T00:00:00Z"
    },
    "storageProfile": {
      "osDiskImage": {
        "sizeInGB": 10,
        "hostCaching": "ReadOnly"
      },
      "dataDiskImages": [
        {
          "lun": 1,
          "sizeInGB": 10,
          "hostCaching": "None"
        }
      ]
    },
    "provisioningState": "Succeeded"
  },
  "location": "West US",
  "name": "1.0.0"
}

Definitions

Name Description
AggregatedReplicationState

This is the aggregated replication status based on all the regional replication status flags.

ApiError

Api error.

ApiErrorBase

Api error base.

CloudError

An error response from the Gallery service.

GalleryArtifactSource

The source image from which the Image Version is going to be created.

GalleryDataDiskImage

This is the data disk image.

GalleryImageVersion

Specifies information about the gallery Image Version that you want to create or update.

GalleryImageVersionPublishingProfile

The publishing profile of a gallery Image Version.

GalleryImageVersionStorageProfile

This is the storage profile of a gallery Image Version.

GalleryOSDiskImage

This is the OS disk image.

HostCaching

The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'

InnerError

Inner error details.

ManagedArtifact

The managed artifact.

RegionalReplicationStatus

This is the regional replication status.

ReplicationState

This is the regional replication state.

ReplicationStatus

This is the replication status of the gallery Image Version.

ReplicationStatusTypes

The expand expression to apply on the operation.

TargetRegion

Describes the target region information.

AggregatedReplicationState

This is the aggregated replication status based on all the regional replication status flags.

Value Description
Completed
Failed
InProgress
Unknown

ApiError

Api error.

Name Type Description
code

string

The error code.

details

ApiErrorBase[]

The Api error details

innererror

InnerError

The Api inner error

message

string

The error message.

target

string

The target of the particular error.

ApiErrorBase

Api error base.

Name Type Description
code

string

The error code.

message

string

The error message.

target

string

The target of the particular error.

CloudError

An error response from the Gallery service.

Name Type Description
error

ApiError

Api error.

GalleryArtifactSource

The source image from which the Image Version is going to be created.

Name Type Description
managedImage

ManagedArtifact

The managed artifact.

GalleryDataDiskImage

This is the data disk image.

Name Type Description
hostCaching

HostCaching

The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'

lun

integer

This property specifies the logical unit number of the data disk. This value is used to identify data disks within the Virtual Machine and therefore must be unique for each data disk attached to the Virtual Machine.

sizeInGB

integer

This property indicates the size of the VHD to be created.

GalleryImageVersion

Specifies information about the gallery Image Version that you want to create or update.

Name Type Description
id

string

Resource Id

location

string

Resource location

name

string

Resource name

properties.provisioningState enum:
  • Creating
  • Deleting
  • Failed
  • Migrating
  • Succeeded
  • Updating

The current state of the gallery Image Version.
The provisioning state, which only appears in the response.

properties.publishingProfile

GalleryImageVersionPublishingProfile

The publishing profile of a gallery Image Version.

properties.replicationStatus

ReplicationStatus

This is the replication status of the gallery Image Version.

properties.storageProfile

GalleryImageVersionStorageProfile

This is the storage profile of a gallery Image Version.

tags

object

Resource tags

type

string

Resource type

GalleryImageVersionPublishingProfile

The publishing profile of a gallery Image Version.

Name Type Description
endOfLifeDate

string

The end of life date of the gallery Image Version. This property can be used for decommissioning purposes. This property is updatable.

excludeFromLatest

boolean

If set to true, Virtual Machines deployed from the latest version of the Image Definition won't use this Image Version.

publishedDate

string

The timestamp for when the gallery Image Version is published.

replicaCount

integer

The number of replicas of the Image Version to be created per region. This property would take effect for a region when regionalReplicaCount is not specified. This property is updatable.

source

GalleryArtifactSource

The source image from which the Image Version is going to be created.

targetRegions

TargetRegion[]

The target regions where the Image Version is going to be replicated to. This property is updatable.

GalleryImageVersionStorageProfile

This is the storage profile of a gallery Image Version.

Name Type Description
dataDiskImages

GalleryDataDiskImage[]

A list of data disk images.

osDiskImage

GalleryOSDiskImage

This is the OS disk image.

GalleryOSDiskImage

This is the OS disk image.

Name Type Description
hostCaching

HostCaching

The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'

sizeInGB

integer

This property indicates the size of the VHD to be created.

HostCaching

The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'

Value Description
None
ReadOnly
ReadWrite

InnerError

Inner error details.

Name Type Description
errordetail

string

The internal error message or exception dump.

exceptiontype

string

The exception type.

ManagedArtifact

The managed artifact.

Name Type Description
id

string

The managed artifact id.

RegionalReplicationStatus

This is the regional replication status.

Name Type Description
details

string

The details of the replication status.

progress

integer

It indicates progress of the replication job.

region

string

The region to which the gallery Image Version is being replicated to.

state

ReplicationState

This is the regional replication state.

ReplicationState

This is the regional replication state.

Value Description
Completed
Failed
Replicating
Unknown

ReplicationStatus

This is the replication status of the gallery Image Version.

Name Type Description
aggregatedState

AggregatedReplicationState

This is the aggregated replication status based on all the regional replication status flags.

summary

RegionalReplicationStatus[]

This is a summary of replication status for each region.

ReplicationStatusTypes

The expand expression to apply on the operation.

Value Description
ReplicationStatus

TargetRegion

Describes the target region information.

Name Type Description
name

string

The name of the region.

regionalReplicaCount

integer

The number of replicas of the Image Version to be created per region. This property is updatable.