Description

This function returns the contents of a dynamicui file.

 For more information, read our Guide to WHM dynamicui Files documentation.

Examples 




https://hostname.example.com:2087/cpsess##########/json-api/get_available_applications?file=dynamicui.conf&applications_list=create_support_ticket




whmapi1 get_available_applications file=dynamicui.conf applications_list=create_support_ticket



   "metadata":{ 
      "reason":"OK",
      "version":1,
      "command":"get_available_applications",
      "result":1
   },
   "data":

{
    "groups":[
        {
            "file":"support.png"
            "grouporder":2
            "imgtype":"icon"
            "groupdesc":"$LANG{'Support'}"
            "type":"image"
            "searchtext":"support"
            "subtype":"img"
            "group":"support"
            "dnsonly_ok":"dns"
            "items":[                                                      
                {
                    "acl":"ACL=all"
                    "file":"create_support_ticket.png"
                    "type":"image"
                    "imgtype":"icon"
                    "subitems":[]
                    "subtype":"img"
                    "searchtext":"support create support ticket"
                    "itemdesc":"$LANG{'Create Support Ticket'}"
                    "dnsonly_ok":"dns"
                    "url":"/scripts7/create_support_ticket"
                    "itemorder":2
                    "group":"support"
                }
            ]
        }
    ]
}


}


Parameters

ParameterTypeDescriptionPossible valuesExample

file

string

The dynamicui file to retrieve.

This parameter defaults to dynamicui.conf.

  • dynamicui.conf
  • A custom dynamicui filename.
dynamicui.conf
applications_liststring

A list of the application entries to return.

If you do not specify a value, the function returns the entire dynamicui.conf file.

A comma-separated list of application names.

To determine the application's name, find its file value in the dynamicui.conf file, and then remove the file extension.

create_support_ticket

Returns

ReturnTypeDescriptionPossible valuesExample
groupsarray of hashesAn array of hashes of the dynamicui file's contents.A valid hash of dynamicui data.