git clone -b release https://github.com/netbox-community/netbox-docker.git
cd netbox-docker
tee docker-compose.override.yml <<EOF
services:
netbox:
ports:
- 8000:8080
EOF
docker compose pull
docker compose up -d
docker compose exec netbox /opt/netbox/netbox/manage.py createsuperuser
How to use Datasources and Custom Scripts.
Zuerst im Admin Panel einen Token anlegen.
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"
}