Home > Operation and Maintenance > Linux Operation and Maintenance > How to query specification resources for instances provided by cloud server ECS

How to query specification resources for instances provided by cloud server ECS

坏嘻嘻
Release: 2018-09-20 13:40:25
Original
2495 people have browsed it

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

How to query specification resources for instances provided by cloud server ECS

##Return parameters

How to query specification resources for instances provided by cloud server ECS

Example

Request Example

https://ecs.aliyuncs.com/?Action=DescribeInstanceTypes
&<公共请求参数>
Copy after login

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>
Copy after login

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
        }]
    }
}
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template