VPS_createPostInstallScriptV1
Automate VPS setup tasks by creating a post-install script that executes after virtual machine installation. The script is saved as /post_install and logs output to /post_install.log.
Instructions
Add a new post-install script to your account, which can then be used after virtual machine installation.
The script contents will be saved to the file /post_install with executable attribute set and will be executed once virtual machine is installed.
The output of the script will be redirected to /post_install.log. Maximum script size is 48KB.
Use this endpoint to create automation scripts for VPS setup tasks.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | Content of the script | |
| name | Yes | Name of the script |
Input Schema (JSON Schema)
Implementation Reference
- types.d.ts:1665-1677 (schema)TypeScript interface definition for the input schema of the VPS_createPostInstallScriptV1 tool. Defines parameters: name (string) and content (string), with response as any."VPS_createPostInstallScriptV1": { params: { /** * Name of the script */ name: string; /** * Content of the script */ content: string; }; response: any; // Response structure will depend on the API };