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 |
|
names
|
string |
Required The name of the non-volatile data file that you wish to create.
|
A pipe-separated list of valid filenames to create. |
testfile1|testfile2 |
|
file |
string |
Required The content that you wish to save in the non-volatile datafile. Note: This parameter's name is the name of a file that you listed in the names parameter's value. |
A valid string.
|
some_data |
Returns
|
Parameter |
Type |
Description |
Possible values |
Example |
|
|
array of hashes |
An array of hashes that contains information about the non-volatile data. |
This array of hashes includes theset return. |
|
|
set |
string |
The name of the non-volatile file that you created. The function returns this value in the unnamed hash. |
A valid file name. |
testfile1 |
