Skip to content

Billing integration ​

Billing plugins connect a storefront to the controller: a customer pays, the plugin calls the API to create an instance, and returns console access.

Plugins ​

PluginTargetDirectory
QuickIDC-IDCSmartIDCSmartplugins/QuickIDC-IDCSmart
LxdServer-IDCSmartIDCSmart (LXD)plugins/LxdServer-IDCSmart
QuickIDC-SwapIDCSwapIDCplugins/QuickIDC-SwapIDC
Easypanel-SwapIDCEasyPanelplugins/Easypanel-SwapIDC
VistaPanel-SwapIDCVistaPanelplugins/VistaPanel-SwapIDC

XiaoHei

QuickIDC-XiaoHei is not shipped. The plugin directory does not exist; treat it as planned.

Integration model ​

text
Billing system → PHP module → CloudHost REST API → virtualization platform

Required:

  1. Controller URL (HTTPS).
  2. Bearer token (System settings → Token or quickidc conf token show).
  3. Host identifier (hs_name).

Common operations ​

ActionController API
CreatePOST /api/client/create/:hs_name
RenewPUT /api/client/update/:hs_name/:uuid
SuspendPOST /api/client/powers/:hs_name/:uuid
Unsuspendsame, start
DeleteDELETE /api/client/delete/:hs_name/:uuid
ConsoleGET /api/client/templogin

Security ​

  • HTTPS only.
  • Rotate tokens and update every plugin afterwards.
  • Never expose the plugin directory to the public.
  • Restrict source IPs at the network layer.

Released under the AGPLv3 License.