DescribeInstanceTypes
1. API Description
This API is used to query the model configuration of an instance.
Note
Use DescribeInstanceTypes
to query the configuration and performance information of an instance model. If you need to check the available instance models in a specific zone, please call DescribeAvailableResources.
2. Input Parameters
The following request parameter list only provides API request parameters.
Parameter Name | Required | Type | Description |
---|---|---|---|
instanceTypeIds | No | Array of String | Instance model ID. Maximum number: 100 |
minimumCpuCoreCount | No | Integer | Desired minimum number of CPU cores. Value range: positive integer. |
maximumCpuCoreCount | No | Integer | Desired maximum number of CPU cores. Value range: positive integer. |
minimumMemorySize | No | Integer | Desired minimum memory size. Value range: positive integer. Unit: GB. |
maximumMemorySize | No | Integer | Desired maximum memory size. Value range: positive integer. Unit: GB. |
minimumBandwidth | No | Integer | Desired minimum public inbound bandwidth cap. Unit: Mbps. |
supportRaids | No | Array of Integer | Supported RAID levels. Value range: 0, 1, 5, 10. |
supportSubnet | No | Boolean | Subnet supported or not. |
minimumDiskSize | No | Integer | Desired minimum disk size. Value range: positive integer. Unit: GB. |
maximumDiskSize | No | Integer | Desired maximum memory size. Value range: positive integer. Unit: GB. |
isHA | No | Boolean | High availability supported or not. |
imageId | No | String | Instance models that support specified image. |
3. Output Parameters
Parameter Name | Type | Description |
---|---|---|
instanceTypes | Array of InstanceType | Information on instance model. |
requestId | String | The unique request ID, which is returned for each request. RequestId is required for locating a problem. |
4. Code Example
Query the instance models
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
No error codes related to the API business logic. For other error codes, see Common Error Codes.
Last updated