用户 API / v1
API说明文档
将账户、商品、实例和订单接入自己的工具。先在会员中心创建密钥,再换取短期 JWT 调用接口。
如需让外部开发人员查看,可访问公开 API 开发文档:https://cijiyun.com/api.html
密钥与鉴权
- 打开会员中心「安全中心 → API 密钥」。平台需开放创建权限;每个账户最多 10 个密钥。完整 Token 与私钥请立即保存,列表仅显示掩码。
- 可为密钥启用 IP 白名单,每行一个准确的来源 IP。白名单在换取 JWT 时检查;开启登录 IP 校验的站点也会核对后续请求来源。
- 向
POST /api/v1/auth提交username(注册邮箱或手机号)与password(完整 API Token,非登录密码)。当前校验要求 username 长度 4–20 字符。 - 读取
data.jwt,后续请求传Authorization: Bearer JWT_VALUE。默认有效期 7200 秒;过期或缓存失效后重新鉴权。
接口基础地址:https://cijiyun.com
curl --request POST "https://cijiyun.com/api/v1/auth" \
--header "Content-Type: application/json" \
--data '{"username":"demo@example.test","password":"EXAMPLE_API_TOKEN"}'
{"status":200,"msg":"成功","data":{"jwt":"EXAMPLE_JWT"}}
curl "https://cijiyun.com/console/v1/host?page=1&limit=10" \
--header "Authorization: Bearer EXAMPLE_JWT"普通用户接口使用 Token → JWT,不要求 RSA 私钥签名。创建时返回的私钥用于另有约定的上下游协议,不应给所有用户请求附加签名。本文不包含管理员、上下游同步或回调接口。
请求与响应
地址与参数
使用后台网站域名配置的接口基础地址,正式接入建议使用 HTTPS。路径中的 :id 替换为资源编号;GET 参数放查询串,POST / PUT 使用 JSON 或表单,发送 JSON 时设置 Content-Type: application/json。
分页与排序
列表通常接收 page、limit、orderby、sort。page 从 1 开始;sort 支持 asc / desc,默认 desc。允许的排序字段以字段表为准,limit 建议 10–50。
{"status":200,"msg":"成功","data":{"list":[],"count":0}}必须同时检查 HTTP 状态与 JSON status。HTTP 200 仍可能返回业务失败:200 成功、400 参数/业务/鉴权失败、401 登录过期或账户状态异常、404 权限不足等。原因读取 msg,扩展验证按 data 处理。列表、详情字段通常位于 data 内,少数模块结构独立。
部分 POST / PUT 路由带 3 秒重复提交保护,这不是统一 QPS 配额;当前核心用户接口没有公布统一 QPS。超时或写入结果不明确时先查询实际状态,下单、支付、电源等动作不要盲目重试。当前没有刷新令牌接口。
权限与安全
- JWT 代表所属会员账户,不是独立的细粒度访问授权。只可访问该账户拥有或按当前权限可见的资源;修改 client_id 不会授予他人资源权限。
- 账户禁用、站点维护、密码变更、JWT 过期或缓存清除可能使访问失败。实际权限始终由服务端检查。
- 子账户依赖已启用的子账户插件和账户授权;阅读文档不代表可调用全部接口。密钥鉴权不支持自行指定 scope 或模拟他人子账户的参数。
- 创建密钥开关限制创建资格,不是立即吊销既有 JWT 的开关;删除密钥阻止后续换取 JWT。当前校验未逐次复核密钥记录,已签发 JWT 到期前可能继续有效。泄露后请删除密钥并按平台流程使会话失效。
- 可选模块须启用、绑定商品并具有资源权限。重装、删除、关机、支付与升级可能产生实际影响或费用;操作密码、安全挑战、实名和业务状态校验仍须完成。
- Token、私钥、JWT 只保存在可信服务器,不要写入前端脚本、公开仓库、日志、截图或工单。
接口目录
核心用户路由与已安装源码中的可选模块,共 308 个操作。字段从对应控制器读取;未提供结构化字段说明时会明确提示,不能据此假设无参数或任意配置都有效。
没有匹配的接口,请更换关键字或访问方式。
GET/console/v1/login/session/console/v1/login/session无需 JWT
请求字段
控制器未提供结构化参数表。路径参数仍须填写;模块配置请先读取对应配置接口,并以服务端校验为准。
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
GET/console/v1/online_support/console/v1/online_support无需 JWT
请求字段
控制器未提供结构化参数表。路径参数仍须填写;模块配置请先读取对应配置接口,并以服务端校验为准。
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
POST/console/v1/online_support/console/v1/online_support无需 JWT
请求字段
控制器未提供结构化参数表。路径参数仍须填写;模块配置请先读取对应配置接口,并以服务端校验为准。
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
POST登录/console/v1/login无需 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
type必填 | string | code 登录类型 code验证码登录 password密码登录 |
account必填 | string | 手机号或邮箱 |
phone_code | string | 国家区号 手机号登录时需要传此参数 |
code | string | 验证码 登录类型为验证码登录code时需要传此参数 |
password | string | 密码 登录类型为密码登录password时需要传此参数 |
remember_password | string | 记住密码 登录类型为密码登录password时需要传此参数 1是 0否 |
captcha | string | 图形验证码 开启登录图形验证码且为密码登录时或者同一ip地址登录失败3次后需要传此参数 |
token | string | fd5adaf7267a5b2996cc113e45b38f05 图形验证码唯一识别码 开启登录图形验证码且为密码登录时或者同一ip地址登录失败3次后需要传此参数 |
customfield | object | {} 自定义字段 格式{"field1":"test","field2":"test2"} |
client_operate_password | string | 操作密码 兼容旧版 |
security_verify_method | string | 安全验证方式 operate_password操作密码 email_code邮箱验证码 phone_code手机验证码 certification实名校验 |
security_verify_value | string | 安全验证值 操作密码或验证码 |
certify_id | string | 实名认证ID 实名校验时需要 |
security_verify_token | string | 安全验证token 异常登录时返回的token需要传安全验证方式对应返回的security_verify_token |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
jwt | string | jwt 登录后放在请求头Authorization里拼接成如下格式Bearer空格yJ0eX.test.ste |
need_security_verify | bool | 是否需要安全验证 |
client_id | int | 用户ID 需要安全验证时返回用于发送验证码 |
available_methods | array | 可用的验证方式列表 |
POST注册/console/v1/register无需 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
type必填 | string | phone 注册类型 phone手机注册 email邮箱注册 |
account必填 | string | 手机号或邮箱 |
phone_code | string | 国家区号 注册类型为手机注册时需要传此参数 |
username | string | wyh 姓名 |
code必填 | string | 验证码 |
password必填 | string | 密码 |
re_password必填 | string | 重复密码 |
customfield | object | {} 自定义字段 格式{"field1":"test","field2":"test2"} |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
jwt | string | jwt 注册后放在请求头Authorization里拼接成如下格式Bearer空格yJ0eX.test.ste |
POST忘记密码/console/v1/account/password_reset无需 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
type必填 | string | phone 注册类型 phone手机注册 email邮箱注册 |
account必填 | string | 手机号或邮箱 |
phone_code | string | 国家区号 注册类型为手机注册时需要传此参数 |
code必填 | string | 验证码 |
password必填 | string | 密码 |
re_password必填 | string | 重复密码 |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
POST创建实名认证/console/v1/login/exception/certification/create无需 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
account必填 | string | 账户 |
phone_code | string | 手机区号 |
security_verify_token必填 | string | 安全验证token 相应操作接口返回的token防止被刷 |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
certify_id | string | 认证ID |
certify_url | string | 认证URL 用于生成二维码 |
GET查询实名认证状态/console/v1/login/exception/certification/status无需 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
account必填 | string | 账户 |
phone_code | string | 手机区号 |
security_verify_token必填 | string | 安全验证token 相应操作接口返回的token防止被刷 |
certify_id必填 | string | 认证ID |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
verify_status | int | 状态 0待验证 1已通过 |
GET获取国家列表/console/v1/country无需 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
keywords | string | 关键字 搜索范围国家名中文名区号 |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
list | array | 国家列表 |
list[].name | string | 国家名 |
list[].name_zh | string | 中文名 |
list[].phone_code | int | 区号 |
list[].iso | string | 国家英文缩写 |
count | int | 国家总数 |
GET图形验证码/console/v1/captcha无需 JWT
请求字段
控制器未提供结构化参数表。路径参数仍须填写;模块配置请先读取对应配置接口,并以服务端校验为准。
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
html | string | html文档 |
GET支付接口/console/v1/gateway无需 JWT
请求字段
控制器未提供结构化参数表。路径参数仍须填写;模块配置请先读取对应配置接口,并以服务端校验为准。
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
list | array | 支付接口列表 |
list[].id | int | ID |
list[].title | string | 名称 |
list[].name | string | 标识 |
list[].url | string | 图片 base64格式 |
count | int | 总数 |
GET公共配置/console/v1/common无需 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
account | string | 账户 |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
lang_list | array | 语言列表 |
lang_home | string | 前台默认语言 zh-cn |
lang_home_open | int | 前台多语言开关 1开启 0关闭 |
maintenance_mode | int | 维护模式开关 1开启 0关闭 |
maintenance_mode_message | string | 维护模式内容 |
website_name | string | 网站名称 |
website_url | string | 网站域名地址 |
terms_service_url | string | 服务条款地址 |
terms_privacy_url | string | 隐私条款地址 |
prohibit_user_information_changes | array | 禁止用户信息变更 |
login_phone_verify | int | 手机号登录短信验证开关 1开启 0关闭 |
captcha_client_register | int | 客户注册图形验证码开关 1开启 0关闭 |
captcha_client_login | int | 客户登录图形验证码开关 1开启 0关闭 |
captcha_client_login_error | int | 客户登录失败图形验证码开关 1开启 0关闭 |
captcha_client_login_error_3_times | int | 客户登录失败3次 |
captcha_client_verify | int | 验证手机邮箱图形验证码开关 1开启 0关闭 |
captcha_client_update | int | 修改手机邮箱图形验证码开关 1开启 0关闭 |
captcha_client_password_reset | int | 重置密码图形验证码开关 1开启 0关闭 |
captcha_client_oauth | int | 三方登录图形验证码开关 1开启 0关闭 |
captcha_client_security_verify | int | 安全校验是否开启图形验证码 1开启 0关闭 |
register_email | int | 邮箱注册开关 1开启 0关闭 |
register_phone | int | 手机号注册开关 1开启 0关闭 |
recharge_open | int | 启用充值 1启用 0否 |
recharge_min | float | 单笔最小金额 |
recharge_max | float | 单笔最大金额 |
currency_code | string | 货币代码 CNY |
currency_prefix | string | 货币符号 ¥ |
currency_suffix | string | 货币后缀 元 |
code_client_email_register | int | 邮箱注册数字验证码开关 1开启 0关闭 |
system_logo | string | 系统LOGO |
put_on_record | string | 备案信息 |
enterprise_name | string | 企业名称 |
enterprise_telephone | string | 企业电话 |
enterprise_mailbox | string | 企业邮箱 |
enterprise_qrcode | string | 企业二维码 |
online_customer_service_link | string | 在线客服链接 |
icp_info | string | ICP信息 |
icp_info_link | string | ICP信息链接 |
public_security_network_preparation | string | 公安网备 |
public_security_network_preparation_link | string | 公安网备链接 |
telecom_appreciation | string | 电信增值 |
copyright_info | string | 版权信息 |
official_website_logo | string | 官网LOGO |
cloud_product_link | string | 云产品跳转链接 |
dcim_product_link | string | DCIM产品跳转链接 |
clientarea_logo_url | string | 会员中心LOGO跳转地址 |
clientarea_logo_url_blank | int | 会员中心LOGO跳转是否打开新页面 1是 0否 |
feedback_type | array | 意见反馈类型 |
feedback_type[].id | int | 意见反馈类型ID |
feedback_type[].name | string | 名称 |
feedback_type[].description | string | 描述 |
friendly_link | array | 友情链接 |
friendly_link[].id | int | 友情链接ID |
friendly_link[].name | string | 名称 |
friendly_link[].url | string | 链接地址 |
honor | array | 荣誉资质 |
honor[].id | int | 荣誉资质ID |
honor[].name | string | 名称 |
honor[].img | string | 图片地址 |
partner | array | 合作伙伴 |
partner[].id | int | 合作伙伴ID |
partner[].name | string | 名称 |
partner[].img | string | 图片地址 |
partner[].description | string | 描述 |
cron_due_renewal_first_swhitch | int | 是否开启自动续费功能 |
cron_due_renewal_first_day | int | 提前多少天续费 |
oauth | array | 三方登录列表 |
oauth[].img | string | 图标地址 |
oauth[].name | string | 三方登录标识 |
oauth[].title | string | 三方登录名称 |
oauth[].url | string | 请求地址 |
home_enforce_safe_method | array | 前台强制安全选项 phone=手机 email=邮箱 operate_password=操作密码 certification=实名认证 oauth=三方登录扫码 |
recharge_money_notice_content | string | 充值金额提示内容 |
recharge_pay_notice_content | string | 充值支付提示内容 |
first_login_method | string | 账户凭证首选登录方式 code=验证码 password=密码 |
first_password_login_method | string | 密码登录首选 phone=手机 email=邮箱 |
cart_instruction | int | 购物车说明开关 0关闭 1开启 |
cart_instruction_content | string | 购物车说明内容 |
cart_change_product | int | 购物车切换商品开关 0关闭 1开启 |
plugin_configuration | object | 插件配置 |
plugin_configuration.idcsmart_sale.register_hide_sale | int | 用户注册时隐藏我有销售 0关闭 1开启 |
login_email_password | int | 是否开启邮箱密码登录 1开启 0关闭 |
login_phone_password | int | 是否开启手机密码登录 1开启 0关闭 |
first_login_type | string | 首选登录方式 account_login=账户凭证登录 mp_weixin_notice=微信公众号登录 |
clientarea_theme_display_one | string | 主题区域展示内容1 announcement公告 recommend推荐计划 |
clientarea_theme_display | string | 主题区域展示内容2 ticket工单 announcement公告 recommend推荐计划 |
clientarea_theme_banner_list | array | banner列表 |
donot_save_client_product_password | int | 不保存用户产品密码 1是 0否 |
lang_home_follow_browser | int | 会员中心语言是否跟随浏览器 1是 0否 |
edition | int | 版本 1专业版 0基础版 |
client_strong_password_rule | int | 用户注册强密码规则 1开启 0关闭 |
client_change_phone_certification_plugin | string | 更换手机号实名认证接口 空表示不校验 |
POST发送手机验证码/console/v1/phone/code无需 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
action必填 | string | 验证动作 login登录 register注册 verify验证手机 update修改手机 password_reset重置密码 exception_login异常登录 update_password修改密码 update_operate_password修改操作密码 host_transfer产品转移 host_refund自助停用 |
phone_code | int | 国际电话区号 未登录或修改手机时需要 |
phone | string | 手机号 未登录或修改手机时需要 |
token | string | 图形验证码唯一识别码 |
captcha | string | 图形验证码 |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
POST发送邮件验证码/console/v1/email/code无需 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
action必填 | string | 验证动作 login登录 register注册 verify验证邮箱 update修改邮箱 password_reset重置密码 exception_login异常登录 update_password修改密码 update_operate_password修改操作密码 host_transfer产品转移 host_refund自助停用 |
email | string | 邮箱 未登录或修改邮箱时需要 |
token | string | 图形验证码唯一识别码 |
captcha | string | 图形验证码 |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
GET获取前台导航/console/v1/menu无需 JWT
请求字段
控制器未提供结构化参数表。路径参数仍须填写;模块配置请先读取对应配置接口,并以服务端校验为准。
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
menu | array | 菜单列表 |
menu[].id | int | 菜单ID |
menu[].name | string | 名称 |
menu[].url | string | 网址 |
menu[].menu_type | string | 菜单类型 system系统 plugin插件 custom自定义 module模块 res_module上游模块 embedded内嵌 |
menu[].second_reminder | int | 二次提醒 0否 1是 |
menu[].icon | string | 图标 |
menu[].parent_id | int | 父ID |
menu[].is_cross_module | int | 是否为跨模块列表 |
menu[].select_field | array | 选择字段 area=区域 product_name=商品名称 billing_cycle=计费方式 is_auto_renew=自动续费 base_info=基础信息 ip=IP os=OS active_time=开通时间 due_time=到期时间 status=状态 notes=备注 |
menu[].child | array | 子菜单 |
menu[].child[].id | int | 菜单ID |
menu[].child[].name | string | 名称 |
menu[].child[].url | string | 网址 |
menu[].child[].second_reminder | int | 二次提醒 0否 1是 |
menu[].child[].icon | string | 图标 |
menu[].child[].parent_id | int | 父ID |
menu[].child[].is_cross_module | int | 是否为跨模块列表 |
menu[].child[].select_field | array | 选择字段 |
GET插件列表/console/v1/plugin无需 JWT
请求字段
控制器未提供结构化参数表。路径参数仍须填写;模块配置请先读取对应配置接口,并以服务端校验为准。
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
list | array | 插件列表 |
list[].id | int | 插件ID |
list[].name | string | 插件标识 |
list[].display_name | string | 插件显示名称 |
list[].status | int | 启用状态,1启用 |
count | int | 插件数量 |
PUT修改语言/console/v1/language无需 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
language必填 | string | 语言 |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
GET商品管理/console/v1/product/catalog无需 JWT
请求字段
控制器未提供结构化参数表。路径参数仍须填写;模块配置请先读取对应配置接口,并以服务端校验为准。
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
GET/console/v1/product/catalog_node_packages/:id/console/v1/product/catalog_node_packages/:id无需 JWT
请求字段
控制器未提供结构化参数表。路径参数仍须填写;模块配置请先读取对应配置接口,并以服务端校验为准。
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
GET获取商品一级分组/console/v1/product/group/first无需 JWT
请求字段
控制器未提供结构化参数表。路径参数仍须填写;模块配置请先读取对应配置接口,并以服务端校验为准。
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
list | array | 商品一级分组 |
list[].id | int | 商品一级分组ID |
list[].name | int | 商品一级分组名称 |
list[].type | int | 分组类型 type为domain表示域名 |
count | int | 商品一级分组总数 |
GET获取商品二级分组/console/v1/product/group/second无需 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id | int | 一级分组ID |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
list | array | 商品二级分组 |
list[].id | int | 商品二级分组ID |
list[].name | int | 商品二级分组名称 |
list[].parent_id | int | 商品一级分组ID |
list[].type | int | 分组类型 type为domain表示域名 |
list[].description | string | 描述 |
count | int | 商品二级分组总数 |
GET商品列表/console/v1/product无需 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
keywords | string | 关键字 搜索范围商品ID商品名描述 |
id | int | 二级分组ID |
page | int | 页数 |
limit | int | 每页条数 |
exclusive | bool | 是否只返回专属商品 |
product_ids | array | 筛选哪些商品 |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
list | array | 商品列表 |
list[].id | int | ID |
list[].name | string | 商品名 |
list[].description | string | 描述 |
list[].pay_type | string | 付款类型 免费free 一次onetime 周期先付recurring_prepayment 周期后付recurring_postpaid 按需计费on_demand 周期先付+按需计费recurring_prepayment_on_demand |
list[].price | string | 商品最低价格 |
list[].cycle | string | 商品最低周期 |
list[].mode | string | 代理模式 only_api仅调用接口 sync同步商品 |
list[].client_level_name | string | 用户等级名称 这个字段在没有用户等级插件时不存在所以需要注意判断 |
list[].stock_control | int | 是否开启库存 |
list[].qty | int | 库存数量 当开启库存该字段才有意义 |
list[].pay_ontrial | object | 试用配置 status是否开启 cycle_type时长单位hour/day/month cycle_num时长 client_limit用户限制no不限制/new新用户/host用户必须存在激活中的产品 account_limit账户限制email绑定邮件/phone绑定手机/certification old_client_exclusive老用户专享商品ID多选逗号分隔 max单用户最大试用数量 |
count | int | 商品总数 |
GET/console/v1/product/:id/catalog_packages/console/v1/product/:id/catalog_packages无需 JWT
请求字段
控制器未提供结构化参数表。路径参数仍须填写;模块配置请先读取对应配置接口,并以服务端校验为准。
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
GET商品详情/console/v1/product/:id无需 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 商品ID |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
product | object | 商品 |
product.id | int | ID |
product.name | string | 商品名称 |
product.product_group_id | int | 所属商品组ID |
product.description | string | 商品描述 |
product.hidden | int | 0显示默认 1隐藏 |
product.stock_control | int | 库存控制 1启用 默认0 |
product.qty | int | 库存数量 与stock_control有关 |
product.pay_type | int | 付款类型 免费free 一次onetime 周期先付recurring_prepayment 周期后付recurring_postpaid 按需计费on_demand 周期先付+按需计费recurring_prepayment_on_demand |
product.auto_setup | int | 是否自动开通 1是 默认0否 |
product.type | int | 关联类型 server server_group |
product.rel_id | int | 关联ID |
upgrade | array | 可升降级商品ID 数组 |
product_id | int | 父商品ID |
plugin_custom_fields | array | 自定义字段{is_link是否已有子商品 是 置灰} |
show | int | 是否将商品展示在会员中心对应模块的列表中 0否 1是 |
on_demand.min_credit | string | 购买时用户最低余额 |
on_demand.min_usage_time | int | 最低使用时长 |
on_demand.min_usage_time_unit | string | 最低使用时长单位 second秒 minute分 hour小时 |
on_demand.credit_limit_pay | int | 允许信用额支付 0否 1是 |
GET获取商品库存/console/v1/product/:id/stock无需 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 商品ID |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
product | object | 商品 |
product.id | int | ID |
product.stock_control | int | 库存控制 0关闭 1启用 |
product.qty | int | 库存数量 |
GET获取购物车/console/v1/cart无需 JWT
请求字段
控制器未提供结构化参数表。路径参数仍须填写;模块配置请先读取对应配置接口,并以服务端校验为准。
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
list | array | 购物车商品列表 |
list[].product_id | int | 商品ID |
list[].config_options | object | 自定义配置 |
list[].qty | int | 数量 |
list[].customfield | object | 自定义参数 |
list[].name | string | 商品名称 |
list[].description | string | 商品描述 |
list[].stock_control | int | 库存控制 0关闭 1启用 |
list[].stock_qty | int | 库存数量 |
list[].self_defined_field | object | 自定义字段 格式{"5":"123"} 5是自定义字段ID 123是填写的内容 |
PUT编辑购物车商品/console/v1/cart/:position无需 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
position必填 | int | 位置 |
product_id必填 | int | 商品ID |
config_options | object | 自定义配置 |
qty必填 | int | 数量 |
customfield | object | 自定义参数 |
self_defined_field | object | 自定义字段 格式{"5":"123"} 5是自定义字段ID 123是填写的内容 |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
DELETE删除购物车商品/console/v1/cart/:position无需 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
position必填 | int | 位置 |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
DELETE批量删除购物车商品/console/v1/cart/batch无需 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
positions必填 | array | 位置数组 |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
PUT修改购物车商品数量/console/v1/cart/:position/qty无需 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
position必填 | int | 位置 |
qty必填 | int | 数量 |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
DELETE清空购物车/console/v1/cart无需 JWT
请求字段
控制器未提供结构化参数表。路径参数仍须填写;模块配置请先读取对应配置接口,并以服务端校验为准。
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
POST提交意见反馈/console/v1/feedback无需 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
type必填 | int | 类型 |
title必填 | string | 标题 |
description必填 | string | 描述 |
attachment | array | 附件 |
contact | string | 联系方式 |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
POST提交方案咨询/console/v1/consult无需 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
contact必填 | string | 联系人 |
company | string | 公司名称 |
phone | string | 手机号码 手机号码和邮箱二选一必填 |
email | string | 联系邮箱 手机号码和邮箱二选一必填 |
matter必填 | string | 咨询产品 |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
GET获取文件资源(支持预览或者下载)/console/v1/resource无需 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
fid必填 | string | 文件唯一ID |
rand_str必填 | string | 随机字符串 |
sign必填 | string | 签名 |
expires必填 | int | 过期时间 |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
GET商品订单页自定义字段/console/v1/product/:id/self_defined_field/order_page无需 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 商品ID |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
data[].id | int | 自定义字段ID |
data[].field_name | string | 字段名称 |
data[].field_type | string | 字段类型 text文本框 link链接 password密码 dropdown下拉 checkbox勾选框 textarea文本区 explain说明 |
data[].description | string | 字段描述 |
data[].regexpr | string | 验证规则 |
data[].field_option | string | 下拉选项 |
data[].is_required | int | 是否必填 0否 1是 |
data[].show_client_host_list | int | 会员中心列表显示 0否 1是 |
data[].explain_content | string | 说明内容 |
GET商品配置页面/console/v1/product/:id/config_option无需 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 商品ID |
flag | bool | 是否获取隐藏商品的模块内容 true是 false否 |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
product_name | string | 商品名称 |
module | string | 页面模块路由名称 |
content | string | 模块输出内容 |
POST修改配置计算价格/console/v1/product/:id/config_option无需 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 商品ID |
qty必填 | int | 数量 |
config_options | array | 模块自定义配置参数 格式{"configoption":{1:1,2:[2]},"cycle":2,"promo_code":"Af13S1ACj","event_promotion":12,"qty":1} |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
price | string | 价格 |
renew_price | string | 续费价格 |
billing_cycle | string | 周期名称 |
duration | int | 周期时长 秒 |
description | string | 订单子项描述 |
base_price | string | 基础价格 |
price_total | float | 折扣后金额 各种优惠折扣处理后的金额没有就是price价格 |
price_promo_code_discount | float | 优惠码折扣金额 当使用优惠码且有效时才返回此字段 |
price_client_level_discount | float | 客户等级折扣金额 当客户等级有效时才返回此字段 |
price_event_promotion_discount | float | 活动促销折扣金额 当活动促销有效时才返回此字段 |
POST加入购物车/console/v1/cart无需 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
product_id必填 | int | 商品ID |
config_options | object | 自定义配置 |
qty必填 | int | 数量 |
customfield | object | 自定义参数 |
self_defined_field | object | 自定义字段 格式{"5":"123"} 5是自定义字段ID 123是填写的内容 |
products | array | 商品列表 批量加入购物车必传 |
products[].product_id | int | 商品ID |
products[].config_options | object | 自定义配置 |
products[].qty | int | 数量 |
products[].customfield | object | 自定义参数 |
products[].self_defined_field | object | 自定义字段 |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
GET/console/v1/membership_levels/console/v1/membership_levels需要 JWT
请求字段
控制器未提供结构化参数表。路径参数仍须填写;模块配置请先读取对应配置接口,并以服务端校验为准。
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
POST/console/v1/membership_levels/console/v1/membership_levels需要 JWT
请求字段
控制器未提供结构化参数表。路径参数仍须填写;模块配置请先读取对应配置接口,并以服务端校验为准。
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
GET/console/v1/invoice_center/console/v1/invoice_center需要 JWT
请求字段
控制器未提供结构化参数表。路径参数仍须填写;模块配置请先读取对应配置接口,并以服务端校验为准。
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
POST/console/v1/invoice_center/console/v1/invoice_center需要 JWT
请求字段
控制器未提供结构化参数表。路径参数仍须填写;模块配置请先读取对应配置接口,并以服务端校验为准。
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
GET/console/v1/e_contract/console/v1/e_contract需要 JWT
请求字段
控制器未提供结构化参数表。路径参数仍须填写;模块配置请先读取对应配置接口,并以服务端校验为准。
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
GET/console/v1/e_contract/requirements/console/v1/e_contract/requirements需要 JWT
请求字段
控制器未提供结构化参数表。路径参数仍须填写;模块配置请先读取对应配置接口,并以服务端校验为准。
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
GET/console/v1/e_contract/:id/preview/console/v1/e_contract/:id/preview需要 JWT
请求字段
控制器未提供结构化参数表。路径参数仍须填写;模块配置请先读取对应配置接口,并以服务端校验为准。
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
POST/console/v1/e_contract/:id/download/console/v1/e_contract/:id/download需要 JWT
请求字段
控制器未提供结构化参数表。路径参数仍须填写;模块配置请先读取对应配置接口,并以服务端校验为准。
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
POST/console/v1/e_contract/:id/sign/console/v1/e_contract/:id/sign需要 JWT
请求字段
控制器未提供结构化参数表。路径参数仍须填写;模块配置请先读取对应配置接口,并以服务端校验为准。
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
POST注销/console/v1/logout需要 JWT
请求字段
控制器未提供结构化参数表。路径参数仍须填写;模块配置请先读取对应配置接口,并以服务端校验为准。
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
GET会员中心首页/console/v1/index需要 JWT
请求字段
控制器未提供结构化参数表。路径参数仍须填写;模块配置请先读取对应配置接口,并以服务端校验为准。
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
account | object | 账户 |
account.username | string | 姓名 |
account.email | string | 邮箱 |
account.phone_code | int | 国际电话区号 |
account.phone | string | 手机号 |
account.credit | string | 余额 |
account.host_num | string | 产品数量 |
account.host_active_num | string | 激活产品数量 |
account.expiring_count | int | 即将到期产品数量 |
account.unpaid_order | string | 未支付订单 |
account.consume | string | 总消费金额 |
account.this_month_consume | string | 本月消费 |
account.this_month_consume_percent | string | 本月消费对比上月增长百分比 |
GET会员中心首页产品列表/console/v1/index/host需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
page | int | 页数 |
limit | int | 每页条数 |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
list | array | 产品列表 |
list[].id | int | 产品ID |
list[].product_id | int | 商品ID |
list[].product_name | string | 商品名称 |
list[].name | string | 标识 |
list[].due_time | int | 到期时间 |
list[].status | string | 状态 Unpaid未付款 Pending开通中 Active已开通 Suspended已暂停 Deleted已删除 |
list[].client_notes | string | 用户备注 |
list[].type | string | 类型 |
list[].ip | string | IP |
count | int | 产品总数 |
expiring_count | int | 即将到期产品数量 |
GET账户详情/console/v1/account需要 JWT
请求字段
控制器未提供结构化参数表。路径参数仍须填写;模块配置请先读取对应配置接口,并以服务端校验为准。
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
account | object | 账户信息 |
account.id | int | 用户ID |
account.username | string | 姓名 |
account.email | string | 邮箱 |
account.phone_code | int | 国际电话区号 |
account.phone | string | 手机号 |
account.company | string | 公司 |
account.country_id | int | 国家ID |
account.address | string | 地址 |
account.language | string | 语言 |
account.notes | string | 备注 |
account.credit | string | 余额 |
account.set_operate_password | bool | 是否设置了操作密码 |
account.customfield | object | 自定义字段 |
account.customfield.pending_amount | string | 待审核的提现金额 |
account.currency_prefix | string | 货币符号 |
account.oauth | array | 三方登录列表 |
account.oauth[].name | string | 标识 |
account.oauth[].title | string | 名称 |
account.oauth[].url | string | 跳转链接 |
account.oauth[].link | bool | 是否绑定 true是 false否 |
account.oauth[].img | string | 图标地址 |
account.oauth[].img_unbound | string | 未绑定图标地址 |
account.notice_open | int | 是否接收短信邮件通知 1是 0否 |
account.notice_method | string | 通知方式 all所有 email邮件 sms短信 |
account.total_credit | float | 账户余额 |
account.credit_remind | int | 余额提醒 0关闭 1开启 |
account.credit_remind_amount | float | 余额提醒阈值 |
PUT账户编辑/console/v1/account需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
username | string | 姓名 |
company | string | 公司 |
country_id | int | 国家ID |
address | string | 地址 |
language | string | 语言 |
notes | string | 备注 |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
PUT验证原手机/console/v1/account/phone/old需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
code必填 | string | 验证码 |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
PUT修改手机/console/v1/account/phone需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
phone_code必填 | int | 国际电话区号 |
phone必填 | string | 手机号 |
code必填 | string | 验证码 |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
PUT验证原邮箱/console/v1/account/email/old需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
code必填 | string | 验证码 |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
PUT修改邮箱/console/v1/account/email需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
email必填 | string | 邮箱 |
code必填 | string | 验证码 |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
PUT验证码修改密码/console/v1/account/password/code需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
type必填 | string | 验证类型 phone手机 email邮箱 |
code必填 | string | 验证码 |
password必填 | string | 密码 |
re_password必填 | string | 重复密码 |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
PUT修改密码/console/v1/account/password需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
old_password必填 | string | 旧密码 |
new_password必填 | string | 新密码 |
repassword必填 | string | 确认密码 |
security_verify_method | string | 安全验证方式 operate_password=操作密码 email_code=邮箱验证码 phone_code=手机验证码 certification=实名校验 |
security_verify_value | string | 安全验证值 操作密码或验证码 |
certify_id | string | 实名认证ID 实名校验时需要 |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
need_security_verify | bool | 是否需要安全验证 |
available_methods | array | 可用的验证方式列表 |
GET余额变更记录列表/console/v1/credit需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
start_time | int | 开始时间 时间戳s |
end_time | int | 结束时间 时间戳s |
type | string | 类型 Artificial人工 Recharge充值 Applied应用至订单 Refund退款 Withdraw提现 DeveloperWithdraw开发者提现 |
keywords | string | 关键字 记录ID或备注 |
order_id | int | 订单ID |
page | int | 页数 |
limit | int | 每页条数 |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
list | array | 记录列表 |
list[].id | int | 记录ID |
list[].type | string | 类型 Artificial人工 Recharge充值 Applied应用至订单 Refund退款 Withdraw提现 DeveloperWithdraw开发者提现 |
list[].amount | string | 金额 |
list[].notes | string | 备注 |
list[].create_time | int | 变更时间 |
list[].admin_name | string | 管理员名称 |
count | int | 记录总数 |
page_total_amount | string | 当前页金额总计 |
total_amount | string | 金额总计 |
PUT修改操作密码/console/v1/account/operate_password需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
origin_operate_password | string | 原操作密码 已有操作密码必传 |
operate_password必填 | string | 新操作密码 |
re_operate_password必填 | string | 重复操作密码 |
security_verify_method | string | 安全验证方式 operate_password=操作密码 email_code=邮箱验证码 phone_code=手机验证码 certification=实名校验 |
security_verify_value | string | 安全验证值 操作密码或验证码 |
certify_id | string | 实名认证ID 实名校验时需要 |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
need_security_verify | bool | 是否需要安全验证 |
available_methods | array | 可用的验证方式列表 |
GET用户流量预警详情/console/v1/account/traffic_warning需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
module必填 | string | 模块标识 mf_cloud=魔方云 mf_dcim=DCIM |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
warning_switch | int | 预警开关 0=关闭 1=开启 |
leave_percent | int | 预警百分比 0是关闭 |
PUT保存用户流量预警/console/v1/account/traffic_warning需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
module必填 | string | 模块标识 mf_cloud=魔方云 mf_dcim=DCIM |
warning_switch必填 | int | 预警开关 0=关闭 1=开启 |
leave_percent必填 | int | 预警百分比 5 10 15 20 关闭传0 |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
GET冻结记录/console/v1/account/credit/freeze需要 JWT
请求字段
控制器未提供结构化参数表。路径参数仍须填写;模块配置请先读取对应配置接口,并以服务端校验为准。
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
list | array | 冻结记录列表 |
list[].id | int | 冻结记录ID |
list[].amount | float | 冻结金额 |
list[].client_notes | string | 备注 |
list[].create_time | int | 冻结时间 |
list[].nickname | string | 操作人 |
count | int | 记录总数 |
POST余额提醒/console/v1/account/credit/remind需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
credit_remind必填 | int | 余额提醒 0关闭 1开启 |
credit_remind_amount | float | 余额提醒阈值 |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
GET产品列表/console/v1/host需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
keywords | string | 关键字 搜索范围产品ID商品名称标识 |
status | string | 状态 Unpaid未付款 Pending开通中 Active已开通 Suspended已暂停 Deleted已删除 |
tab | string | 状态 using使用中 expiring即将到期 overdue已逾期 deleted已删除 |
page | int | 页数 |
limit | int | 每页条数 |
orderby | string | 排序字段 id active_time due_time |
sort | string | 升降序 asc desc |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
list | array | 产品列表 |
list[].id | int | 产品ID |
list[].product_id | int | 商品ID |
list[].product_name | string | 商品名称 |
list[].name | string | 标识 |
list[].active_time | int | 开通时间 |
list[].due_time | int | 到期时间 |
list[].first_payment_amount | string | 金额 |
list[].billing_cycle | string | 周期 |
list[].status | string | 状态 Unpaid未付款 Pending开通中 Active已开通 Suspended已暂停 Deleted已删除 |
list[].renew_amount | string | 续费金额 |
list[].client_notes | string | 用户备注 |
list[].ip_num | int | IP数量 |
list[].renew_forbidden | int | 是否禁止续费 0允许 1禁止 |
count | int | 产品总数 |
GET自定义导航产品列表/console/v1/menu/:id/host需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 导航ID |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
module | string | 页面模块路由名称 |
content | string | 模块输出内容 |
GET产品详情/console/v1/host/:id需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
self_defined_field_value_sync_all | int | 是否支持完整自定义字段值同步 0否 1是 |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
host | object | 产品 |
host.id | int | 产品ID |
host.order_id | int | 订单ID |
host.product_id | int | 商品ID |
host.name | string | 标识 |
notes | string | 备注 |
host.first_payment_amount | string | 订购金额 |
host.renew_amount | string | 续费金额 |
host.billing_cycle | string | 计费周期 |
host.billing_cycle_name | string | 模块计费周期名称 |
host.billing_cycle_time | string | 模块计费周期时间,秒 |
host.active_time | int | 开通时间 |
host.due_time | int | 到期时间 |
host.status | string | 状态Unpaid未付款Pending开通中Active已开通Suspended已暂停Deleted已删除Failed开通失败 |
host.suspend_type | string | 暂停类型,overdue到期暂停,overtraffic超流暂停,certification_not_complete实名未完成,other其他 |
host.suspend_reason | string | 暂停原因 |
host.ratio_renew | int | 是否开启比例续费:0否,1是 |
host.base_price | string | 购买周期原价 |
host.product_name | string | 商品名称 |
host.agent | int | 代理产品0否1是 |
host.upstream_host_id | string | 上游产品ID |
host.base_info | string | 产品基础信息 |
host.auto_release_time | int | 自动释放时间(0=未设置过) |
host.keep_time_price | string | 保留期价格 |
host.on_demand_flow_price | string | 按需流量价格 |
host.on_demand_billing_cycle_unit | string | 出账周期单位(hour=每小时,day=每天,month=每月) |
host.on_demand_billing_cycle_day | int | 出账周期号数 |
host.on_demand_billing_cycle_point | string | 出账周期时间点(如00:00) |
host.change_billing_cycle_id | int | 是否申请了到期转按需(0=否,>0是,申请了不能执行续费/升降级操作) |
host.addition.country_id | int | 国家ID |
host.addition.city | string | 城市 |
host.addition.area | string | 区域 |
host.addition.image_icon | string | 镜像图标(Windows,CentOS,Ubuntu,Debian,ESXi,XenServer,FreeBSD,Fedora,ArchLinux,Rocky,AlmaLinux,OpenEuler,RedHat,其他) |
host.addition.image_name | string | 镜像名称 |
host.addition.username | string | 实例用户名 |
host.addition.password | string | 实例密码 |
host.addition.port | int | 端口 |
host.product_on_demand.client_auto_delete | int | 允许用户设置自动释放(0=否,1=是) |
host.product_on_demand.on_demand_to_duration | int | 允许按需转包年包月(0=否,1=是) |
host.product_on_demand.duration_to_on_demand | int | 允许包年包月/试用转按需(0=否,1=是) |
host.renew_forbidden | int | 是否禁止续费 0允许 1禁止 |
self_defined_field[].id | int | 自定义字段ID |
self_defined_field[].field_name | string | 字段名称 |
self_defined_field[].field_type | string | 字段类型(text=文本框,link=链接,password=密码,dropdown=下拉,checkbox=勾选框,textarea=文本区) |
self_defined_field[].value | string | 当前值 |
GET/console/v1/host/:id/flow_packet/console/v1/host/:id/flow_packet需要 JWT
请求字段
控制器未提供结构化参数表。路径参数仍须填写;模块配置请先读取对应配置接口,并以服务端校验为准。
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
POST/console/v1/host/:id/flow_packet_order/console/v1/host/:id/flow_packet_order需要 JWT
请求字段
控制器未提供结构化参数表。路径参数仍须填写;模块配置请先读取对应配置接口,并以服务端校验为准。
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
GET可升降级商品列表/console/v1/host/:id/product_upgrade需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
list | array | 商品列表 |
unavailable_list | array | 被过滤的目标商品及不可升降级原因 |
unavailable_list[].id | int | 目标商品ID |
unavailable_list[].name | string | 目标商品名称 |
unavailable_list[].reason_stage | string | 失败阶段 product商品 scope范围 dispatcher调度 business模块业务 |
unavailable_list[].reason_code | string | 失败条件代码 |
unavailable_list[].reason | string | 多语言失败提示 |
blocked_reason | object | 当前产品整体不能进入商品升降级时的原因,为null表示未被整体阻断 |
GET升降级目标商品配置/console/v1/host/:id/product_upgrade/config需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
product_id必填 | int | 目标商品ID |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
config | object | 配置 |
POST升降级目标商品价格/console/v1/host/:id/product_upgrade/price需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
product_id必填 | int | 目标商品ID |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
price | float | 价格 |
POST创建升降级商品订单/console/v1/host/:id/product_upgrade/order需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
product_id必填 | int | 目标商品ID |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
id | int | 订单ID |
GET产品管理/console/v1/host/:id/finance_records需要 JWT
请求字段
控制器未提供结构化参数表。路径参数仍须填写;模块配置请先读取对应配置接口,并以服务端校验为准。
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
GET获取产品内页/console/v1/host/:id/view需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
module | string | 页面模块路由名称 |
content | string | 模块输出内容 |
GET模块列表/console/v1/module需要 JWT
请求字段
控制器未提供结构化参数表。路径参数仍须填写;模块配置请先读取对应配置接口,并以服务端校验为准。
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
list | array | 模块列表 |
list[].name | string | 模块类型 |
list[].display_name | string | 模块名称 |
list[].version | string | 版本号 |
PUT批量修改产品备注/console/v1/host/notes/batch需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
ids必填 | array | 产品ID数组 |
notes | string | 备注 |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
success_count | int | 成功数量 |
fail_count | int | 失败数量 |
total | int | 总数 |
PUT修改产品备注/console/v1/host/:id/notes需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
notes | string | 备注 |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
GET获取用户所有产品/console/v1/host/all需要 JWT
请求字段
控制器未提供结构化参数表。路径参数仍须填写;模块配置请先读取对应配置接口,并以服务端校验为准。
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
list | array | 产品 |
list[].id | int | 产品ID |
list[].product_id | int | 商品ID |
list[].product_name | string | 商品名称 |
list[].name | string | 标识 |
list[].status | string | 状态 Unpaid未付款 Pending开通中 Active已开通 Suspended已暂停 Deleted已删除 Failed开通失败 Cancelled已取消 |
count | int | 产品总数 |
GET产品IP详情/console/v1/host/:id/ip需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
dedicate_ip | string | 主IP |
assign_ip | string | 附加IP(英文逗号分隔) |
ip_num | int | IP数量 |
GET获取产品具体信息/console/v1/host/:id/specific_info需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
id | int | 产品ID |
name | string | 产品标识 |
renew_amount | string | 续费金额 |
billing_cycle_name | string | 模块计费周期名称 |
due_time | int | 到期时间 |
ip_num | int | IP数量 |
dedicate_ip | string | 主IP |
assign_ip | string | 附加IP(英文逗号分隔) |
country | string | 国家 |
country_code | string | 国家代码 |
country_id | int | 国家ID |
city | string | 城市 |
area | string | 区域 |
PUT修改自动释放时间/console/v1/host/:id/auto_release_time需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
auto_release_time必填 | int | 自动释放时间戳 |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
GET获取产品按需转包年包月周期价格/console/v1/host/:id/on_demand_to_recurring_prepayment需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
duration[].id | int | 周期ID |
duration[].price | string | 周期价格 |
duration[].name_show | string | 周期显示名称 |
duration[].client_level_discount | string | 用户等级折扣 |
duration[].discount_renew_price | string | 续费可折扣部分 |
duration[].discount_order_price | string | 订购可折扣部分 |
POST产品按需转包年包月/console/v1/host/:id/on_demand_to_recurring_prepayment需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
duration_id必填 | int | 周期ID |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
id | string | 订单ID |
amount | string | 金额 |
GET获取产品包年包月转按需价格/console/v1/host/:id/recurring_prepayment_to_on_demand需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
on_demand_price | string | 按需出账价格,可能已经折扣了 |
base_renew_price | string | 按需出账原价 |
keep_time_price | string | 保留期价格 |
billing_cycle_name | string | 周期名称 |
POST产品包年包月转按需/console/v1/host/:id/recurring_prepayment_to_on_demand需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
DELETE取消产品包年包月转按需/console/v1/host/:id/recurring_prepayment_to_on_demand需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
GET会员中心已订购产品列表/console/v1/client/host需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
keywords | string | 关键字搜索 商品名称产品名称IP |
status | string | 产品状态 Unpaid未付款 Pending开通中 Active已开通 Suspended已暂停 Deleted已删除 |
tab | string | 状态 using使用中 expiring即将到期 overdue已逾期 deleted已删除 |
page | int | 页数 |
limit | int | 每页条数 |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
list | array | 产品列表 |
list[].id | int | 产品ID |
list[].product_id | int | 商品ID |
list[].product_name | string | 商品名称 |
list[].name | string | 标识 |
list[].create_time | int | 订购时间 |
list[].due_time | int | 到期时间 |
list[].status | string | 状态 Unpaid未付款 Pending开通中 Active已开通 Suspended已暂停 Deleted已删除 Failed开通失败 |
list[].client_notes | string | 用户备注 |
list[].type | string | 类型 |
list[].ip | string | IP |
count | int | 产品总数 |
using_count | int | 使用中产品数量 |
expiring_count | int | 即将到期产品数量 |
overdue_count | int | 已逾期产品数量 |
deleted_count | int | 已删除产品数量 |
all_count | int | 全部产品数量 |
GET前台产品列表(跨模块)/console/v1/home/host需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
m | int | 导航ID |
page | int | 页数 |
limit | int | 每页条数 |
orderby | string | 排序(id,due_time,status) |
sort | string | 升/降序 |
keywords | string | 关键字搜索:商品名称/产品名称/IP |
country_id | int | 搜索:国家ID |
city | string | 搜索:城市 |
area | string | 搜索:区域 |
status | string | 产品状态(Unpaid=未付款,Pending=开通中,Active=已开通,Suspended=已暂停,Deleted=已删除) |
tab | string | 状态using使用中expiring即将到期overdue已逾期deleted已删除 |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
list | array | 列表数据 |
list[].id | int | 产品ID |
list[].product_id | int | 商品ID |
list[].name | string | 产品标识 |
list[].status | string | 产品状态(Unpaid=未付款,Pending=开通中,Active=已开通,Suspended=已暂停,Deleted=已删除) |
list[].active_time | int | 开通时间 |
list[].due_time | int | 到期时间 |
list[].client_notes | string | 用户备注 |
list[].product_name | string | 商品名称 |
list[].country | string | 国家 |
list[].country_code | string | 国家代码 |
list[].country_id | int | 国家ID |
list[].city | string | 城市 |
list[].area | string | 区域 |
list[].power_status | string | 电源状态(on=开机,off=关机,operating=操作中,fault=故障) |
list[].image_name | string | 镜像名称 |
list[].image_icon | string | 镜像图标(Windows,CentOS,Ubuntu,Debian,ESXi,XenServer,FreeBSD,Fedora,ArchLinux,Rocky,AlmaLinux,OpenEuler,RedHat,其他) |
list[].ip_num | int | IP数量 |
list[].dedicate_ip | string | 主IP |
list[].assign_ip | string | 附加IP(英文逗号分隔) |
list[].base_info | string | 产品基础信息 |
list[].self_defined_field | array|object | 自定义字段值(键是自定义字段ID,值是填的内容) |
list[].show_base_info | int | 产品列表是否展示基础信息:1是默认,0否 |
list[].is_auto_renew | int | 是否自动续费(0=否,1=是) |
list[].billing_cycle | int | 计费方式(free=免费,onetime=一次性,recurring_prepayment=周期先付,on_demand=按需) |
list[].renew_forbidden | int | 是否禁止续费 0允许 1禁止 |
count | int | 总条数 |
using_count | int | 使用中产品数量 |
expiring_count | int | 即将到期产品数量 |
overdue_count | int | 已逾期产品数量 |
deleted_count | int | 已删除产品数量 |
all_count | int | 全部产品数量 |
data_center[].country_id | int | 国家ID |
data_center[].city | string | 城市 |
data_center[].area | string | 区域 |
data_center[].country_name | string | 国家 |
data_center[].country_code | string | 国家代码 |
data_center[].customfield.multi_language.city | string | 城市多语言 |
data_center[].customfield.multi_language.city | string | 区域多语言 |
self_defined_field[].id | int | 自定义字段ID |
self_defined_field[].field_name | string | 自定义字段名称 |
self_defined_field[].field_type | string | 字段类型(text=文本框,link=链接,password=密码,dropdown=下拉,tickbox=勾选框,textarea=文本区) |
GET订单列表/console/v1/order需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
keywords | string | 关键字 搜索范围订单ID |
type | string | 类型 new新订单 renew续费订单 upgrade升降级订单 artificial人工订单 |
status | string | 状态 Unpaid未付款 Paid已付款 |
page | int | 页数 |
limit | int | 每页条数 |
orderby | string | 排序字段 id type create_time amount status |
sort | string | 升降序 asc desc |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
list | array | 订单列表 |
list[].id | int | 订单ID |
list[].type | string | 类型 new新订单 renew续费订单 upgrade升降级订单 artificial人工订单 |
list[].create_time | int | 创建时间 |
list[].amount | string | 金额 |
list[].status | string | 状态 Unpaid未付款 Paid已付款 WaitUpload待上传 WaitReview待审核 ReviewFail审核失败 |
list[].gateway | string | 支付方式 |
list[].credit | float | 使用余额 大于0代表订单使用了余额和金额相同代表订单支付方式为余额 |
list[].host_name | string | 产品标识 |
list[].description | string | 描述 |
list[].product_names | array | 订单下所有产品的商品名称 |
list[].host_id | int | 产品ID |
list[].order_item_count | int | 订单子项数量 |
list[].voucher | array | 上传的凭证 |
list[].review_fail_reason | string | 审核失败原因 |
count | int | 订单总数 |
GET订单详情/console/v1/order/:id需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 订单ID |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
order | object | 产品 |
order.id | int | 订单ID |
order.type | string | 类型 new新订单 renew续费订单 upgrade升降级订单 artificial人工订单 |
order.amount | string | 金额 |
order.create_time | int | 创建时间 |
order.pay_time | int | 支付时间 |
order.status | string | 状态 Unpaid未付款 Paid已付款 WaitUpload待上传 WaitReview待审核 ReviewFail审核失败 |
order.gateway | string | 支付方式 |
order.credit | string | 使用余额 大于0代表订单使用了余额和金额相同代表订单支付方式为余额 |
order.notes | string | 备注 |
order.refund_amount | string | 订单已退款金额 |
order.amount_unpaid | string | 未支付金额 |
order.voucher | array | 上传的凭证 |
order.review_fail_reason | string | 审核失败原因 |
order.unpaid_timeout | int | 未支付超时时间 0表示不限制 |
order.remain_pay_time | int | 剩余支付时间 配合unpaid_timeout使用 |
order.items | array | 订单子项 |
order.items[].id | int | 订单子项ID |
order.items[].description | string | 描述 |
order.items[].amount | string | 金额 |
order.items[].host_id | int | 产品ID |
order.items[].product_name | string | 商品名称 |
order.items[].host_name | string | 产品标识 |
order.items[].billing_cycle | string | 计费周期 |
order.items[].host_status | string | 产品状态 Unpaid未付款 Pending开通中 Active使用中 Suspended暂停 Deleted删除 Failed开通失败 |
order.activation_delay_reasons | array | 订单所有者可见的已付款待开通原因 |
self_defined_field[].id | int | 自定义字段ID |
self_defined_field[].field_name | string | 字段名称 |
self_defined_field[].field_type | string | 字段类型 text文本框 link链接 password密码 dropdown下拉 checkbox勾选框 textarea文本区 |
self_defined_field[].value | string | 当前值 |
DELETE删除订单/console/v1/order/:id需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 订单ID |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
DELETE批量删除订单/console/v1/order需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | array | 订单ID |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
GET订单列表导出EXCEL/console/v1/order/export_excel需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
keywords | string | 关键字 搜索范围订单ID |
type | string | 类型 new新订单 renew续费订单 upgrade升降级订单 artificial人工订单 |
status | string | 状态 Unpaid未付款 Paid已付款 |
page | int | 页数 |
limit | int | 每页条数 |
orderby | string | 排序字段 id type create_time amount status |
sort | string | 升降序 asc desc |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
POST银行转账提交申请/console/v1/order/:id/submit_application需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 订单ID |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
PUT上传凭证/console/v1/order/:id/voucher需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 订单ID |
voucher必填 | array | 上传的凭证 上传后的文件名 |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
PUT变更支付方式/console/v1/order/:id/gateway需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 订单ID |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
GET订单交易记录/console/v1/order/:id/transaction_record需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 订单ID |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
list[].create_time | int | 交易时间 |
list[].host_id | int | 产品ID |
list[].host_name | string | 产品标识 |
list[].product_id | int | 商品ID |
list[].product_name | string | 商品名称 |
list[].description | string | 描述 |
list[].amount | string | 金额 |
POST合并按需订单/console/v1/order/on_demand/combine需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
ids必填 | array | 订单ID 数组 |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
id | int | 合并后的订单ID |
amount | string | 合并后的订单金额 |
GET交易记录/console/v1/transaction需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
keywords | string | 关键字 搜索范围交易流水号订单ID |
type | string | 类型 new新订单 renew续费订单 upgrade升降级订单 artificial人工订单 |
gateway | string | 支付方式 |
order_id | int | 订单ID |
page | int | 页数 |
limit | int | 每页条数 |
orderby | string | 排序字段 id |
sort | string | 升降序 asc desc |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
list | array | 交易流水列表 |
list[].id | int | 交易流水ID |
list[].amount | float | 金额 |
list[].gateway | string | 支付方式 |
list[].transaction_number | string | 交易流水号 |
list[].order_id | int | 订单ID |
list[].create_time | int | 创建时间 |
list[].type | string | 订单类型 new新订单 renew续费订单 upgrade升降级订单 artificial人工订单 |
list[].hosts | array | 产品列表 |
list[].hosts[].id | int | 产品ID |
list[].hosts[].name | string | 商品名称 |
list[].descriptions | array | 描述 |
count | int | 交易流水总数 |
GET操作日志/console/v1/log需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
type | string | 类型 system系统日志 api API日志 |
keywords | string | 关键字 |
page | int | 页数 |
limit | int | 每页条数 |
orderby | string | 排序字段 id description create_time ip |
sort | string | 升降序 asc desc |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
list | array | 操作日志列表 |
list[].id | int | 操作日志ID |
list[].description | string | 描述 |
list[].create_time | int | 时间 |
list[].ip | string | IP |
count | int | 操作日志总数 |
POST充值/console/v1/recharge需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
amount必填 | float | 1.00 金额 |
gateway必填 | string | WxPay 支付方式 |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
id | int | 订单ID |
POST结算购物车/console/v1/cart/settle需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
positions必填 | array | 商品位置数组 |
customfield | object | 自定义参数 比如优惠码参数传{"promo_code":["pr8nRQOGbmv5"]} |
downstream_host_id | int | 下游产品ID |
downstream_url | string | 下游地址 |
downstream_token | string | 下游产品token |
downstream_system_type | string | 下游系统类型 |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
order_id | int | 订单ID |
POST结算商品/console/v1/product/settle需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
product_id必填 | int | 商品ID |
config_options必填 | object | 自定义配置 |
customfield | object | 自定义参数 比如优惠码参数传{"promo_code":["pr8nRQOGbmv5"]} |
qty必填 | int | 数量 |
self_defined_field | object | 自定义字段 {"5":"123"}5是自定义字段ID123是填写的内容 |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
order_id | int | 订单ID |
GETAPI密钥列表/console/v1/api需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
page | int | 页数 |
limit | int | 每页条数 |
orderby | string | 排序字段 id |
sort | string | 升降序 asc desc |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
list | array | API密钥列表 |
list[].name | string | API密钥名称 |
list[].id | int | API密钥ID |
list[].token | string | token |
list[].create_time | int | 创建时间 |
list[].status | int | 白名单状态 0关闭 1开启 |
list[].ip | string | 白名单IP |
count | int | API总数 |
create_api | int | 是否可创建API 0否 1是 |
POST创建API密钥/console/v1/api需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
name必填 | string | API密钥名称 |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
name | string | API密钥名称 |
id | int | API密钥ID |
token | string | token |
create_time | int | 创建时间 |
private_key | string | 私钥 |
api_url | string | API接口地址 |
PUTAPI白名单设置/console/v1/api/:id/white_list需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | API密钥ID |
status必填 | int | 白名单状态 0关闭 1开启 |
ip | string | 白名单IP 白名单开启时必填 |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
DELETE删除API密钥/console/v1/api/:id需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | API密钥ID |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
GET全局搜索/console/v1/global_search需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
keywords必填 | string | 关键字 搜索范围用户姓名公司邮箱手机号商品名称商品一级分组名称商品二级分组名称产品ID标识商品名称 |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
hosts | array | 产品列表 |
hosts[].id | int | 产品ID |
hosts[].name | string | 标识 |
hosts[].product_name | string | 商品名称 |
GET权限列表/console/v1/auth需要 JWT
请求字段
控制器未提供结构化参数表。路径参数仍须填写;模块配置请先读取对应配置接口,并以服务端校验为准。
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
list | array | 权限列表 |
list[].id | int | 权限ID |
list[].title | string | 权限标题 |
list[].url | string | 地址 |
list[].order | int | 排序 |
list[].parent_id | int | 父级ID |
list[].module | string | 插件模块路径 如gateway支付接口 sms短信接口 mail邮件接口 addon插件 |
list[].plugin | string | 插件标识名 |
list[].rules | array | 权限规则标题 |
list[].child | array | 权限子集 |
list[].child[].id | int | 权限ID |
list[].child[].title | string | 权限标题 |
list[].child[].url | string | 地址 |
list[].child[].order | int | 排序 |
list[].child[].parent_id | int | 父级ID |
list[].child[].module | string | 插件模块路径 |
list[].child[].plugin | string | 插件标识名 |
list[].child[].rules | string | 权限规则标题 |
list[].child[].child | array | 权限子集 |
list[].child[].child[].id | int | 权限ID |
list[].child[].child[].title | string | 权限标题 |
list[].child[].child[].url | string | 地址 |
list[].child[].child[].order | int | 排序 |
list[].child[].child[].parent_id | int | 父级ID |
list[].child[].child[].module | string | 插件模块路径 |
list[].child[].child[].plugin | string | 插件标识名 |
list[].child[].child[].rules | string | 权限规则标题 |
widget[].id | string | 挂件标识 |
widget[].title | string | 挂件标题 |
GET/console/v1/referral/console/v1/referral需要 JWT
请求字段
控制器未提供结构化参数表。路径参数仍须填写;模块配置请先读取对应配置接口,并以服务端校验为准。
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
POST文件上传/console/v1/upload需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
file必填 | resource | 文件资源 |
move | int | 移动资源 0否 1是 仅支持图片 |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
save_name | string | 文件名 |
image_base64 | string | 图片base64 文件为图片才返回 |
image_url | string | 图片地址 文件为图片才返回 |
POST支付/console/v1/pay需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 订单ID |
gateway必填 | string | WxPay 支付方式 支付插件标识 |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
status | int | 状态码 200成功 400失败 |
msg | string | 提示信息 |
code | string | 当status为200且code为Paid时表示支付完成 Unpaid表示部分余额支付需要将返回的data.html数据渲染出来 |
html | string | 三方接口返回内容 |
GET/console/v1/trade_credit/console/v1/trade_credit需要 JWT
请求字段
控制器未提供结构化参数表。路径参数仍须填写;模块配置请先读取对应配置接口,并以服务端校验为准。
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
GET/console/v1/order/:id/trade_credit/console/v1/order/:id/trade_credit需要 JWT
请求字段
控制器未提供结构化参数表。路径参数仍须填写;模块配置请先读取对应配置接口,并以服务端校验为准。
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
POST/console/v1/order/:id/trade_credit/repayment/console/v1/order/:id/trade_credit/repayment需要 JWT
请求字段
控制器未提供结构化参数表。路径参数仍须填写;模块配置请先读取对应配置接口,并以服务端校验为准。
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
GET支付状态/console/v1/pay/:id/status需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 订单ID |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
status | int | 状态码 200成功 400失败 |
msg | string | 提示信息 |
code | string | Paid表示支付成功停止调用接口 Upaid表示支付失败持续调用 |
POST使用取消余额/console/v1/credit需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 订单ID |
use必填 | int | 1使用余额 0取消使用 |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
status | int | 状态码 200成功 400失败 报错已使用过余额时如果要重新使用先取消余额再使用 |
msg | string | 提示信息 |
id | int | 订单ID |
POSTAPI鉴权登录/api/v1/auth无需 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
username必填 | string | 用户名 用户注册时的邮箱或手机号 |
password必填 | string | 密码 api信息的token |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
jwt | string | jwt授权 |
GET获取订购页面配置/console/v1/product/:id/mf_cloud/order_page无需 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 商品ID |
scene | string | 场景(recommend=套餐,custom=自定义) |
is_downstream | int | 是否是下游(0=否,1=是) |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
data_center[].id | int | 国家ID |
data_center[].iso | string | 图标 |
data_center[].name | string | 名称 |
data_center[].city[].name | string | 兼容资源分组标识(固定 resources) |
data_center[].city[].area[].id | int | 数据中心ID |
data_center[].city[].area[].name | string | 区域 |
data_center[].city[].area[].reommend_config[].id | int | 推荐配置ID |
data_center[].city[].area[].reommend_config[].name | string | 推荐配置名称 |
data_center[].city[].area[].reommend_config[].description | string | 推荐配置描述 |
data_center[].city[].area[].reommend_config[].line_id | int | 线路ID |
data_center[].city[].area[].reommend_config[].cpu | int | CPU |
data_center[].city[].area[].reommend_config[].memory | int | 内存 |
data_center[].city[].area[].reommend_config[].system_disk_size | int | 系统盘 |
data_center[].city[].area[].reommend_config[].system_disk_type | string | 系统盘类型 |
data_center[].city[].area[].reommend_config[].data_disk_size | int | 数据盘 |
data_center[].city[].area[].reommend_config[].data_disk_type | string | 数据盘类型 |
data_center[].city[].area[].reommend_config[].network_type | string | 网络类型(normal=经典网络,vpc=vpc网络) |
data_center[].city[].area[].reommend_config[].bw | int | 带宽 |
data_center[].city[].area[].reommend_config[].flow | int | 流量 |
data_center[].city[].area[].reommend_config[].peak_defence | int | 防护峰值 |
data_center[].city[].area[].reommend_config[].ip_num | int | IP数量 |
data_center[].city[].area[].reommend_config[].upgrade_range | int | 升降级范围(0=不可升降级,1=全部,2=自选) |
data_center[].city[].area[].reommend_config[].gpu_num | int | GPU数量 |
data_center[].city[].area[].reommend_config[].gpu_name | int | GPU型号 |
data_center[].city[].area[].reommend_config[].ipv6_num | int | IPv6数量 |
data_center[].city[].area[].reommend_config[].bill_type | string | 计费类型(bw=带宽计费,flow=流量计费) |
data_center[].city[].area[].reommend_config[].ontrial | int | 是否开启试用(0=否,1=是) |
data_center[].city[].area[].reommend_config[].ontrial_price | int | 试用价格 |
data_center[].city[].area[].reommend_config[].ontrial_stock_control | int | 试用库存开关(0=否,1=是) |
data_center[].city[].area[].reommend_config[].ontrial_qty | int | 试用库存 |
data_center[].city[].area[].line[].id | int | 线路ID |
data_center[].city[].area[].line[].name | string | 线路名称 |
data_center[].city[].area[].line[].data_center_id | int | 数据中心ID |
data_center[].city[].area[].line[].bill_type | string | 计费类型(bw=带宽计费,flow=流量计费) |
data_center[].city[].area[].line[].order_default_defence | string | 新订购默认防御 |
data_center[].city[].area[].line[].sync_firewall_rule | string | 同步防火墙规则(0=关闭,1=开启) |
data_center[].city[].area[].gpu_name | string | GPU型号名称 |
data_center[].city[].area[].gpu[].value | int | GPU数量(有才显示) |
cpu | array | CPU配置 |
cpu[].id | int | 配置ID |
cpu[].value | int | 核心数 |
memory | array | 内存配置 |
memory[].id | int | 配置ID |
memory[].type | string | 配置类型(radio=单选,step=阶梯,total=完整) |
memory[].value | int | 配置值 |
memory[].min_value | int | 最小值 |
memory[].max_value | int | 最大值 |
memory[].step | int | 最小变化值 |
system_disk | array | 系统盘配置 |
system_disk[].id | int | 配置ID |
system_disk[].type | string | 配置类型(radio=单选,step=阶梯,total=完整) |
system_disk[].value | int | 配置值 |
system_disk[].min_value | int | 最小值 |
system_disk[].max_value | int | 最大值 |
system_disk[].step | int | 最小变化值 |
system_disk[].other_config.disk_type | string | 磁盘类型 |
system_disk[].other_config.store_id | string | 储存ID |
system_disk[].other_config.disk_limit_enable | int | 性能计费开关(0=关闭,1=开启) |
system_disk[].customfield.multi_language.other_config.disk_type | string | 多语言磁盘类型(有就替换) |
system_disk[].disk_limit | array | 性能限制列表(性能计费开启时返回) |
system_disk[].disk_limit[].id | int | 性能限制ID |
system_disk[].disk_limit[].read_bytes | int | 随机读 |
system_disk[].disk_limit[].write_bytes | int | 随机写 |
system_disk[].disk_limit[].read_iops | int | IOPS读 |
system_disk[].disk_limit[].write_iops | int | IOPS写 |
system_disk[].disk_limit[].price | array | 周期价格 |
system_disk[].disk_limit[].price[].duration_id | int | 周期ID |
system_disk[].disk_limit[].price[].price | string | 价格 |
data_disk | array | 数据盘配置 |
data_disk[].id | int | 配置ID |
data_disk[].type | string | 配置类型(radio=单选,step=阶梯,total=完整) |
data_disk[].value | int | 配置值 |
data_disk[].min_value | int | 最小值 |
data_disk[].max_value | int | 最大值 |
data_disk[].step | int | 最小变化值 |
data_disk[].other_config.disk_type | string | 磁盘类型 |
data_disk[].other_config.store_id | string | 储存ID |
data_disk[].other_config.disk_limit_enable | int | 性能计费开关(0=关闭,1=开启) |
data_disk[].customfield.multi_language.other_config.disk_type | string | 多语言磁盘类型(有就替换) |
data_disk[].disk_limit | array | 性能限制列表(性能计费开启时返回) |
data_disk[].disk_limit[].id | int | 性能限制ID |
data_disk[].disk_limit[].read_bytes | int | 随机读 |
data_disk[].disk_limit[].write_bytes | int | 随机写 |
data_disk[].disk_limit[].read_iops | int | IOPS读 |
data_disk[].disk_limit[].write_iops | int | IOPS写 |
data_disk[].disk_limit[].price | array | 周期价格 |
data_disk[].disk_limit[].price[].duration_id | int | 周期ID |
data_disk[].disk_limit[].price[].price | string | 价格 |
config.type | string | 实例类型(host=KVM加强版,lightHost=KVM轻量版,hyperv=Hyper-V) |
config.support_ssh_key | int | 是否支持SSH密钥(0=不支持,1=支持) |
config.support_normal_network | int | 是否支持经典网络(0=不支持,1=支持) |
config.support_vpc_network | int | 是否支持VPC网络(0=不支持,1=支持) |
config.support_public_ip | int | 是否允许公网IP(0=不支持,1=支持) |
config.backup_enable | int | 是否启用备份(0=不支持,1=支持) |
config.snap_enable | int | 是否启用快照(0=不支持,1=支持) |
config.memory_unit | string | 内存单位(GB,MB) |
config.disk_limit_num | int | 数据盘数量限制 |
config.free_disk_switch | int | 免费数据盘开关(0=关闭,1=开启) |
config.free_disk_size | int | 免费数据盘大小(GB) |
config.only_sale_recommend_config | int | 仅售卖套餐(0=关闭,1=开启) |
config.no_upgrade_tip_show | int | 不可升降级时订购页提示(0=关闭,1=开启) |
config.default_nat_acl | int | 默认NAT转发(0=关闭,1=开启) |
config.default_nat_web | int | 默认NAT建站(0=关闭,1=开启) |
config.ip_mac_bind_enable | int | 是否启用嵌套虚拟化(0=关闭,1=开启) |
config.nat_acl_limit_enable | int | 是否启用NAT转发(0=关闭,1=开启) |
config.nat_web_limit_enable | int | 是否启用NAT建站(0=关闭,1=开启) |
config.rand_ssh_port | int | SSH端口设置(0=默认,1=随机端口,2=指定端口) |
config.rand_ssh_port_start | string | 随机端口开始端口 |
config.rand_ssh_port_end | string | 随机端口结束端口 |
config.rand_ssh_port_windows | string | 指定端口Windows |
config.rand_ssh_port_linux | string | 指定端口Linux |
config.default_one_ipv4 | int | 默认携带IPv4(0=关闭,1=开启) |
config.default_ipv4_num | int | 默认携带IPv4数量 |
config.manual_manage | int | 手动管理商品(0=关闭,1=开启) |
config.free_disk_type | string | 免费盘类型 |
config.manual_resource_control_mode | string | 手动资源控制方式(not_support=不支持,cloud_client=客户端) |
config.custom_rand_password_rule | string | 自定义随机密码位数(0=关闭,1=开启) |
config.default_password_length | string | 默认密码长度 |
backup_config[].id | int | 备份配置ID |
backup_config[].num | int | 备份数量 |
backup_config[].price | string | 备份价格 |
snap_config[].id | int | 快照ID |
snap_config[].num | int | 快照数量 |
snap_config[].price | string | 快照价格 |
config_limit[].type | string | 配置限制类型(cpu=CPU与内存限制,data_center=数据中心与计算限制,image=操作系统与计算限制) |
config_limit[].data_center_id | int | 数据中心ID |
config_limit[].cpu | string | cpu(英文逗号分隔) |
config_limit[].memory | string | 内存(英文逗号分隔) |
config_limit[].min_memory | int | 最小内存 |
config_limit[].max_memory | int | 最大内存 |
config_limit[].image_id | int | 操作系统ID |
config_limit[].image_group_id | int | 操作系统分组ID |
config.disk_range_limit_switch | int | 磁盘大小购买限制开关(0=关闭,1=开启) |
config.disk_range_limit | int | 磁盘大小购买限制(GB) |
config.vpc_cidr_limit | array | VPC网段限制列表(空数组=不限制) |
config.network_order | int | 网络排序(0=先经典网络后VPC网络,1=先VPC网络后经典网络) |
resource_package[].id | int | 资源包ID |
resource_package[].name | string | 资源包名称 |
limit_rule | array | 限制规则 |
limit_rule[].id | int | 限制规则ID |
limit_rule[].rule | object | 条件数据 |
limit_rule[].rule.cpu.value | array | CPU |
limit_rule[].rule.cpu.opt | string | 运算符(eq=等于,neq=不等于) |
limit_rule[].rule.memory.min | string | 内存最小值 |
limit_rule[].rule.memory.max | string | 内存最大值 |
limit_rule[].rule.memory.opt | string | 运算符(eq=等于,neq=不等于) |
limit_rule[].rule.memory.value | array | 内存值(当内存是单选时) |
limit_rule[].rule.data_center.id | array | 数据中心ID |
limit_rule[].rule.data_center.opt | string | 运算符(eq=等于,neq=不等于) |
limit_rule[].rule.image.id | array | 操作系统ID |
limit_rule[].rule.image.opt | string | 运算符(eq=等于,neq=不等于) |
limit_rule[].result | object | 结果数据 |
limit_rule[].result.cpu[].value | array | CPU |
limit_rule[].result.cpu[].opt | string | 运算符(eq=等于,neq=不等于) |
limit_rule[].result.memory[].min | string | 内存最小值 |
limit_rule[].result.memory[].max | string | 内存最大值 |
limit_rule[].result.memory[].opt | string | 运算符(eq=等于,neq=不等于) |
limit_rule[].result.memory[].value | array | 内存值(当内存是单选时) |
limit_rule[].result.data_center[].id | array | 数据中心ID |
limit_rule[].result.data_center[].opt | string | 运算符(eq=等于,neq=不等于) |
limit_rule[].result.image[].id | array | 操作系统ID |
limit_rule[].result.image[].opt | string | 运算符(eq=等于,neq=不等于) |
limit_rule[].result.system_disk[].min | string | 系统盘最小值 |
limit_rule[].result.system_disk[].max | string | 系统盘最大值 |
limit_rule[].result.system_disk[].opt | string | 运算符(eq=等于,neq=不等于) |
security_group_config[].id | string | 安全组标识(remote_port是原来远程端口) |
security_group_config[].description | string | 描述 |
security_group_config[].port | string | 端口 |
security_group_config[].protocol | string | 协议 |
GET获取操作系统列表/console/v1/product/:id/mf_cloud/image无需 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 商品ID |
is_downstream | int | 是否下游发起(0=否,1=是) |
is_market | int | 是否镜像市场(0=普通镜像,1=镜像市场镜像) |
recommend_config_id | int | 套餐ID |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
list[].id | int | 操作系统分类ID |
list[].name | string | 操作系统分类名称 |
list[].icon | string | 操作系统分类图标 |
list[].image[].id | int | 操作系统ID |
list[].image[].image_group_id | int | 操作系统分类ID |
list[].image[].name | string | 操作系统名称 |
list[].image[].charge | int | 是否收费(0=否,1=是) |
list[].image[].price | string | 价格 |
list[].image[].is_market | int | 是否镜像市场(0=普通镜像,1=镜像市场镜像) |
market_image_count | int | 镜像市场镜像数量 |
GET可用应用预设/console/v1/product/:id/mf_cloud/app_preset无需 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 商品ID或实例ID |
image_id必填 | int | 镜像ID |
action必填 | string | create 适用动作,create=订购,reinstall=重装 |
include_incompatible | int | 是否返回当前镜像不兼容的应用预设,1=返回并标记available,0=仅返回可用项 |
admin | int | 后台调用标记,1=后台实例操作读取已购买状态 |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
[].id | int | 应用预设ID |
[].name | string | 应用预设名称 |
[].icon_url | string | 应用预设图标地址 |
[].charge | int | 是否收费,0=否,1=是 |
[].price | string | 单次价格 |
[].purchased | bool | 重装场景下当前实例是否已购买该收费预设 |
[].actions | array | 适用动作 |
[].available | bool | include_incompatible=1时返回,当前镜像是否兼容;不适用当前动作的预设不会返回 |
[].images | array | 该预设支持的全部镜像 |
[].images[].id | int | 镜像ID |
[].images[].name | string | 镜像名称 |
[].images[].image_group_name | string | 镜像分组名称 |
POST获取商品配置所有周期价格/console/v1/product/:id/mf_cloud/duration无需 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 商品ID |
recommend_config_id | int | 套餐ID |
cpu | int | CPU |
memory | int | 内存 |
system_disk.size | int | 系统盘大小 |
system_disk.disk_type | string | 系统盘类型 |
system_disk.disk_limit_id | int | 系统盘性能限制ID |
data_disk[].size | int | 数据盘大小 |
data_disk[].disk_type | string | 数据盘类型 |
data_disk[].disk_limit_id | int | 数据盘性能限制ID |
line_id | int | 线路ID |
bw | int | 带宽 |
flow | int | 流量 |
peak_defence | int | 防御峰值(G) |
ip_num | int | 附加IP数量 |
gpu_num | int | 显卡数量 |
image_id | int | 镜像ID |
backup_num | int | 备份数量 |
snap_num | int | 快照数量 |
ipv6_num | int | IPv6数量 |
is_downstream | int | 是否下游发起(0=否,1=是) |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
[].id | int | 周期ID |
[].name | string | 周期名称 |
[].name_show | string | 周期名称多语言替换 |
[].price | string | 周期总价 |
[].discount | float | 折扣(0=没有折扣) |
[].num | int | 周期时长 |
[].unit | string | 单位(hour=小时,day=天,month=月) |
[].is_default | int | 是否默认周期(0=否,1=是) |
GET获取可用VPC网络/console/v1/product/:id/mf_cloud/vpc_network/search无需 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 商品ID |
data_center_id | int | 数据中心ID |
downstream_client_id | int | 下游用户ID(api对接可用) |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
list[].id | int | VPC网络ID |
list[].name | string | VPC网络名称 |
GET获取线路配置/console/v1/product/:id/mf_cloud/line/:line_id无需 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 商品ID |
line_id必填 | int | 线路ID |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
bill_type | string | 计费类型(bw=带宽计费,flow=流量计费) |
sync_firewall_rule | int | 同步防火墙规则(0=关闭,1=开启) |
gpu_name | string | 显卡名称 |
bw[].type | string | 配置方式(radio=单选,step=阶梯,total=总量) |
bw[].value | int | 带宽 |
bw[].min_value | int | 最小值 |
bw[].max_value | int | 最大值 |
bw[].step | int | 步长 |
flow[].value | int | 流量 |
flow[].other_config.in_bw | int | 进带宽 |
flow[].other_config.out_bw | int | 出带宽(显示这个) |
flow[].other_config.traffic_type | int | 计费方向(1=进,2=出,3=进+出) |
flow[].other_config.bill_cycle | string | 计费周期(month=自然月,last_30days=购买日循环) |
flow[].bw[].in_bw | int | 进带宽 |
flow[].bw[].out_bw | int | 出带宽 |
flow_on_demand[].value | int | 流量按需 |
flow_on_demand[].other_config.in_bw | int | 进带宽 |
flow_on_demand[].other_config.out_bw | int | 出带宽 |
flow_on_demand[].other_config.traffic_type | int | 计费方向(1=进,2=出,3=进+出) |
flow_on_demand[].bw[].in_bw | int | 进带宽 |
flow_on_demand[].bw[].out_bw | int | 出带宽 |
order_default_defence | int | 防御默认选中配置ID |
defence[].id | int | 配置ID |
defence[].value | string | 防御峰值 |
defence[].desc | string | 防御峰值显示 |
ip[].type | string | 配置方式(radio=单选,step=阶梯,total=总量) |
ip[].value | int | IP数量 |
ip[].min_value | int | 最小值 |
ip[].max_value | int | 最大值 |
ip[].step | int | 步长 |
gpu[].value | int | 显卡数量 |
ipv6[].type | string | 配置方式(radio=单选,step=阶梯,total=总量) |
ipv6[].value | int | IP数量 |
ipv6[].min_value | int | 最小值 |
ipv6[].max_value | int | 最大值 |
ipv6[].step | int | 步长 |
GET数据中心选择/console/v1/product/:id/mf_cloud/data_center无需 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id | int | 商品ID |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
list[].id | int | 数据中心ID |
list[].area | string | 区域 |
list[].iso | string | 图标 |
list[].country_name | string | 国家名称 |
GET控制台页面/console/v1/mf_cloud/:id/vnc无需 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
temp_token必填 | string | 临时令牌 |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
POST验证下单/console/v1/product/:id/mf_cloud/validate_settle需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 商品ID |
downstream_client_id | int | 下游用户ID(api时可用) |
custom.duration_id必填 | int | 周期ID |
custom.recommend_config_id | int | 套餐ID |
custom.data_center_id | int | 数据中心ID |
custom.cpu | int | CPU |
custom.memory | int | 内存 |
custom.system_disk.size | int | 系统盘大小(G) |
custom.system_disk.disk_type | string | 系统盘类型 |
custom.data_disk[].size | int | 数据盘大小(G) |
custom.data_disk[].disk_type | string | 数据盘类型 |
custom.line_id | int | 线路ID |
custom.bw | int | 带宽(Mbps) |
custom.flow | int | 流量(G) |
custom.peak_defence | int | 防御峰值(G) |
custom.gpu_num | int | 显卡数量 |
custom.image_id | int | 镜像ID |
custom.ssh_key_id | int | SSH密钥ID |
custom.backup_num | int | 备份数量 |
custom.snap_num | int | 快照数量 |
custom.ip_mac_bind_enable | int | 嵌套虚拟化(0=关闭,1=开启) |
custom.nat_acl_limit_enable | int | 是否启用NAT转发(0=关闭,1=开启) |
custom.nat_web_limit_enable | int | 是否启用NAT建站(0=关闭,1=开启) |
custom.resource_package_id | int | 资源包ID |
custom.network_type | string | 网络类型(normal=经典网络,vpc=VPC网络) |
custom.vpc.id | int | VPC网络ID |
custom.vpc.ips | string | VPCIP段 |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
price | string | 价格 |
renew_price | string | 续费价格 |
billing_cycle | string | 周期 |
duration | int | 周期时长 |
description | string | 订单子项描述 |
base_price | string | 基础价格 |
billing_cycle_name | string | 周期名称多语言 |
preview[].name | string | 配置项名称 |
preview[].value | string | 配置项值 |
preview[].price | string | 配置项价格 |
discount | string | 用户等级折扣 |
order_item[].type | string | 订单子项类型(addon_idcsmart_client_level=用户等级) |
order_item[].rel_id | int | 关联ID |
order_item[].amount | float | 子项金额 |
order_item[].description | string | 子项描述 |
GET产品列表/console/v1/mf_cloud需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
page | int | 页数 |
limit | int | 每页条数 |
orderby | string | 排序(id,due_time,status) |
sort | string | 升/降序 |
keywords | string | 关键字搜索(商品名称/产品名称/IP) |
country_id | int | 搜索国家ID |
area | string | 搜索区域 |
status | string | 产品状态(Unpaid=未付款,Pending=开通中,Active=已开通,Suspended=已暂停,Deleted=已删除,Grace=宽限,Keep=保留) |
tab | string | 状态(using=使用中,expiring=即将到期,overdue=已逾期,deleted=已删除) |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
list | array | 列表数据 |
list[].id | int | 产品ID |
list[].product_id | int | 商品ID |
list[].name | string | 产品标识 |
list[].status | string | 产品状态(Unpaid=未付款,Pending=开通中,Active=已开通,Suspended=已暂停,Deleted=已删除,Grace=宽限,Keep=保留) |
list[].active_time | int | 开通时间 |
list[].due_time | int | 到期时间 |
list[].client_notes | string | 用户备注 |
list[].product_name | string | 商品名称 |
list[].country | string | 国家 |
list[].country_code | string | 国家代码 |
list[].country_id | int | 国家ID |
list[].area | string | 区域 |
list[].power_status | string | 电源状态(on=开机,off=关机,operating=操作中,fault=故障) |
list[].image_name | string | 镜像名称 |
list[].image_icon | string | 镜像图标(Windows,CentOS,Ubuntu,Debian,ESXi,XenServer,FreeBSD,Fedora,ArchLinux,Rocky,AlmaLinux,OpenEuler,RedHat,其他) |
list[].ip_num | int | IP数量 |
list[].dedicate_ip | string | 主IP |
list[].assign_ip | string | 附加IP(英文逗号分隔) |
list[].self_defined_field | object | 自定义字段值(键是自定义字段ID,值是填的内容) |
list[].show_base_info | int | 产品列表是否展示基础信息(0=否,1=是) |
list[].is_auto_renew | int | 是否自动续费(0=否,1=是) |
list[].billing_cycle | string | 计费方式(free=免费,onetime=一次性,recurring_prepayment=包年包月,on_demand=按需) |
count | int | 总条数 |
using_count | int | 使用中产品数量 |
expiring_count | int | 即将到期产品数量 |
overdue_count | int | 已逾期产品数量 |
deleted_count | int | 已删除产品数量 |
all_count | int | 全部产品数量 |
data_center[].country_id | int | 国家ID |
data_center[].area | string | 区域 |
data_center[].country_name | string | 国家 |
data_center[].country_code | string | 国家代码 |
self_defined_field[].id | int | 自定义字段ID |
self_defined_field[].field_name | string | 自定义字段名称 |
self_defined_field[].field_type | string | 字段类型(text=文本框,link=链接,password=密码,dropdown=下拉,tickbox=勾选框,textarea=文本区) |
GET获取实例详情/console/v1/mf_cloud/:id需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id | int | 产品ID |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
type | string | 类型(host=KVM加强版,lightHost=KVM轻量版,hyperv=Hyper-V) |
order_id | int | 订单ID |
ip | string | IP地址 |
ip_num | int | 附加IPv4数量 |
ipv6_num | int | 附加IPv6数量 |
backup_num | int | 允许备份数量 |
snap_num | int | 允许快照数量 |
power_status | string | 电源状态(on=开机,off=关机,operating=操作中,fault=故障) |
cpu | string | CPU |
memory | int | 内存 |
system_disk.size | int | 系统盘大小(G) |
system_disk.type | string | 系统盘类型 |
line.id | int | 线路ID |
line.name | string | 线路名称 |
line.bill_type | string | 计费类型(bw=带宽计费,flow=流量计费) |
line.sync_firewall_rule | int | 同步防火墙规则(0=关闭,1=开启) |
bw | int | 带宽 |
peak_defence | int | 防御峰值(G) |
network_type | string | 网络类型(normal=经典网络,vpc=VPC网络) |
gpu | string | 显卡 |
username | string | 用户名 |
password | string | 密码 |
data_center.id | int | 数据中心ID |
data_center.area | string | 区域 |
data_center.country | string | 国家 |
data_center.iso | string | 图标 |
image.id | int | 镜像ID |
image.name | string | 镜像名称 |
image.image_group_id | int | 镜像分组ID |
image.image_group_name | string | 镜像分组 |
image.icon | string | 图标 |
ssh_key.id | int | SSH密钥ID |
ssh_key.name | string | SSH密钥名称 |
nat_acl_limit | int | NAT转发数量 |
nat_web_limit | int | NAT建站数量 |
config.reinstall_sms_verify | int | 重装短信验证(0=不启用,1=启用) |
config.reset_password_sms_verify | int | 重置密码短信验证(0=不启用,1=启用) |
config.manual_manage | int | 手动管理商品(0=关闭,1=开启) |
config.simulate_physical_machine_enable | int | 模拟物理机运行(0=关闭,1=开启) |
config.show_panel_password_enable | int | 前台显示面板密码(0=关闭,1=开启) |
security_group.id | int | 关联的安全组ID(0=没关联) |
security_group.name | string | 关联的安全组名称 |
recommend_config.id | int | 套餐ID(有表示是套餐) |
recommend_config.product_id | int | 商品ID |
recommend_config.name | string | 套餐名称 |
recommend_config.description | string | 套餐描述 |
recommend_config.order | int | 排序 |
recommend_config.data_center_id | int | 数据中心ID |
recommend_config.cpu | int | CPU |
recommend_config.memory | int | 内存(GB) |
recommend_config.system_disk_size | int | 系统盘大小(G) |
recommend_config.data_disk_size | int | 数据盘大小(G) |
recommend_config.bw | int | 带宽 |
recommend_config.peak_defence | int | 防御峰值(G) |
recommend_config.system_disk_type | string | 系统盘类型 |
recommend_config.data_disk_type | string | 数据盘类型 |
recommend_config.flow | int | 流量 |
recommend_config.line_id | int | 线路ID |
recommend_config.create_time | int | 创建时间 |
recommend_config.ip_num | int | IP数量 |
recommend_config.upgrade_range | int | 升降级范围(0=不可升降级,1=全部,2=自选) |
recommend_config.hidden | int | 是否隐藏(0=否,1=是) |
recommend_config.gpu_num | int | 显卡数量 |
data_disk.count | int | 数据盘数量 |
data_disk.total_size | int | 数据盘总大小 |
support_apply_for_suspend | int | 是否支持申请停用(0=否,1=是) |
vpc_private_ip | string | VPC内网IP |
backup_mode | string | 备份模式(空字符串=未设置,count=数量模式,space=备份空间模式) |
backup_cart_url | string | 订购备份空间链接(空表示没有可订购的) |
GET获取部分详情/console/v1/mf_cloud/:id/part需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
data_center.id | int | 数据中心ID |
data_center.area | string | 区域 |
data_center.country | string | 国家 |
data_center.iso | string | 图标 |
ip | string | IP地址 |
power_status | string | 电源状态(on=开机,off=关机,operating=操作中,fault=故障) |
image.id | int | 镜像ID |
image.name | string | 镜像名称 |
image.image_group_name | string | 镜像分类 |
image.icon | string | 图标 |
GET获取实例状态/console/v1/mf_cloud/:id/status需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
status | string | 实例状态(pending=开通中,on=开机,off=关机,suspend=暂停,operating=操作中,fault=故障) |
desc | string | 实例状态描述 |
GET获取图表数据/console/v1/mf_cloud/:id/chart需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
start_time | int | 开始秒级时间 |
type必填 | string | 图表类型(cpu=CPU,memory=内存,disk_io=硬盘IO,bw=带宽) |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
list[].time | int | 时间(秒级时间戳) |
list[].value | float | CPU使用率 |
list[].total | int | 总内存(单位:B) |
list[].used | int | 内存使用量(单位:B) |
list[].read_bytes | float | 读取速度(B/s) |
list[].write_bytes | float | 写入速度(B/s) |
list[].read_iops | float | 读取IOPS |
list[].write_iops | float | 写入IOPS |
list[].in_bw | float | 进带宽(bps) |
list[].out_bw | float | 出带宽(bps) |
GET获取实例磁盘/console/v1/mf_cloud/:id/disk需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
list[].id | int | 磁盘ID |
list[].name | string | 名称 |
list[].size | int | 磁盘大小(GB) |
list[].create_time | int | 创建时间 |
list[].type | string | 磁盘类型 |
list[].type2 | string | 类型(system=系统盘,data=数据盘) |
list[].is_free | int | 是否免费盘(0=否,1=是),免费盘不能扩容 |
list[].status | int | 磁盘状态(0=卸载,1=挂载,2=正在挂载,3=创建中) |
POST卸载磁盘/console/v1/mf_cloud/:id/disk/:disk_id/unmount需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
disk_id必填 | int | 磁盘ID |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
name | string | 磁盘名称 |
POST挂载磁盘/console/v1/mf_cloud/:id/disk/:disk_id/mount需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
disk_id必填 | int | 磁盘ID |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
name | string | 磁盘名称 |
GET快照列表/console/v1/mf_cloud/:id/snapshot需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
page | int | 页数 |
limit | int | 每页条数 |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
list[].id | int | 快照ID |
list[].name | string | 快照名称 |
list[].create_time | int | 创建时间 |
list[].notes | string | 备注 |
list[].status | int | 状态(0=创建中,1=创建完成) |
count | int | 总条数 |
POST创建快照/console/v1/mf_cloud/:id/snapshot需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
name必填 | string | 快照名称 |
disk_id必填 | int | 磁盘ID |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
POST快照还原/console/v1/mf_cloud/:id/snapshot/restore需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
snapshot_id必填 | int | 快照ID |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
name | string | 快照名称 |
DELETE删除快照/console/v1/mf_cloud/:id/snapshot/:snapshot_id需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
snapshot_id必填 | int | 快照ID |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
name | string | 快照名称 |
GET备份列表/console/v1/mf_cloud/:id/backup需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
page | int | 页数 |
limit | int | 每页条数 |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
list[].id | int | 备份ID |
list[].name | string | 备份名称 |
list[].create_time | int | 创建时间 |
list[].notes | string | 备注 |
list[].status | int | 状态(0=创建中,1=创建成功) |
count | int | 总条数 |
POST创建备份/console/v1/mf_cloud/:id/backup需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
name必填 | string | 备份名称 |
disk_id必填 | int | 磁盘ID |
mf_cloud_backup_host_id | int | 备份空间实例ID(备份模式为space时必填) |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
id | int | 备份ID |
POST备份还原/console/v1/mf_cloud/:id/backup/restore需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
backup_id必填 | int | 备份ID |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
name | string | 备份名称 |
DELETE删除备份/console/v1/mf_cloud/:id/backup/:backup_id需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
backup_id必填 | int | 备份ID |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
name | string | 备份名称 |
GET获取网络流量/console/v1/mf_cloud/:id/flow需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
total | string | 总流量 |
used | string | 已用流量 |
leave | string | 剩余流量 |
reset_flow_date | string | 流量归零时间 |
total_num | int | 总流量大小(0=不限) |
used_num | float | 已用流量大小 |
base_flow | float | 基础流量(0=不限) |
temp_flow | float | 临时流量 |
flow_packet.leave_size | float | 流量包剩余流量大小(GB) |
flow_packet.total_size | int | 流量包总大小(GB) |
flow_packet.used_size | float | 流量包已用大小(GB) |
GET日志/console/v1/mf_cloud/:id/log需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
keywords | string | 关键字 |
page | int | 页数 |
limit | int | 每页条数 |
orderby | string | 排序(id,description,create_time,ip) |
sort | string | 升/降序(asc,desc) |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
list | array | 系统日志 |
list[].id | int | 系统日志ID |
list[].description | string | 描述 |
list[].create_time | string | 时间 |
list[].ip | int | IP |
count | int | 系统日志总数 |
GET检查产品是否购买过镜像/console/v1/mf_cloud/:id/image/check需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
image_id必填 | int | 镜像ID |
is_downstream | int | 是否下游(0=不是,1=是) |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
price | string | 需要支付的金额(0.00表示镜像免费或已购买) |
description | string | 描述 |
POST生成购买镜像订单/console/v1/mf_cloud/:id/image/order需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
image_id必填 | int | 镜像ID |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
id | string | 订单ID |
GET可用应用预设/console/v1/mf_cloud/:id/app_preset需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 商品ID或实例ID |
image_id必填 | int | 镜像ID |
action必填 | string | create 适用动作,create=订购,reinstall=重装 |
include_incompatible | int | 是否返回当前镜像不兼容的应用预设,1=返回并标记available,0=仅返回可用项 |
admin | int | 后台调用标记,1=后台实例操作读取已购买状态 |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
[].id | int | 应用预设ID |
[].name | string | 应用预设名称 |
[].icon_url | string | 应用预设图标地址 |
[].charge | int | 是否收费,0=否,1=是 |
[].price | string | 单次价格 |
[].purchased | bool | 重装场景下当前实例是否已购买该收费预设 |
[].actions | array | 适用动作 |
[].available | bool | include_incompatible=1时返回,当前镜像是否兼容;不适用当前动作的预设不会返回 |
[].images | array | 该预设支持的全部镜像 |
[].images[].id | int | 镜像ID |
[].images[].name | string | 镜像名称 |
[].images[].image_group_name | string | 镜像分组名称 |
GET检查应用预设价格/console/v1/mf_cloud/:id/app_preset/check需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 实例ID |
image_id必填 | int | 镜像ID |
action必填 | string | reinstall 适用动作,仅支持reinstall重装 |
app_preset_id必填 | int | 应用预设ID,0表示不安装 |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
app_preset_id | int | 已选择的应用预设ID,0表示不安装 |
price | string | 本次应付金额 |
need_pay | array | 需要付费的应用预设ID |
price_difference | string | 订单差价 |
renew_price_difference | string | 续费差价,应用预设固定为0 |
base_price | string | 折扣前金额 |
discount | string | 优惠金额 |
POST创建应用预设订单/console/v1/mf_cloud/:id/app_preset/order需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 实例ID |
image_id必填 | int | 镜像ID |
action | string | reinstall 适用动作,固定为reinstall重装 |
app_preset_id必填 | int | 应用预设ID,0表示不安装 |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
id | int | 订单ID |
amount | string | 订单金额 |
GET应用预设任务列表/console/v1/mf_cloud/:id/app_preset_task需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 实例ID |
page | int | 页码 |
per_page | int | 每页数量 |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
list | array | 任务列表 |
list[].id | int | 任务ID |
list[].app_preset_id | int | 本地应用预设ID |
list[].preset_name | string | 应用预设名称 |
list[].preset_code | string | 应用预设编码 |
list[].source_action | string | 触发动作,create=创建,rebuild=重建,reinstall=重装 |
list[].stage | string | 当前阶段 |
list[].status | int | 状态,0=等待,1=执行中,2=成功,3=失败,4=终止 |
list[].progress | int | 进度百分比 |
list[].create_time | string | 任务创建时间,格式YYYY-MM-DD HH:mm:ss |
list[].icon | string | 应用预设图标访问地址 |
list[].credentials_valid | bool | 访问凭据是否已生成且有效 |
list[].retryable | bool | 任务是否允许重试 |
list[].binding_id | int | 应用预设绑定ID |
list[].operation | string | 任务操作,install=安装,uninstall=卸载 |
list[].is_current_binding | bool | 是否为当前有效绑定 |
list[].uninstallable | bool | 当前绑定是否允许卸载 |
list[].uninstall_reason | string | 不可卸载原因 |
total | int | 任务总数 |
GET应用预设任务日志/console/v1/mf_cloud/:id/app_preset_task/:task_id/log需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 实例ID |
task_id必填 | int | 任务ID |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
logs | array | 任务日志列表 |
logs[].id | int | 日志ID |
logs[].level | string | 日志级别 |
logs[].stage | string | 任务阶段 |
logs[].message | string | 日志内容 |
logs[].create_time | string | 日志时间,格式YYYY-MM-DD HH:mm:ss |
full_log | string | 完整日志 |
truncated | bool | 完整日志是否截断 |
GET应用预设任务凭据/console/v1/mf_cloud/:id/app_preset_task/:task_id/credential需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 实例ID |
task_id必填 | int | 任务ID |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
valid | bool | 凭据是否有效 |
status | string | 凭据状态,pending=生成中,valid=有效,invalid=无效 |
credentials | array | 按应用预设配置顺序返回的凭据字段 |
credentials[].key | string | 凭据字段标识 |
credentials[].value | mixed | 凭据字段值 |
credentials[].labels | object | 凭据字段多语言标签 |
credentials[].labels.zh-cn | string | 凭据字段简体中文标签 |
credentials[].labels.en-us | string | 凭据字段英文标签 |
credentials[].labels.zh-hk | string | 凭据字段繁体中文标签 |
POST重试应用预设任务/console/v1/mf_cloud/:id/app_preset_task/:task_id/retry需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 实例ID |
task_id必填 | int | 任务ID |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
task_id | int | 新任务ID |
POST卸载应用预设/console/v1/mf_cloud/:id/app_preset_binding/:binding_id/uninstall需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 实例ID |
binding_id必填 | int | 当前应用预设绑定ID |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
task_id | int | 卸载任务ID |
cloud_task_id | int | 系统任务ID |
existing | bool | 是否返回已存在的幂等任务 |
GET获取魔方云远程信息/console/v1/mf_cloud/:id/remote_info需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
rescue | int | 是否正在救援系统(0=不是,1=是) |
username | string | 远程用户名 |
password | string | 远程密码 |
port | int | 远程端口 |
ip_num | int | IP数量 |
simulate_physical_machine | int | 模拟物理机运行(0=关闭,1=开启) |
system_disk_real_size | float | 系统盘实际占用大小(单位:G) |
panel_pass | string | 面板管理密码 |
vpc_private_ip | string | VPC内网IP |
GET获取IP列表/console/v1/mf_cloud/:id/ip需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
page | int | 页数 |
limit | int | 每页条数 |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
list | array | 列表数据 |
list[].ip | string | IP |
list[].subnet_mask | string | 掩码 |
list[].gateway | string | 网关 |
count | int | 总数 |
POST获取订购磁盘价格/console/v1/mf_cloud/:id/disk/price需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
remove_disk_id | array | 要取消订购的磁盘ID |
add_disk | array | 新增磁盘大小参数 |
add_disk[].size | int | 磁盘大小 |
add_disk[].type | string | 磁盘类型 |
is_downstream | int | 是否下游发起(0=否,1=是) |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
price | string | 价格 |
description | string | 生成的订单描述 |
price_difference | string | 差价 |
renew_price_difference | string | 续费差价 |
base_price | string | 基础价格 |
renew_price | string | 续费价格 |
POST生成购买磁盘订单/console/v1/mf_cloud/:id/disk/order需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
remove_disk_id | array | 要取消订购的磁盘ID |
add_disk | array | 新增磁盘大小参数 |
add_disk[].size | int | 磁盘大小 |
add_disk[].type | string | 磁盘类型 |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
id | string | 订单ID |
POST获取磁盘扩容价格/console/v1/mf_cloud/:id/disk/resize需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
resize_data_disk[].id | int | 磁盘ID |
resize_data_disk[].size | int | 磁盘大小 |
is_downstream | int | 是否下游发起(0=否,1=是) |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
price | string | 价格 |
description | string | 生成的订单描述 |
price_difference | string | 差价 |
renew_price_difference | string | 续费差价 |
base_price | string | 基础价格 |
renew_price | string | 续费价格 |
POST生成磁盘扩容订单/console/v1/mf_cloud/:id/disk/resize/order需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
resize_data_disk[].id | int | 魔方云磁盘ID |
resize_data_disk[].size | int | 磁盘大小 |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
id | string | 订单ID |
POST模拟物理机运行/console/v1/mf_cloud/:id/simulate_physical_machine需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
simulate_physical_machine必填 | int | 模拟物理机运行(0=关闭,1=开启) |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
GETIPv6列表/console/v1/mf_cloud/:id/ipv6需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
page | int | 页数 |
limit | int | 每页条数 |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
list[].ipv6 | string | IPv6地址 |
count | int | 总条数 |
GET下载RDP/console/v1/mf_cloud/:id/download_rdp需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
content | string | 下载RDP内容 |
name | string | 下载文件名 |
GET是否可以续费/console/v1/mf_cloud/:id/whether_renew需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
GET实例流量数据/console/v1/mf_cloud/:id/flow_data需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
start_time必填 | int | 开始时间 |
end_time | int | 结束时间 |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
list[].time | string | 时间 |
list[].in | float | 进流量 |
list[].out | float | 出流量 |
unit | string | 当前单位 |
GET流量包列表/console/v1/mf_cloud/:id/traffic_package需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
page | int | 页数 |
limit | int | 每页条数 |
status | int | 包状态(0=失效,1=有效;不传则查全部) |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
list | array | 流量包列表 |
list[].id | int | 流量包ID |
list[].name | string | 流量包名称 |
list[].size | int | 流量包大小(GB) |
list[].used | float | 已使用(GB) |
list[].expire_time | int | 到期时间(秒级时间戳,0表示不到期) |
list[].expire_with_reset | int | 是否随重置过期(0=否,1=是) |
list[].status | int | 状态(0=失效,1=有效) |
list[].create_time | int | 创建时间(秒级时间戳) |
count | int | 总条数 |
GET下游退款前验证/console/v1/mf_cloud/:id/check_refund需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
GET获取快照/备份数量升降级价格/console/v1/mf_cloud/:id/backup_config需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
type必填 | string | 类型(snap=快照,backup=备份) |
num必填 | int | 数量 |
is_downstream | int | 是否下游发起(0=否,1=是) |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
price | string | 价格 |
description | string | 描述 |
price_difference | string | 差价 |
renew_price_difference | string | 续费差价 |
base_price | string | 基础价格 |
POST生成快照/备份数量升降级订单/console/v1/mf_cloud/:id/backup_config/order需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
type必填 | string | 类型(snap=快照,backup=备份) |
num必填 | int | 备份/快照数量 |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
id | string | 订单ID |
POST设置备份空间模式/console/v1/mf_cloud/:id/set_backup_space_mode需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
status | int | 状态码(200=成功,400=失败) |
msg | string | 提示信息 |
GET获取附加IP价格/console/v1/mf_cloud/:id/ip_num需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
ip_num必填 | int | 附加IPv4数量 |
ipv6_num | int | 附加IPv6数量 |
is_downstream | int | 是否下游发起(0=否,1=是) |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
price | string | 价格 |
description | string | 生成的订单描述 |
price_difference | string | 差价 |
renew_price_difference | string | 续费差价 |
base_price | string | 基础价格 |
renew_price | string | 续费价格 |
POST生成附加IP订单/console/v1/mf_cloud/:id/ip_num/order需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
ip_num必填 | int | 附加IP数量 |
ipv6_num | int | 附加IPv6数量 |
ip | array | 移除的IP地址 |
ipv6 | array | 移除的IPv6地址 |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
id | string | 订单ID |
POST创建VPC网络/console/v1/mf_cloud/:id/vpc_network需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
name必填 | string | VPC网络名称 |
ips | string | IP段(cidr,如10.0.0.0/16,系统分配时不传) |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
id | int | VPC网络ID |
GETVPC网络列表/console/v1/mf_cloud/:id/vpc_network需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
page | int | 页数 |
limit | int | 每页条数 |
orderby | string | 排序(id,name) |
sort | string | 升降序(asc,desc) |
downstream_client_id | int | 下游用户ID(api时可用) |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
list[].id | int | VPC网络ID |
list[].name | string | VPC网络名称 |
list[].ips | string | VPC网络网段 |
count | int | 总条数 |
list[].host[].id | int | 主机产品ID |
list[].host[].name | string | 主机标识 |
host | array | 可用产品ID(api时返回) |
vpc_cidr_limit | array | VPC网段限制列表(空数组=不限制) |
DELETE删除VPC网络/console/v1/mf_cloud/:id/vpc_network/:vpc_network_id需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
vpc_network_id必填 | int | VPC网络ID |
downstream_client_id | int | 下游用户ID(api时可用) |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
PUT切换实例VPC网络/console/v1/mf_cloud/:id/vpc_network需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
vpc_network_id必填 | int | 新VPCID |
downstream_client_id | int | 下游用户ID(api时可用) |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
name | string | 变更后VPC网络名称 |
POST创建VPC网络/console/v1/product/:id/mf_cloud/vpc_network需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 商品ID |
data_center_id必填 | int | 数据中心ID |
name必填 | string | VPC网络名称 |
ips | string | IP段(cidr,如10.0.0.0/16,系统分配时不传) |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
id | int | VPC网络ID |
DELETE删除VPC网络/console/v1/product/:id/mf_cloud/vpc_network需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 商品ID |
vpc_network_id必填 | int | VPC网络ID |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
GET获取VPC可分配产品列表/console/v1/mf_cloud/vpc_network/host需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
page | int | 页数 |
limit | int | 每页条数 |
data_center_id | int | 数据中心ID |
keywords | string | 关键字搜索 |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
list[].id | int | 产品ID |
list[].name | int | 产品名称 |
count | int | 总条数 |
GET获取cpu/内存使用信息/console/v1/mf_cloud/:id/real_data需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
cpu_usage | string | CPU使用率 |
memory_total | string | 内存总量('-'代表获取不到) |
memory_usable | string | 已用内存('-'代表获取不到) |
memory_usage | string | 内存使用百分比('-1'代表获取不到) |
GET计算产品配置升级价格/console/v1/mf_cloud/:id/common_config需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
cpu必填 | int | 核心数 |
memory必填 | int | 内存 |
bw | int | 带宽 |
flow | int | 流量 |
peak_defence | string | 防御峰值 |
is_downstream | int | 是否下游发起(0=否,1=是) |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
price | string | 价格 |
description | string | 描述 |
price_difference | string | 差价 |
renew_price_difference | string | 续费差价 |
renew_price | string | 续费价格 |
POST生成产品配置升级订单/console/v1/mf_cloud/:id/common_config/order需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
cpu必填 | int | 核心数 |
memory必填 | int | 内存 |
bw | int | 带宽 |
flow | int | 流量 |
peak_defence | int | 防御峰值 |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
id | string | 订单ID |
GETNAT转发列表/console/v1/mf_cloud/:id/nat_acl需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
list[].id | int | 转发ID |
list[].name | string | 名称 |
list[].ip | string | IP端口 |
list[].int_port | int | 内部端口 |
list[].protocol | int | 协议(1=tcp,2=udp,3=tcp+udp) |
count | int | 总条数 |
POST创建NAT转发/console/v1/mf_cloud/:id/nat_acl需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
name必填 | string | 名称 |
int_port必填 | int | 内部端口 |
protocol必填 | int | 协议(1=tcp,2=udp,3=tcp+udp) |
ext_port | int | 外部端口(0-65535除开80/443/22) |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
DELETE删除NAT转发/console/v1/mf_cloud/:id/nat_acl需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
nat_acl_id必填 | int | NAT转发ID |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
GETNAT建站列表/console/v1/mf_cloud/:id/nat_web需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
list[].id | int | 建站ID |
list[].domain | string | 域名 |
list[].ext_port | int | 外部端口 |
list[].int_port | int | 内部端口 |
count | int | 总条数 |
POST创建NAT建站/console/v1/mf_cloud/:id/nat_web需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
domain必填 | string | 域名 |
int_port必填 | int | 内部端口 |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
DELETE删除NAT建站/console/v1/mf_cloud/:id/nat_web需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
nat_web_id必填 | int | NAT建站ID |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
domain | string | 域名 |
GET获取可升降级套餐/console/v1/mf_cloud/:id/recommend_config需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
list[].id | int | 套餐ID |
list[].product_id | int | 商品ID |
list[].name | string | 名称 |
list[].description | string | 描述 |
list[].order | int | 排序ID |
list[].data_center_id | int | 数据中心ID |
list[].cpu | int | CPU |
list[].memory | int | 内存(GB) |
list[].system_disk_size | int | 系统盘大小(GB) |
list[].data_disk_size | int | 数据盘大小(GB) |
list[].bw | int | 带宽(Mbps) |
list[].peak_defence | int | 防御峰值(G) |
list[].system_disk_type | string | 系统盘类型 |
list[].data_disk_type | string | 数据盘类型 |
list[].flow | int | 流量 |
list[].line_id | int | 线路ID |
list[].create_time | int | 创建时间 |
list[].ip_num | int | IP数量 |
list[].upgrade_range | int | 升降级范围(0=不可升降级,1=全部,2=自选) |
list[].hidden | int | 是否隐藏(0=否,1=是) |
list[].gpu_num | int | 显卡数量 |
list[].ipv6_num | int | IPv6数量 |
list[].gpu_name | string | 显卡名称 |
list[].bill_type | string | 计费类型(bw=带宽计费,flow=流量计费) |
count | int | 总条数 |
GET计算升降级套餐价格/console/v1/mf_cloud/:id/recommend_config/price需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
recommend_config_id必填 | int | 套餐ID |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
price | string | 价格 |
description | string | 描述 |
price_difference | string | 差价 |
renew_price_difference | string | 续费差价 |
base_price | string | 基础价格 |
on_demand_flow_price | string | 按需流量价格 |
settle_time | int | 按需结算时间 |
POST生成套餐升级订单/console/v1/mf_cloud/:id/recommend_config/order需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
recommend_config_id必填 | int | 套餐ID |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
id | string | 订单ID |
GET获取升级防御配置/console/v1/mf_cloud/:id/upgrade_defence_config需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
ip必填 | string | IP |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
defence[].value | string | 防御 |
defence[].desc | string | 防御显示 |
current_defence | string | IP当前防御 |
GET计算升级防御价格/console/v1/mf_cloud/:id/upgrade_defence/price需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
ip必填 | string | IP |
peak_defence必填 | string | 防御峰值 |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
price | string | 价格 |
description | string | 生成的订单描述 |
price_difference | string | 差价 |
renew_price_difference | string | 续费差价 |
base_price | string | 基础价格 |
POST生成升级防御订单/console/v1/mf_cloud/:id/upgrade_defence/order需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
ip必填 | string | IP |
peak_defence必填 | string | 防御峰值 |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
id | string | 订单ID |
amount | string | 订单金额 |
POST开机/console/v1/mf_cloud/:id/on需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
client_operate_password | string | 操作密码,需要验证时传 |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
POST关机/console/v1/mf_cloud/:id/off需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
client_operate_password | string | 操作密码,需要验证时传 |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
POST重启/console/v1/mf_cloud/:id/reboot需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
client_operate_password | string | 操作密码,需要验证时传 |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
POST强制关机/console/v1/mf_cloud/:id/hard_off需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
client_operate_password | string | 操作密码,需要验证时传 |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
POST强制重启/console/v1/mf_cloud/:id/hard_reboot需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
client_operate_password | string | 操作密码,需要验证时传 |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
POST批量操作/console/v1/mf_cloud/batch_operate需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | array | 产品ID |
action必填 | string | 动作(on=开机,off=关机,reboot=重启,hard_off=强制关机,hard_reboot=强制重启) |
client_operate_password | string | 操作密码,需要验证时传 |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
POST获取控制台地址/console/v1/mf_cloud/:id/vnc需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
more | int | 是否获取更多返回(0=否,1=是) |
client_operate_password | string | 操作密码,需要验证时传 |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
url | string | 控制台地址 |
vnc_url | string | vncwebsocket地址 |
vnc_pass | string | VNC密码 |
password | string | 实例密码 |
token | string | 临时令牌 |
POST重置密码/console/v1/mf_cloud/:id/reset_password需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
password必填 | string | 新密码 |
code | string | 二次验证验证码 |
client_operate_password | string | 操作密码,需要验证时传 |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
POST救援模式/console/v1/mf_cloud/:id/rescue需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
type必填 | int | 指定救援系统类型(1=windows,2=linux) |
password必填 | string | 救援系统临时密码 |
client_operate_password | string | 操作密码,需要验证时传 |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
POST退出救援模式/console/v1/mf_cloud/:id/rescue/exit需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
client_operate_password | string | 操作密码,需要验证时传 |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
POST重装系统/console/v1/mf_cloud/:id/reinstall需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
image_id必填 | int | 镜像ID |
password | string | 密码(密码和ssh密钥ID必须选择一种) |
ssh_key_id | int | ssh密钥ID(密码和ssh密钥ID必须选择一种) |
port必填 | int | 端口 |
format_data_disk | int | 是否格式化数据盘(0=不格式,1=格式化) |
code | string | 二次验证验证码 |
client_operate_password | string | 操作密码,需要验证时传 |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
GET获取订购页面配置/console/v1/product/:id/mf_dcim/order_page无需 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 商品ID |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
data_center[].id | int | 国家ID |
data_center[].iso | string | 图标 |
data_center[].name | string | 名称 |
data_center[].city[].name | string | 城市 |
data_center[].city[].area[].id | int | 数据中心ID |
data_center[].city[].area[].name | string | 区域 |
data_center[].city[].area[].line[].id | int | 线路ID |
data_center[].city[].area[].line[].name | string | 线路名称 |
data_center[].city[].area[].line[].data_center_id | int | 数据中心ID |
data_center[].city[].area[].line[].bill_type | string | 计费类型(bw=带宽计费,flow=流量计费) |
model_config[].id | int | 型号配置ID |
model_config[].name | string | 型号配置名称 |
model_config[].cpu | string | 处理器 |
model_config[].cpu_param | string | 处理器参数 |
model_config[].memory | string | 内存 |
model_config[].disk | string | 硬盘 |
model_config[].support_optional | int | 允许增值选配(0=不允许,1=允许) |
model_config[].optional_only_for_upgrade | int | 增值仅用于升降级(0=关闭,1=开启) |
model_config[].leave_memory | int | 剩余内存 |
model_config[].max_memory_num | int | 可增加内存数量 |
model_config[].max_disk_num | int | 可增加硬盘数量 |
model_config[].gpu | string | 显卡 |
model_config[].max_gpu_num | int | 可增加显卡数量 |
model_config[].qty | int | 库存数量 |
model_config[].auto_sync_dcim_stock | int | 自动同步DCIM库存(0=不启用,1=启用) |
model_config[].optional_memory[].id | int | 选配内存配置ID |
model_config[].optional_memory[].value | string | 选配内存配置名称 |
model_config[].optional_memory[].other_config.memory | int | 选配内存大小 |
model_config[].optional_memory[].other_config.memory_slot | int | 选配内存插槽 |
model_config[].optional_disk[].id | int | 选配硬盘配置ID |
model_config[].optional_disk[].value | string | 选配硬盘配置名称 |
model_config[].optional_gpu[].id | int | 选配显卡配置ID |
model_config[].optional_gpu[].value | string | 选配显卡配置名称 |
limit_rule | array | 限制规则 |
limit_rule[].id | int | 限制规则ID |
limit_rule[].rule | object | 条件数据 |
limit_rule[].rule.data_center.id | array | 数据中心ID |
limit_rule[].rule.data_center.opt | string | 运算符(eq=等于,neq=不等于) |
limit_rule[].rule.bw.min | string | 带宽最小值 |
limit_rule[].rule.bw.max | string | 带宽最大值 |
limit_rule[].rule.bw.opt | string | 运算符(eq=等于,neq=不等于) |
limit_rule[].rule.flow.min | string | 流量最小值 |
limit_rule[].rule.flow.max | string | 流量最大值 |
limit_rule[].rule.flow.opt | string | 运算符(eq=等于,neq=不等于) |
limit_rule[].rule.image.id | array | 操作系统ID |
limit_rule[].rule.image.opt | string | 运算符(eq=等于,neq=不等于) |
limit_rule[].rule.model_config.id | array | 型号配置ID |
limit_rule[].rule.model_config.opt | string | 运算符(eq=等于,neq=不等于) |
limit_rule[].result | object | 结果数据 |
limit_rule[].result.bw[].min | string | 带宽最小值 |
limit_rule[].result.bw[].max | string | 带宽最大值 |
limit_rule[].result.bw[].opt | string | 运算符(eq=等于,neq=不等于) |
limit_rule[].result.flow[].min | string | 流量最小值 |
limit_rule[].result.flow[].max | string | 流量最大值 |
limit_rule[].result.flow[].opt | string | 运算符(eq=等于,neq=不等于) |
limit_rule[].result.image[].id | array | 操作系统ID |
limit_rule[].result.image[].opt | string | 运算符(eq=等于,neq=不等于) |
limit_rule[].result.model_config[].id | array | 型号配置ID |
limit_rule[].result.model_config[].opt | string | 运算符(eq=等于,neq=不等于) |
GET获取操作系统列表/console/v1/product/:id/mf_dcim/image无需 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 商品ID |
is_downstream | int | 是否下游发起(0=否,1=是) |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
list[].id | int | 操作系统分类ID |
list[].name | string | 操作系统分类名称 |
list[].icon | string | 操作系统分类图标 |
list[].image[].id | int | 操作系统ID |
list[].image[].image_group_id | int | 操作系统分类ID |
list[].image[].name | string | 操作系统名称 |
list[].image[].charge | int | 是否收费(0=否,1=是) |
list[].image[].price | string | 价格 |
POST获取商品配置所有周期价格/console/v1/product/:id/mf_dcim/duration无需 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 商品ID |
model_config_id | int | 型号配置ID |
optional_memory | object | 选配内存(如{"5":"12"},5是选配内存配置ID,12是数量) |
optional_disk | object | 选配硬盘(如{"5":"12"},5是选配硬盘配置ID,12是数量) |
optional_gpu | object | 选配显卡(如{"5":"12"},5是选配显卡配置ID,12是数量) |
image_id | int | 镜像ID |
line_id | int | 线路ID |
bw | string | 带宽(带宽线路) |
flow | string | 流量(流量线路) |
ip_num | string | 公网IP数量 |
peak_defence | int | 防御峰值 |
is_downstream | int | 是否下游发起(0=否,1=是) |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
[].id | int | 周期ID |
[].name | string | 周期名称 |
[].price | string | 周期总价 |
[].discount | float | 折扣(0=没有折扣) |
[].num | int | 周期时长 |
[].unit | string | 单位(hour=小时,day=天,month=月) |
[].client_level_discount | string | 用户等级折扣 |
GET获取线路配置/console/v1/product/:id/mf_dcim/line/:line_id无需 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 商品ID |
line_id必填 | int | 线路ID |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
bill_type | string | 计费类型(bw=带宽,flow=流量) |
sync_firewall_rule | int | 同步防火墙规则(0=关闭,1=开启) |
bw[].type | string | 配置方式(radio=单选,step=阶梯,total=总量) |
bw[].value | string | 带宽 |
bw[].value_show | string | 自定义显示 |
bw[].min_value | int | 最小值 |
bw[].max_value | int | 最大值 |
bw[].step | int | 步长 |
flow[].value | string | 流量(流量线路) |
defence[].value | string | 防御 |
defence[].desc | string | 防御显示 |
order_default_defence | string | 默认防御 |
ip[].value | string | 公网IP值 |
ip[].desc | string | 公网IP显示 |
GET数据中心选择/console/v1/product/:id/mf_dcim/data_center无需 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 商品ID |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
list[].id | int | 数据中心ID |
list[].city | string | 城市 |
list[].area | string | 区域 |
list[].iso | string | 国家图标 |
list[].country_name | string | 国家名称 |
GET控制台页面/console/v1/mf_dcim/:id/vnc无需 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
tmp_token必填 | string | 控制台页面令牌 |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
POST验证下单/console/v1/product/:id/mf_dcim/validate_settle需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 商品ID |
custom.duration_id必填 | int | 周期ID |
custom.data_center_id必填 | int | 数据中心ID |
custom.line_id必填 | int | 线路ID |
custom.model_config_id必填 | int | 型号配置ID |
custom.optional_memory | object | 变更后的内存({"5":1},5是ID,1是数量) |
custom.optional_disk | object | 变更后的硬盘({"5":1},5是ID,1是数量) |
custom.optional_gpu | object | 变更后的硬盘({"5":1},5是ID,1是数量) |
custom.image_id必填 | int | 镜像ID |
custom.bw | string | 带宽 |
custom.flow | string | 流量 |
custom.ip_num必填 | string | 公网IP数量 |
custom.peak_defence | int | 防御峰值(G) |
custom.notes | string | 备注 |
custom.auto_renew | int | 是否自动续费(0=否,1=是) |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
price | string | 价格 |
renew_price | string | 续费价格 |
billing_cycle | string | 周期 |
duration | int | 周期时长 |
description | string | 订单子项描述 |
base_price | string | 基础价格 |
preview[].name | string | 配置项名称 |
preview[].value | string | 配置项值 |
preview[].price | string | 配置项价格 |
discount | string | 用户等级折扣 |
order_item[].type | string | 订单子项类型(addon_idcsmart_client_level=用户等级) |
order_item[].rel_id | int | 关联ID |
order_item[].amount | float | 子项金额 |
order_item[].description | string | 子项描述 |
GET产品列表/console/v1/mf_dcim需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
page | int | 页数 |
limit | int | 每页条数 |
orderby | string | 排序(id,due_time,status) |
sort | string | 升/降序 |
keywords | string | 关键字搜索:商品名称/产品名称/IP |
country_id | int | 搜索:国家ID |
city | string | 搜索:城市 |
area | string | 搜索:区域 |
status | string | 产品状态(Unpaid=未付款,Pending=开通中,Active=已开通,Suspended=已暂停,Deleted=已删除) |
tab | string | 状态using使用中expiring即将到期overdue已逾期deleted已删除 |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
list | array | 列表数据 |
list[].id | int | 产品ID |
list[].product_id | int | 商品ID |
list[].name | string | 产品标识 |
list[].status | string | 产品状态(Unpaid=未付款,Pending=开通中,Active=已开通,Suspended=已暂停,Deleted=已删除) |
list[].active_time | int | 开通时间 |
list[].due_time | int | 到期时间 |
list[].client_notes | string | 用户备注 |
list[].product_name | string | 商品名称 |
list[].country | string | 国家 |
list[].country_code | string | 国家代码 |
list[].country_id | int | 国家ID |
list[].city | string | 城市 |
list[].area | string | 区域 |
list[].power_status | string | 电源状态(on=开机,off=关机,operating=操作中,fault=故障) |
list[].image_name | string | 镜像名称 |
list[].image_icon | string | 镜像图标(Windows,CentOS,Ubuntu,Debian,ESXi,XenServer,FreeBSD,Fedora,ArchLinux,Rocky,AlmaLinux,OpenEuler,RedHat,其他) |
list[].ip_num | int | IP数量 |
list[].dedicate_ip | string | 主IP |
list[].assign_ip | string | 附加IP(英文逗号分隔) |
list[].self_defined_field | object | 自定义字段值(键是自定义字段ID,值是填的内容) |
list[].show_base_info | int | 产品列表是否展示基础信息:1是默认,0否 |
list[].is_auto_renew | int | 是否自动续费(0=否,1=是) |
count | int | 总条数 |
using_count | int | 使用中产品数量 |
expiring_count | int | 即将到期产品数量 |
overdue_count | int | 已逾期产品数量 |
deleted_count | int | 已删除产品数量 |
all_count | int | 全部产品数量 |
data_center[].country_id | int | 国家ID |
data_center[].city | string | 城市 |
data_center[].area | string | 区域 |
data_center[].country_name | string | 国家 |
data_center[].country_code | string | 国家代码 |
self_defined_field[].id | int | 自定义字段ID |
self_defined_field[].field_name | string | 自定义字段名称 |
self_defined_field[].field_type | string | 字段类型(text=文本框,link=链接,password=密码,dropdown=下拉,tickbox=勾选框,textarea=文本区) |
GET获取DCIM产品详情/console/v1/mf_dcim/:id需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
order_id | int | 订单ID |
ip | string | IP地址 |
additional_ip | string | 附加IP(英文逗号分割) |
power_status | string | 电源状态(on=开机,off=关机,operating=操作中,fault=故障) |
model_config.id | int | 型号配置ID |
model_config.name | string | 型号配置名称 |
model_config.cpu | string | 处理器 |
model_config.cpu_param | string | 处理器参数 |
model_config.memory | string | 内存 |
model_config.disk | string | 硬盘 |
model_config.gpu | string | 显卡 |
model_config.optional_memory[].id | int | 可选配内存配置ID |
model_config.optional_memory[].value | string | 名称 |
model_config.optional_memory[].other_config.memory_slot | int | 槽位 |
model_config.optional_memory[].other_config.memory | int | 内存大小(GB) |
model_config.optional_disk[].id | int | 可选配硬盘配置ID |
model_config.optional_disk[].value | string | 名称 |
model_config.optional_gpu[].id | int | 可选配显卡配置ID |
model_config.optional_gpu[].value | string | 名称 |
model_config.leave_memory | int | 当前机型剩余内存大小(GB) |
model_config.max_memory_num | int | 当前机型可增加内存数量 |
model_config.max_disk_num | int | 当前机型可增加硬盘数量 |
model_config.max_gpu_num | int | 当前机型可增加显卡数量 |
line.id | int | 线路 |
line.name | string | 线路名称 |
line.bill_type | string | 计费类型(bw=带宽,flow=流量) |
line.sync_firewall_rule | int | 同步防火墙规则(0=关闭,1=开启) |
bw | string | 带宽(0表示没有) |
bw_show | string | 带宽自定义显示 |
ip_num | string | IP数量 |
peak_defence | string | 防御峰值 |
username | string | 用户名 |
password | string | 密码 |
data_center.id | int | 数据中心ID |
data_center.city | string | 城市 |
data_center.area | string | 区域 |
data_center.country | string | 国家 |
data_center.iso | string | 国家代码 |
image.id | int | 镜像ID |
image.name | string | 镜像名称 |
image.image_group_id | int | 镜像分类ID |
image.image_group_name | string | 镜像分类 |
image.icon | string | 图标 |
config.reinstall_sms_verify | int | 重装短信验证(0=不启用,1=启用) |
config.reset_password_sms_verify | int | 重置密码短信验证(0=不启用,1=启用) |
config.manual_resource | int | 是否手动资源(0=不启用,1=启用) |
config.manual_resource_control_mode | string | 手动资源控制方式not_support不支持,ipmi,dcim_client客户端 |
config.custom_rand_password_rule | string | 自定义随机密码位数(0=关闭,1=开启) |
config.default_password_length | string | 默认密码长度 |
optional_memory | object | 当前机器已添加内存配置({"5":1},5是ID,1是数量) |
optional_disk | object | 当前机器已添加硬盘配置({"5":1},5是ID,1是数量) |
optional_gpu | object | 当前机器已添加显卡配置({"5":1},5是ID,1是数量) |
custom_show | array | 自定义展示字段 |
custom_show[].name | string | 字段名称 |
custom_show[].type | string | 字段类型(text=文本,password=密码,date=日期) |
custom_show[].value | string | 值 |
GET获取部分详情/console/v1/mf_dcim/:id/part需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
data_center.id | int | 数据中心ID |
data_center.city | string | 城市 |
data_center.area | string | 区域 |
data_center.country | string | 国家 |
data_center.iso | string | 图标 |
ip | string | IP地址 |
power_status | string | 电源状态(on=开机,off=关机,operating=操作中,fault=故障) |
image.id | int | 镜像ID |
image.name | string | 镜像名称 |
image.image_group_name | string | 镜像分类 |
image.icon | string | 图标 |
GET获取实例状态/console/v1/mf_dcim/:id/status需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
status | string | 实例状态(pending=开通中,on=开机,off=关机,operating=操作中,fault=故障) |
desc | string | 实例状态描述 |
GET/console/v1/mf_dcim/:id/reinstall_status/console/v1/mf_dcim/:id/reinstall_status需要 JWT
请求字段
控制器未提供结构化参数表。路径参数仍须填写;模块配置请先读取对应配置接口,并以服务端校验为准。
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
GET获取重装状态/console/v1/mf_dcim/:id/maintenance_status需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
status | int | 状态码(200=成功,400=失败) |
msg | string | 提示信息 |
task_type | int | 任务类型(0=重装中) |
GET获取图表数据/console/v1/mf_dcim/:id/chart需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
start_time | int | 开始秒级时间 |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
list | array | 图表数据 |
list[].time | int | 时间(秒级时间戳) |
list[].in_bw | float | 进带宽 |
list[].out_bw | float | 出带宽 |
unit | string | 当前单位 |
GET获取网络流量/console/v1/mf_dcim/:id/flow需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
total | string | 总流量 |
used | string | 已用流量 |
leave | string | 剩余流量 |
reset_flow_date | string | 流量归零时间 |
total_num | int | 总流量大小(0=不限) |
used_num | float | 已用流量大小 |
base_flow | int | 基础流量(0=不限) |
temp_flow | int | 临时流量 |
GET日志/console/v1/mf_dcim/:id/log需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id | int | 产品ID |
keywords | string | 关键字 |
page | int | 页数 |
limit | int | 每页条数 |
orderby | string | 排序 id,description,create_time,ip |
sort | string | 升/降序 asc,desc |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
list | array | 系统日志 |
list[].id | int | 系统日志ID |
list[].description | string | 描述 |
list[].create_time | string | 时间 |
list[].ip | int | IP |
count | int | 系统日志总数 |
GET检查产品是够购买过镜像/console/v1/mf_dcim/:id/image/check需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
image_id必填 | int | 镜像ID |
is_downstream | int | 是否下游(0=不是,1=是) |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
price | string | 需要支付的金额(0.00表示镜像免费或已购买) |
description | string | 描述 |
POST生成购买镜像订单/console/v1/mf_dcim/:id/image/order需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
image_id必填 | int | 镜像ID |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
id | string | 订单ID |
GET获取DCIM远程信息/console/v1/mf_dcim/:id/remote_info需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
username | string | 远程用户名 |
password | string | 远程密码 |
port | string | 远程端口 |
ip_num | int | IP数量 |
GET获取IP列表/console/v1/mf_dcim/:id/ip需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id | int | 产品ID |
page | int | 页数 |
limit | int | 每页条数 |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
list[].ip | int | IP |
list[].subnet_mask | string | 掩码 |
list[].gateway | string | 网关 |
count | int | 总数 |
GET计算产品配置升级价格/console/v1/mf_dcim/:id/common_config需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
ip_num | string | 公网IP数量 |
bw | string | 带宽 |
flow | int | 流量包 |
peak_defence | int | 防御峰值 |
optional_memory | object | 变更后的内存({"5":1},5是ID,1是数量) |
optional_disk | object | 变更后的硬盘({"5":1},5是ID,1是数量) |
optional_gpu | object | 变更后的硬盘({"5":1},5是ID,1是数量) |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
price | string | 价格 |
description | string | 生成的订单描述 |
price_difference | string | 差价 |
renew_price_difference | string | 续费差价 |
discount | string | 用户等级折扣 |
POST生成产品配置升级订单/console/v1/mf_dcim/:id/common_config/order需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
ip_num | string | 公网IP数量 |
bw | string | 带宽 |
flow | int | 流量包 |
peak_defence | int | 防御峰值 |
optional_memory | object | 变更后的内存({"5":1},5是ID,1是数量) |
optional_disk | object | 变更后的硬盘({"5":1},5是ID,1是数量) |
optional_gpu | object | 变更后的硬盘({"5":1},5是ID,1是数量) |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
id | string | 订单ID |
GET获取升级防御配置/console/v1/mf_dcim/:id/upgrade_defence_config需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
ip必填 | string | IP |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
defence[].value | string | 防御 |
defence[].desc | string | 防御显示 |
current_defence | string | IP当前防御 |
GET计算升级防御价格/console/v1/mf_dcim/:id/upgrade_defence/price需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
ip必填 | string | IP |
peak_defence必填 | string | 防御峰值 |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
price | string | 价格 |
description | string | 生成的订单描述 |
price_difference | string | 差价 |
renew_price_difference | string | 续费差价 |
base_price | string | 基础价格 |
POST生成升级防御订单/console/v1/mf_dcim/:id/upgrade_defence/order需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
ip必填 | string | IP |
peak_defence必填 | string | 防御峰值 |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
id | string | 订单ID |
POST重启VNC/console/v1/mf_dcim/:id/vnc/restart需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
POST开机/console/v1/mf_dcim/:id/on需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
client_operate_password | string | 操作密码,需要验证时传 |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
POST关机/console/v1/mf_dcim/:id/off需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
client_operate_password | string | 操作密码,需要验证时传 |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
POST重启/console/v1/mf_dcim/:id/reboot需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
client_operate_password | string | 操作密码,需要验证时传 |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
POST批量操作/console/v1/mf_dcim/batch_operate需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | array | 产品ID |
action必填 | string | 动作on开机off关机reboot重启 |
client_operate_password | string | 操作密码,需要验证时传 |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
POST获取控制台地址/console/v1/mf_dcim/:id/vnc需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
more | int | 获取更多信息(0=否,1=是) |
client_operate_password | string | 操作密码,需要验证时传 |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
url | string | 控制台地址 |
vnc_url | string | 控制台websocket地址(more=1返回) |
vnc_pass | string | vnc密码(more=1返回) |
password | string | 机器密码(more=1返回) |
token | string | 控制台页面令牌(more=1返回) |
POST重置密码/console/v1/mf_dcim/:id/reset_password需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
password必填 | string | 新密码 |
code | string | 二次验证验证码 |
client_operate_password | string | 操作密码,需要验证时传 |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
POST救援模式/console/v1/mf_dcim/:id/rescue需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
type必填 | int | 指定救援系统类型(1=windows,2=linux) |
client_operate_password | string | 操作密码,需要验证时传 |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
POST退出救援模式/console/v1/mf_dcim/:id/rescue/exit需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
client_operate_password | string | 操作密码,需要验证时传 |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
POST重装系统/console/v1/mf_dcim/:id/reinstall需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
image_id必填 | int | 镜像ID |
password必填 | string | 密码 |
port必填 | int | 端口 |
part_type必填 | int | 分区类型0全盘格式化1第一分区格式化 |
code | string | 二次验证验证码 |
client_operate_password | string | 操作密码,需要验证时传 |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
GETSSH密钥列表/console/v1/ssh_key需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
page | int | 页数 |
limit | int | 每页条数 |
orderby | string | 排序字段 id |
sort | string | 升降序 asc desc |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
list | array | SSH密钥列表 |
list[].id | int | SSH密钥ID |
list[].name | string | 名称 |
list[].public_key | string | 公钥 |
list[].finger_print | string | 指纹 |
count | int | SSH密钥总数 |
POST创建SSH密钥/console/v1/ssh_key需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
name必填 | string | 名称 |
public_key必填 | string | 公钥 |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
PUT编辑SSH密钥/console/v1/ssh_key/:id需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | SSH密钥ID |
name必填 | string | 名称 |
public_key必填 | string | 公钥 |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
DELETE删除SSH密钥/console/v1/ssh_key/:id需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | SSH密钥ID |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
GET工单列表/console/v1/ticket需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
keywords | string | 关键字 |
status | int | 状态搜索 通过/console/v1/ticket/status获取 |
ticket_type_id | int | 工单类型搜索 通过/console/v1/ticket/type获取 |
client_id | int | 客户ID |
admin_id | int | 管理员ID |
host_id | int | 产品ID |
page | int | 页数 |
limit | int | 每页条数 |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
list | array | 工单列表 |
list[].id | int | ID |
list[].ticket_num | string | 工单号 |
list[].title | string | 标题 |
list[].name | string | 类型 |
list[].post_time | int | 提交时间 |
list[].last_reply_time | int | 最近回复时间 |
list[].status | string | 状态 |
list[].color | string | 状态颜色 |
list[].last_urge_time | string | 上次催单时间戳 0代表未催单 |
count | int | 工单总数 |
GET工单统计/console/v1/ticket/statistic需要 JWT
请求字段
控制器未提供结构化参数表。路径参数仍须填写;模块配置请先读取对应配置接口,并以服务端校验为准。
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
1 | int | 待接单数量 |
2 | int | 待回复数量 |
3 | int | 已回复数量 |
5 | int | 处理中数量 |
GET工单部门/console/v1/ticket/department需要 JWT
请求字段
控制器未提供结构化参数表。路径参数仍须填写;模块配置请先读取对应配置接口,并以服务端校验为准。
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
list | array | 工单部门列表 |
list[].id | int | 工单部门ID |
list[].name | string | 工单部门名称 |
GET工单类型列表/console/v1/ticket/type需要 JWT
请求字段
控制器未提供结构化参数表。路径参数仍须填写;模块配置请先读取对应配置接口,并以服务端校验为准。
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
list | array | 工单类型列表 |
list[].id | int | 工单类型ID |
list[].name | string | 工单类型名称 |
GET查看工单/console/v1/ticket/:id需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 工单ID |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
ticket | object | 工单详情 |
ticket.client_id | int | 用户ID |
ticket.id | int | 工单ID |
ticket.title | string | 工单标题 |
ticket.content | string | 内容 |
ticket.ticket_type_id | int | 类型ID |
ticket.status | string | 状态 直接显示 结合color使用 |
ticket.color | string | 状态颜色 |
ticket.create_time | int | 创建时间 |
ticket.attachment | array | 工单附件数组 附件以^分割 取最后一个値获取文件原名 |
ticket.last_reply_time | int | 工单最后回复时间 |
ticket.username | string | 用户名 |
ticket.host_ids | array | 关联产品ID数组 |
ticket.can_operate | int | 是否可操作 |
ticket.replies | array | 沟通记录数组 |
ticket.replies[].id | int | 回复ID |
ticket.replies[].content | string | 内容 |
ticket.replies[].attachment | array | 附件访问地址数组 |
ticket.replies[].create_time | int | 时间 |
ticket.replies[].type | string | 类型 Client用户回复 Admin管理员回复 |
ticket.replies[].client_name | string | 用户名 type为Client时使用 |
ticket.replies[].admin_name | string | 管理员名 type为Admin时使用 |
ticket.replies[].quote_reply_id | int | 引用的回复ID 0表示未引用 |
ticket.replies[].quote_info | object | 引用的回复信息 未引用时为null |
ticket.replies[].quote_info.id | int | 被引用回复ID |
ticket.replies[].quote_info.content | string | 被引用内容 截取前100字 |
ticket.replies[].quote_info.type | string | 类型 Client/Admin |
ticket.replies[].quote_info.sender_name | string | 发送者名称 |
ticket.replies[].quote_info.create_time | int | 发送时间 |
ticket.replies[].quote_info.is_deleted | int | 该回复是否已删除 1是 0否 |
POST创建工单/console/v1/ticket需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
title必填 | string | 工单标题 |
ticket_type_id必填 | int | 工单类型ID 通过/console/v1/ticket/type获取 |
host_ids | array | 关联产品ID数组 |
content | string | 问题描述 |
attachment | array | 附件数组 调用console/v1/upload上传文件取save_name |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
POST回复工单/console/v1/ticket/:id/reply需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 工单ID |
content必填 | string | 回复内容 不超过3000个字符 |
attachment | array | 附件数组 调用console/v1/upload上传文件取save_name |
quote_reply_id | int | 引用的回复ID 默认0表示不引用 |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
ticket_reply_id | int | 回复ID |
PUT催单/console/v1/ticket/:id/urge需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 工单ID |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
PUT关闭工单/console/v1/ticket/:id/close需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 工单ID |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
POST工单附件下载/console/v1/ticket/download需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
name必填 | string | 附件名称 |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
GET工单状态列表/console/v1/ticket/status需要 JWT
请求字段
控制器未提供结构化参数表。路径参数仍须填写;模块配置请先读取对应配置接口,并以服务端校验为准。
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
list | array | 工单状态列表 |
list[].id | int | ID |
list[].name | string | 工单状态 |
list[].color | string | 状态颜色 |
list[].status | int | 完结状态 1完结 0未完结 |
list[].default | int | 是否默认状态 0否 1是 默认状态无法修改删除 |
GET工单通知设置/console/v1/ticket/config需要 JWT
请求字段
控制器未提供结构化参数表。路径参数仍须填写;模块配置请先读取对应配置接口,并以服务端校验为准。
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
ticket_notice_open | int | 是否开启工单通知 1是默认 0否 |
ticket_notice_description | string | 工单通知描述 |
PUT工单处理中/console/v1/ticket/:id/processing需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 工单ID |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
PUT工单终止传递/console/v1/ticket/:id/terminate需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 工单ID |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
GET续费页面/console/v1/host/:id/renew需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
host | array | 可续费周期列表 |
host[].price | float | 实际支付金额 |
host[].billing_cycle | string | 周期 |
host[].duration | int | 周期时间 |
host[].base_price | float | 基础原价 不包括优惠码客户等级等折扣 |
host[].id | int | 周期比例ID |
host[].name_show | string | 周期名字显示 |
host[].prr | float | 与产品当前周期比例的比値 开启按比例续费功能会使用 |
host[].price_save | float | 保存至数据库的续费金额 |
host[].renew_amount | float | 续费金额 自有软件使用 |
host[].max_renew | bool | 当前周期为true 其他周期为false 手动输入优惠码时也为false |
host[].current_base_price | string | 当前原价 自然月预付费为折算后原价 普通周期为完整周期原价 不包括优惠码和客户等级折扣 |
GET批量续费页面/console/v1/host/renew/batch需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
ids必填 | array | 产品ID数组 |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
list | array | 产品列表 |
list[].id | int | 产品ID |
list[].product_id | int | 商品ID |
list[].product_name | string | 商品名称 |
list[].name | string | 标识 |
list[].active_time | int | 开通时间 |
list[].due_time | int | 到期时间 |
list[].first_payment_amount | string | 金额 |
list[].billing_cycle | string | 周期 |
list[].status | string | 状态 Unpaid未付款 Pending开通中 Active已开通 Suspended已暂停 Deleted已删除 Failed开通失败 |
list[].billing_cycles | array | 可续费周期列表 |
list[].billing_cycles[].price | float | 价格 |
list[].billing_cycles[].billing_cycle | string | 周期 |
list[].billing_cycles[].duration | int | 周期时间 |
list[].billing_cycles[].base_price | float | 基础原价 不包括优惠码客户等级等折扣 |
list[].billing_cycles[].id | int | 周期比例ID |
list[].billing_cycles[].name_show | string | 周期名字显示 |
list[].billing_cycles[].prr | float | 与产品当前周期比例的比値 开启按比例续费功能会使用 |
list[].billing_cycles[].price_save | float | 保存至数据库的续费金额 |
list[].billing_cycles[].renew_amount | float | 续费金额 自有软件使用 |
list[].billing_cycles[].max_renew | bool | 当前周期为true 其他周期为false 手动输入优惠码时也为false |
GET获取自动续费设置/console/v1/host/:id/renew/auto需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
status | int | 自动续费状态 1开启 0关闭 |
PUT自动续费设置/console/v1/host/:id/renew/auto需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
status必填 | int | 自动续费状态 1开启 0关闭 |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
POST续费/console/v1/host/:id/renew需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
billing_cycle必填 | string | 周期 通用产品为中文云产品为英文 根据续费页面返回的周期传入 |
customfield | object | 自定义参数 优惠码参数示例 {"promo_code":["pr8nRQOGbmv5"]} |
client_operate_password | string | 操作密码 需要验证时传 |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
POST批量续费/console/v1/host/renew/batch需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
ids必填 | array | 产品ID数组 |
billing_cycles必填 | object | 周期对象 示例 {"id":"小时"} |
customfield | object | 自定义参数 优惠码示例 {"promo_code":{"host_id":"pr8nRQOGbmv5"}} |
client_operate_password | string | 操作密码 需要验证时传 |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
GET停用页面/console/v1/refund需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
host_id必填 | int | 产品ID |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
allow_refund | int | 是否允许退款 0否 1是 |
reason_custom | int | 是否允许自定义原因 0否 1是 |
reasons | array | 停用原因列表 |
reasons[].id | int | 原因ID |
reasons[].content | string | 内容 |
host | object | 产品信息 |
host.create_time | int | 订购时间 |
host.first_payment_amount | float | 订购金额 |
host.base_amount | float | 应退金额(扣费前) |
host.service_fee | float | 手续费 |
host.amount | float | 实际退款金额 amount为-1表示不需要退款 |
host.gateway_original_service_fee | float | 原路返回手续费 |
host.gateway_original_amount | float | 原路返回实际退款金额 |
show_refund_method | int | 是否展示退款方式 0否 1是 |
refund_method_default | string | 当前订单有效默认退款方式 credit余额 gateway_original原路返回 |
gateway_name | string | 支付渠道名称(只读提示) |
config_option | array | 产品配置 |
need_security_verify | bool | 是否需要安全验证 |
available_methods | array | 可用的安全验证方式列表 |
available_methods[].value | string | 验证方式标识 |
available_methods[].label | string | 验证方式名称 |
available_methods[].tip | string | 提示信息 |
available_methods[].account | string | 脱敏账户 |
available_methods[].security_verify_token | string | 安全验证token |
GET获取待审核金额/console/v1/refund/pending/amount需要 JWT
请求字段
控制器未提供结构化参数表。路径参数仍须填写;模块配置请先读取对应配置接口,并以服务端校验为准。
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
amount | float | 退款待审核金额 |
GET获取产品停用信息/console/v1/refund/host/:id/refund需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 产品ID |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
refund | object | 退款信息 |
refund.id | int | 退款ID |
refund.amount | float | 退款金额 -1表示不需要退款 |
refund.suspend_reason | string | 停用原因 |
refund.type | string | 类型 Expire到期退款 Immediate立即退款 |
refund.status | string | 状态 Pending待审核 Suspending待停用 Suspend停用中 Suspended已停用 Refund已退款 Reject审核驳回 Cancelled已取消 |
refund.reject_reason | string | 驳回原因 |
refund.create_time | int | 申请时间 |
POST停用/console/v1/refund需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
host_id必填 | int | 产品ID |
suspend_reason | mixed | 停用原因 可自定义时传字符串 不可自定义时传停用原因ID数组 |
type | string | 停用时间 Expire到期 Immediate立即 |
refund_method | string | 退款方式 credit余额 gateway_original原路返回 |
security_verify_method | string | 安全验证方式 operate_password操作密码 email_code邮箱验证码 phone_code手机验证码 certification实名校验 |
security_verify_value | string | 安全验证值 操作密码或验证码 |
certify_id | string | 实名认证ID 实名校验时需要 |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
need_security_verify | bool | 是否需要安全验证 |
available_methods | array | 可用的验证方式列表 |
PUT取消/console/v1/refund/:id/cancel需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 停用申请ID |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
GET子账户列表/console/v1/sub_account需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
page | int | 页数 |
limit | int | 每页条数 |
orderby | string | 排序字段 id |
sort | string | 升降序 asc desc |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
list | array | 子账户列表 |
list[].id | int | 子账户ID |
list[].status | int | 状态 0禁用 1启用 |
list[].username | string | 账户名 |
list[].last_action_time | string | 上次使用时间 |
count | int | 子账户总数 |
GET子账户详情/console/v1/sub_account/:id需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 子账户ID |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
account | object | 子账户信息 |
account.id | int | 子账户ID |
account.username | string | 账户名 |
account.email | string | 邮件 |
account.phone_code | int | 国际电话区号 |
account.phone | string | 手机号 |
account.auth | array | 权限 |
account.notice | array | 通知 product产品 marketing营销 ticket工单 cost费用 recommend推介 system系统 |
account.project_id | array | 项目ID数组 |
account.visible_product | string | 可见产品 module模块 host具体产品 |
account.module | array | 模块 |
account.host_id | array | 产品ID数组 |
POST创建子账户/console/v1/sub_account需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
username必填 | string | 账户名 |
email | string | 邮件 邮件手机号两者至少输入一个 |
phone_code | int | 国际电话区号 输入手机号时必传 |
phone | string | 手机号 邮件手机号两者至少输入一个 |
password必填 | string | 密码 |
project_id | array | 项目ID数组 |
visible_product | string | 可见产品 module模块 host具体产品 |
module | array | 模块 |
host_id | array | 产品ID数组 |
auth必填 | array | 权限 |
notice必填 | array | 通知 product产品 marketing营销 ticket工单 cost费用 recommend推介 system系统 |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
PUT编辑子账户/console/v1/sub_account/:id需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 子账户ID |
email | string | 邮件 邮件手机号两者至少输入一个 |
phone_code | int | 国际电话区号 输入手机号时必传 |
phone | string | 手机号 邮件手机号两者至少输入一个 |
password必填 | string | 密码 |
project_id | array | 项目ID数组 |
visible_product | string | 可见产品 module模块 host具体产品 |
module | array | 模块 |
host_id | array | 产品ID数组 |
auth必填 | array | 权限 |
notice必填 | array | 通知 product产品 marketing营销 ticket工单 cost费用 recommend推介 system系统 |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
DELETE删除子账户/console/v1/sub_account/:id需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 子账户ID |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
PUT子账户状态切换/console/v1/sub_account/:id/status需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 子账户ID |
status必填 | int | 状态 0禁用 1启用 |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
GET当前子账户权限列表/console/v1/sub_account/:id/auth需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 子账户ID |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
list | array | 权限列表 |
list[].id | int | 权限ID |
list[].title | string | 权限标题 |
list[].url | string | 地址 |
list[].order | int | 排序 |
list[].parent_id | int | 父级ID |
list[].child | array | 权限子集 |
list[].child[].id | int | 权限ID |
list[].child[].title | string | 权限标题 |
list[].child[].url | string | 地址 |
list[].child[].order | int | 排序 |
list[].child[].parent_id | int | 父级ID |
list[].child[].child | array | 权限子集 |
list[].child[].child[].id | int | 权限ID |
list[].child[].child[].title | string | 权限标题 |
list[].child[].child[].url | string | 地址 |
list[].child[].child[].order | int | 排序 |
list[].child[].child[].parent_id | int | 父级ID |
rules | array | 权限规则 |
GET/console/v1/sub_account_projects/console/v1/sub_account_projects需要 JWT
请求字段
控制器未提供结构化参数表。路径参数仍须填写;模块配置请先读取对应配置接口,并以服务端校验为准。
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
GET/console/v1/sub_account_projects/host/:host_id/console/v1/sub_account_projects/host/:host_id需要 JWT
请求字段
控制器未提供结构化参数表。路径参数仍须填写;模块配置请先读取对应配置接口,并以服务端校验为准。
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
GET/console/v1/sub_account_projects/order/:order_id/console/v1/sub_account_projects/order/:order_id需要 JWT
请求字段
控制器未提供结构化参数表。路径参数仍须填写;模块配置请先读取对应配置接口,并以服务端校验为准。
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
POST/console/v1/sub_account_projects/console/v1/sub_account_projects需要 JWT
请求字段
控制器未提供结构化参数表。路径参数仍须填写;模块配置请先读取对应配置接口,并以服务端校验为准。
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
PUT/console/v1/sub_account_projects/host/:host_id/console/v1/sub_account_projects/host/:host_id需要 JWT
请求字段
控制器未提供结构化参数表。路径参数仍须填写;模块配置请先读取对应配置接口,并以服务端校验为准。
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
PUT/console/v1/sub_account_projects/:id/archive/console/v1/sub_account_projects/:id/archive需要 JWT
请求字段
控制器未提供结构化参数表。路径参数仍须填写;模块配置请先读取对应配置接口,并以服务端校验为准。
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
GET获取实名认证信息/console/v1/certification/info需要 JWT
请求字段
控制器未提供结构化参数表。路径参数仍须填写;模块配置请先读取对应配置接口,并以服务端校验为准。
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
certification_open | int | 实名认证是否开启 1开启 0关 |
certification_company_open | int | 企业认证是否开启 1开启 0关 |
certification_upload | int | 是否需要上传证件照 1是 0否 |
is_certification | int | 是否实名认证 1是 0否 |
person | object | 个人认证信息 |
person.username | string | 申请人 |
person.company | string | 公司 |
person.card_name | string | 姓名 |
person.card_number | string | 证件号 |
person.create_time | int | 认证时间 |
person.status | string | 状态 1已认证 2未通过 3待审核 4已提交资料 |
company | object | 企业认证信息 |
company.username | string | 申请人 |
company.company | string | 公司 |
company.card_name | string | 姓名 |
company.card_number | string | 证件号 |
company.certification_company | string | 实名认证企业 |
company.company_organ_code | string | 企业代码 |
company.create_time | int | 认证时间 |
company.status | string | 状态 1已认证 2未通过 3待审核 4已提交资料 |
GET实名认证接口/console/v1/certification/plugin需要 JWT
请求字段
控制器未提供结构化参数表。路径参数仍须填写;模块配置请先读取对应配置接口,并以服务端校验为准。
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
list | array | 实名认证接口列表 |
list[].id | int | ID |
list[].title | string | 名称 |
list[].name | string | 标识 |
list[].url | string | 图片 base64格式 |
list[].certification_type | array | 接口支持的类型 person个人 company企业 |
count | int | 总数 |
GET获取实名认证自定义字段/console/v1/certification/custom_fields需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
name必填 | string | 实名接口标识 |
type必填 | string | 验证类型 person个人 company企业 |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
custom_fields | array | 自定义字段列表 |
custom_fields.title | string | 名称 |
custom_fields.type | string | 字段类型 text文本 select下拉 file文件 |
custom_fields.options | string | 字段类型为checkbox复选框 select下拉 radio单选时的选项 传键 |
custom_fields.tip | string | 提示 |
custom_fields.required | string | 是否必填 bool类型 |
custom_fields.field | string | 字段名 提交时的键値 |
POST个人认证/console/v1/certification/person需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
plugin_name必填 | string | 实名接口标识 |
card_name必填 | string | 姓名 |
card_type必填 | string | 证件类型 1身份证 2港澳通行证 3台湾通行证 4港澳居住证 5台湾居住证 6海外护照 7中国以外驾照 8其他 |
card_number必填 | string | 证件号码 |
phone | string | 手机号 |
img_one | string | 身份证正面照 调系统上传文件接口获取savename |
img_two | string | 身份证反面照 调系统上传文件接口获取savename |
custom_fields | object | 其他自定义字段 文件类型先调系统上传文件接口获取savename |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
POST企业认证/console/v1/certification/company需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
plugin_name必填 | string | 实名接口标识 |
card_name必填 | string | 姓名 |
card_type必填 | string | 证件类型 1身份证 2港澳通行证 3台湾通行证 4港澳居住证 5台湾居住证 6海外护照 7中国以外驾照 8其他 |
card_number必填 | string | 证件号码 |
company必填 | string | 公司 |
company_organ_code必填 | string | 公司代码 |
phone | string | 手机号 |
img_one | string | 身份证正面照 调系统上传文件接口获取savename |
img_two | string | 身份证反面照 调系统上传文件接口获取savename |
img_three | string | 营业执照 调系统上传文件接口获取savename |
custom_fields | object | 其他自定义字段 文件类型先调系统上传文件接口获取savename |
legal_person_type必填 | int | 法人类型 1法人 2法人代表 |
auth_letter | string | 授权委托书文件(savename),法人代表时必填 |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
POST个人转企业/console/v1/certification/convert需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
plugin_name必填 | string | 实名接口标识 |
card_name必填 | string | 姓名 |
card_type必填 | string | 证件类型 1身份证 2港澳通行证 3台湾通行证 4港澳居住证 5台湾居住证 6海外护照 7中国以外驾照 8其他 |
card_number必填 | string | 证件号码 |
company必填 | string | 公司 |
company_organ_code必填 | string | 公司代码 |
phone | string | 手机号 |
img_one | string | 身份证正面照 调系统上传文件接口获取savename |
img_two | string | 身份证反面照 调系统上传文件接口获取savename |
img_three | string | 营业执照 调系统上传文件接口获取savename |
custom_fields | object | 其他自定义字段 文件类型先调系统上传文件接口获取savename |
legal_person_type必填 | int | 法人类型 1法人 2法人代表 |
auth_letter | string | 授权委托书文件(savename),法人代表时必填 |
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
GET实名认证验证页面/console/v1/certification/auth需要 JWT
请求字段
控制器未提供结构化参数表。路径参数仍须填写;模块配置请先读取对应配置接口,并以服务端校验为准。
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
code | string | status为400时返回 10000重定向提交资料页面 10001调基础信息接口并加载相应页面 |
html | string | status为200时返回实名接口的html文档 同时轮询系统状态接口 |
GET获取实名认证状态/console/v1/certification/status需要 JWT
请求字段
控制器未提供结构化参数表。路径参数仍须填写;模块配置请先读取对应配置接口,并以服务端校验为准。
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
status | int | status为400表示无认证信息 直接跳转提交资料页面 |
code | string | status为200时 1通过 2未通过 3待审核 4提交资料 code为2且refresh为0时继续轮询 其他情况终止轮询 |
GET实名认证接口配置/console/v1/certification/plugin/config需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
name必填 | string | 实名接口标识 |
type必填 | string | 验证类型 person个人 company企业 |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
free | int | 免费次数 |
amount | float | 金额 |
pay | int | 是否需要支付 1是 0否 |
order | object | 订单 |
order.id | int | 订单ID |
order.status | string | 状态 Paid已付款 Unpaid未付款 Cancelled已取消 |
order.url | string | 跳转地址 |
order.amount | string | 订单金额 |
POST生成实名认证订单/console/v1/certification/plugin/order需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
name必填 | string | 实名接口标识 |
type必填 | string | 验证类型 person个人 company企业 |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
order_id | int | 订单ID |
GET下载授权模板/console/v1/certification/auth_template需要 JWT
请求字段
控制器未提供结构化参数表。路径参数仍须填写;模块配置请先读取对应配置接口,并以服务端校验为准。
响应字段(data 内)
控制器未提供固定响应字段表。请检查 status / msg,并按对应模块返回的 data 处理;未知字段不是稳定承诺。
GET帮助中心首页/console/v1/help/index无需 JWT
请求字段
控制器未提供结构化参数表。路径参数仍须填写;模块配置请先读取对应配置接口,并以服务端校验为准。
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
index | array | 帮助中心首页列表 |
index[].id | int | 帮助文档分类ID |
index[].name | string | 帮助文档分类名称 |
index[].helps | array | 帮助文档列表 |
index[].helps[].id | int | 帮助文档ID |
index[].helps[].title | string | 帮助文档标题 |
GET帮助文档列表/console/v1/help无需 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
keywords | string | 搜索标题、关键词、正文 |
view | string | categories 分页分类;documents 分页文档;省略时沿用旧版完整目录 |
page | int | 分页页码,从 1 开始 |
limit | int | 分页条数,默认 10,最多 20 |
addon_idcsmart_help_type_id | int | 分页文档所属分类 |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
list | array | 帮助文档列表 |
list[].id | int | 帮助文档分类ID |
list[].name | string | 帮助文档分类名称 |
list[].helps | array | 帮助文档列表 |
list[].helps[].id | int | 帮助文档ID |
list[].helps[].title | string | 帮助文档标题 |
list[].helps[].search | boolean | 是否被关键字匹配 true为匹配到 |
GET帮助文档详情/console/v1/help/:id无需 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 帮助文档ID |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
help | object | 帮助文档 |
help.id | int | 帮助文档ID |
help.title | string | 标题 |
help.content | string | 内容 |
help.keywords | string | 关键字 |
help.attachment | string | 附件 |
help.create_time | int | 创建时间 |
help.update_time | int | 更新时间 |
help.prev | object | 上一篇文档 |
help.prev.id | int | 文档ID |
help.prev.title | string | 标题 |
help.next | object | 下一篇文档 |
help.next.id | int | 文档ID |
help.next.title | string | 标题 |
GET会员中心首页新闻列表/console/v1/news/index无需 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
keywords | string | 关键字 搜索范围标题 |
page | int | 页数 |
limit | int | 每页条数 |
orderby | string | 排序字段 id |
sort | string | 升降序 asc desc |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
list | array | 新闻列表 |
list[].id | int | 新闻ID |
list[].title | string | 标题 |
list[].img | string | 新闻缩略图 |
list[].type | string | 类型 |
list[].create_time | int | 创建时间 |
list[].update_time | int | 更新时间 |
GET获取新闻分类/console/v1/news/type无需 JWT
请求字段
控制器未提供结构化参数表。路径参数仍须填写;模块配置请先读取对应配置接口,并以服务端校验为准。
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
list | array | 新闻分类列表 |
list[].id | int | 新闻分类ID |
list[].name | string | 名称 |
list[].news_num | int | 新闻数量 |
count | int | 全部新闻数量 |
GET新闻列表/console/v1/news无需 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
addon_idcsmart_news_type_id | int | 分类ID |
keywords | string | 关键字 搜索范围标题 |
page | int | 页数 |
limit | int | 每页条数 |
orderby | string | 排序字段 id |
sort | string | 升降序 asc desc |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
list | array | 新闻列表 |
list[].id | int | 新闻ID |
list[].title | string | 标题 |
list[].img | string | 新闻缩略图 |
list[].excerpt | string | 正文自动提取的摘要 |
list[].create_time | int | 创建时间 |
list[].update_time | int | 更新时间 |
GET新闻详情/console/v1/news/:id无需 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 新闻ID |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
news | object | 新闻 |
news.id | int | 新闻ID |
news.addon_idcsmart_news_type_id | int | 分类ID |
news.type | string | 分类名 |
news.title | string | 标题 |
news.content | string | 内容 |
news.keywords | string | 关键字 |
news.attachment | string | 附件 |
news.create_time | int | 创建时间 |
news.update_time | int | 更新时间 |
news.prev | object | 上一条新闻 |
news.prev.id | int | 新闻ID |
news.prev.title | string | 标题 |
news.next | object | 下一条新闻 |
news.next.id | int | 新闻ID |
news.next.title | string | 标题 |
GET会员中心首页公告列表/console/v1/announcement/index无需 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
keywords | string | 关键字 搜索标题 |
page | int | 页数 |
limit | int | 每页条数 |
orderby | string | 排序字段 id |
sort | string | 升降序 asc desc |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
list | array | 公告列表 |
list[].id | int | 公告ID |
list[].title | string | 标题 |
list[].img | string | 公告缩略图 |
list[].type | string | 类型 |
list[].create_time | int | 创建时间 |
GET获取公告分类/console/v1/announcement/type无需 JWT
请求字段
控制器未提供结构化参数表。路径参数仍须填写;模块配置请先读取对应配置接口,并以服务端校验为准。
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
list | array | 公告分类列表 |
list[].id | int | 公告分类ID |
list[].name | string | 名称 |
list[].announcement_num | int | 公告数量 |
count | int | 全部公告数量 |
GET公告列表/console/v1/announcement无需 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
addon_idcsmart_announcement_type_id | int | 分类ID |
keywords | string | 关键字 搜索标题 |
page | int | 页数 |
limit | int | 每页条数 |
orderby | string | 排序字段 id |
sort | string | 升降序 asc desc |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
list | array | 公告列表 |
list[].id | int | 公告ID |
list[].title | string | 标题 |
list[].img | string | 公告缩略图 |
list[].create_time | int | 创建时间 |
GET公告详情/console/v1/announcement/:id无需 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
id必填 | int | 公告ID |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
announcement | object | 公告 |
announcement.id | int | 公告ID |
announcement.addon_idcsmart_announcement_type_id | int | 分类ID |
announcement.type | string | 分类名 |
announcement.title | string | 标题 |
announcement.content | string | 内容 |
announcement.keywords | string | 关键字 |
announcement.attachment | string | 附件 |
announcement.create_time | int | 创建时间 |
announcement.update_time | int | 更新时间 |
announcement.prev | object | 上一条公告 |
announcement.prev.id | string | 公告ID |
announcement.prev.title | string | 标题 |
announcement.next | object | 下一条公告 |
announcement.next.id | string | 公告ID |
announcement.next.title | string | 标题 |
GET获取文件夹/console/v1/file/folder需要 JWT
请求字段
控制器未提供结构化参数表。路径参数仍须填写;模块配置请先读取对应配置接口,并以服务端校验为准。
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
list | array | 文件夹列表 |
list[].id | int | 文件夹ID |
list[].name | string | 名称 |
list[].default | int | 默认文件夹 0否 1是 |
list[].file_num | int | 文件数量 |
count | int | 全部文件数量 |
GET文件列表/console/v1/file需要 JWT
请求字段
| 字段 | 类型 | 说明 |
|---|---|---|
addon_idcsmart_file_folder_id | int | 文件夹ID |
响应字段(data 内)
| 字段 | 类型 | 说明 |
|---|---|---|
list | array | 文件列表 |
list[].id | int | 文件ID |
list[].name | string | 名称 |
list[].filetype | string | 文件类型 |
list[].filesize | string | 文件大小 |
list[].create_time | string | 上传时间 |
list[].description | string | 描述 |
count | int | 文件总数 |