Queries the list of images that can be installed in a cluster.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ListImages

The operation that you want to perform. Set the value to ListImages.

BaseOsTag String No CentOS_7.2_64

The image tag of the operating system. The tag is used only for management nodes.

InstanceType String No ecs.n1.medium

The instance type of the node.

  • If a value is passed to the parameter, the list of images that are supported by the specified instance type is queried.
  • If no value is passed to the parameter, the list of images that are supported by all instance types is queried.

Response parameters

Parameter Type Example Description
OsTags Array of OsInfo

The list of images that are supported by E-HPC.

OsInfo
Architecture String i386

The architecture of the operating system. Valid values:

  • i386
  • x86_64
BaseOsTag String CentOS_7.2_64

The image tag of the operating system. The tag is used only for management nodes.

ImageId String m-bp1h8aoe73p71iow****

The ID of the image.

OsTag String CentOS_7.2_64

The image tag of the cluster.

Platform String CentOS

The operating system. Valid values:

  • CentOS
  • windows
Version String 7.2

The version of the operating system.

RequestId String 04F0F334-1335-436C-A1D7-6C044FE7****

The ID of the request.

Examples

Sample requests

https://ehpc.cn-hangzhou.aliyuncs.com/?Action=ListImages
&<Common request parameters>

Sample success responses

XML format

<ListImagesResponse>
      <RequestId>04F0F334-1335-436C-A1D7-6C044FE7****</RequestId>
      <OsTags>
            <OsInfo>
                  <Architecture>x86_64</Architecture>
                  <Version>7.2</Version>
                  <Platform>CentOS</Platform>
                  <OsTag>CentOS_7.2_64</OsTag>
                  <ImageId>m-bp1h8aoe73p71iow****</ImageId>
                  <BaseOsTag>CentOS_7.2_64</BaseOsTag>
            </OsInfo>
      </OsTags>
</ListImagesResponse>

JSON format

{
    "ListImagesResponse":{
        "RequestId": "04F0F334-1335-436C-A1D7-6C044FE7****",
        "OsTags": {
            "OsInfo": [
                {
                    "Architecture": "x86_64",
                    "Version": "7.2",
                    "Platform": "CentOS",
                    "OsTag": "CentOS_7.2_64",
                    "ImageId":"m-bp1h8aoe73p71iow****",
                    "BaseOsTag": "CentOS_7.2_64"
                }
            ]
        }
     }
}

Error codes

HttpCode Error code Error message Description
503 ServiceUnavailable The request has failed due to a temporary failure of the server The error message returned because the request has failed. The service is temporarily unavailable.

For a list of error codes, visit the API Error Center.