Queries all instance types.
Debugging
Request headers
This operation uses only common request headers. For more information, see Common request and response headers.
Request syntax
GET /pop/v1/paas/quota/instanceSpecifications HTTP/1.1
Request parameters
None
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 91F93257-7A4A-4BD3-9A7E-2F6EAE6D**** | The ID of the request. |
Message | String | success | The returned message. Valid values:
|
TraceId | String | 0a98a02315955564772843261e**** | The ID of the trace. It is used to query the details of a request. |
Data | Array of Data | Information of instance types. |
|
Cpu | Integer | 2000 | The CPU specification of the instance type. Unit: millicore. |
Version | Integer | 0 | The version number of the instance type. |
Memory | Integer | 4096 | The memory size of the instance type. Unit: MB. |
SpecInfo | String | General-purpose 4 | The name of the instance type. |
Id | Integer | 4 | The ID of the instance type. |
Enable | Boolean | true | Indicates whether the instance type is available. Valid values:
|
ErrorCode | String | The error code.
|
|
Code | String | 200 | The HTTP status code. Valid values:
|
Success | Boolean | true | Indicates whether information of the instance types is successfully obtained. Valid values:
|
Examples
Sample requests
GET /pop/v1/paas/quota/instanceSpecifications HTTP/1.1
Host:sae.aliyuncs.com
Content-Type:application/json
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<DescribeInstanceSpecificationsResponse>
<RequestId>91F93257-7A4A-4BD3-9A7E-2F6EAE6D****</RequestId>
<Message>success</Message>
<TraceId>0a98a02315955564772843261e****</TraceId>
<Data>
<Cpu>2000</Cpu>
<Version>0</Version>
<Memory>4096</Memory>
<SpecInfo>General-purpose 4</SpecInfo>
<Id>4</Id>
<Enable>true</Enable>
</Data>
<Code>200</Code>
<Success>true</Success>
</DescribeInstanceSpecificationsResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "91F93257-7A4A-4BD3-9A7E-2F6EAE6D****",
"Message" : "success",
"TraceId" : "0a98a02315955564772843261e****",
"Data" : [ {
"Cpu" : 2000,
"Version" : 0,
"Memory" : 4096,
"SpecInfo" : "General-purpose 4",
"Id" : 4,
"Enable" : true
} ],
"Code" : "200",
"Success" : true
}
Error codes
For a list of error codes, visit the API Error Center.