Home > Operation and Maintenance > Linux Operation and Maintenance > How to query the available resource information of an availability zone when upgrading or downgrading instance specifications or system disks

How to query the available resource information of an availability zone when upgrading or downgrading instance specifications or system disks

坏嘻嘻
Release: 2018-09-27 15:38:40
Original
2451 people have browsed it

The content of this article is about how to query the available resource information of a certain availability zone when upgrading and downgrading instance specifications or system disks. It has certain reference value. Friends in need can refer to it. Hope it helps.

DescribeResourcesModification

Request Parameters

How to query the available resource information of an availability zone when upgrading or downgrading instance specifications or system disks

# #Return parameters

How to query the available resource information of an availability zone when upgrading or downgrading instance specifications or system disks

##AvailableZoneType

How to query the available resource information of an availability zone when upgrading or downgrading instance specifications or system disks##AvailableResourcesType

##SupportedResourcesTypeHow to query the available resource information of an availability zone when upgrading or downgrading instance specifications or system disks

##ExampleHow to query the available resource information of an availability zone when upgrading or downgrading instance specifications or system disks

Request example

https://ecs.aliyuncs.com/?Action=DescribeResourcesModification
&DestinationResource=InstanceType
&RegionId=cn-hangzhou
&<公共请求参数>
Copy after login

Return example

XML format

<DescribeResourcesModificationResponse>
    <AvailableZones>
        <AvailableZone>
            <ZoneId>cn-hangzhou-d</ZoneId>
            <RegionId>cn-hangzhou</RegionId>
            <Status>Available</Status>
            <AvailableResources>
                <AvailableResource>
                    <Type>instanceType</Type>
                    <SupportedResources>
                        <SupportedResource>
                            <Value>ecs.d1ne.xlarge</Value>
                            <Status>Available</Status>
                        </SupportedResource>
                         <SupportedResource>
                            <Value>ecs.d1ne.2xlarge</Value>
                            <Status>Available</Status>
                        </SupportedResource>
                    </SupportedResources>
                </AvailableResource>
            </AvailableResources>
        </AvailableZone>
        <AvailableZone>
            <ZoneId>cn-hangzhou-e</ZoneId>
            <RegionId>cn-hangzhou</RegionId>
            <Status>Available</Status>
            <AvailableResources>
                <AvailableResource>
                    <Type>instanceType</Type>
                    <SupportedResources>
                        <SupportedResource>
                            <Value>ecs.d1ne.xlarge</Value>
                            <Status>Available</Status>
                        </SupportedResource>
                         <SupportedResource>
                            <Value>ecs.d1ne.2xlarge</Value>
                            <Status>Available</Status>
                        </SupportedResource>
                    </SupportedResources>
                </AvailableResource>
            </AvailableResources>
        </AvailableZone>
    </AvailableZones>
    <RequestId>6DB97BCC-92BA-424D-A7C8-3F6486612BAE</RequestId>
</DescribeResourcesModificationResponse>
Copy after login

JSON format

{
    "RequestId": "D0233A65-7F00-4B50-8023-101427229D4F",
    "AvailableZones": {
        "AvailableZone": [
            {
                "Status": "available",
                "RegionId": "cn-hangzhou",
                "AvailableResources": {
                    "AvailableResource": [
                        {
                            "Type": "instanceType",
                            "SupportedResources": {
                                "SupportedResource": [
                                    {
                                        "Status": "available",
                                        "Value": "ecs.sn1ne.xlarge"
                                    },
                                    {
                                        "Status": "available",
                                        "Value": "ecs.sn2ne.xlarge"
                                    }
                                ]
                            }
                        }
                    ]
                },
                "ZoneId": "cn-hangzhou-e",
            }
        ]
    }
}
Copy after login

Error code

The following are error codes unique to this interface. For more error codes, please visit the API Error Center.

The above is the detailed content of How to query the available resource information of an availability zone when upgrading or downgrading instance specifications or system disks. 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