infomaniak_create_hosting_user
Create a new FTP or SSH user for a web hosting. Choose between SFTP-only access or full shell with FTP, and set login, password, and optional home directory.
Instructions
Create a new FTP / SSH user on a web hosting. Two-phase commit. Connection types: ftp (SFTP-only, no shell) or ssh (full shell + FTP). The password follows Infomaniak's default policy.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hosting_id | Yes | Web hosting ID where the user will be created. Discover via infomaniak_list_hostings. | |
| login | Yes | User login WITHOUT the hosting prefix (e.g. 'audit', not 'q387gx_audit'). Alphanumeric + underscore/dash only, 1-32 chars. Infomaniak prepends the hosting prefix automatically. | |
| password | Yes | User password. Minimum 8 chars with at least one lowercase, one uppercase, one digit. Special character recommended but not required. | |
| connection_type | No | Access level. `ssh` = full shell + FTP/SFTP, `ftp` = SFTP-only (no interactive shell). Default `ftp` (safer). | ftp |
| home_directory | No | Sub-path inside the hosting the user is jailed into. Default '/' (root of the hosting). Use to scope an FTP-only user to a single site, e.g. '/sites/example.com'. | / |
| confirmation_token | No | Token from the prior plan response. Required on the apply phase only. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||