API & MCP cho nhà bán lại (white-label)
Xây dựng thương hiệu VPS của riêng bạn trên EQVPS: gói của bạn, giá của bạn, khách hàng của bạn. 30 công cụ nhà bán lại trên cùng một MCP endpoint, xác thực bằng một token nhà bán lại (rk_).
Xác thực: nhận một token nhà bán lại (rk_…) trong trang quản trị Đối tác (trang API / MCP) và gửi nó dưới dạng Authorization: Bearer rk_…. Một MCP endpoint, lọc theo vai trò bằng token — một token nhà bán lại hiển thị 30 công cụ reseller_*.
Luồng điển hình
Tạo một gói, thêm một khách hàng, đặt một VM cho họ; giao quyền truy cập từ thương hiệu của riêng bạn.
// Reseller token (rk_...) from the Partners cabinet -> Authorization: Bearer rk_...
// One MCP endpoint, role-filtered: a reseller token exposes the 30 reseller_* tools.
reseller_create_plan({ name, cores, ram_gb, disk_gb, ipv4, location, markup })
reseller_add_client({ email }) -> { client_id }
reseller_order_for_client({ plan_id, client_id, os_id? }) // os_id: see list_plans catalog
reseller_vm_details({ service_id }) -> { access, password } // deliver to your clientos_id là tùy chọn — bỏ qua để dùng OS mặc định của địa điểm. Với một OS cụ thể, hãy dùng một os_id từ catalog list_plans công khai; nó sẽ phân giải sang image phù hợp cho từng địa điểm.
Hệ điều hành & os_id
Có 14 image Linux (bên dưới). Truyền os_id trong reseller_order_for_client — lấy nó từ catalog list_plans công khai. Lưu ý: available_os có thể liệt kê các id khác nhau theo địa điểm; os_id từ list_plans sẽ phân giải sang image đúng cho địa điểm của gói. Bỏ qua os_id để dùng OS mặc định của địa điểm.
Trạng thái VM
active — đang chạy. provisioning — đang được tạo (cửa sổ bất đồng bộ ngắn ngay sau khi đặt). suspended — tạm dừng (ví dụ bạn đã tạm ngưng khách hàng, hoặc chưa thanh toán); kích hoạt lại bằng reseller_unsuspend_client. cancelled — đã chấm dứt (VM bị gỡ bỏ).
reseller_list_plansList your white-label plans.reseller_create_planCreate a plan (vCPU/RAM/NVMe/IPv4 + your markup + location).reseller_edit_planEdit a plan's spec or markup.reseller_archive_planArchive a plan (hidden from ordering).reseller_restore_planRestore an archived plan.reseller_list_clientsList your end-clients.reseller_add_clientAdd an end-client (returns client_id).reseller_edit_clientEdit an end-client.reseller_suspend_clientSuspend an end-client.reseller_unsuspend_clientUnsuspend an end-client.reseller_order_for_clientOrder a VM for a client by plan_id + client_id. Spends your wholesale balance.reseller_list_vmsList client VMs (your plan name + status).reseller_service_statusProvisioning status of client VMs (active/provisioning/suspended).reseller_vm_detailsVM details: IP/hostname/root password (white-label delivery). Reveals password once.reseller_vm_powerStart/stop/reboot a client VM.reseller_vm_set_hostnameSet a client VM hostname.reseller_vm_reset_passwordReset a client VM root password (returns a new one).reseller_vm_metricsCPU/RAM/network/disk over time.reseller_vm_reinstallReinstall the OS on a client VM (destructive — wipes all data). Pick a new os_id from reseller_list_os.reseller_vm_cancelTerminate a client VM.reseller_list_osList available OS images (os_id + name) for order/reinstall. Resolves per plan location.reseller_check_balanceYour wholesale prepaid balance.reseller_create_ticketOpen a support ticket (optional service_id).reseller_list_ticketsList your tickets.reseller_get_ticketRead a ticket thread.reseller_reply_ticketReply on a ticket.reseller_close_ticketClose a ticket.
Bình luận
Chưa có bình luận nào. Hãy là người đầu tiên.