lightnode
en
  • cn
  • en
  1. Instance
lightnode
en
  • cn
  • en
  • API Introduction
  • Authentication Overview
  • Instance
    • Create
      POST
    • Release
      POST
    • Stop
      POST
    • Start
      POST
    • Restart
      POST
    • Modify Password
      POST
    • Instance Details
      GET
    • Reinstall
      POST
  • Security Group
    • Security Group Query
      GET
  • Image
    • Image Query
      GET
  • Asynchronous Task
    • Query Async Task
      GET
  • SSH key
    • Key Pair Query
      GET
  1. Instance

Reinstall

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

API Introduction#

Reinstall the operating system of the elastic cloud server, such as Linux or Windows systems.#

The Linux system username is root, and the Windows system username is Administrator.#

This interface is asynchronous. After a request to reinstall the cloud server is successfully submitted, a processResult will be returned. Note that the reinstallation process is not completed immediately. You need to check the execution status by calling the task query API to poll the processResult. A processResult status of SUCCESS indicates that the cloud server has been successfully reinstalled.#

Password Rules:#

Length must be 8-30 characters
Must include [A-Z], [a-z], [0-9]
Must contain exactly 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 --request POST '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

🟢202成功
application/json
Body

Example
{
    "asyncTaskUUID": "7e00007dz0df",
    "httpStatus": 202,
    "rowCount": 0
}
Modified at 2025-09-24 07:46:51
Previous
Instance Details
Next
Security Group Query
Built with