buildVpsInstance
buildVpsInstance: Stage an operating system install (or reinstall) on a VPS instance. DESTRUCTIVE: ERASES ALL DATA on the server, including any deployed application, and cannot be undone. The install is asynchronous; afterwards poll getVpsInstanceDetails until buildState is COMPLETE. Requires authentication. Returns an actionId: present the summary to the user, then call executeConfirmedAction with the actionId if they approve.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| swap | No | Swap size: 256, 512, or 768 (MB), or 1, 1.5, 2, 3, 4, 5, 6, or 8 (GB). | |
| hostname | No | Hostname for the rebuilt server; defaults to the instance's current hostname. | |
| sshKeyIds | No | Integer SSH key ids from listMySshKeys, injected during install; without one you may not be able to log in. | |
| instanceId | Yes | VPS instance id from listMyVpsInstances. | |
| 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. | |
| operatingSystemId | Yes | Integer OS template id from listVpsOsTemplates, resolved with this same instanceId. |