You are not logged in.
Pages: 1
Guys,
I'm trying to create network devices through API, but it always returns that the type of device I'm registering does not exist. Has anyone done this task before and could you share an example please?
Offline
Please provide the API request you are trying to make.
GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.
Offline
special variables:
function variables:
body: '{"input": { "name": "xxx" }}'
headers: {'user-agent': 'glpi-sdk-python-0.4.0', 'Accept-Encoding': 'gzip, deflate', 'accept': 'application/json', 'Connection': 'keep-alive', 'Session-Token': 'xxxx', 'App-Token': 'xxxxxx', 'Content-Length': '40'}
hooks: {'response': []}
method: 'POST'
path_url: '/apirest.php/networkequipament'
url: 'https://a{dot}b{dot}c/apirest.php/networkequipament'
_body_position: None
_cookies: <RequestsCookieJar[]>
_encode_files: <function RequestEncodingMixin._encode_files at 0x0000021B8F702AC0>
_encode_params: <function RequestEncodingMixin._encode_params at 0x0000021B8F702A20>
_get_idna_encoded_host: <function PreparedRequest._get_idna_encoded_host at 0x0000021B8F7031A0>
Offline
The item type must be "NetworkEquipment" to exactly match the internal class name used for network equipment assets.
GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.
Offline
Thanks so much
Offline
Pages: 1