1. Instances
LightNode
en
  • cn
  • en
  • API Overview
  • API Authentication Guide
  • Instances
    • Create Instance
      POST
    • Delete Instance
      POST
    • Stop Instance
      POST
    • Start Instance
      POST
    • Restart Instance
      POST
    • Reset Password
      POST
    • Instance Details
      GET
    • Reinstall OS
      POST
    • Instance List
      GET
  • Security Groups
    • Security Group List
      GET
  • Images
    • Image List
      GET
  • Async Tasks
    • Get Async Task Result
      GET
  • SSH Keys
    • SSH Key List
      GET
  • Regions
    • Region List
      GET
  • Packages
    • Package List
      GET
  • Schemas
    • Instance Model
  1. Instances

Reinstall OS

POST
https://openapi.lightnode.com/instance/reinstallSystem

API Overview#

Reinstalls the operating system of an elastic cloud server, such as Linux or Windows.#

The default username is root for Linux and Administrator for Windows.#

This is an asynchronous API. After the reinstall request is accepted, the operation is not completed immediately. Query the task execution status and check processResult. When processResult is SUCCESS, the cloud server has been reinstalled successfully.#

Password rules:#

8 to 30 characters long
Must include letters and numbers
Must include at least one of the following special characters: ()~!@#$*-+={}[]:;,.?/

Request

Header Params

Body Params application/json

Example
{
    "ecsResourceUUID": "ecs-wr00007bgadt",
    "password": "Pass4433@",
    "imageResourceUUID": "img-rh0000743phm",
    "sshKeyResourceUUID": null,
    "regionCode": "cn-dev-2"
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://openapi.lightnode.com/instance/reinstallSystem' \
--header 'x-open-token: test-token' \
--header 'Content-Type: application/json' \
--data-raw '{
    "ecsResourceUUID": "ecs-wr00007bgadt",
    "password": "Pass4433@",
    "imageResourceUUID": "img-rh0000743phm",
    "sshKeyResourceUUID": null,
    "regionCode": "cn-dev-2"
}'

Responses

🟢202Success
application/json
Bodyapplication/json

Example
{
    "asyncTaskUUID": "7e00007dz0df",
    "httpStatus": 202,
    "rowCount": 0
}
Modified at 2026-04-10 06:08:12
Previous
Instance Details
Next
Instance List
Built with