硅云帮助文档中心
搜索文档
热门搜索词:
产品简介
产品定价
入门指南
经典案例
快照
常见问题
知识拓展
名词解释
API参考
此接口功能为获取带宽规格,此接口不需要验签,带宽规格很少修改,建议缓存下来
/ncs-server/api/v1/product/getBandSpec
GET
无
GET /ncs-server/api/v1/product/getBandSpec HTTP/1.1
实际以真实返回结果为准
{
"status": 2000,
"message": "success",
"data": [
{
"productId": "default",
"bandwidthName": "默认",
"areaMarks": "test,",
"levelOne": 1,
"levelOneUnitPrice": 500,
"levelTwo": 5,
"levelTwoUnitPrice": 1500,
"levelThreeUnitPrice": 4000,
"minSize": 1,
"maxSize": 100,
"configuration": "配置说明",
"pos": 1
},
{
"productId": "large-bandwidth",
"bandwidthName": "large-bandwidth",
"areaMarks": "test,",
"levelOne": 5,
"levelOneUnitPrice": 500,
"levelTwo": 10,
"levelTwoUnitPrice": 500,
"levelThreeUnitPrice": 500,
"minSize": 50,
"maxSize": 200,
"configuration": "large-bandwidth",
"pos": 2
}
]
}带宽规格数据结构:
| 字段 | 类型 | 描述 |
| productId | string | 带宽规格id |
| bandwidthName | string | 带宽名 |
| areaMarks | string | 可以在哪些地区使用,每个地区以英文逗号分隔 |
| minSize | int | 该类带宽能分配的最小带宽 |
| maxSize | int | 该类带宽能分配的最大带宽 |
| levelOne | int | 第一等级 |
| levelOneUnitPrice | int | 第一等级单价,单位分 |
| levelTwo | int | 第二等级 |
| levelTwoUnitPrice | int | 第二等级单价,单位分 |
| levelThreeUnitPrice | int | 第三等级单价,单位分 ,价格=每个等级带宽数乘以各个等级的单价相加 |
| configuration | string | 配置说明 |
| pos | int | 排列位置标识 |
您对该文档有什么建议?
本文导航