All Products
Search
Document Center

ENS:RescaleDeviceService

Last Updated:Mar 12, 2024

Scales out a bare metal device.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
RescaleTypestringYes

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

Add
RescaleLevelstringYes

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.

RegionId
TimeoutlongNo

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

1800
ServiceIdstringNo

The ID of the service.

service-01c6dd6e93f040698566
ResourceSelectorstringYes

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 }]
ResourceSpecstringNo

The resource specification.

ens.a6e.large
IpTypeintegerNo

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

  • 1 (default): Internet
  • 2: internal network
1
AppIdstringNo

The ID of the application.

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

The ID of the image.

m-5rynw9g1ow1e928lb83bqmbnf
ResourceInfostringNo

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 parameters

ParameterTypeDescriptionExample
object

Schema of Response

RequestIdstring

The ID of the request.

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

The IDs of the devices.

string

The ID of the device.

['b-5qco9b10iei79z48phno4bmsr']
ResourceDetailInfosobject []

The key properties of the device.

RegionIDstring

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

cn-chongqing-1
IDstring

The ID of the device.

h-uf6009zoa6hdbjyqxcn1
IPstring

The IP address of the device.

10.152.196.36
Serverstring

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

ens-nc2
Typestring

The type of the instance.

ens.ac6.large
Statusstring

The status of the device.

Running
Macstring

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

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

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

telecom
OrderIdstring

The ID of the order.

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

Examples

Sample success responses

JSONformat

{
  "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 codeError codeError message
400NoPermissionPermission denied.
400InvalidParameter.%sThe specified field %s invalid. Please check it again.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history