Return Long Term Support status for all versions

This function parses the /etc/cpanel/TIERS.json file and returns whether a branch qualifies for Long-Term Support (LTS). For more information about LTS, read our cPanel Long-Term Support documentation.

Authorizations:

Responses

Response Schema: application/json
object
object

Request samples

whmapi1 --output=jsonpretty \
  get_lts_wexpire

Response samples

Content type
application/json
{
  • "data": {
    • "branch": {
      • "11.78.0": [
        • {
          • "build": "11.78.0.49",
          • "is_main": 1
          }
        ],
      • "11.80.0": [
        • {
          • "build": "11.80.0.24",
          • "is_main": 1
          }
        ],
      • "11.82.0": [
        • {
          • "build": "11.82.0.19",
          • "is_main": 1
          }
        ],
      • "11.84.0": [
        • {
          • "build": "11.84.0.22",
          • "is_main": 1
          }
        ],
      • "11.86.0": [
        • {
          • "build": "11.86.0.25",
          • "is_main": 1
          }
        ],
      • "11.88.0": [
        • {
          • "build": "11.88.0.14",
          • "is_main": 1
          }
        ],
      • "11.90.0": [
        • {
          • "build": "11.90.0.5",
          • "is_main": 1
          }
        ]
      },
    • "flags": {
      • "is_main": 1
      },
    • "tiers": {
      • "11.78": [
        • {
          • "build": "11.78.0.49",
          • "expires": "1588636799",
          • "is_lts": 1,
          • "is_main": 1
          }
        ],
      • "11.80": [
        • {
          • "build": "11.80.0.24",
          • "is_main": 1
          }
        ],
      • "11.82": [
        • {
          • "build": "11.82.0.19",
          • "is_main": 1
          }
        ],
      • "11.84": [
        • {
          • "build": "11.84.0.22",
          • "is_main": 1
          }
        ],
      • "11.86": [
        • {
          • "build": "11.86.0.25",
          • "expires": "1617148801",
          • "is_lts": 1,
          • "is_main": 1,
          • "named": [
            • "lts"
            ]
          }
        ],
      • "11.88": [
        • {
          • "build": "11.88.0.13",
          • "is_main": 0,
          • "named": [
            • "stable"
            ]
          },
        • {
          • "build": "11.88.0.14",
          • "is_main": 1
          }
        ],
      • "11.90": [
        • {
          • "build": "11.90.0.5",
          • "is_main": 1,
          • "named": [
            • "current",
            • "edge",
            • "release"
            ]
          }
        ]
      }
    },
  • "metadata": {
    • "command": "get_lts_wexpire",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}