Skip to main content

DescribeRegions

Description

Call the DescribeRegions to query the Alibaba Cloud region that you can use.

Request Method

POST

Request Path

/apsara/route/Ecs/DescribeRegions

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
regionIdBODYstringYesNo sample value for this parameter.region id
AcceptLanguageBODYstringNozh-CNreturns results based on Chinese, English and Japanese filtering. For more details, please refer to RFC7231. Value range: zh-CN: Chinese en-US: English ja: Japanese default value: zh-CN.
ResourceTypeBODYstringNoinstanceresource type. Value range: instance:ECS instance disk: disk default value: instance.
versionBODYstringNo2016-01-01version of api

Return data

NameTypeSample valueDescription
RequestIDstring1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DCRequest id

Example

Successful Response example

{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}

DescribeResourcesModification

Description

Call the DescribeResourcesModification to query the available resource information of an available area when upgrading and downgrading instance specifications or system disks.

Request Method

POST

Request Path

/apsara/route/Ecs/DescribeResourcesModification

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
CoresBODYintegerNo2the number of vCPU cores of the instance specification. For the value, please refer to the instance specifications in the ECS User Guide. Cores is a valid parameter only when DestinationResource = InstanceType parameter is valid.
ResourceIdBODYstringYesi-bp67acfmxazb4p****resource ID. For example, when the resource to be queried is an instance, it can be understood as InstanceId.
regionIdBODYstringYesNo sample value for this parameter.region id
DestinationResourceBODYstringYesInstanceTypetarget resource type. Value range: InstanceType: instance type. SystemDisk: system disk type.
MemoryBODYfloatNo8.0The memory size of the instance specification, in GiB. For the value, please refer to the instance specifications in the ECS User Guide. Memory is a valid parameter when DestinationResource = InstanceType.
RegionIdBODYstringYescn-qingdao-env17-d01target region ID. You can call the DescribeRegions to view the latest Alibaba Cloud region list.
InstanceTypeBODYstringNoecs.g5.largeinstance specification. For more details, please refer to the instance specification of the cloud server ECS user guide, or call the DescribeInstanceTypes interface to obtain the latest specification table. When the parameter DestinationResource value is SystemDisk, InstanceType parameters must be specified at the same time.
versionBODYstringNo2016-01-01version of api
MigrateAcrossZoneBODYbooleanNotruewhether to upgrade instance specifications across clusters. Value range: true: supported. false: not supported. default value: false.

Return data

NameTypeSample valueDescription
RequestIDstring1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DCRequest id

Example

Successful Response example

{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}