Description

This function lists the authenticated user's available feature lists.


  • When you call this function with the root account, it returns all feature lists on the server.
  • When you call this function with a resellers account, it only returns feature lists that the account owns.


Examples 




https://hostname.example.com:2087/cpsess##########/json-api/get_featurelists?api.version=1




https://hostname.example.com:2087/cpsess##########/xml-api/get_featurelists?api.version=1




whmapi1 get_featurelists



{
    "data": {
        "featurelists": [
            "default",
            "disabled",
            "reseller1_test1",
            "reseller1_test2"
        ]
    },
    "metadata": {
        "version": 1,
        "reason": "OK",
        "result": 1,
        "command": "get_featurelists"
    }
}




<result>
    <data>
        <featurelists>default</featurelists>
        <featurelists>disabled</featurelists>
        <featurelists>reseller1_test1</featurelists>
        <featurelists>reseller1_test2</featurelists>
    </data>
    <metadata>
        <version>1</version>
        <reason>OK</reason>
        <result>1</result>
        <command>get_featurelists</command>
    </metadata>
</result>



Parameters

This function does not accept parameters.

Returns

ReturnTypeDescriptionPossible valuesExample

featurelists

array

Aa array of available feature lists.

This array includes the feature lists' names.default