硅云幫助文檔中心
搜索文檔
熱門搜索詞:
產(chǎn)品簡介
產(chǎn)品定價
入門指南
經(jīng)典案例
常見問題
知識拓展
API參考
產(chǎn)品規(guī)格相關(guān)接口
實例相關(guān)接口
續(xù)費實例,此接口會自動從用戶余額中扣除續(xù)費實例所需的費用
/ncs-server/api/v1/host/renew
POST
字段 | 類型 | 最大長度 | 參數(shù)位置 | 默認必填 | 描述 |
instanceId | string | 32 | RequestBody | 實例id | |
month | int | 10 | RequestBody | 續(xù)費月份數(shù),一年傳12 | |
idempotent | string | 64 | RequestBody | 選填 | 冪等Id,防止續(xù)費成功但超時的情況,當傳遞相同的idempotent時,無論調(diào)用多少次,只會續(xù)費成功一次,如要傳遞,請確保唯一性,否則將出現(xiàn)意料之外的情況,和新購升級不隔離 |
POST /vhost-server/api/v1/host/renew HTTP/1.1 Content-Type: application/json request_id: 2942183558593ffc9d75fb8e16793ff api_key: 1706006863049654272 signature: d44f7e64ba0adcdecddc4e2a25e9c9d923a6c56f410f52904887cd3be8cbc2a5 Content-Type: application/json { "instanceId":"cvh-3hdr7uz22s223", "month":1, "idempotent":"1234" }
data 返回為已支付的支付訂單
{ "status": 2000, "message": "success", "data": "1706554688268926976" }
您對該文檔有什么建議?
本文導航