本接口用于查询VPS集群列表信息,支持分页查询。
GET /client/cluster/clusterList
| 参数名 | 必选 | 类型 | 说明 |
| x-merchant-token | 是 | string | 商户访问令牌 |
| x-merchant-code | 是 | string | 商户编码 |
| 参数名 | 必选 | 类型 | 说明 |
| pageNum | 否 | Integer | 页码,默认为1 |
| pageSize | 否 | Integer | 每页数量,默认为20 |
| continent | 否 | String | 洲 当前只有North America可用 |
| countryCode | 否 | String | 国家编码 当前只有 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": "查询成功"
}
| 参数名 | 类型 | 说明 |
| id | Long | 集群ID |
| clusterName | String | 集群名称 |
| clusterType | String | 集群类型 |
| continent | String | 洲 |
| countryCode | String | 国家代码 |
| city | String | 城市 |