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

Restart

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

API Introduction#

Restart the cloud server based on the given cloud server ID.#

This interface is asynchronous. Upon successful submission of the cloud server reboot request, a processResult is returned. The reboot process is not completed immediately at this stage. You need to poll the task execution status by calling the task query API to check the processResult. A processResult status of SUCCESS indicates that the cloud server has been successfully rebooted.#

Request

Header Params

Body Params application/json

Example
{
    "ecsResourceUUID": "ecs-wr00007bgadt",
    "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/restart' \
--header 'x-open-token: test-token' \
--header 'Content-Type: application/json' \
--data-raw '{
    "ecsResourceUUID": "ecs-wr00007bgadt",
    "regionCode": "cn-dev-2"
}'

Responses

🟢202成功
application/json
Body

Example
{
    "asyncTaskUUID": "7e00007dyzta",
    "httpStatus": 202,
    "rowCount": 0
}
Modified at 2025-09-24 07:44:59
Previous
Start
Next
Modify Password
Built with