ListImageBaseInfo

Updated at:

Performs a paged query to retrieve the basic information of images, including the image name, type, status, and version identity, with paging support.

Operation description

Supports filtering by image ID, name, status, type, package type, operating system, business line, product type, and protocol type. Multiple filter conditions take effect simultaneously, and the results are returned in descending order of image creation time. Returns the basic information and version identifiers of images. To obtain specific version and region distribution information, call ListImage.

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:ListImageBaseInfo

list

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

ImageId

string

No

The image ID. You can specify multiple IDs separated by commas (,). The query matches any of the specified IDs.

img-bp13mu****

ImageName

string

No

The keyword for querying images. Fuzzy matching is performed on both the image name and the image ID.

test

Status

string

No

The image status. Valid values: INIT (initializing), CREATING (creating), AVAILABLE (available), and CREATE_FAILED (creation failed). If you do not specify this parameter, all non-deleted images are queried. Deleted images are not returned.

Valid values:

  • AVAILABLE :

    Available.

  • INIT :

    Initializing.

  • CREATE_FAILED :

    Creation failed.

  • CREATING :

    Creating.

AVAILABLE

ImageType

string

No

The image type. Valid values: System (system image), User (custom image), Shared (shared image), and Community (community image).

Valid values:

  • User :

    Custom image.

  • Shared :

    Shared image.

  • Community :

    Community image.

  • System :

    System image.

User

PackageType

string

No

The image package type. Valid values: Ecs (ECS image), Vhd (VHD image), Container (container image), Ecs_Container (ECS and container combined image), and K8s_Node (Kubernetes node image).

Ecs

OsType

string

No

The image operating system type. Valid values: Windows (Windows operating system), Linux (Linux operating system), Android (Android operating system), and Unknown (unknown operating system).

Windows

BizType

integer

No

The business line code. Default value: 1.

Valid values:

  • 1 :

    Enterprise Edition.

  • 10 :

    Personal Edition.

  • 20 :

    Commercial Edition.

1

ProductType

string

No

The product type, used to filter the products to which the images belong. Examples: CloudDesktop (WUYING Workspace), CloudApp (WUYING Cloud App), and WuyingServer (WUYING Workstation).

CloudDesktop

ProtocolType

string

No

The image protocol type. Valid values: ASP (Alibaba Cloud proprietary ASP protocol) and HDX (HDX protocol).

ASP

PageSize

integer

No

The number of entries to return on each page. Default value: 10. Maximum value: 100. If the value is less than 1, 10 is used. If the value is greater than 100, 100 is used.

10

PageNumber

integer

No

The page number of the page to return. Pages start from page 1. If you do not specify this parameter or specify a value less than 1, the first page is returned.

1

Response elements

Element

Type

Description

Example

object

The paged query results of the basic image information, including paging details.

PageSize

integer

The number of entries returned per page as specified in the request.

10

PageNumber

integer

The page number returned as specified in the request.

1

Data

array<object>

The list of basic image information on the current page.

object

GmtCreate

string

The time when the image was created. The time is in the yyyy-MM-dd HH:mm:ss format.

2025-04-25 15:13:57

GmtModified

string

The time when the image was last updated. The time is in the yyyy-MM-dd HH:mm:ss format.

2025-04-25 15:13:57

AliUid

integer

The ID of the Alibaba Cloud account to which the image belongs. A value of 0 indicates a system image.

0

ImageId

string

The image ID. The IDs of custom images are generated by the system.

img-bp13mu****

ImageName

string

The image name.

DemoImage

ImageType

string

The image type. A value of System indicates a system image, User indicates a custom image, Shared indicates a shared image, and Community indicates a community image.

System

PackageType

string

The image package type. A value of Ecs indicates an ECS image, Vhd indicates a VHD image, Container indicates a container image, Ecs_Container indicates an ECS and container combined image, and K8s_Node indicates a Kubernetes node image.

Ecs

Description

string

The description of the image.

Description

OsType

string

The image operating system type. A value of Windows indicates the Windows operating system, Linux indicates the Linux operating system, Android indicates the Android operating system, and Unknown indicates an unknown operating system.

Linux

ProtocolType

string

The image protocol type. A value of ASP indicates the Alibaba Cloud proprietary ASP protocol, and HDX indicates the HDX protocol.

ASP

BizType

integer

The business line code to which the image belongs. This corresponds to the BizType request parameter.

1

ProductType

string

The product type to which the image belongs. Examples: CloudDesktop (WUYING Workspace), CloudApp (WUYING Cloud App), and WuyingServer (WUYING Workstation).

CloudApp

OnlineVersionId

string

The ID of the sub-version currently used to read the main image information for this image.

iv-xxxx

LatestVersionId

string

The ID of the latest sub-version of this image.

iv-xxx

Status

string

The image status. A value of INIT indicates initializing, CREATING indicates creating, AVAILABLE indicates available, and CREATE_FAILED indicates creation failed.

AVAILABLE

Distro

string

The distribution name of the image operating system.

Ubuntu 22.04 64-bit

Count

integer

The total number of images that meet the query conditions.

22

Success

boolean

Indicates whether the request is successful. A value of true indicates success, and a value of false indicates failure.

Code

string

The result code of the request.

200

Message

string

The result message of the request.

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

{
  "PageSize": 10,
  "PageNumber": 1,
  "Data": [
    {
      "GmtCreate": "2025-04-25 15:13:57",
      "GmtModified": "2025-04-25 15:13:57",
      "AliUid": 0,
      "ImageId": "img-bp13mu****",
      "ImageName": "DemoImage",
      "ImageType": "System",
      "PackageType": "Ecs",
      "Description": "Description",
      "OsType": "Linux",
      "ProtocolType": "ASP",
      "BizType": 1,
      "ProductType": "CloudApp",
      "OnlineVersionId": "iv-xxxx",
      "LatestVersionId": "iv-xxx",
      "Status": "AVAILABLE",
      "Distro": "Ubuntu 22.04 64-bit"
    }
  ],
  "Count": 22,
  "Success": false,
  "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.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.