产品管理

API - 获取指定产品

描述:获取指定产品

请求方式:GET

请求地址:/v1/hosts/:id

版本:v1

内部API调用方法名:Host_getHostDetail

返回参数

参数类型验证规则最大长度描述示例
  _host array[] 产品
         Lid int 产品ID 1
         Ltype string - 产品类型 server
         Ldomain string - 产品名称 example
         Linitiative_renew int - 是否自动续费:0否,1是 1
         Lproduct_id int 商品ID 1
         Lproduct_name string - 商品名称 example
         Lregdate int - 开通时间 1639978741
         Lpayment string - 支付方式 WxPay
         Lgroup_id int - 商品分组ID 1
         Lfirstpaymentamount float - 首付金额 100.00
         Lamount float - 续费金额 100.00
         Lbillingcycle string - 付款周期 monthly
         Lnextduedate int - 到期时间 1642657162
         Ldedicatedip string - 独立ip地址 192.168.1.1
         Lassignedips array[] - 分配的IP地址 ["192.168.1.1", "192.168.1.2"]
         Ldomainstatus string - 主机状态 Active
         Lusername string - 用户名 root
         Lpassword string - 密码 iCjpmVtvAy6H
         Lsuspend_type string - 暂停类型 type
         Lsuspend_reason string - 暂停原因 example
         Lproduct_id int - 商品ID 1
         Lbwusage float - 当前使用流量 0
         Lbwlimit int - 当前使用流量上限(0表示不限) 0
         Los string - 显示的操作系统 CentOS-7.6.1810-x64
         Lremark string - 备注 备注
         Lport int - 端口 80
         Lconfig_options_upgrade int - 是否支持升级可配置选项:0否1是 1
         Lgroup_name string - 产品分组名称 产品分组名称
         Lip_num int - IP数量 1
   L_config_option array[] - 产品配置项
            Lid int - 配置项ID 1
            Ltype int - 类型 1
            Lname string - 名称 example
            Lkey string - key
            Lvalue string - 1
   L_custom_field array[] - 自定义字段
            Lid int - 自定义字段ID 1
            Lname string - 名称 example
            Lvalue string - 1