Scales out a bare metal device.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
ens:RescaleDeviceService | *All Resources * |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RescaleType | string | Yes | The scaling operation. Set the value to Add to add new resources. | 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. | RegionId |
Timeout | long | 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 |
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 parameters
Examples
Sample success responses
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 |
---|---|---|
400 | NoPermission | Permission denied. |
400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|