Create post-install script
VPS_createPostInstallScriptV1Automate VPS setup by creating a post-install script. Supply a name and script content, and it will run automatically after the virtual machine is installed, with output logged 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 |
|---|---|---|---|
| name | Yes | Name of the script | |
| content | Yes | Content of the script |