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
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
# #Return parameters
##AvailableZoneType
##AvailableResourcesType
##SupportedResourcesType
##Example
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!