集群列表查询

本接口用于查询VPS集群列表信息,支持分页查询。

接口信息

GET /client/cluster/clusterList

请求头

参数名必选类型说明
x-merchant-tokenstring商户访问令牌
x-merchant-codestring商户编码

请求参数

参数名必选类型说明
pageNumInteger页码,默认为1
pageSizeInteger每页数量,默认为20
continentString洲 当前只有North America可用
countryCodeString国家编码 当前只有 US 可用

请求示例

const response = await fetch('/client/cluster/clusterList?pageSize=20&pageNum=1', {
  method: 'GET',
  headers: {
    'Content-Type': 'application/json',
    'x-merchant-token': 'your-token-here',
    'x-merchant-code': 'your-merchant-code'
  },
  body: JSON.stringify({})
});

响应结果

{
    "total": 1,
    "rows": [
        {
            "id": 6,
            "clusterName": "测试集群Beta",
            "clusterType": "vps",
            "continent": "Asia",
            "countryCode": "TH",
            "city": "Bangkok"
        }
    ],
    "code": 200,
    "msg": "查询成功"
}

响应参数说明

参数名类型说明
idLong集群ID
clusterNameString集群名称
clusterTypeString集群类型
continentString
countryCodeString国家代码
cityString城市