You are not logged in.
Bonjour,
Lorsque j'exécute la commande GET pour obtenir les infos relatifs à un ordinateur ou périphérique, j'ai les informations suivantes:
{
"autoupdatesystems_id": 0,
"comment": "",
"computermodels_id": 0,
"computertypes_id": 0,
"contact": "",
"contact_num": "",
"date_creation": "2019-07-18 19:55:29",
"date_mod": "2019-09-02 09:01:14",
"domains_id": 0,
"entities_id": 0,
"groups_id": 0,
"groups_id_tech": 0,
"id": 2,
"is_deleted": 0,
"is_dynamic": 0,
"is_recursive": 0,
"is_template": 0,
"links": [
{
"href": "http://localhost/glpi/apirest.php/Entity/0",
"rel": "Entity"
},
{
"href": "http://localhost/glpi/apirest.php/Location/3",
"rel": "Location"
},
{
"href": "http://localhost/glpi/apirest.php/Computer/2/ReservationItem/",
"rel": "ReservationItem"
},
{
"href": "http://localhost/glpi/apirest.php/Computer/2/Document_Item/",
"rel": "Document_Item"
},
{
"href": "http://localhost/glpi/apirest.php/Computer/2/Contract_Item/",
"rel": "Contract_Item"
},
{
"href": "http://localhost/glpi/apirest.php/Computer/2/Infocom/",
"rel": "Infocom"
},
{
"href": "http://localhost/glpi/apirest.php/Computer/2/Item_Ticket/",
"rel": "Item_Ticket"
},
{
"href": "http://localhost/glpi/apirest.php/Computer/2/Item_Project/",
"rel": "Item_Project"
},
{
"href": "http://localhost/glpi/apirest.php/Computer/2/NetworkPort/",
"rel": "NetworkPort"
},
{
"href": "http://localhost/glpi/apirest.php/Computer/2/Item_DeviceMotherboard/",
"rel": "Item_DeviceMotherboard"
},
{
"href": "http://localhost/glpi/apirest.php/Computer/2/Item_DeviceFirmware/",
"rel": "Item_DeviceFirmware"
},
{
"href": "http://localhost/glpi/apirest.php/Computer/2/Item_DeviceProcessor/",
"rel": "Item_DeviceProcessor"
},
{
"href": "http://localhost/glpi/apirest.php/Computer/2/Item_DeviceMemory/",
"rel": "Item_DeviceMemory"
},
{
"href": "http://localhost/glpi/apirest.php/Computer/2/Item_DeviceHardDrive/",
"rel": "Item_DeviceHardDrive"
},
{
"href": "http://localhost/glpi/apirest.php/Computer/2/Item_DeviceNetworkCard/",
"rel": "Item_DeviceNetworkCard"
},
{
"href": "http://localhost/glpi/apirest.php/Computer/2/Item_DeviceDrive/",
"rel": "Item_DeviceDrive"
},
{
"href": "http://localhost/glpi/apirest.php/Computer/2/Item_DeviceBattery/",
"rel": "Item_DeviceBattery"
},
{
"href": "http://localhost/glpi/apirest.php/Computer/2/Item_DeviceGraphicCard/",
"rel": "Item_DeviceGraphicCard"
},
{
"href": "http://localhost/glpi/apirest.php/Computer/2/Item_DeviceSoundCard/",
"rel": "Item_DeviceSoundCard"
},
{
"href": "http://localhost/glpi/apirest.php/Computer/2/Item_DeviceControl/",
"rel": "Item_DeviceControl"
},
{
"href": "http://localhost/glpi/apirest.php/Computer/2/Item_DevicePci/",
"rel": "Item_DevicePci"
},
{
"href": "http://localhost/glpi/apirest.php/Computer/2/Item_DeviceCase/",
"rel": "Item_DeviceCase"
},
{
"href": "http://localhost/glpi/apirest.php/Computer/2/Item_DevicePowerSupply/",
"rel": "Item_DevicePowerSupply"
},
{
"href": "http://localhost/glpi/apirest.php/Computer/2/Item_DeviceGeneric/",
"rel": "Item_DeviceGeneric"
},
{
"href": "http://localhost/glpi/apirest.php/Computer/2/Item_DeviceSimcard/",
"rel": "Item_DeviceSimcard"
},
{
"href": "http://localhost/glpi/apirest.php/Computer/2/Item_DeviceSensor/",
"rel": "Item_DeviceSensor"
}
],
"locations_id": 3,
"manufacturers_id": 0,
"name": "PC1",
"networks_id": 0,
"otherserial": "PC1",
"serial": "",
"states_id": 0,
"template_name": null,
"ticket_tco": 0,
"users_id": 0,
"users_id_tech": 0,
"uuid": "
Je veux récupérer la date d'inventaire qui se trouve dans l'onglet "gestion". Quelqu'un aurait une idée comme puis-je faire?
Merci!
Offline
Bonjour,
Il faut que tu ailles taper dans http://localhost/glpi/apirest.php/Computer/2/Infocom/
Tu auras notamment inventory_date dedans
Offline