GlpigetObject » History » Version 2

yeti, 02/03/2011 05:31 PM

1 1 yeti
h1. [[En_devguide#Provided-Methods|Methods]] > glpi.getObject
2 2 yeti
3 2 yeti
!https://forge.indepnet.net/svn/webservices/authenticated.png! +@This method is only accessible by authenticated users@+
4 2 yeti
5 2 yeti
Retrieve information on a existing object if the authenticated user can view it.
6 2 yeti
7 2 yeti
*input* a hastable
8 2 yeti
9 2 yeti
* *help* option to get usage information
10 2 yeti
11 2 yeti
*Default Call* example
12 2 yeti
<pre>
13 2 yeti
$ php testxmlrpc.php --session=0ptega61kobcnhkv0vokbercv1 --method=glpi.getObject --itemtype=Computer --id=501
14 2 yeti
+ Calling 'glpi.getObject' on http://localhost/glpi/plugins/webservices/xmlrpc.php?session=0ptega61kobcnhkv0vokbercv1
15 2 yeti
+ Response: Array
16 2 yeti
(
17 2 yeti
    [name] => computers 0-1
18 2 yeti
    [id] => 501
19 2 yeti
    [locations_id] => 21
20 2 yeti
    [computertypes_id] => 1
21 2 yeti
    [computermodels_id] => 1
22 2 yeti
    [states_id] => 5
23 2 yeti
    [operatingsystems_id] => 1
24 2 yeti
    [operatingsystemversions_id] => 2
25 2 yeti
    [operatingsystemservicepacks_id] => 4
26 2 yeti
    [autoupdatesystems_id] => 3
27 2 yeti
    [os_license_number] => os sn 0
28 2 yeti
    [os_licenseid] => os id 0
29 2 yeti
    [serial] => m233a56mu6i
30 2 yeti
    [otherserial] => vqcfci7a8si
31 2 yeti
    [notepad] => note computer 0
32 2 yeti
    [contact] => contact 0
33 2 yeti
    [contact_num] => num 0
34 2 yeti
    [users_id] => 748
35 2 yeti
    [groups_id] => 3
36 2 yeti
    [date_mod] => 2011-01-26 10:39:52
37 2 yeti
    [networks_id] => 5
38 2 yeti
    [domains_id] => 3
39 2 yeti
    [manufacturers_id] => 1
40 2 yeti
    [users_id_tech] => 579
41 2 yeti
    [entities_id] => 1
42 2 yeti
    [is_ocs_import] => 0
43 2 yeti
)</pre>