Home >Operation and Maintenance >Linux Operation and Maintenance >How to query specification resources for instances provided by cloud server ECS
The content of this article is about how to query the specification resources of the instances provided by the cloud server ECS. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to you.
DescribeInstanceTypes
Description
The instance specification list queried based on DescribeInstanceTypes is consistent with the pay-as-you-go instance list when the instance is created. For more details, see Pay-As-You-Go and Usage Limits.
If you need to use more instance specification resources, you can submit a work order to contact us.
Request parameters
##Return parameters
Example
Request Example
https://ecs.aliyuncs.com/?Action=DescribeInstanceTypes &<公共请求参数>
Return example
XML format
<DescribeInstanceTypesResponse> <RequestId>1651FBB6-4FBF-49FF-A9F5-DF5D696C7EC6</RequestId> <InstanceTypes> <InstanceType> <InstanceTypeId>ecs.t1.xsmall</InstanceTypeId> <CpuCoreCount>1</CpuCoreCount> <MemorySize>0.5</MemorySize> </InstanceType> <InstanceType> <InstanceTypeId>ecs.t1.small</InstanceTypeId> <CpuCoreCount>1</CpuCoreCount> <MemorySize>1</MemorySize> </InstanceType> </InstanceTypes> </DescribeInstanceTypesResponse>
JSON format
{ "RequestId": "1651FBB6-4FBF-49FF-A9F5-DF5D696C7EC6", "InstanceTypes": { "InstanceType": [{ "InstanceTypeId": "ecs.t1.xsmall", "CpuCoreCount": 1, "MemorySize": 0.5 }, { "InstanceTypeId": "ecs.t1.small", "CpuCoreCount": 1, "MemorySize": 1 }] } }
Error code
are all public error codes. For more error codes, please visit the API Error Center.The above is the detailed content of How to query specification resources for instances provided by cloud server ECS. For more information, please follow other related articles on the PHP Chinese website!