.pdf)
WHM Plugins
nvset function to create these non-volatile variables and values, setting them to anything you wish.
In order to view a variable's current value, use the nvget function.
nvset function from within your custom script:
/xml-api/nvset function call name, plus the required variables (see below), to a URL which includes the address of your server.
example.com, you would include the following string in your script: https://example.com:2087/xml-api/nvset
nvset function from within your custom script:
/json-api/nvset function call name, plus the required variables (see below), to a URL which includes the address of your server.
example.com, you would include the following string in your script: https://example.com:2087/json-api/nvset
nvset function takes the following variables as input.
The following variable is required: nvset function. 1 — success.
0 — failure.
https://example.com:2087/xml-api/nvset?key=yourcompany:YourVariableName&value=1 in WebHost Manager will produce output similar to:
<nvset>
<result>
<key>yourcompany:YourVariableName</key>
<status>1</status>
</result>
</nvset>
https://example.com:2087/json-api/nvset?key=yourcompany:YourVariableName&value=1 in WebHost Manager will produce output similar to:
{
"result":[
{
"status":1,
"key":"yourcompany:YourVariableName"
}
]
}
Copyright © cPanel 2000–2011.