Page tree
Skip to end of metadata
Go to start of metadata

 

Description

This function displays the server's cPanel & WHM version.

Examples 


 JSON API
http:s//hostname.example.com:2087/cpsess##########/json-api/version
 XML API
https://hostname.example.com:2087/cpsess##########/xml-api/version
 Command Line
whmapi0 version

Notes:

  • You must URI-encode values.
  • For more information and additional output options, read our Guide to WHM API 0 documentation or run the whmapi0 --help command. 
  • We introduced this functionality in cPanel & WHM version 11.52.0.8.

 Output (JSON)
{
  "version": "11.38.0.9999"
}
 Output (XML)
<version>
    <version>11.38.0.9999</version>
</version>

Parameters

This function does not accept parameters.

Returns

ReturnTypeDescriptionPossible valuesExample
versionstringThe server's version of cPanel & WHM.A version of cPanel & WHM.11.38.0.9999