python3 manage.py makemigrations
python3 manage.py migrate
python3 manage.py createsuperuser
python3 manage.py runserver 127.0.0.1:8000
GET http://127.0.0.1:8000/admin
GET http://127.0.0.1:8000/api/v1/host/?host_ip=172.25.10.10
{
"count": 1,
"next": null,
"previous": null,
"results": [
{
"id": 1,
"machine_name": "ji11",
"room_name": "机房",
"cpu": 64,
"memory": 128,
"host_ip": "172.25.10.10",
"idrac_ip": "172.25.3.10",
"host_mode": "DELL630",
"host_active": "有可用资源",
"physicaldisk": [
{
"disk_name": "datastore33",
"disk_space": "3T"
}
]
}
]
}