Description
This function lists a cPanel account's Web Disk accounts.
Warning:
We strongly recommend that you use UAPI instead of cPanel API 2. However, no equivalent UAPI function exists.
Examples
Note:
Use cPanel's API Shell interface (Home >> Advanced >> API Shell) to directly test cPanel API calls.
Parameters
Parameters |
Type |
Description |
Possible values |
Example |
regex |
string |
A Perl Compatible Regular Expression (PCRE) that filters the function call's results. If you do not use this parameter, the function lists all of the account's Web Disk accounts. |
A valid PCRE. |
user@example.com |
Returns
Return
|
Type
|
Description
|
Possible values
|
Example
|
---|---|---|---|---|
mainport |
integer | The account's non-SSL port for Web Disk. | A positive integer. | 2077 |
private |
Boolean | Whether the account is private or public. |
|
0 |
reldir |
string | The account's home directory. | A valid directory path, relative to the user's home directory. | /public_html/webdav |
sslport |
integer | The account's SSL port for Web Disk. | A positive integer. | 2078 |
login |
string | The account's full username. | The full username, which includes the at symbol (@ ) and the domain name. |
user @example.com |
homedir |
string | The path to the account's home directory. | A valid absolute file path. | /home/example/public_html/webdav |
domain |
string | The account's domain name. | A valid domain name. | example.com |
user |
string | The account's username. | A valid username. | user |
hasdigest |
Boolean | Whether the account has Digest Authentication enabled. |
|
1 |
perms |
string | The account's permissions. |
|
rw |
reason |
string |
A reason for failure. Note: This function only returns a |
A string that describes the error. |
This is an error message. |
result |
Boolean |
Whether the function succeeded. |
|
1 |