DescribeImages
1. API Description
This API is used to view the list of images.
Note
The images in the list are not applicable to all instance models. You can query the imageIds
returned by DescribeInstanceTypes
to get the images applicable to specific models.
2. Input Parameters
The following request parameter list only provides API request parameters.
Parameter Name | Required | Type | Description |
---|---|---|---|
imageIds | No | Array of String | List of image IDs. |
imageName | No | String | Image name. |
catalog | No | String | Image catalog. The optional values are as follows:
|
imageType | No | String | Image type. The optional values are as follows:
You cannot create a custom image by yourself currently. If necessary, please submit a ticket. |
osType | No | String | Operating system type. The optional values are as follows:
|
instanceTypeId | No | String | Supported instance model ID. |
3. Output Parameters
Parameter Name | Type | Description |
---|---|---|
requestId | String | The unique request ID, which is returned for each request. RequestId is required for locating a problem. |
images | Array of ImageInfo | Information on images. |
4. Code Example
Query the information of images without any parameters.
5. Developer Resources
Zenlayer Cloud API 2.0 integrates SDKs to make it easier for you to call APIs. More programming languages will be supported.
6. Error Codes
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
HTTP Status Code | Error Code | Description |
---|---|---|
404 | INVALID_INSTANCE_TYPE_NOT_FOUND | Instance type not found. |
Last updated