.pdf)
WHM Plugins
/var/cpanel/cpanel.config file.
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
get_tweaksetting function, this parameter should always be passed: 1
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://domain.tld:2087/xml-api/get_tweaksetting?api.version=1key=update_log_analysis_retention_length
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://domain.tld:2087/json-api/get_tweaksetting?api.version=1key=update_log_analysis_retention_length
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'
}
}
}