Scales out a bare metal device.
Try it now
Test
RAM authorization
|
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 |
| 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 |
| 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:
Valid values:
|
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.