描述:获取产品升降级
请求方式:GET
请求地址:/v1/hosts/:id/actions/upgrade
版本:v1
内部API调用方法名:Host_upgradeHostPage
请求参数
参数 | 类型 | 验证规则 | 最大长度 | 描述 | 示例 |
id | int | 是 | 产品ID | 1 |
返回参数
参数 | 类型 | 验证规则 | 最大长度 | 描述 | 示例 |
_currency | array[] | 是 | - | 货币信息 | |
Lid | int | 是 | - | 货币ID | 1 |
Lcode | string | 是 | - | 货币代码 | CNY |
Lprefix | string | 是 | - | 货币前缀 | ¥ |
Lsuffix | string | 是 | - | 货币后缀 | 元 |
_old_host | array[] | 是 | 原产品信息 | { "host": "升降级8001", "domain": "ser557409352685", "description": "CPU:2*e5-2450L\n内存:16G\n硬盘:250G SSD\nIP数量:3\n1:1", "pid": 379, "uid": 7, "flag": 1 } | |
Lhost | string | 是 | 产品名称 | 魔方云 | |
Ldomain | string | 是 | 主机名 | ser557409352685 | |
Ldescription | string | 是 | 描述 | CPU:2*e5-2450L\n内存:16G\n硬盘:250G SSD\nIP数量:3\n1:1 | |
Lpid | int | 是 | 商品ID | 379 | |
_host | array[] | 是 | 新产品信息 | { "pid": 1, "host": "魔方云主机", "description": "a撒旦法撒旦法哈开始大复活卡a收待发送联动jafdasdf", "cycle": [ { "setup_fee": "1.00", "price": 42.6, "billingcycle": "hour", "billingcycle_zh": "小时", "amount": "0.00", "saleproducts": 0 }, { "setup_fee": "10.00", "price": 18, "billingcycle": "day", "billingcycle_zh": "天", "amount": "0.00", "saleproducts": 0 }, { "setup_fee": "20.00", "price": 33.6, "billingcycle": "monthly", "billingcycle_zh": "月付", "amount": "0.00", "saleproducts": 0 }, { "setup_fee": "40.00", "price": 60, "billingcycle": "quarterly", "billingcycle_zh": "季付", "amount": "0.00", "saleproducts": 0 }, { "setup_fee": "30.00", "price": 54, "billingcycle": "semiannually", "billingcycle_zh": "半年付", "amount": "0.00", "saleproducts": 0 } ] } | |
Lpid | int | 是 | 商品ID | 1 | |
Lhost | string | 是 | 商品名称 | 魔方云主机 | |
Ldescription | string | 是 | 商品描述 | CPU:2*e5-2450L\n内存:16G\n硬盘:250G SSD\nIP数量:3\n1:1 | |
L_cycle | array[] | 是 | 商品可用周期 | { "setup_fee": "1.00", "price": 42.6, "billingcycle": "hour", "billingcycle_zh": "小时", "amount": "0.00", "saleproducts": 0 } | |
Lsetup_fee | price | 是 | 商品当前周期初装费 | 20.00 | |
Lprice | price | 是 | 商品当前周期价格 | 33.60 | |
Lbillingcycle | string | 是 | 商品周期 | monthly | |
Lsaleproducts | price | 是 | 折扣价格 | 0.00 |