Description

This function lists features that are available to the authenticated user.

Examples 


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

{
  "data": {
    "feature": [
      {
        "name": "SSL Manager",
        "id": "sslmanager"
      },
      ...
    ]
  },
  "metadata": {
    "version": 1,
    "reason": "OK",
    "result": 1,
    "command": "getfeaturelist"
  }
}
<result>
    <data>
        <feature>
            <name>SSL Manager</name>
            <id>sslmanager</id>
        </feature>
    </data>
     ...
    <metadata>
        <version>1</version>
        <reason>OK</reason>
        <result>1</result>
        <command>getfeaturelist</command>
    </metadata>
</result>

Parameters

This function does not accept parameters.

Returns

ReturnTypeDescriptionPossible valuesExample

feature

array of hashes

An array of hashes of feature information.

This array contains a hash for each feature. Each hash includes the name and id returns. 

name

string

The feature's name.

This function returns this value in the feature array.

A valid string.Install Perl Modules

id

string

The feature's ID.

This function returns this value in the feature array.

A valid feature name.modules-perl