GetImageDistributeInfo
Queries the distribution regions, distribution status, and progress of an image version.
Operation description
Queries the region distribution status of an image by ImageId. If VersionId is not specified, the online version is queried. If VersionId is specified, the specified version is queried. Returns the non-deleted region distribution records and the list of corresponding region IDs.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
appstreaming:GetImageDistributeInfo |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ImageId |
string |
No |
The ID of the image whose region distribution information you want to query. |
imgc-bp1example**** |
| VersionId |
string |
No |
The ID of the image version. If this parameter is not specified, the online version of the image is queried. |
iv-xxx |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The API call result. |
||
| Data |
object |
The image information returned by the query. |
|
| ImageRegionDistributeList |
array<object> |
The list of region distribution information for the image version. |
|
|
object |
The list of region distribution information for the image version. |
||
| GmtCreate |
string |
The creation time. |
2025-04-25 15:13:57 |
| GmtModified |
string |
The last update time. |
2025-04-25 15:13:57 |
| AliUid |
integer |
The ID of the Alibaba Cloud account to which the image belongs. The account ID for a system image is 0. |
123456789 |
| ImageId |
string |
The image ID. |
imgc-xxxx |
| RegionId |
string |
The ID of the region to which the image is distributed. |
cn-hangzhou |
| Status |
string |
The region distribution status. Valid values:
|
AVAILABLE |
| VersionId |
string |
The image version ID. |
iv-xxx |
| EcsImageId |
string |
The ID of the ECS image corresponding to the region. |
m-bp1example**** |
| UnitImageId |
string |
The logical ID of the image on the unit side, which can be different from the central image ID. |
m-1bdedef**** |
| Progress |
string |
The distribution progress of the image in the region, expressed as a percentage. |
100 |
| Message |
string |
The processing information reported by the region distribution task. |
success |
| ImageRegionList |
array |
The list of region IDs supported by the image. |
|
|
string |
The region ID supported by the image. |
cn-hangzhou |
|
| ImageSource |
string |
The source of the image. For example, center indicates the central image service. |
center |
| Success |
boolean |
Indicates whether the API call is successful. Valid values: true: Successful. false: Failed. |
true |
| Code |
string |
The return code of the API. A value of 200 indicates success. If the call fails, the corresponding error code is returned. |
200 |
| Message |
string |
The processing message returned by the API. |
success |
| RequestId |
string |
The request ID, which is used to locate and troubleshoot the request. |
8737D130-BFD0-5D51-96F6-C08EB1139A25 |
Examples
Success response
JSON format
{
"Data": {
"ImageRegionDistributeList": [
{
"GmtCreate": "2025-04-25 15:13:57",
"GmtModified": "2025-04-25 15:13:57",
"AliUid": 123456789,
"ImageId": "imgc-xxxx",
"RegionId": "cn-hangzhou",
"Status": "AVAILABLE",
"VersionId": "iv-xxx",
"EcsImageId": "m-bp1example****",
"UnitImageId": "m-1bdedef****",
"Progress": "100",
"Message": "success"
}
],
"ImageRegionList": [
"cn-hangzhou"
],
"ImageSource": "center"
},
"Success": true,
"Code": "200",
"Message": "success",
"RequestId": "8737D130-BFD0-5D51-96F6-C08EB1139A25"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InternalError | Internal error. | An internal error occurred. |
| 400 | Image.NotExist | The image does not exist. | The image does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.