Closed fabriceverkor closed 1 year ago
Please try if you reproduce with latest stable or latest nightly build.
Hello Not better with GLPI 10.0.7 : no IP on newly created port
Latest GLPI version is 10.0.10.
Sorry. I just upgraded to 10.0.10. Same result.
Works like a charm with
curl -X POST \
-H 'Content-Type: application/json' \
-H "Session-Token: 37kmhthlj0i1un752em06smqe1" \
-H "App-Token: 4HkT9xl25QTW7FfuPD0aGyvmrja7vj89bymOHJHz" \
-d '{"input": { "name": "management", "items_id": "8", "logical_number": 0, "itemtype": "Computer", "instantiation_type": "NetworkPortEthernet", "NetworkName_name": "mgmt", "NetworkName_fqdns_id": 0, "_create_children": true, "NetworkName__ipaddresses": {"-1": "10.13.20.10", "_xmlrpc_fckng_fix": ""}}}' \
'http://127.0.0.1/GLPI/10.0-bugfixes/apirest.php/NetworkPort/'
Your json
seems to be badly formatted (use of [
]
)
This issue has been closed as we only track bugs here.
You can get community support on forums or you can consider taking a subscription to get professional support. You can also contact GLPI editor team directly.
Code of Conduct
Is there an existing issue for this?
Version
10.0.6
Bug description
Cannot create a network port with an IP by REST API, even following syntax in https://github.com/glpi-project/glpi/blob/10.0.6/tests/APIBaseClass.php. The network port and network name are properly created.
The sent JSON is
Relevant log output
No response
Page URL
No response
Steps To reproduce
No response
Your GLPI setup information
Information about system installation & configuration
Server
GLPI constants
Libraries
LDAP directories
SQL replicas
Notifications
Plugins list
Anything else?
No