REST API
Mỗi công cụ MCP được hỗ trợ bởi một REST endpoint mà bạn có thể gọi trực tiếp. Base 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/undoCác endpoint đã xác thực yêu cầu Authorization: Bearer <token>.
Gia hạn và hủy
# 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/undoPhí gia hạn được trừ vào số dư trả trước nếu đủ; nếu không, phản hồi chứa checkout_url để thanh toán hóa đơn. renew-options hiển thị các kỳ hạn, giá và ngày hết hạn mới. Hủy cần có lý do (reason): end_of_period (mặc định) giữ máy chủ đến hết kỳ đã thanh toán, immediate xóa máy chủ và dữ liệu ngay lập tức và cần thêm confirm với hostname của máy chủ. Có thể rút lại lệnh hủy đã lên lịch bằng cancel/undo.
Xem thêm: Bắt đầu nhanh với REST API
Bình luận
Chưa có bình luận nào. Hãy là người đầu tiên.