主题
V10代理魔方财务通用商品-前台
获取订购页面配置
| 项目 | 内容 |
|---|---|
| 接口描述 | 获取订购页面配置 |
| 接口地址 | /console/v1/product/:id/remf_finance_common/order_page |
| 请求方式 | GET |
| 接口版本 | v1 |
请求参数
| name | type | default | validate | desc |
|---|---|---|---|---|
| id | int | - | require | 商品ID |
响应参数
无
获取订购页面配置
| 项目 | 内容 |
|---|---|
| 接口描述 | 获取订购页面配置(层级联动) |
| 接口地址 | /console/v1/product/:id/remf_finance_common/link |
| 请求方式 | GET |
| 接口版本 | v1 |
请求参数
| name | type | default | validate | desc |
|---|---|---|---|---|
| id | int | - | require | 商品ID |
| cid | int | - | require | 配置项ID |
| sub_id | int | - | require | 子项ID |
响应参数
无
获取商品配置所有周期价格
| 项目 | 内容 |
|---|---|
| 接口描述 | 获取商品配置所有周期价格 |
| 接口地址 | /console/v1/product/:id/remf_finance_common/duration |
| 请求方式 | GET |
| 接口版本 | v1 |
请求参数
| name | type | default | validate | desc |
|---|---|---|---|---|
| id | int | - | require | 商品ID |
响应参数
| name | type | default | desc |
|---|---|---|---|
| duration | object | - | 周期 |
| duration.product_price | float | - | 价格 |
| duration.setup_fee | float | - | 初装费 |
| duration.billingcycle | string | - | 周期 |
| duration.billingcycle_zh | string | - | 周期 |
| duration.pay_ontrial_cycle | string | - | 试用 |
获取控制台地址
| 项目 | 内容 |
|---|---|
| 接口描述 | 获取控制台地址 |
| 接口地址 | /console/v1/remf_finance_common/:id/vnc |
| 请求方式 | POST |
| 接口版本 | v1 |
请求参数
无
响应参数
| name | type | default | desc |
|---|---|---|---|
| data.url | string | - | 控制台地址 |
获取实例详情(具体参数参考魔方财务)
| 项目 | 内容 |
|---|---|
| 接口描述 | 获取实例详情(具体参数参考魔方财务) |
| 接口地址 | /console/v1/remf_finance_common/:id |
| 请求方式 | GET |
| 接口版本 | v1 |
请求参数
| name | type | default | validate | desc |
|---|---|---|---|---|
| id | int | - | - | 产品ID |
响应参数
无
产品列表
| 项目 | 内容 |
|---|---|
| 接口描述 | 产品列表 |
| 接口地址 | /console/v1/remf_finance_common |
| 请求方式 | GET |
| 接口版本 | v1 |
请求参数
| name | type | default | validate | desc |
|---|---|---|---|---|
| page | int | 1 | - | 页数 |
| limit | int | - | - | 每页条数 |
| orderby | string | - | - | 排序(id,due_time,status) |
| sort | string | - | - | 升/降序 |
| keywords | string | - | - | 关键字搜索,搜索套餐名称/主机名/IP |
| status | string | - | - | 产品状态(Unpaid=未付款,Pending=开通中,Active=已开通,Suspended=已暂停,Deleted=已删除) |
| tab | string | - | - | 状态using使用中expiring即将到期overdue已逾期deleted已删除 |
| m | int | - | - | 菜单ID |
响应参数
| name | type | default | desc |
|---|---|---|---|
| list[].id | int | - | 产品ID |
| list[].name | string | - | 产品标识 |
| list[].status | string | - | 产品状态(Unpaid=未付款,Pending=开通中,Active=已开通,Suspended=已暂停,Deleted=已删除) |
| list[].due_time | int | - | 到期时间 |
| list[].active_time | int | - | 开通时间 |
| list[].product_name | string | - | 商品名称 |
| list[].is_auto_renew | int | - | 是否自动续费(0=否,1=是) |
| count | int | - | 总条数 |
| using_count | int | - | 使用中产品数量 |
| expiring_count | int | - | 即将到期产品数量 |
| overdue_count | int | - | 已逾期产品数量 |
| deleted_count | int | - | 已删除产品数量 |
| all_count | int | - | 全部产品数量 |
| self_defined_field[].id | int | - | 自定义字段ID |
| self_defined_field[].field_name | string | - | 自定义字段名称 |
| self_defined_field[].field_type | string | - | 字段类型(text=文本框,link=链接,password=密码,dropdown=下拉,tickbox=勾选框,textarea=文本区) |
获取自定义tab内容
| 项目 | 内容 |
|---|---|
| 接口描述 | 获取自定义tab内容 |
| 接口地址 | /console/v1/remf_finance_common/:id/custom/content |
| 请求方式 | GET |
| 接口版本 | v1 |
请求参数
| name | type | default | validate | desc |
|---|---|---|---|---|
| id | int | - | require | 产品ID |
| key | string | - | require | 关键字(/console/v1/remf_finance_common/:id接口字段module_client_area的键key) |
| date | int | - | require | 时间戳1713172205000 |
响应参数
无
开机
| 项目 | 内容 |
|---|---|
| 接口描述 | 开机 |
| 接口地址 | /console/v1/remf_finance_common/:id/on |
| 请求方式 | POST |
| 接口版本 | v1 |
请求参数
| name | type | default | validate | desc |
|---|---|---|---|---|
| id | int | - | require | 产品ID |
响应参数
无
关机
| 项目 | 内容 |
|---|---|
| 接口描述 | 关机 |
| 接口地址 | /console/v1/remf_finance_common/:id/off |
| 请求方式 | POST |
| 接口版本 | v1 |
请求参数
| name | type | default | validate | desc |
|---|---|---|---|---|
| id | int | - | require | 产品ID |
响应参数
无
重启
| 项目 | 内容 |
|---|---|
| 接口描述 | 重启 |
| 接口地址 | /console/v1/remf_finance_common/:id/reboot |
| 请求方式 | POST |
| 接口版本 | v1 |
请求参数
| name | type | default | validate | desc |
|---|---|---|---|---|
| id | int | - | require | 产品ID |
响应参数
无
硬关机
| 项目 | 内容 |
|---|---|
| 接口描述 | 硬关机 |
| 接口地址 | /console/v1/remf_finance_common/:id/hard_off |
| 请求方式 | POST |
| 接口版本 | v1 |
请求参数
| name | type | default | validate | desc |
|---|---|---|---|---|
| id | int | - | require | 产品ID |
响应参数
无
硬重启
| 项目 | 内容 |
|---|---|
| 接口描述 | 硬重启 |
| 接口地址 | /console/v1/remf_finance_common/:id/hard_reboot |
| 请求方式 | POST |
| 接口版本 | v1 |
请求参数
| name | type | default | validate | desc |
|---|---|---|---|---|
| id | int | - | require | 产品ID |
响应参数
无
重装系统
| 项目 | 内容 |
|---|---|
| 接口描述 | 重装系统 |
| 接口地址 | /console/v1/remf_finance_common/:id/reinstall |
| 请求方式 | POST |
| 接口版本 | v1 |
请求参数
| name | type | default | validate | desc |
|---|---|---|---|---|
| id | int | - | require | 产品ID |
| os | int | - | require | 重装系统的操作系统id |
| os_group | string | - | require | 操作系统分组 |
| code | string | - | - | 二次验证码(这里可以不传,走api不做验证) |
响应参数
无
重置密码
| 项目 | 内容 |
|---|---|
| 接口描述 | 重置密码 |
| 接口地址 | /console/v1/remf_finance_common/:id/crack_pass |
| 请求方式 | POST |
| 接口版本 | v1 |
请求参数
| name | type | default | validate | desc |
|---|---|---|---|---|
| id | int | - | require | 产品ID |
| password | string | - | require | 新密码 |
| force | string | - | require | 是否强制关机,on是off否 |
| code | string | - | - | 二次验证码(非必传) |
响应参数
无
获取实例状态
| 项目 | 内容 |
|---|---|
| 接口描述 | 获取实例状态 |
| 接口地址 | /console/v1/remf_finance_common/:id/status |
| 请求方式 | GET |
| 接口版本 | v1 |
请求参数
| name | type | default | validate | desc |
|---|---|---|---|---|
| id | int | - | require | 产品ID |
响应参数
| name | type | default | desc |
|---|---|---|---|
| data.status | string | - | 实例状态(pending=开通中,on=开机,off=关机,operating=操作中,fault=故障) |
| data.desc | string | - | 实例状态描述 |
批量操作
| 项目 | 内容 |
|---|---|
| 接口描述 | 批量操作 |
| 接口地址 | /console/v1/remf_finance_common/batch_operate |
| 请求方式 | POST |
| 接口版本 | v1 |
请求参数
| name | type | default | validate | desc |
|---|---|---|---|---|
| id | array | - | require | 产品ID |
| action | string | - | require | 动作on开机off关机reboot重启 |
响应参数
无
获取模块图表数据
| 项目 | 内容 |
|---|---|
| 接口描述 | 获取模块图表数据 |
| 接口地址 | /console/v1/remf_finance_common/:id/chart |
| 请求方式 | GET |
| 接口版本 | v1 |
请求参数
| name | type | default | validate | desc |
|---|---|---|---|---|
| id | int | - | require | 产品ID |
| start | int | - | - | 开始秒级时间 |
| end | int | - | - | 结束秒级时间 |
| type | string | - | - | module_chart里面的type(console/v1/remf_finance_common/:id接口返回) |
| select | string | - | - | module_chart里面的select的value(console/v1/remf_finance_common/:id接口返回) |
响应参数
| name | type | default | desc |
|---|---|---|---|
| list | array | - | 图表数据 |
| list[].time | int | - | 时间(秒级时间戳) |
| list[].in_bw | float | - | 进带宽 |
| list[].out_bw | float | - | 出带宽 |
| unit | string | - | 当前单位 |
日志
| 项目 | 内容 |
|---|---|
| 接口描述 | 日志 |
| 接口地址 | /console/v1/remf_finance_common/:id/log |
| 请求方式 | GET |
| 接口版本 | v1 |
请求参数
| name | type | default | validate | desc |
|---|---|---|---|---|
| id | int | - | - | 产品ID |
| keywords | string | - | - | 关键字 |
| page | int | - | - | 页数 |
| limit | int | - | - | 每页条数 |
| orderby | string | - | id,description,create_time,ip | 排序 |
| sort | string | - | asc,desc | 升/降序 |
响应参数
| name | type | default | desc |
|---|---|---|---|
| list | array | - | 系统日志 |
| list[].id | int | - | 系统日志ID |
| list[].description | string | - | 描述 |
| list[].create_time | string | - | 时间 |
| list[].ip | int | - | IP |
| count | int | - | 系统日志总数 |
自定义模块动作
| 项目 | 内容 |
|---|---|
| 接口描述 | 自定义模块动作 |
| 接口地址 | /console/v1/remf_finance_common/host/:id/custom/provision |
| 请求方式 | POST |
| 接口版本 | v1 |
请求参数
| name | type | default | validate | desc |
|---|---|---|---|---|
| id | int | - | - | 产品ID |
响应参数
无
升降级配置页面
| 项目 | 内容 |
|---|---|
| 接口描述 | 升降级配置页面 |
| 接口地址 | /console/v1/remf_finance_common/:id/upgrade_config |
| 请求方式 | GET |
| 接口版本 | v1 |
请求参数
| name | type | default | validate | desc |
|---|---|---|---|---|
| id | int | - | require | 产品ID |
响应参数
| name | type | default | desc |
|---|---|---|---|
| host | array | - | 配置数据 |
升降级配置计算价格
| 项目 | 内容 |
|---|---|
| 接口描述 | 升降级配置计算价格 |
| 接口地址 | /console/v1/remf_finance_common/:id/sync_upgrade_config_price |
| 请求方式 | POST |
| 接口版本 | v1 |
请求参数
| name | type | default | validate | desc |
|---|---|---|---|---|
| id | int | - | require | 产品ID |
| configoption | array | - | require | 配置信息 |
响应参数
| name | type | default | desc |
|---|---|---|---|
| price | float | - | 价格 |
升降级配置结算
| 项目 | 内容 |
|---|---|
| 接口描述 | 升降级配置结算 |
| 接口地址 | /console/v1/remf_finance_common/:id/upgrade_config |
| 请求方式 | POST |
| 接口版本 | v1 |
请求参数
| name | type | default | validate | desc |
|---|---|---|---|---|
| id | int | - | require | 产品ID |
| customfield | object | - | - | 自定义字段 |
响应参数
| name | type | default | desc |
|---|---|---|---|
| id | int | - | 订单ID |
升降级商品
| 项目 | 内容 |
|---|---|
| 接口描述 | 升降级商品 |
| 接口地址 | /console/v1/remf_finance_common/:id/upgrade_product |
| 请求方式 | GET |
| 接口版本 | v1 |
请求参数
| name | type | default | validate | desc |
|---|---|---|---|---|
| id | int | - | require | 产品ID |
响应参数
| name | type | default | desc |
|---|---|---|---|
| old_host | object | - | 原产品数据 |
| host | array | - | 可升降级的商品数组 |
| host[].pid | int | - | 商品ID |
| host[].host | string | - | 商品名称 |
| host[].cycle | array | - | 周期 |
| host[].cycle[].price | float | - | 价格 |
| host[].cycle[].billingcycle | string | - | 周期 |
| host[].cycle[].billingcycle_zh | string | - | 周期 |
升降级商品计算价格
| 项目 | 内容 |
|---|---|
| 接口描述 | 升降级商品计算价格 |
| 接口地址 | /console/v1/remf_finance_common/:id/sync_upgrade_product_price |
| 请求方式 | POST |
| 接口版本 | v1 |
请求参数
| name | type | default | validate | desc |
|---|---|---|---|---|
| id | int | - | require | 产品ID |
| product_id | int | - | require | 新商品ID |
| cycle | string | - | require | 周期,传billingcycle的值 |
响应参数
| name | type | default | desc |
|---|---|---|---|
| price | float | - | 价格 |
升降级商品结算
| 项目 | 内容 |
|---|---|
| 接口描述 | 升降级商品结算 |
| 接口地址 | /console/v1/remf_finance_common/:id/upgrade_product |
| 请求方式 | POST |
| 接口版本 | v1 |
请求参数
| name | type | default | validate | desc |
|---|---|---|---|---|
| id | int | - | require | 产品ID |
响应参数
| name | type | default | desc |
|---|---|---|---|
| id | int | - | 订单ID |