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.
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:
CentOS
Windows
Ubuntu
Debian
ESXi
imageType
No
String
Image type. The optional values are as follows:
PUBLIC_IMAGE: public images
CUSTOM_IMAGE: custom images
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:
Windows
Linux
instanceTypeId
No
String
Supported instance model ID.
3. Output Parameters
requestId
String
The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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.
404
INVALID_INSTANCE_TYPE_NOT_FOUND
Instance type not found.
Last updated