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 2024-02-09 17:09:20

ARP67
Member
Registered: 2024-02-09
Posts: 2

Multiple IP with same Token ?

Hello,

I have a PowerShell script that retrieves the serial number of the machine on which it is executed. Then, using the GLPI API, it checks if a PC already has this serial number (to detect duplicates when remastering a workstation).

Everything was working perfectly until I exported my script to another PC to test it in a real-world scenario.

Unfortunately, I'm getting this error:


Invoke-RestMethod : ["ERROR_NOT_ALLOWED_IP","There is no API client in the configuration that verifies your IP address (X.X.X.X)"]
At C:\Users\Administrator\Desktop\Script\get-glpi-serial.ps1:14 : 24
... nResponse = Invoke-RestMethod -Uri $initSessionUrl -Headers $headers ...


I understand that I need to authenticate the IP using the GLPI API, but my question is:

Is it possible to authenticate one or multiple IP address ranges instead of just one IP?
Or maybe disable the IP authentification ?

Otherwise, my work won't be usable sad


Thanks in advance !

Offline

#2 2024-02-09 17:30:01

ARP67
Member
Registered: 2024-02-09
Posts: 2

Re: Multiple IP with same Token ?

Solved !

General > API > my wish is here

Offline

Board footer

Powered by FluxBB