REST API error messages - btry/glpi-plugin GitHub Wiki

GLPi

initSession

HTTP status Error symbol error message
200
400 ERROR_LOGIN_PARAMETERS_MISSING parameter(s) login, password or user_token missing
400 ERROR_LOGIN_WITH_CREDENTIALS_DISABLED initSession with credentials is disabled
401 ERROR_GLPI_LOGIN parameter user_token seems invalid

killSession

HTTP status Error symbol error message
200

changeActiveEntities

HTTP status Error symbol error message
200

getMyEntities

HTTP status Error symbol error message
200

getActiveEntities

HTTP status Error symbol error message
200

changeActiveProfile

HTTP status Error symbol error message
200

getMyProfiles

HTTP status Error symbol error message
200

getActiveProfile

HTTP status Error symbol error message
200

getFullSession

HTTP status Error symbol error message
200

getItem

HTTP status Error symbol error message
200
401 You don't have permission to perform this action.

getItems

HTTP status Error symbol error message
200
400 ERROR_ITEMTYPE_NOT_FOUND_NOR_COMMONDBTM parent itemtype is not found or not an instance of CommonDBTM

listSearchOptions

HTTP status Error symbol error message
200
400 ERROR_ITEMTYPE_NOT_FOUND_NOR_COMMONDBTM parent itemtype is not found or not an instance of CommonDBTM

searchItems

HTTP status Error symbol error message
200
400 ERROR_RANGE_EXCEED_TOTAL Provided range exceed total count of data :
500 ERROR_SQL Unexpected SQL Error :

createItems

HTTP status Error symbol error message
200
207 ERROR_GLPI_PARTIAL_ADD
400 ERROR_GLPI_ADD

updateItems

HTTP status Error symbol error message
200
207 ERROR_GLPI_PARTIAL_UPDATE
400 ERROR_GLPI_UPDATE

deleteItems

HTTP status Error symbol error message
200
207 ERROR_GLPI_PARTIAL_DELETE
400 ERROR_GLPI_DELETE

Flyve MDM

All itemtypes may produce the error messages from GLPi, depending on theyr HTTP verb. Additional errors messages are below.

PluginFlyvemdmAgent

addItem

HTTP status Error symbol error message
400 ERROR_GLPI_ADD Unable to find a enrollment method

updateItem

HTTP status Error symbol error message
400 ERROR_GLPI_UPDATE The fleet of the device does not longer exists
400 ERROR_GLPI_UPDATE The target fleet does not exists
400 ERROR_GLPI_UPDATE The device is not enrolled yet
400 ERROR_GLPI_UPDATE Timeout querying the device
400 ERROR_GLPI_UPDATE Timeout querying the device inventory

deleteItem

HTTP status Error symbol error message
400 ERROR_GLPI_DELETE Failed to find the guest user profile
400 ERROR_GLPI_DELETE Failed to remove guest habilitation for the user of the device
400 ERROR_GLPI_DELETE Failed to delete the device
400 ERROR_GLPI_DELETE Failed to delete documents attached to the device
400 ERROR_GLPI_DELETE Timeout querying the device inventory

PluginFlyvemdmFile

addItem

HTTP status Error symbol error message
400 ERROR_GLPI_ADD Could not upload file

updateItem

HTTP status Error symbol error message
200 ERROR_GLPI_UPDATE File sucessfully uploaded
400 ERROR_GLPI_UPDATE Could not upload file
400 ERROR_GLPI_UPDATE Could not save file

PluginFlyvemdmFleet_Policy

addItem

HTTP status Error symbol error message
400 ERROR_GLPI_ADD Fleet and policy must be specified
400 ERROR_GLPI_ADD Policy not found
400 ERROR_GLPI_ADD Incorrect value for this policy
400 ERROR_GLPI_ADD Cannot find the target fleet
400 ERROR_GLPI_ADD Cannot apply a policy on a not managed fleet
400 ERROR_GLPI_ADD The requirements for this policy are not met
400 ERROR_GLPI_ADD Failed to apply the policy

updateItem

HTTP status Error symbol error message
400 ERROR_GLPI_UPDATE Policy not found
400 ERROR_GLPI_UPDATE Cannot find the target fleet
400 ERROR_GLPI_UPDATE Cannot apply a policy on a not managed fleet
400 ERROR_GLPI_UPDATE Incorrect value for this policy
400 ERROR_GLPI_UPDATE The requirements for this policy are not met
400 ERROR_GLPI_UPDATE Failed to apply the policy

deleteItem

HTTP status Error symbol error message
400 ERROR_GLPI_UPDATE Policy not found
400 ERROR_GLPI_UPDATE Fleet not found
400 ERROR_GLPI_UPDATE Cannot find the target fleet
400 ERROR_GLPI_UPDATE Cannot apply a policy on a not managed fleet
400 ERROR_GLPI_UPDATE Incorrect value for this policy
400 ERROR_GLPI_UPDATE The requirements for this policy are not met
400 ERROR_GLPI_UPDATE Failed to apply the policy

Flyve MDM Demo plugin

PluginFlyvemdmDemoUser

HTTP status Error symbol error message
400 ERROR_GLPI_ADD Email address is not valid
400 ERROR_GLPI_ADD No inactive profile available to setup user rights
400 ERROR_GLPI_ADD An entity already exists for your email. You probably already have an account.
400 ERROR_GLPI_ADD Failed to create default fleet
400 ERROR_GLPI_ADD Passwords are different
400 ERROR_GLPI_ADD Password too short

PluginFlyvemdmdemoAccountvalidation

HTTP status Error symbol error message
400 ERROR_GLPI_ADD Validation token missing
400 ERROR_GLPI_ADD Validation token is invalid
400 ERROR_GLPI_ADD Validation token expired
400 ERROR_GLPI_ADD Failed to find your account
⚠️ **GitHub.com Fallback** ⚠️