Queries custom images.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ens:DescribeSelfImages |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| PageNumber |
integer |
No |
The page number to return. Pages start from page 1. Default value: 1. |
1 |
| PageSize |
integer |
No |
The number of entries per page. Default value: 10. |
10 |
| ImageId |
string |
No |
The ID of the image. Fuzzy search is supported. |
centos_6_08_64_20G_a**** |
| ImageName |
string |
No |
The name of the image. Fuzzy search is supported. |
centos_6_08_64_20G_a**** |
| SnapshotId |
string |
No |
The ID of the snapshot. |
sp-5xg63dmojc1oaa3pk**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
integer |
The HTTP status code that is returned. |
0 |
| Images |
object |
||
| Image |
array<object> |
The image information. |
|
|
array<object> |
|||
| Architecture |
string |
The image architecture. Valid values:
|
x86_64 |
| CreationTime |
string |
The image creation time. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. |
2017-12-08T12:10:03Z |
| ImageId |
string |
The ID of the image. |
centos_6_08_64_20G_a**** |
| ImageName |
string |
The name of the image. |
centos_6_08_64_20G_a**** |
| ImageOwnerAlias |
string |
The source of the image. Valid values:
|
self |
| ImageSize |
string |
The size of the image. Unit: GiB. |
20 |
| InstanceId |
string |
The ID of the instance. |
i-5iqczfxps7csjrxeca**** |
| OsVersion |
string |
The operating system version. |
7.2 |
| Platform |
string |
The platform.
|
centos |
| Status |
string |
The state of the image.
|
Creating |
| ComputeType |
string |
Computing type. ens_vm/ens: x86 computing. bare_metal: x86 bare machine or x86 bare metal. arm_vm: ARM computing. arm_bare_metal: ARM bare machine or ARM bare metal. pcfarm: heterogeneous computing. |
ens_vm |
| SnapshotId |
string |
The snapshot ID. |
sp-5yt3bdedxzdz6t6uuw**** |
| DiskDeviceMappings |
object |
||
| DiskDeviceMapping |
array<object> |
The mappings between the disk and the snapshot in the image. |
|
|
object |
The mappings between the disk and the snapshot in the image. |
||
| Type |
string |
The type of the disk. Valid values:
|
Data |
| Size |
string |
The size of the disk. Unit: GiB. |
100 |
| Format |
string |
The format of the image. |
Image format. raw qcow2 |
| imageId |
string |
The ID of image. |
i-test |
| ImageStorageSize |
string |
The size of the image storage. |
400 |
| RegionId |
string |
The ID of the region. |
cn-wulanchabu |
| RequestId |
string |
The request ID. |
A8B8EB73-B4FD-4262-8EF6-680DF39C9BA0 |
| PageSize |
string |
The number of entries per page. Maximum value: 50. Default value: 10. |
10 |
| PageNumber |
string |
The page number. |
1 |
| TotalCount |
string |
The total number of entries returned. |
1 |
Examples
Success response
JSON format
{
"Code": 0,
"Images": {
"Image": [
{
"Architecture": "x86_64",
"CreationTime": "2017-12-08T12:10:03Z",
"ImageId": "centos_6_08_64_20G_a****",
"ImageName": "centos_6_08_64_20G_a****",
"ImageOwnerAlias": "self",
"ImageSize": "20",
"InstanceId": "i-5iqczfxps7csjrxeca****",
"OsVersion": "7.2",
"Platform": "centos",
"Status": "Creating",
"ComputeType": "ens_vm",
"SnapshotId": "sp-5yt3bdedxzdz6t6uuw****",
"DiskDeviceMappings": {
"DiskDeviceMapping": [
{
"Type": "Data",
"Size": "100",
"Format": "Image format.\nraw\nqcow2",
"imageId": "i-test"
}
]
},
"ImageStorageSize": "400",
"RegionId": "cn-wulanchabu"
}
]
},
"RequestId": "A8B8EB73-B4FD-4262-8EF6-680DF39C9BA0",
"PageSize": "10",
"PageNumber": "1",
"TotalCount": "1"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | MissingParameter | The input parameters that is mandatory for processing this request is not supplied. | |
| 400 | NoPermission | Permission denied. | |
| 400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.