集群模板列表

本接口用于查询VPS集群的参数配置模板列表,支持分页查询。

接口信息

GET /client/cluster/templateList

请求头

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

请求参数

参数名必选类型说明
clusterIdString集群ID
templateIdString集群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": "查询成功"
}

响应参数说明

参数名类型说明
idLong模板ID
clusterIdLong集群ID
templateIdString模板查询ID
modelString模板型号
cpuCoresIntegerCPU核心数
cpuModelStringCPU型号
memoryInteger内存大小(GB)
diskCapacityInteger磁盘容量(GB)
diskModelString磁盘型号
ioWriteInteger磁盘写入速度(MB/s)
ioReadInteger磁盘读取速度(MB/s)
bandwidthInteger带宽大小(Mbps)
internetTrafficInteger月流量(GB)
ipV4StringIPv4类型
ipV6String是否支持IPv6(Y/N)
priceMonthlyBigDecimal月付价格
priceQuarterlyBigDecimal季付价格
priceSemiAnnuallyBigDecimal半年付价格
priceAnnuallyBigDecimal年付价格