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

 

Description

This function returns a list of each available version of cPanel & WHM, and each version's the latest maintenance release. This function also lists the cPanel & WHM version for each release tier.

Examples 


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

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)
{
  "statusmsg": "Got tiers list",
  "status": 1,
  "tiers": {
    "11.40": "11.40.1.22",
    "11.42": "11.42.1.28",
    "release": "11.46.0.14",
    "11.36": "11.36.2.12",
    "11.34": "11.34.2.8",
    "11.30": "11.30.8.0",
    "11.32": "11.32.7.3",
    "11.46": "11.46.0.14",
    "current": "11.46.0.14",
    "11.38": "11.38.2.23",
    "11.44": "11.44.1.21",
    "edge": "11.45.999.139",
    "stable": "11.44.1.21"
  }
}
 Output (XML)
<get_available_tiers>
  <status>1</status>
  <statusmsg>Got tiers list</statusmsg>
  <tiers>
    <11.29.0>11.29.0.13</11.29.0>
    <11.29.1>11.29.1.5</11.29.1>
    <11.30>11.30.8.0</11.30>
    <11.30.0>11.30.0.34</11.30.0>
    <11.30.1>11.30.1.4</11.30.1>
    <11.30.2>11.30.2.1</11.30.2>
    <11.30.3>11.30.3.5</11.30.3>
    <11.30.4>11.30.4.6</11.30.4>
    <11.30.5>11.30.5.6</11.30.5>
    <11.30.6>11.30.6.8</11.30.6>
    <11.30.7>11.30.7.6</11.30.7>
    <11.30.8>11.30.8.0</11.30.8>
    <11.31.0>11.31.0.31</11.31.0>
    <11.31.1>11.31.1.7</11.31.1>
    <11.31.2>11.31.2.11</11.31.2>
    <11.31.3>11.31.3.3</11.31.3>
    <11.31.4>11.31.4.5</11.31.4>
    <11.31.901>11.31.901.4</11.31.901>
    <11.32>11.32.6.4</11.32>
    <11.32.0>11.32.0.1</11.32.0>
    <11.32.1>11.32.1.4</11.32.1>
    <11.32.2>11.32.2.28</11.32.2>
    <11.32.3>11.32.3.23</11.32.3>
    <11.32.4>11.32.4.15</11.32.4>
    <11.32.5>11.32.5.18</11.32.5>
    <11.32.6>11.32.6.4</11.32.6>
    <11.32.901>11.32.901.11</11.32.901>
    <11.32.960>11.32.960.8</11.32.960>
    <11.32.999>11.32.999.54</11.32.999>
    <11.33.0>11.33.0.25</11.33.0>
    <11.33.901>11.33.901.7</11.33.901>
    <11.33.903>11.33.903.10</11.33.903>
    <11.33.904>11.33.904.1</11.33.904>
    <11.33.905>11.33.905.1</11.33.905>
    <11.33.906>11.33.906.16</11.33.906>
    <11.33.908>11.33.908.18</11.33.908>
    <11.33.909>11.33.909.6</11.33.909>
    <11.33.910>11.33.910.0</11.33.910>
    <11.33.912>11.33.912.1</11.33.912>
    <11.33.915>11.33.915.1</11.33.915>
    <11.33.950>11.33.950.4</11.33.950>
    <11.33.959>11.33.959.4</11.33.959>
    <11.33.999>11.33.999.23</11.33.999>
    <11.34>11.34.1.13</11.34>
    <11.34.0>11.34.0.11</11.34.0>
    <11.34.1>11.34.1.13</11.34.1>
    <11.34.950>11.34.950.0</11.34.950>
    <11.34.951>11.34.951.7</11.34.951>
    <11.34.952>11.34.952.2</11.34.952>
    <11.34.960>11.34.960.1</11.34.960>
    <11.34.999>11.34.999.71</11.34.999>
    <11.35.0>11.35.0.4</11.35.0>
    <11.35.901>11.35.901.36</11.35.901>
    <11.35.902>11.35.902.96</11.35.902>
    <11.35.903>11.35.903.77</11.35.903>
    <11.35.904>11.35.904.74</11.35.904>
    <11.35.905>11.35.905.21</11.35.905>
    <11.35.906>11.35.906.10</11.35.906>
    <11.35.999>11.35.999.55</11.35.999>
    <11.36>11.36.0.20</11.36>
    <11.36.0>11.36.0.20</11.36.0>
    <11.36.1>11.36.1.1</11.36.1>
    <11.36.950>11.36.950.1</11.36.950>
    <11.36.952>11.36.952.2</11.36.952>
    <11.36.953>11.36.953.2</11.36.953>
    <11.36.954>11.36.954.1</11.36.954>
    <11.36.955>11.36.955.4</11.36.955>
    <11.36.999>11.36.999.71</11.36.999>
    <11.37.901>11.37.901.96</11.37.901>
    <11.37.902>11.37.902.33</11.37.902>
    <11.37.903>11.37.903.69</11.37.903>
    <11.37.905>11.37.905.5</11.37.905>
    <11.37.906>11.37.906.16</11.37.906>
    <11.37.907>11.37.907.3</11.37.907>
    <11.37.908>11.37.908.23</11.37.908>
    <11.37.950>11.37.950.1</11.37.950>
    <11.37.951>11.37.951.78</11.37.951>
    <11.37.952>11.37.952.17</11.37.952>
    <11.37.953>11.37.953.1</11.37.953>
    <11.37.954>11.37.954.2</11.37.954>
    <11.37.955>11.37.955.2</11.37.955>
    <11.37.956>11.37.956.2</11.37.956>
    <11.37.957>11.37.957.0</11.37.957>
    <11.37.999>11.37.999.68</11.37.999>
    <11.38>11.38.0.5</11.38>
    <11.38.908>11.38.908.3</11.38.908>
    <11.38.952>11.38.952.0</11.38.952>
    <11.38.953>11.38.953.4</11.38.953>
    <11.38.954>11.38.954.0</11.38.954>
    <11.38.956>11.38.956.1</11.38.956>
    <11.38.959>11.38.959.5</11.38.959>
    <11.38.960>11.38.960.20</11.38.960>
    <11.38.961>11.38.961.2</11.38.961>
    <11.38.962>11.38.962.0</11.38.962>
    <11.38.963>11.38.963.1</11.38.963>
    <11.38.964>11.38.964.0</11.38.964>
    <11.38.999>11.38.999.31</11.38.999>
    <11.39.901>11.39.901.7</11.39.901>
    <11.39.902>11.39.902.14</11.39.902>
    <11.39.903>11.39.903.30</11.39.903>
    <11.39.905>11.39.905.7</11.39.905>
    <11.39.906>11.39.906.25</11.39.906>
    <11.39.907>11.39.907.8</11.39.907>
    <11.39.908>11.39.908.0</11.39.908>
    <11.39.909>11.39.909.0</11.39.909>
    <11.39.958>11.39.958.3</11.39.958>
    <11.39.963>11.39.963.5</11.39.963>
    <11.39.999>11.39.999.38</11.39.999>
    <11.40>11.39.999.13</11.40>
    <current>11.38.0.5</current>
    <edge>11.39.906.19</edge>
    <release>11.39.906.19</release>
    <stable>11.39.906.19</stable>
  </tiers>
</get_available_tiers>

Parameters

This function does not accept parameters.

Returns

ReturnTypeDescriptionPossible valuesExample
tiershashA hash for the version and release number data.

This hash contains the VERSION NUMBER, current, edge, release, and stable parameters.

 

VERSION NUMBER

string An available version of cPanel & WHM and its specific version number. Any valid cPanel & WHM version number on the account.11.40.1.22

current

stringThe version of cPanel & WHM that is currently on the CURRENT tier.Any valid cPanel & WHM version number on the account.
11.46.0.14

edge

stringThe version of cPanel & WHM that is currently on the EDGE tier.Any valid cPanel & WHM version number on the account.
11.46.999.139

release

stringThe version of cPanel & WHM that is currently on the RELEASE tier.Any valid cPanel & WHM version number on the account.
11.46.0.14

stable

string The version of cPanel & WHM that is currently on the STABLE tier.Any valid cPanel & WHM version number on the account.11.44.1.21

status

booleanWhether the system successfully called the function.
  • 1 — Success.
  • 0 — Failure.

 

1
statusmsgstringThe result of the function.
  • Got tiers list
  • An error message.
                Got tiers list