微服务/TCP/UDP/套餐管理 接口
POST 获取四层套餐
POST /cdn/packageRest/Layer4/list
Body 请求参数
{
"filters": [
{
"label": "listenPort",
"value": [
"443"
]
}
],
"pageSize": 10,
"searchHeader": {
"activate": [
"1"
]
},
"pageNum": 1,
"oid": "20241213279926076364"
}
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
Authorization | header | string | 否 | none | |
body | body | object | 否 | none | |
» filters | body | [object] | 否 | 搜索 | none |
»» label | body | string | 否 | 名称 | oid:表示套餐(别名) |
»» value | body | [string] | 否 | 值 | 例如:442 |
» pageNum | body | integer(int32) | 是 | 当前页数 | none |
» pageSize | body | integer(int32) | 是 | 每页显示条目个数 | none |
» searchHeader | body | object | 否 | 筛选条件 | none |
»» activate | body | [string] | 是 | 套餐状态 | 0:表示待支付 |
详细说明
»» label: oid:表示套餐(别名)
packageName:表示套餐名
»» activate: 0:表示待支付 -1:表示已退订 1:表示使用中 3:表示关闭 4:表示配置中
返回示例
200 Response
{
"total": 3,
"rows": [
{
"ctime": 1681887684,
"isTest": 1,
"oid": "123456789684",
"packageName": "测试四层",
"ruleCnt": 0,
"remark": "",
"activate": 1,
"mday": null,
"lastday": null,
"alias": "测试2",
"cname": "",
"bandwidth": 0
}
],
"code": 200,
"msg": "查询成功"
}
201 Response
{}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | none | Inline |
201 | Created | none | Inline |
401 | Unauthorized | none | Inline |
403 | Forbidden | none | Inline |
404 | Not Found | none | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» total | integer | true | none | 总数量 | 符合查询条件的总数量,用于分页 |
» rows | [object] | true | none | 查询结果 | none |
»» ctime | integer | true | none | 创建时间 | none |
»» isTest | integer | true | none | 套餐类型 | 0:测试套现1:正式套餐 |
»» oid | string | true | none | 套餐 | none |
»» packageName | string | true | none | 套餐名 | none |
»» ruleCnt | integer | true | none | 规则数量 | none |
»» remark | string | true | none | 备注 | none |
»» activate | integer | true | none | 状态 | 0:待支付 -1:已退订 1:使用中 3:关闭 4:配置中 |
»» mday | string¦null | true | none | 到期时间 | none |
»» lastday | integer¦null | true | none | 距离到期时间 | none |
»» alias | string | true | none | 别名 | none |
» code | integer | true | none | none | |
» msg | string | true | none | none |