EQVPS
控制台開始使用

REST API

每個 MCP 工具背後都有一個可直接呼叫的 REST 端點。基礎 URL: https://api.eqvps.com

GET  /api/v1/eqvps/products
POST /api/v1/eqvps/auth/register
POST /api/v1/eqvps/auth/login
POST /api/v1/eqvps/auth/otp/request
POST /api/v1/eqvps/auth/otp/verify
POST /api/v1/eqvps/auth/set-password
GET  /api/v1/eqvps/balance
POST /api/v1/eqvps/balance/topup
POST /api/v1/eqvps/orders
POST /api/v1/eqvps/invoices/{id}/pay
GET  /api/v1/eqvps/services
GET  /api/v1/eqvps/services/{id}
POST /api/v1/eqvps/services/{id}/power
POST /api/v1/eqvps/services/{id}/hostname
POST /api/v1/eqvps/services/{id}/reset-password
POST /api/v1/eqvps/services/{id}/reinstall
GET  /api/v1/eqvps/services/{id}/metrics
GET  /api/v1/eqvps/services/{id}/renew-options
POST /api/v1/eqvps/services/{id}/renew
POST /api/v1/eqvps/services/{id}/cancel
POST /api/v1/eqvps/services/{id}/cancel/undo

需要身分驗證的端點要求提供 Authorization: Bearer <token>。

續費與取消

# Renewal: 1, 3, 6 or 12 months
GET  /api/v1/eqvps/services/{id}/renew-options
POST /api/v1/eqvps/services/{id}/renew          {"months": 3}

# Cancel at the end of the paid period (default)
POST /api/v1/eqvps/services/{id}/cancel         {"type": "end_of_period", "reason": "..."}

# Cancel now: the server and its data are deleted
POST /api/v1/eqvps/services/{id}/cancel         {"type": "immediate", "confirm": "<hostname>", "reason": "..."}

# Withdraw a scheduled cancellation
POST /api/v1/eqvps/services/{id}/cancel/undo

續費在預付餘額足夠時直接從餘額扣除;否則回應中會傳回用於支付帳單的 checkout_url。renew-options 顯示可選期限、價格和新的到期時間。取消需要填寫原因 (reason):end_of_period(預設)會保留伺服器到已付期限結束,immediate 會立即刪除伺服器及其資料,並且還需要用伺服器的 hostname 填寫 confirm。已排定的取消可透過 cancel/undo 撤回。

評論

目前還沒有評論。歡迎成為第一位。

發表評論

評論在顯示前會經過審核。