Methods > glpi.getItemInfoComs

This method is only accessible by authenticated users

Retrieve computer's financial informations

input a hastable

  • help option to get usage information
  • itemtype : the object type
  • id : object ID
  • id2name : option to enable id to name translation of dropdown fields
return a hashtable
  • fields of glpi_infocoms

Call example

php testxmlrpc.php --url=glpi084/plugins/webservices/xmlrpc.php --method=glpi.getItemInfocoms --host=localhost --session=19fd3d05b1ebae82b286a712180c56b0 --help
+ Calling 'glpi.getItemInfocoms' on http://localhost/glpi078/plugins/webservices/xmlrpc.php?session=19fd3d05b1ebae82b286a712180c56b0
+ Response: Array
(
    [itemtype] => string, mandatory
    [id] => integer, mandatory
    [id2name] => bool,optional
    [help] => bool,optional
)

php testxmlrpc.php --url=glpi084/plugins/webservices/xmlrpc.php --method=glpi.getItemInfocoms --host=localhost --session=19fd3d05b1ebae82b286a712180c56b0 --id=5 --itemtype=Computer --id2name
+ Calling 'glpi.getItemInfocoms' on http://localhost/glpi078/plugins/webservices/xmlrpc.php?session=19fd3d05b1ebae82b286a712180c56b0
+ Response: Array
(
    [id] => 10
    [items_id] => 5
    [itemtype] => Computer
    [entities_id] => 0
    [is_recursive] => 0
    [buy_date] => 2010-04-28
    [use_date] => 
    [warranty_duration] => 0
    [warranty_info] => 
    [suppliers_id] => 1
    [order_number] => 50407699780594
    [delivery_number] => 
    [immo_number] => 
    [value] => 0.0000
    [warranty_value] => 0.0000
    [sink_time] => 0
    [sink_type] => 0
    [sink_coeff] => 0
    [comment] => 
    [bill] => 
    [budgets_id] => 1
    [alert] => 4
    [warranty_expiration] => 28-04-2010
    [suppliers_name] => Apple
    [budgets_names] => Achat informatique 2010
)