This function returns Leika configuration data. Leika is an internal module that cPanel & WHM uses to track access to features.
Note:
If you do not provide an item
parameter, this returns the entire configuration.
uapi Leika leika_get_config item='key1' item='key3' uapi --output=jsonpretty \ --user=username \ Leika \ leika_get_config \ item=cpanel.key1 \ item=webmail.key3
{- "apiversion": 3,
- "func": "leika_get_config",
- "module": "Leika",
- "result": {
- "data": {
- "cpanel.key1": "enabled",
- "webmail.key3": {
- "subkey1": "active",
- "subkey2": "inactive"
}
}, - "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}