GetImageDistributeInfo

Updated at:

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

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

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 :

    Available.

  • CREATE_FAILED :

    Distribution failed.

  • CREATING :

    Creating.

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.