Home  >  Article  >  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

坏嘻嘻
坏嘻嘻Original
2018-09-27 15:38:402417browse

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
&<公共请求参数>

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>

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",
            }
        ]
    }
}

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!

Statement:
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