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

Modify Password

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

API Introduction#

Reset the password for the elastic cloud server management account (root user or Administrator user).#

This is an asynchronous interface. When the request to change the cloud server password is successfully submitted, a processResult will be returned. Note that the password change operation is not completed immediately. You need to check the execution status by calling the task query API to poll the processResult. A status of SUCCESS indicates that the cloud server password has been changed successfully.#

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

Responses

🟢202成功
application/json
Body

Example
{
    "asyncTaskUUID": "7e00007dyxzg",
    "httpStatus": 202,
    "rowCount": 0
}
Modified at 2025-09-24 07:47:01
Previous
Restart
Next
Instance Details
Built with