=====Installation===== ====Docker==== git clone -b release https://github.com/netbox-community/netbox-docker.git cd netbox-docker tee docker-compose.override.yml < =====Datasource===== How to use [[https://www.youtube.com/watch?v=jxsFwyMk18k|Datasources and Custom Scripts]]. =====API===== Zuerst im Admin Panel einen Token anlegen. * GET - lesen * POST - anlegen * PUT - updaten (alle Werte müssen angegeben werden) * PATCH - updaten (nur der zu ändernde Wert muss angegeben werden) * DELETE - löschen curl -X GET -H "Authorization: Token g5hj3g54hj3g5h4j3g3j" -H "Accept: application/json; indent=4" http://hdc-containerhost01.service.h-dc.at:8082/api/ipam/ip-addresses/ curl -X POST -H "Authorization: Token g5hj3g54hj3g5h4j3g3j" -H "Content-Type: application/json" -H "Accept: application/json; indent=4" http://hdc-containerhost01.service.h-dc.at:8082/api/ipam/ip-addresses/ { "address": "1.1.1.1/8", "description": "IP description here" ... } curl -X PUT -H "Authorization: Token g5hj3g54hj3g5h4j3g3j" -H "Content-Type: application/json" -H "Accept: application/json; indent=4" http://hdc-containerhost01.service.h-dc.at:8082/api/ipam/ip-addresses/4092/ { "address": "1.1.1.1/8", "description": "IP description here" ... } curl -X PATCH -H "Authorization: Token g5hj3g54hj3g5h4j3g3j" -H "Content-Type: application/json" -H "Accept: application/json; indent=4" http://hdc-containerhost01.service.h-dc.at:8082/api/ipam/ip-addresses/4092/ { "description": "IP description here" } =====Links===== * [[https://www.youtube.com/watch?v=sHvMyRHA7sY|Awesome Open Source]] * [[https://github.com/netbox-community/netbox-docker/wiki/Using-Netbox-Plugins|Using Netbox Plugins]] * [[https://github.com/netbox-community/netbox-docker|Netbox Docker Repository]] * [[https://github.com/netbox-community/netbox/blob/develop/docs/installation/3-netbox.md|Installation]] * [[https://demo.netbox.dev/static/docs/|Docs]] * [[https://demo.netbox.dev/api/docs/|API Docs]]