Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/itimor/bindapi
binddns restfull api开发
https://github.com/itimor/bindapi
bind bindapi
Last synced: 3 months ago
JSON representation
binddns restfull api开发
- Host: GitHub
- URL: https://github.com/itimor/bindapi
- Owner: itimor
- Created: 2018-04-14T09:36:03.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T00:56:21.000Z (almost 2 years ago)
- Last Synced: 2024-05-20T21:24:30.824Z (6 months ago)
- Topics: bind, bindapi
- Language: Python
- Homepage:
- Size: 3.8 MB
- Stars: 5
- Watchers: 2
- Forks: 7
- Open Issues: 5
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
- awesome-ops-system - itimor/bindapi - binddns restfull api开发 (运维相关管理系统 / dns管理工具)
README
# bind dlz dns api
# 设置token
```
curl -X POST -d "username=admin&password=password123" http://localhost:8000/api/api-token-auth/{
"token": "ad0fd6577b32e0ca4a12bacd30e0155925a64a3b"
}
```# 携带token获取records
```
curl -H "Authorization: token ad0fd6577b32e0ca4a12bacd30e0155925a64a3b" http://localhost:8000/api/records/[
{
"url": "http://127.0.0.1:8888/api/records/4/",
"id": 4,
"zone": "oo.com",
"name": "www",
"type": "A",
"value": "1.1.1.22",
"ttl": 600,
"mx_priority": null,
"serial": null,
"refresh": null,
"retry": null,
"expire": null,
"minimum": null,
"resp_person": "",
"primary_ns": "",
"create_time": "2018-04-14T19:29:10",
"update_time": "2018-04-14T19:29:34.311111"
},
{
"url": "http://127.0.0.1:8888/api/records/5/",
"id": 5,
"zone": "oo.com",
"name": "bbs",
"type": "CNAME",
"value": "www",
"ttl": 600,
"mx_priority": null,
"serial": null,
"refresh": null,
"retry": null,
"expire": null,
"minimum": null,
"resp_person": null,
"primary_ns": null,
"create_time": "2018-04-14T19:29:13",
"update_time": "2018-04-14T19:29:21"
}
]
```