You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2022-07-12 13:17:20

Oxfos
Member
Registered: 2021-03-02
Posts: 7

REST API endpoint pour Appliances, Licenses, Certificates

(English below)

Bonjour,

j'essaye retourner des objets du type (itemtype)
Appliance
License
Certificate

pour REST API
mais ca ne marche pas.
J'ai essayé plusieurs facons, par example:
Appliances
glpi_appliances
PluginAppliancesAppliance
etc.
mais ca ne marche pas.

Peut-etre qu'ils ne sont pas disponibles par REST API?

Merci pour toute réponse.

Oxfos

----
Hello,

I am trying to return objects of type (itemtype)
Appliance
License
Certificate

via REST APIs
but it does not work.
I tried several ways, for example:
Appliances
glpi_appliances
PluginAppliancesAppliance
etc
but it does not work.

Maybe they are not available by REST API?

Thanks for any response.

Offline

#2 2022-07-21 17:41:33

Oxfos
Member
Registered: 2021-03-02
Posts: 7

Re: REST API endpoint pour Appliances, Licenses, Certificates

Pour licenses et certificates ca marche (pour licenses ca doit etre "Softwarelicense").
Pour appliances ca marche pase encore.

Offline

#3 2023-01-31 08:02:36

antonwantstosleep
Member
Registered: 2023-01-31
Posts: 2

Re: REST API endpoint pour Appliances, Licenses, Certificates

All these itemtypes are reachable by REST API.

When you open your GLPI Front pages with items lists, ex.:
- at your.glpi/front/softwarelicense.php - you can see the endpoint "softwarelicense"
- at your.glpi/front/appliance.php - the endpoint is "appliance"

You can use GET your.glpi/apirest.php/softwarelicense or your.glpi/apirest.php/Softwarelicense as you wish.

Offline

#4 2023-02-06 09:49:56

ec2311
Member
Registered: 2016-04-07
Posts: 352

Re: REST API endpoint pour Appliances, Licenses, Certificates

Hello

I think I found a bug (in 9.5.5) :
when using delete computer (force_delete=true), the appliances linked to computer are not deleted

when using the usual menu in glpi : it's ok

So I guess something missed in API treatment


GLPI 10.0.10
GLPIinventory 1.3.4

Agents : FI (2.6, 2.5) et Glpiagents (1.7)

Offline

Board footer

Powered by FluxBB