You are not logged in.
Pages: 1
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
Thanks in advance !
Offline
Solved !
General > API > my wish is here
Offline
Pages: 1