Child pages
  • WHM API 1 Functions - ea4_tomcat85_list

Versions Compared

Key

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

Description

Excerpt

This function returns a list of the users that run Tomcat.

Multiexcerpt include
SpaceWithExcerptcom.atlassian.confluence.content.render.xhtml.model.resource.identifiers.SpaceResourceIdentifier@12665
MultiExcerptNameAPIDisabledWebServerRole
PageWithExcerptLIB:_ServerRoleDisabledAPI

Panel
bgColor#F2F2F2
borderStylenone

Examples


Panel
bgColor#FFFFFF
borderStylenone


Expand
titleJSON API


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



Expand
titleCommand Line


Code Block
languagebash
whmapi1 ea4_tomcat85_list

Include Page
LIB:_WHMAPI1CLINote
LIB:_WHMAPI1CLINote


Expand
titleOutput (JSON)


Code Block
languagetext
linenumberstrue
{
   "data":{
      "tomcat85_users":[
         "user123",
         "user456",
         "user789"
       ]
   },
   "metadata":{
      "result":1,
      "command":"ea4_tomcat85_list",
      "version":1,
      "reason":"OK"
   }
}


Include Page
LIB:_WHMAPIShellNote
LIB:_WHMAPIShellNote


Parameters

This function does not accept parameters.

Returns

ReturnTypeDescriptionarrayPossible valuesExample
tomcat85_users
arrayAn array of user names.

An array of users that run Tomcat.


["user123","user456","user789"]