All Products
Search
Document Center

ENS:RescaleDeviceService

Last Updated:Dec 25, 2024

Scales out a bare metal device.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

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.
OperationAccess levelResource typeCondition keyAssociated operation
ens:RescaleDeviceService
*All Resources
*
    none
none

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.

DeviceIdstring

The ID of the device.

['b-5qco9b10iei79z48phno4bmsr']
ResourceDetailInfosarray<object>

The key properties of the device.

ResourceDetailInfoobject
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