Methods > glpi.listEntities

Version Comments
1.3.0 No change
1.2.0 No change
0.2.0 Method added

Return list of current entities defined by server configuration for the client, or currently activated for the user (when authenticated)

input a hastable

  • help option to get usage information
  • count , start, limit (optional)

return a array of hashtable

  • id
  • completename

For allowed entities, see glpi.listMyEntities

Call example

$ php testxmlrpc.php --session=au4jva758pjna1pba1fitk3f70 --method=glpi.listEntities --help
+ Calling 'glpi.listEntities' on http://localhost//glpi072/plugins/webservices/xmlrpc.php?session=au4jva758pjna1pba1fitk3f70
+ Response: Array
(
    [count] => bool,optional
    [start] => integer,optional
    [limit] => integer,optional
    [help] => bool,optional
)

$ php testxmlrpc.php --session=au4jva758pjna1pba1fitk3f70    --method=glpi.listEntities --count
+ Calling 'glpi.listEntities' on http://localhost//glpi072/plugins/webservices/xmlrpc.php?session=au4jva758pjna1pba1fitk3f70
+ Response: Array
(
    [count] => 1
)

$ php testxmlrpc.php --session=au4jva758pjna1pba1fitk3f70    --method=glpi.listEntities 
+ Calling 'glpi.listEntities' on http://localhost//glpi072/plugins/webservices/xmlrpc.php?session=au4jva758pjna1pba1fitk3f70
+ Response: Array
(
    [0] => Array
        (
            [ID] => 1
            [completename] => Earth > Europe > France
        )

)