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

Stop

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

API Introduction#

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

This interface is an asynchronous interface. When a request to shut down the cloud server is successfully issued, it will return a processResult. However, the shutdown process is not completed immediately at this point. You need to check the execution status of the task by calling the task query interface and verify the processResult. When the processResult status shows SUCCESS, it indicates that the cloud server has been successfully shut down.#

Request

Header Params

Body Params application/json

Example
{
    "ecsResourceUUID": "ecs-wr00007bgadt",
    "forceStop": true
}

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/stop' \
--header 'x-open-token: test-token' \
--header 'Content-Type: application/json' \
--data-raw '{
    "ecsResourceUUID": "ecs-wr00007bgadt",
    "forceStop": true
}'

Responses

🟢202成功
application/json
Body

Example
{
    "asyncTaskUUID": "cm00007dyy36",
    "httpStatus": 202,
    "rowCount": 0
}
Modified at 2025-09-24 07:43:47
Previous
Release
Next
Start
Built with