orderVps
Stage an order for a new VPS instance. Deducts from account balance. Requires authentication. Required: packageId (VPS package ID), hostname (e.g., 'myserver.example.com'), paymentTerm ('MONTHLY', 'SEMI_ANNUAL', 'ANNUAL', 'BIENNIAL', 'TRIENNIAL'). Optional: operatingSystemId (integer OS template id — resolve one with listVpsOsTemplates using this same packageId; omit to get a server with NO operating system installed), sshKeyIds (integer key ids from listMySshKeys or addSshKey, injected during install — without one you cannot log in). Returns an actionId — present the summary to the user, then call executeConfirmedAction with the actionId if they approve.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hostname | Yes | ||
| packageId | Yes | ||
| sshKeyIds | No | ||
| sessionKey | No | Session key (osk_...) returned by checkDeviceLoginStatus. Pass it on every call when logged in via the in-chat device flow; omit when connected via OAuth. | |
| paymentTerm | Yes | ||
| operatingSystemId | No |