Gallery Image Versions - Get
Retrieves information about a gallery Image Version.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}?api-version=2018-06-01
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
Name | In | Required | Type | Description |
---|---|---|---|---|
gallery
|
path | True |
string |
The name of the gallery Image Definition in which the Image Version resides. |
gallery
|
path | True |
string |
The name of the gallery Image Version to be retrieved. |
gallery
|
path | True |
string |
The name of the Shared Image Gallery in which the Image Definition resides. |
resource
|
path | True |
string |
The name of the resource group. |
subscription
|
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 |
The expand expression to apply on the operation. |
Name | Type | Description |
---|---|---|
200 OK |
OK |
|
Other Status Codes |
Error response describing why the operation failed. |
Azure Active Directory OAuth2 Flow
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Name | Description |
---|---|
user_impersonation | impersonate your user account |
Sample request
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
{
"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
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
{
"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"
}
Name | Description |
---|---|
Aggregated |
This is the aggregated replication status based on all the regional replication status flags. |
Api |
Api error. |
Api |
Api error base. |
Cloud |
An error response from the Gallery service. |
Gallery |
The source image from which the Image Version is going to be created. |
Gallery |
This is the data disk image. |
Gallery |
Specifies information about the gallery Image Version that you want to create or update. |
Gallery |
The publishing profile of a gallery Image Version. |
Gallery |
This is the storage profile of a gallery Image Version. |
Gallery |
This is the OS disk image. |
Host |
The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite' |
Inner |
Inner error details. |
Managed |
The managed artifact. |
Regional |
This is the regional replication status. |
Replication |
This is the regional replication state. |
Replication |
This is the replication status of the gallery Image Version. |
Replication |
The expand expression to apply on the operation. |
Target |
Describes the target region information. |
This is the aggregated replication status based on all the regional replication status flags.
Value | Description |
---|---|
Completed | |
Failed | |
InProgress | |
Unknown |
Api error.
Name | Type | Description |
---|---|---|
code |
string |
The error code. |
details |
The Api error details |
|
innererror |
The Api inner error |
|
message |
string |
The error message. |
target |
string |
The target of the particular error. |
Api error base.
Name | Type | Description |
---|---|---|
code |
string |
The error code. |
message |
string |
The error message. |
target |
string |
The target of the particular error. |
An error response from the Gallery service.
Name | Type | Description |
---|---|---|
error |
Api error. |
The source image from which the Image Version is going to be created.
Name | Type | Description |
---|---|---|
managedImage |
The managed artifact. |
This is the data disk image.
Name | Type | Description |
---|---|---|
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. |
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:
|
The current state of the gallery Image Version. |
properties.publishingProfile |
The publishing profile of a gallery Image Version. |
|
properties.replicationStatus |
This is the replication status of the gallery Image Version. |
|
properties.storageProfile |
This is the storage profile of a gallery Image Version. |
|
tags |
object |
Resource tags |
type |
string |
Resource type |
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 |
The source image from which the Image Version is going to be created. |
|
targetRegions |
The target regions where the Image Version is going to be replicated to. This property is updatable. |
This is the storage profile of a gallery Image Version.
Name | Type | Description |
---|---|---|
dataDiskImages |
A list of data disk images. |
|
osDiskImage |
This is the OS disk image. |
This is the OS disk image.
Name | Type | Description |
---|---|---|
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. |
The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'
Value | Description |
---|---|
None | |
ReadOnly | |
ReadWrite |
Inner error details.
Name | Type | Description |
---|---|---|
errordetail |
string |
The internal error message or exception dump. |
exceptiontype |
string |
The exception type. |
The managed artifact.
Name | Type | Description |
---|---|---|
id |
string |
The managed artifact id. |
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 |
This is the regional replication state. |
This is the regional replication state.
Value | Description |
---|---|
Completed | |
Failed | |
Replicating | |
Unknown |
This is the replication status of the gallery Image Version.
Name | Type | Description |
---|---|---|
aggregatedState |
This is the aggregated replication status based on all the regional replication status flags. |
|
summary |
This is a summary of replication status for each region. |
The expand expression to apply on the operation.
Value | Description |
---|---|
ReplicationStatus |
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. |