Description
This function creates an FTP account.
Examples
Note:
Use cPanel's API Shell interface (Home >> Advanced >> API Shell) to directly test cPanel API calls.
Parameters
Parameter |
Type |
Description |
Possible values |
Example |
user |
string |
Required The new FTP account username. |
A valid FTP username. |
weeones |
pass |
string |
Required The new FTP account password. |
A secure password. |
12345luggage |
homedir |
string |
The path to the FTP account's root directory. If you do not specify this parameter, the FTP account uses the cPanel account's home directory. |
The path to the FTP account's rootdirectory, relative to the cPanel account's home directory. |
weeoneftp |
quota |
integer |
The FTP account's quota. This parameter defaults to 0, which grants an unlimited quota. |
An integer that represents the FTP account's maximum disk usage, in Megabytes (MB). A value of 0 grants the FTP account unlimited disk space. |
42 |
disallowdot |
Boolean |
Whether to strip dots (.) from the username. This parameter defaults to 1. |
|
1 |
domain |
string |
The user's associated domain. This parameter defaults to the cPanel account's primary domain. Note: We introduced this parameter in cPanel & WHM version 54. |
A domain that the cPanel account owns. |
example.com |
pass_hash |
string |
The account's password hash. This parameter defaults to a blank string. Note:
|
A valid password hash that utilizes your server's cryptographic hash function. Note: You can find your server's hash type in the/etc/sysconfig/authconfigfile.
|
|
Returns
This function only returns metadata.