智简魔方文档

GET 产品详情

接口概览

项目内容
文档类型后台接口
请求方式GET
接口地址/DIR_ADMIN/v1/host/{id}
所属业务产品管理
来源模块/系统产品管理
认证方式Bearer Token(管理员令牌)

完整请求

请求

bash
正在加载示例…

失败请求

bash
正在加载示例…

接口说明

产品详情

请求参数

名称位置类型必选说明
idpathinteger(int32)产品ID

成功响应

json
正在加载示例…

失败响应 400:请求参数或业务校验失败

json
正在加载示例…

失败响应 401:未认证或登录已失效

json
正在加载示例…

失败响应 403:无权执行当前操作

json
正在加载示例…

失败响应 404:接口或业务资源不存在

json
正在加载示例…

失败响应 500:服务器内部错误

json
正在加载示例…

响应状态

状态码状态码含义说明数据模型
200OK成功响应内联对象
400Bad Request请求参数或业务校验失败内联对象
401Unauthorized未认证或登录已失效内联对象
403Forbidden无权执行当前操作内联对象
404Not Found接口或业务资源不存在内联对象
500Internal Server Error服务器内部错误内联对象

响应参数

状态码 200

名称类型必选约束说明
hostobject产品
host.idinteger(int32)产品ID
host.order_idinteger(int32)订单ID
host.product_idinteger(int32)商品ID
host.server_idinteger(int32)接口ID
host.namestring标识
host.notesstring备注
host.first_payment_amountstring订购金额
host.renew_amountstring续费金额
host.billing_cyclestring计费周期
host.billing_cycle_namestring模块计费周期名称
host.billing_cycle_timestring模块计费周期时间
host.active_timeinteger(int32)开通时间
host.due_timeinteger(int32)到期时间
host.statusstring状态 Unpaid未付款 Pending开通中 Active已开通 Suspended已暂停 Deleted已删除 Failed开通失败 Grace宽限 Keep保留
host.suspend_typestring暂停类型 overdue到期暂停 overtraffic超流暂停 certification_not_complete实名未完成 other其他
host.suspend_reasonstring暂停原因
host.client_notesstring用户备注
host.ratio_renewinteger(int32)是否开启比例续费 0否 1是
host.base_pricestring购买周期原价
host.product_namestring商品名称
host.agentinteger(int32)代理产品 0否 1是
host.upstream_host_idstring上游产品ID
host.modestring商品代理模式 only_api仅调用接口 sync同步商品
host.renew_forbiddeninteger(int32)是否禁止续费 0允许 1禁止
host.keep_time_pricestring保留期价格
host.on_demand_flow_pricestring按需流量价格
host.on_demand_billing_cycle_unitstring出账周期单位 hour每小时 day每天 month每月
host.on_demand_billing_cycle_dayinteger(int32)出账周期号数
host.on_demand_billing_cycle_pointstring出账周期时间点 如00:00
host.additionobject
host.addition.country_idinteger(int32)国家ID
host.addition.citystring城市
host.addition.areastring区域
host.addition.image_iconstring镜像图标
host.addition.image_namestring镜像名称
status[string] | integer(int32)状态列表
self_defined_field[object]
self_defined_field[].idinteger(int32)自定义字段ID
self_defined_field[].field_namestring字段名称
self_defined_field[].field_typestring字段类型 text文本框 link链接 password密码 dropdown下拉 checkbox勾选框 textarea文本区
self_defined_field[].descriptionstring字段描述
self_defined_field[].field_optionstring下拉选项
self_defined_field[].is_requiredinteger(int32)是否必填 0否 1是
self_defined_field[].valuestring当前值
msgstring提示信息
dataobject
data.hostobject
data.status[string]
data.self_defined_field[任意类型]

失败状态码 400、401、403、404、500 共用以下结构:

名称类型必选约束说明
statusinteger(int32)错误状态码
msgstring错误提示