Queries the images that meet the specified conditions.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-hsm:ListImages |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| BackupId |
string |
Yes |
The ID of the backup. |
backup-fdb897sdf**** |
| RegionId |
string |
Yes |
The ID of the region. |
cn-hangzhou |
| PageSize |
integer |
Yes |
The number of images per page. Valid values: 1 to 1000. |
20 |
| CurrentPage |
integer |
Yes |
The page number. |
1 |
| Mode |
string |
No |
The image generation mode. Valid values:
|
MANUAL |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
4C467B38-3910-447D-87BC-AC049166F216 |
| TotalCount |
integer |
The total number of images returned. |
1000 |
| PageSize |
integer |
The number of images per page. |
20 |
| CurrentPage |
integer |
The page number. |
1 |
| Images |
array<object> |
The images returned. |
|
|
object |
The image details. |
||
| BackupId |
string |
The ID of the backup. |
backup-fdb897sdf**** |
| ExportTime |
integer |
The time when the image was generated. Unit: milliseconds. The value is a UNIX timestamp. |
1782849566738 |
| ImageId |
string |
The ID of the image. |
image-d79x4k11pmg19**** |
| InstanceId |
string |
The ID of the hardware security module (HSM). |
hsm-cn-6ja1xknf**** |
| RegionId |
string |
The ID of the region. |
cn-hangzhou |
| Remark |
string |
The description of the backup. |
hsm-test |
| Status |
string |
The status of the image. Valid values:
|
CREATING |
| Mode |
string |
The image generation mode. Valid values:
|
MANUAL |
| VsmDigest |
string |
The digest of the HSM. |
3kGeHnmQzXwSsfF0Jk9eJYhe2gP6An0/HlYIiZh1**** |
| SourceImageUid |
string |
The ID of the source image. |
image-ooopjygsn**** |
| SourceBackupUid |
string |
The ID of the source backup. |
backup-hodfhaol**** |
| SourceRegionId |
string |
The ID of the region in which the source image resides. |
cn-shanghai |
| SourceInstanceId |
string |
The ID of the source HSM. |
hsm-cn-wz9i2dmefudfxtmb**** |
| CopyTime |
string |
The time when the image was copied. Unit: milliseconds. The value is a UNIX timestamp. |
1641275680000 |
Examples
Success response
JSON format
{
"RequestId": "4C467B38-3910-447D-87BC-AC049166F216",
"TotalCount": 1000,
"PageSize": 20,
"CurrentPage": 1,
"Images": [
{
"BackupId": "backup-fdb897sdf****",
"ExportTime": 1782849566738,
"ImageId": "image-d79x4k11pmg19****",
"InstanceId": "hsm-cn-6ja1xknf****",
"RegionId": "cn-hangzhou",
"Remark": "hsm-test",
"Status": "CREATING",
"Mode": "MANUAL",
"VsmDigest": "3kGeHnmQzXwSsfF0Jk9eJYhe2gP6An0/HlYIiZh1****",
"SourceImageUid": "image-ooopjygsn****",
"SourceBackupUid": "backup-hodfhaol****",
"SourceRegionId": "cn-shanghai",
"SourceInstanceId": "hsm-cn-wz9i2dmefudfxtmb****",
"CopyTime": "1641275680000"
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 403 | NoPermission | caller has no permission | |
| 403 | Backup.Deleted | Backup has been deleted. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.