硅云帮助文档中心
搜索文档
热门搜索词:
产品简介
产品定价
入门指南
经典案例
常见问题
知识拓展
API参考
升级实例
升级实例,请确保余额充足,执行成功会自动从用户余额中扣除升级实例所需的费用
/vhost-server/api/v1/host/resize
POST
字段 | 类型 | 最大长度 | 参数位置 | 默认必填 | 描述 |
instanceId | string | 32 | RequestBody | 实例id | |
productId | string | 32 | RequestBody | 要升级的产品id | |
idempotent | string | 64 | RequestBody | 选填 | 幂等Id,防止升级成功但超时的情况,当传递相同的idempotent时,无论调用多少次,只会续费成功一次,如要传递,请确保唯一性,否则将出现意料之外的情况 |
POST /vhost-server/api/v1/host/resize HTTP/1.1 Content-Type: application/json request_id: 2942183558593ffc9d75fb8e16793ff api_key: 1706006863049654272 signature: 5e4edc695b5938fa55d4e8e9d6c0e6a017c4be5227a8b3a306ef931c1c810fe8 Content-Type: application/json { "instanceId":"cvh-3hdr7uz22s223", "productId":"hk-ph2x", "idempotent":"12345" }
data 返回为已支付的支付订单
{ "status": 2000, "message": "success", "data": "1706556457795452928" }
您对该文档有什么建议?
本文导航