Gallery Images - List By Gallery
List gallery image definitions in a gallery.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images?api-version=2024-03-03
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
gallery
|
path | True |
string |
The name of the Shared Image Gallery. |
resource
|
path | True |
string minLength: 1maxLength: 90 |
The name of the resource group. The name is case insensitive. |
subscription
|
path | True |
string minLength: 1 |
The ID of the target subscription. |
api-version
|
query | True |
string minLength: 1 |
The API version to use for this operation. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
Azure operation completed successfully. |
|
Other Status Codes |
An unexpected error response. |
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
List gallery images in a gallery.
Sample request
GET https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName/images?api-version=2024-03-03
Sample response
{
"value": [
{
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/locations/westus/Galleries/myGalleryName/Images/myGalleryImageName",
"properties": {
"osType": "Windows",
"osState": "Generalized",
"hyperVGeneration": "V1",
"identifier": {
"publisher": "myPublisherName",
"offer": "myOfferName",
"sku": "mySkuName"
},
"provisioningState": "Succeeded"
},
"location": "West US",
"name": "myGalleryImageName"
}
],
"nextLink": "http://svchost:99/subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName/images?$skiptoken=token/Subscriptions/subscriptionId/ResourceGroups/myResourceGroup/galleries/myGalleryName/images/myGalleryImageName"
}
Definitions
Name | Description |
---|---|
Api |
Api error. |
Api |
Api error base. |
Architecture |
The architecture of the image. Applicable to OS disks only. |
Cloud |
An error response from the Compute service. |
created |
The type of identity that created the resource. |
Disallowed |
Describes the disallowed disk types. |
Gallery |
Specifies information about the gallery image definition that you want to create or update. |
Gallery |
A feature for gallery image. |
Gallery |
This is the gallery image definition identifier. |
Gallery |
The List Gallery Images operation response. |
Gallery |
The provisioning state, which only appears in the response. |
Hyper |
The hypervisor generation of the Virtual Machine. Applicable to OS disks only. |
Image |
Describes the gallery image definition purchase plan. This is used by marketplace images. |
Inner |
Inner error details. |
Operating |
This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'. |
Operating |
This property allows you to specify the supported type of the OS that application is built for. Possible values are: Windows, Linux. |
Recommended |
The properties describe the recommended machine configuration for this Image Definition. These properties are updatable. |
Resource |
Describes the resource range. |
system |
Metadata pertaining to creation and last modification of the resource. |
ApiError
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. |
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. |
Architecture
The architecture of the image. Applicable to OS disks only.
Value | Description |
---|---|
x64 | |
Arm64 |
CloudError
An error response from the Compute service.
Name | Type | Description |
---|---|---|
error |
Api error. |
createdByType
The type of identity that created the resource.
Value | Description |
---|---|
User | |
Application | |
ManagedIdentity | |
Key |
Disallowed
Describes the disallowed disk types.
Name | Type | Description |
---|---|---|
diskTypes |
string[] |
A list of disk types. |
GalleryImage
Specifies information about the gallery image definition that you want to create or update.
Name | Type | Description |
---|---|---|
id |
string |
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
location |
string |
The geo-location where the resource lives |
name |
string |
The name of the resource |
properties.allowUpdateImage |
boolean |
Optional. Must be set to true if the gallery image features are being updated. |
properties.architecture |
The architecture of the image. Applicable to OS disks only. |
|
properties.description |
string |
The description of this gallery image definition resource. This property is updatable. |
properties.disallowed |
Describes the disallowed disk types. |
|
properties.endOfLifeDate |
string (date-time) |
The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property is updatable. |
properties.eula |
string |
The Eula agreement for the gallery image definition. |
properties.features |
A list of gallery image features. |
|
properties.hyperVGeneration |
The hypervisor generation of the Virtual Machine. Applicable to OS disks only. |
|
properties.identifier |
This is the gallery image definition identifier. |
|
properties.osState |
This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'. |
|
properties.osType |
This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. Possible values are: Windows, Linux. |
|
properties.privacyStatementUri |
string |
The privacy statement uri. |
properties.provisioningState |
The provisioning state, which only appears in the response. |
|
properties.purchasePlan |
Describes the gallery image definition purchase plan. This is used by marketplace images. |
|
properties.recommended |
The properties describe the recommended machine configuration for this Image Definition. These properties are updatable. |
|
properties.releaseNoteUri |
string |
The release note uri. |
systemData |
Azure Resource Manager metadata containing createdBy and modifiedBy information. |
|
tags |
object |
Resource tags. |
type |
string |
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
GalleryImageFeature
A feature for gallery image.
Name | Type | Description |
---|---|---|
name |
string |
The name of the gallery image feature. |
startsAtVersion |
string |
The minimum gallery image version which supports this feature. |
value |
string |
The value of the gallery image feature. |
GalleryImageIdentifier
This is the gallery image definition identifier.
Name | Type | Description |
---|---|---|
offer |
string |
The name of the gallery image definition offer. |
publisher |
string |
The name of the gallery image definition publisher. |
sku |
string |
The name of the gallery image definition SKU. |
GalleryImageList
The List Gallery Images operation response.
Name | Type | Description |
---|---|---|
nextLink |
string (uri) |
The uri to fetch the next page of Image Definitions in the Shared Image Gallery. Call ListNext() with this to fetch the next page of gallery image definitions. |
value |
A list of Shared Image Gallery images. |
GalleryProvisioningState
The provisioning state, which only appears in the response.
Value | Description |
---|---|
Creating | |
Updating | |
Failed | |
Succeeded | |
Deleting | |
Migrating |
HyperVGeneration
The hypervisor generation of the Virtual Machine. Applicable to OS disks only.
Value | Description |
---|---|
V1 | |
V2 |
ImagePurchasePlan
Describes the gallery image definition purchase plan. This is used by marketplace images.
Name | Type | Description |
---|---|---|
name |
string |
The plan ID. |
product |
string |
The product ID. |
publisher |
string |
The publisher ID. |
InnerError
Inner error details.
Name | Type | Description |
---|---|---|
errordetail |
string |
The internal error message or exception dump. |
exceptiontype |
string |
The exception type. |
OperatingSystemStateTypes
This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'.
Value | Description |
---|---|
Generalized | |
Specialized |
OperatingSystemTypes
This property allows you to specify the supported type of the OS that application is built for. Possible values are: Windows, Linux.
Value | Description |
---|---|
Windows | |
Linux |
RecommendedMachineConfiguration
The properties describe the recommended machine configuration for this Image Definition. These properties are updatable.
Name | Type | Description |
---|---|---|
memory |
Describes the resource range. |
|
vCPUs |
Describes the resource range. |
ResourceRange
Describes the resource range.
Name | Type | Description |
---|---|---|
max |
integer (int32) |
The maximum number of the resource. |
min |
integer (int32) |
The minimum number of the resource. |
systemData
Metadata pertaining to creation and last modification of the resource.
Name | Type | Description |
---|---|---|
createdAt |
string (date-time) |
The timestamp of resource creation (UTC). |
createdBy |
string |
The identity that created the resource. |
createdByType |
The type of identity that created the resource. |
|
lastModifiedAt |
string (date-time) |
The timestamp of resource last modification (UTC) |
lastModifiedBy |
string |
The identity that last modified the resource. |
lastModifiedByType |
The type of identity that last modified the resource. |