Child pages
  • WHM API 1 Functions - read_featurelist

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

 

Description


Excerpt

This function lists the authenticated user's feature lists.


Note
titleNotes:
  • The root account returns all feature lists on the server.
  • Resellers only return feature lists that the account owns.


Panel
bgColor#F2F2F2
borderStylenone

Examples 


Panel
bgColor#FFFFFF
borderStylenone


Expand
titleJSON API


Code Block
languagexml
https://hostname.example.com:2087/cpsess##########/json-api/read_featurelist?api.version=1&featurelist=BoomBoomMancini



Expand
titleXML API


Code Block
languagexml
https://hostname.example.com:2087/cpsess##########/xml-api/read_featurelist?api.version=1&featurelist=BoomBoomMancini



Expand
titleCommand Line


Code Block
languagebash
whmapi1 read_featurelist featurelist=BoomBoomMancini

Include Page
LIB:_WHMAPI1CLINote
LIB:_WHMAPI1CLINote


Expand
titleOutput (JSON)


Code Block
languagetext
linenumberstrue
{
    "data": {
        "features": {
            ...
            "postgres": "0",
            "popaccts": "1",
            ...
            "style": "0",
            "webmail": "1",
            ...
            "analog": "0",
            "changemx": "1",
            ...
        },
        "featurelist": "BoomBoomMancini"
    },
    "metadata": {
        "version": 1,
        "reason": "OK",
        "result": 1,
        "command": "read_featurelist"
    }
}



Expand
titleOutput (XML)


Code Block
languagetext
linenumberstrue
<result>
    <data>
        <features>
            ...
            <postgres>0</postgres>
            <popaccts>1</popaccts>
            ...
            <style>0</style>
            <webmail>1</webmail>
            ...
            <analog>0</analog>
            <changemx>1</changemx>
            ...
        </features>
 
        <featurelist>BoomBoomMancini</featurelist>  
    </data>
      
    <metadata>
        <version>1</version>
        <reason>OK</reason>
        <result>1</result>
        <command>read_featurelist</command>
    </metadata>
</result>


Include Page
LIB:_WHMAPIShellNote
LIB:_WHMAPIShellNote


Parameters

ParameterTypeDescriptionPossible valuesExample

available_featurelists

string

Required

The feature list's name.

A valid string.default

Returns

ReturnTypeDescriptionPossible valuesExample
featureshashA hash of available features in the list.This hash includes the feature parameter. 

featurename

Boolean

Whether the feature exists in the feature list.

Note
titleNote:

The feature name's is the return's name.

The function returns this value in the features hash.

  • 1 — The feature exists in the feature list.
  • 0 — The feature does not exist in the feature list.
1

featurelist

string

The feature list's name.

A valid string.BoomBoomMancini