Scaling Out Lite Server Supernodes
Function
This API is used to increase the resource capacity of a Lite Server supernode. It is used when you need to improve the performance of a Lite Server supernode to support more loads or process more data. Before using this API, ensure that you have logged in to the system and have the permission to expand the supernode capacity, and the specified supernode exists and is running. After the scale-out, the resource capacity of the supernode is adjusted based on the specified specifications. You can use the increased resources immediately. If you do not have the required permission to perform the operation, the specified supernode does not exist, the supernode has reached the maximum capacity, or the specified scale-out specifications are invalid, the API returns an error message.
Debugging
You can debug this API through automatic authentication in API Explorer or use the SDK sample code generated by API Explorer.
Authorization Information
Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.
- If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
- If you are using identity policy-based authorization, no identity policy-based permission required for calling this API.
URI
POST /v1/{project_id}/dev-servers/hyperinstance/{id}/live-scale-up
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
id |
Yes |
String |
Definition: Lite Server supernode ID. Constraints: ^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$ Range: N/A Default Value: N/A |
|
project_id |
Yes |
String |
Definition: Project ID. For details, see Obtaining a Project ID and Name. Constraints: The value can contain 1 to 64 characters. Letters, digits, and hyphens (-) are allowed. Range: N/A Default Value: N/A |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
flavor |
Yes |
String |
Definition: Server flavor name. Constraints: N/A Range: The value can contain 1 to 128 characters. Only letters, digits, and periods (.) are allowed. Default Value: N/A |
|
root_volume |
No |
EvsVolume object |
Definition: System disk information of the new server. |
|
data_volume |
No |
ServerDataVolume object |
Definition: Data disk information of the new server. |
|
image_id |
Yes |
String |
Definition: Server image ID. Constraints: N/A Range: The value must be a string of 36 characters in UUID format. Default Value: N/A |
|
userdata |
No |
String |
Definition: Custom data to be injected into the instance during cloud server creation. Texts and text files can be injected. Example: Before base64 encoding: #!/bin/bash echo user_test > /home/user.txt After base64 encoding: IyEvYmluL2Jhc2gKZWNobyB1c2VyX3Rlc3QgPiAvaG9tZS91c2VyLnR4dA== For more information about user data injection, see Injecting User Data. You must be aware of the effects of user_data. You are responsible for the impact and risks. Constraints: Range: N/A. Default Value: N/A. |
|
key_pair_name |
No |
String |
Definition: Key pair name used for logging in to the server. Select either admin_pass or key_pair_name. Note that supernodes can be created only using key pairs. Constraints: admin_pass and key_pair_name cannot exist at the same time. Range: The value can contain 1 to 64 characters. Only letters, digits, hyphens (-), underscores (_), and periods (.) are allowed. Default Value: N/A |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
size |
No |
Integer |
Definition: System disk size, which is the storage space allocated to the system disk. Constraints: N/A Range: 100 to 1,024 GB Default Value: N/A |
|
type |
No |
String |
Definition: System disk type, which indicates the storage type of the system disk. Constraints: N/A Range: Default Value: N/A |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
size |
Yes |
Integer |
Definition: Data disk size. Storage space allocated to a data disk. Constraints: N/A Range: 100 to 32,768 GB Default Value: N/A |
|
type |
Yes |
String |
Definition: System disk type, which indicates the storage type of the data disk. Constraints: N/A Range: Default Value: N/A |
|
count |
Yes |
Integer |
Definition: Number of data disks. Number of data disks allocated to an instance. Constraints: N/A Range: 1 to 8 Default Value: N/A |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
create_at |
Long |
Definition: Creation time. Constraints: N/A Range: N/A Default Value: N/A |
|
hps_cluster_id |
String |
Definition: Network ID of the supernode cluster. Constraints: N/A Range: ^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$ Default Value: N/A |
|
hps_id |
String |
Definition: Supernode ID. Constraints: N/A Range: ^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$ Default Value: N/A |
|
id |
String |
Definition: Lite Server supernode ID. Constraints: N/A. Range: ^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$ Default Value: N/A. |
|
name |
String |
Definition: Instance name. Constraints: N/A Range: ^[-_.a-zA-Z0-9]{1,64}$ Default Value: N/A |
|
order_id |
String |
Definition: Order ID. Constraints: N/A Range: ^[a-zA-Z0-9]{1,64}$ Default Value: N/A |
|
status |
String |
Definition: Supernode instance status. Constraints: N/A Range:
Default Value: N/A |
|
servers |
Array of ServerResponse objects |
Definition: List of supernode subnode instances. Constraints: N/A Range: N/A Default Value: N/A |
|
update_at |
Long |
Definition: Creation time. Constraints: N/A Range: N/A Default Value: N/A |
|
Parameter |
Type |
Description |
|---|---|---|
|
create_at |
Long |
Definition: Creation time. Range: N/A |
|
update_at |
Long |
Definition: Update time. Range: N/A |
|
charging_mode |
String |
Definition: Billing mode. Range: |
|
cloud_server |
CloudServer object |
Definition: Cloud service information. |
|
endpoints_response |
Array of Endpoints objects |
Definition: Private IP address of the instance. |
|
flavor |
String |
Definition: Instance flavor name. Range: ^.{1,128}$ |
|
id |
String |
Definition: Instance ID. Range: ^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$ |
|
key_pair_name |
String |
Definition: Key pair name. Range: ^[-_.a-zA-Z0-9]{1,64}$ |
|
name |
String |
Definition: Instance name. Range: ^[-_.a-zA-Z0-9]{1,64}$ |
|
order_id |
String |
Definition: Order ID. Range: ^[a-zA-Z0-9]{1,64}$ |
|
server_image_response |
ServerImageResponse object |
Definition: Instance image information. Range: N/A |
|
status |
String |
Definition: Instance status. Current running status of the instance, which is used to monitor the lifecycle and health status of the instance. Range: |
|
vpc_id |
String |
Definition: ID of the VPC where the instance is located. Range: ^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$ |
|
endpoints |
Array of EndpointsRes objects |
Definition: Private IP address of the server. |
|
volumes |
Array of ServerVolume objects |
Definition: Information about the mounted hard disk. |
|
image |
ServerImageResponse object |
Definition: Server image information. |
|
category |
String |
Definition: Server type. Range: |
|
server_hps |
ServerHpsInfo object |
Definition: Information about the supernode to which the server belongs. |
|
subnet_id |
String |
Parameter description: ID of the subnet where the instance is located. ** Value range: **:^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$. |
|
Parameter |
Type |
Description |
|---|---|---|
|
id |
String |
Definition: Server resource ID or supernode's child node ID. Range: ^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$ |
|
type |
String |
Definition: Lite Server server type. Range: |
|
hps_id |
String |
Definition: Server resource ID of the supernode's child node. Range: ^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$ |
|
hps_ecs_id |
String |
Definition: Server resource ID of the supernode's child node. Range: ^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$ |
|
Parameter |
Type |
Description |
|---|---|---|
|
allowed_access_ips |
Array of strings |
Definition: Whitelisted public IP addresses that are allowed to access notebook instances through SSH. By default, all IP addresses can access the notebook instances. If IP addresses are specified, only the clients with the specified IP addresses can access the notebook instances. Constraints: N/A Range: 0 to 1,024 IP addresses Default Value: N/A |
|
dev_service |
String |
Definition: Supported services. Range: |
|
extensions |
Map<String,String> |
Definition: App-specific URL for accessing the remote development mode of the app. It includes extended configurations of the application. Constraints: N/A Range: N/A Default Value: N/A |
|
ssh_keys |
Array of strings |
Definition: List of SSH key pairs. You can set multiple key pairs to access an SSH instance at the same time. Constraints: N/A Range: 0 to 1,024 key pairs Default Value: N/A |
|
Parameter |
Type |
Description |
|---|---|---|
|
allowed_access_ips |
Array of strings |
Definition: Whitelisted public IP addresses that are allowed to access notebook instances through SSH. By default, all public IP addresses can access the notebook instances. If IP addresses are specified, only the clients with the specified IP addresses can access the notebook instances. |
|
dev_service |
String |
Definition: Method for accessing the notebook instance. Range: |
|
ssh_keys |
Array of strings |
Definition: List of SSH key pairs. You can set multiple key pairs to access an SSH instance at the same time. |
|
service |
String |
Definition: Method for accessing the notebook instance. Range: |
|
uri |
String |
Definition: Private IP address of the instance. Range: N/A |
|
Parameter |
Type |
Description |
|---|---|---|
|
size |
Integer |
Definition: EVS disk size, which is the storage space allocated to the system disk. Constraints: N/A Range: 100 to 1,024 GB Default Value: N/A |
|
type |
String |
Definition: Storage type, which can be a system disk or data disk. Constraints: N/A Range Default Value: N/A |
|
evs_type |
String |
Definition: EVS disk type. Storage type of the EVS disk. Constraints: N/A Range Default Value: N/A |
|
evs_id |
String |
Definition: ID of the EVS disk. Range: ^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$ |
|
Parameter |
Type |
Description |
|---|---|---|
|
arch |
String |
Definition: Architecture type of a server image. Range: |
|
image_id |
String |
Definition: Server image ID. Range: ^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$ |
|
name |
String |
Definition: Server image name. Constraints: N/A Range: 1 to 256 characters Default Value: N/A |
|
server_type |
String |
Definition: Server type. Range: |
|
status |
String |
Definition: Server image status. Range: |
Example Requests
POST https://{endpoint}/v1/{project_id}/dev-servers/hyperinstance/{id}/live-scale-up
{
"flavor" : "kat3ne-32-800t.192xlarge.8.matrix",
"image_id" : "f4059eb4-c2f5-46a8-9b33-6cbed5d3fc81",
"key_pair_name" : "KeyPair-42c4",
"root_volume" : {
"size" : 200,
"type" : "ESSD"
}
}
Example Responses
Status code: 200
Supernode details
{
"create_at" : 1731055875839,
"hps_cluster_id" : "42669b79-da2f-4482-ad40-22f50442c9e7",
"hps_id" : "33806b62-1c7b-4781-8d2c-411a042b86b8",
"id" : "b4beacb6-4380-448c-a218-daa82cf03f5d",
"name" : "lite server-hps",
"order_id" : "CS2411081650G9B6Z",
"servers" : [ {
"charging_mode" : "PRE_PAID",
"cloud_server" : {
"hps_id" : "33806b62-1c7b-4781-8d2c-411a042b86b8",
"id" : "50208d41-749e-4bce-95a9-47a850925d4e",
"type" : "HPS"
},
"create_at" : 1731055875840,
"endpoints" : [ {
"service" : "SSH",
"uri" : "10.1.0.98"
} ],
"flavor" : "kat3ne-8.48xlarge.8.800t.matrix",
"id" : "278d70a9-2049-450a-bf6d-db02fe9f6634",
"image" : {
"image_id" : "86496e41-87c4-4779-9007-4f8f5c2a208f"
},
"key_pair_name" : "KeyPair-hps",
"name" : "lite server-hps-1",
"order_id" : "CS2411081650G9B6Z",
"server_hps" : {
"id" : "b4beacb6-4380-448c-a218-daa82cf03f5d",
"name" : "lite server-hps"
},
"status" : "RUNNING",
"update_at" : 1731209918651,
"vpc_id" : "7980ccf4-44d0-42cc-a844-42e035379a38"
} ],
"status" : "ACTIVE",
"update_at" : 1731209918651
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
Supernode details |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot