本接口用于查询VPS集群的参数配置模板列表,支持分页查询。
GET /client/cluster/templateList
| 参数名 | 必选 | 类型 | 说明 |
| x-merchant-token | 是 | string | 商户访问令牌 |
| x-merchant-code | 是 | string | 商户编码 |
| 参数名 | 必选 | 类型 | 说明 |
| clusterId | 是 | String | 集群ID |
| templateId | 否 | String | 集群ID |
const response = await fetch('/client/cluster/templateList', {
method: 'GET',
headers: {
'Content-Type': 'multipart/form-data',
'x-merchant-token': 'your-token-here',
'x-merchant-code': 'your-merchant-code'
},
body: JSON.stringify({
"clusterId": 6
})
});
{
"total": 1,
"rows": [
{
"id": 4,
"clusterId": 6,
"templateId":"povcUS2qr2oHgaz",
"model": "TH.Test2",
"cpuCores": 2,
"cpuModel": "Xeon E5",
"memory": 2,
"diskCapacity": 1000,
"diskModel": "Kingston",
"ioWrite": 100,
"ioRead": 200,
"bandwidth": 1000,
"internetTraffic": 1000,
"ipV4": "BGP",
"ipV6": "Y",
"priceMonthly": 30.00,
"priceQuarterly": 80.00,
"priceSemiAnnually": 160.00,
"priceAnnually": 300.00
}
],
"code": 200,
"msg": "查询成功"
}
| 参数名 | 类型 | 说明 |
| id | Long | 模板ID |
| clusterId | Long | 集群ID |
| templateId | String | 模板查询ID |
| model | String | 模板型号 |
| cpuCores | Integer | CPU核心数 |
| cpuModel | String | CPU型号 |
| memory | Integer | 内存大小(GB) |
| diskCapacity | Integer | 磁盘容量(GB) |
| diskModel | String | 磁盘型号 |
| ioWrite | Integer | 磁盘写入速度(MB/s) |
| ioRead | Integer | 磁盘读取速度(MB/s) |
| bandwidth | Integer | 带宽大小(Mbps) |
| internetTraffic | Integer | 月流量(GB) |
| ipV4 | String | IPv4类型 |
| ipV6 | String | 是否支持IPv6(Y/N) |
| priceMonthly | BigDecimal | 月付价格 |
| priceQuarterly | BigDecimal | 季付价格 |
| priceSemiAnnually | BigDecimal | 半年付价格 |
| priceAnnually | BigDecimal | 年付价格 |