1. 主机
LightNode
cn
  • cn
  • en
  • API概览
  • API调用说明
  • 主机
    • 创建
      POST
    • 释放
      POST
    • 关机
      POST
    • 开机
      POST
    • 重启
      POST
    • 修改密码
      POST
    • 主机详情
      GET
    • 重装
      POST
    • 主机列表
      GET
  • 安全组
    • 安全组查询
      GET
  • 镜像
    • 镜像查询
      GET
  • 异步任务
    • 查询异步任务
      GET
  • 密钥对
    • 密钥对查询
      GET
  • 地域
    • 地域列表
      GET
  • 套餐
    • 套餐列表
      GET
  • Schemas
    • 主机模型
  1. 主机

主机列表

GET
https://openapi.lightnode.com/instance/list

接口介绍#

查询账号中全部的主机。#

Request

Query Params

Header Params

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 GET 'https://openapi.lightnode.com/instance/list?regionCode=&zoneCode' \
--header 'x-open-token: test-token'

Responses

🟢200成功
application/json
Body

Example
{
    "httpStatus": 202,
    "instances": [
        {
            "bandwidth": 100,
            "cpu": 1,
            "createTime": "2026-03-12 10:15:17",
            "ecsPendingStatus": "NONE",
            "ecsResourceUUID": "ecs-r600009d0myg",
            "ecsStatus": "STARTED",
            "imageName": "Debian 9.0 64位",
            "imageType": "System",
            "instanceName": "20260312101448646396",
            "instanceSeries": "g2a",
            "internalIpAddress": "172.16.0.135",
            "internetChargeType": "PAY_BY_TRAFFIC",
            "memory": 2,
            "networkType": "PRIVATE_NETWORK",
            "osDistroVersion": "Debian",
            "publicIpAddress": "1.2.7.80",
            "regionCode": "cn-dev-1",
            "regionName": "DEV Region I",
            "supportIpv6": false,
            "supportSsh": false,
            "systemDiskSize": 50,
            "zoneCode": "cn-dev-1-a",
            "zoneName": "Zone A"
        },
        {
            "bandwidth": 100,
            "cpu": 1,
            "createTime": "2026-03-12 10:13:38",
            "ecsPendingStatus": "NONE",
            "ecsResourceUUID": "ecs-r600009d0j3i",
            "ecsStatus": "STARTED",
            "imageName": "Debian 9.0 64位",
            "imageType": "System",
            "instanceName": "20260312101256595875",
            "instanceSeries": "s3",
            "internalIpAddress": "172.16.0.92",
            "internetChargeType": "PAY_BY_TRAFFIC",
            "memory": 2,
            "networkType": "PRIVATE_NETWORK",
            "osDistroVersion": "Debian",
            "publicIpAddress": "1.2.7.253",
            "regionCode": "cn-dev-1",
            "regionName": "DEV Region I",
            "supportIpv6": false,
            "supportSsh": false,
            "systemDiskSize": 50,
            "zoneCode": "cn-dev-1-a",
            "zoneName": "Zone A"
        }
    ],
    "rowCount": 2,
    "success": true
}
Modified at 2026-04-10 03:37:51
Previous
重装
Next
安全组查询
Built with