.pdf)
WHM Plugins
get_tweaksetting function from within your custom script:
/xml-api/get_tweaksetting 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/get_tweaksetting
get_tweaksetting function from within your custom script:
/json-api/get_tweaksetting 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/get_tweaksetting
Main.
undef, no value parameter will be returned by the function. If the value parameter is empty, you will see the following: <value></value>
get_tweaksetting.
https://example.com:2087/xml-api/get_tweaksetting?key=update_log_analysis_retention_length in WebHost Manager will produce output similar to:
<result>
<data>
<tweaksetting>
<value>90</value>
<key>update_log_analysis_retention_length</key>
</tweaksetting>
</data>
<metadata>
<version>1</version>
<reason>OK</reason>
<result>1</result>
<command>get_tweaksetting</command>
</metadata>
</result>
https:example.com:2087/json-api/get_tweaksetting?key=update_log_analysis_retention_length in WebHost Manager will produce output similar to:
{
result:{
data:{
tweaksetting:{
value:90,
key:'update_log_analysis_retention_length'
}
},
metadata:{
version:1,
reason:'OK',
result:1,
command:'get_tweaksetting'
}
}
}
Copyright © cPanel 2000–2011.