Description
This function creates a non-volatile datastore. The system creates the datastore in the /home/user/.cpanel/nvdata
directory, where user
represents the account name.
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 |
datastore name
|
string |
Required The NVData file's contents. Note: The parameter name is the name of the NVData file to create. |
A valid string. |
you |
Returns
Return |
Type |
Description |
Possible values |
Example |
reason |
string |
A reason for failure. Note: This function only returns a reason value if it failed. |
A string that describes the error. |
This is an error message. |
result |
boolean |
Whether the function succeeded. |
|
1 |