All Products
Search
Document Center

ENS:RescaleDeviceService

Last Updated:Mar 27, 2026

Scales out a bare metal device.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

ens:RescaleDeviceService

update

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

RescaleType

string

Yes

The scaling operation. Set the value to Add to add new resources.

Valid values:

  • Add :

Add

RescaleLevel

string

Yes

The region level of the scale-out. Set the value to RegionId. RegionId specifies that resource scale-out is performed based on the ID of the edge node.

Valid values:

  • RegionId :

RegionId

Timeout

integer

No

The timeout period for asynchronous scale-out. Unit: seconds. Default value: 300.

1800

ServiceId

string

No

The ID of the service.

service-01c6dd6e93f040698566

ResourceSelector

string

Yes

The required resources. The value must be a JSON string.

[{\"regionCode\": \"cn-wuxi-telecom_unicom_cmcc-3\", \"ispCode\": \"telecom\", \"count\": 2 },{ \"regionCode\": \"cn-shanghai-cmcc\", \"count\": 4 }]

ResourceSpec

string

No

The resource specification.

ens.a6e.large

IpType

integer

No

The type of the network. The value must be of the enumerated data type. Valid values:

  • 1 (default): Internet

  • 2: internal network

Valid values:

  • 1 :
  • 2 :

1

AppId

string

No

The ID of the application.

7aedc50b-b1cb-4a7c-9e3d-4cf3c9ee55a4

ImageId

string

No

The ID of the image.

m-5rynw9g1ow1e928lb83bqmbnf

ResourceInfo

string

No

The information about the resource specification template. The value must be a JSON string.

{\"imageId\":\"m-5s4z4c10avgwvwtn33gl2vgob\",\"ipType\":2,\"specName\":\"ens.pfb-c3m7.medium\"}

Response elements

Element

Type

Description

Example

object

Schema of Response

RequestId

string

The ID of the request.

3F3F3570-E721-53F6-853F-37B7725AC6CB

DeviceIds

array

The IDs of the devices.

string

The ID of the device.

['b-5qco9b10iei79z48phno4bmsr']

ResourceDetailInfos

array<object>

The key properties of the device.

object

RegionID

string

The ID of the edge node to which the device belongs.

cn-chongqing-1

ID

string

The ID of the device.

h-uf6009zoa6hdbjyqxcn1

IP

string

The IP address of the device.

10.152.196.36

Server

string

The name of the server on which the device is deployed.

ens-nc2

Type

string

The type of the instance.

ens.ac6.large

Status

string

The status of the device.

Running

Mac

string

The media access control (MAC) address of the device.

24:0B:88:04:71:E0

ISP

string

The Internet service provider (ISP) to which the device belongs.

telecom

OrderId

string

The ID of the order.

b3b5bb9a-4e0b-4cac-8ebf-e5e015726723

Examples

Success response

JSON format

{
  "RequestId": "3F3F3570-E721-53F6-853F-37B7725AC6CB",
  "DeviceIds": [
    "['b-5qco9b10iei79z48phno4bmsr']"
  ],
  "ResourceDetailInfos": [
    {
      "RegionID": "cn-chongqing-1",
      "ID": "h-uf6009zoa6hdbjyqxcn1",
      "IP": "10.152.196.36",
      "Server": "ens-nc2",
      "Type": "ens.ac6.large",
      "Status": "Running",
      "Mac": "24:0B:88:04:71:E0",
      "ISP": "telecom"
    }
  ],
  "OrderId": "b3b5bb9a-4e0b-4cac-8ebf-e5e015726723"
}

Error codes

HTTP status code

Error code

Error message

Description

400 NoPermission Permission denied.
400 InvalidParameter.%s The specified field %s invalid. Please check it again.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.