WIP: autodns dns api #80

Closed
kunsi wants to merge 0 commits from autodns-api into main
Owner
No description provided.
add first draft for autodns dns api
Some checks failed
bw test / bw test (with dummy mode) (push) Failing after 11s
bw test / bw test -i (push) Failing after 12s
bw test / bw test (with dummy mode) (pull_request) Failing after 12s
bw test / bw test -i (pull_request) Failing after 12s
ad65aea9d5
provide sensible default for records
Some checks failed
bw test / bw test (with dummy mode) (push) Failing after 12s
bw test / bw test -i (push) Failing after 11s
bw test / bw test -i (pull_request) Failing after 11s
bw test / bw test (with dummy mode) (pull_request) Failing after 11s
4f8ef292bb
items/autodns_dns_zone: try bulk update
Some checks failed
bw test / bw test (with dummy mode) (push) Failing after 13s
bw test / bw test -i (push) Failing after 13s
bw test / bw test (with dummy mode) (pull_request) Failing after 12s
bw test / bw test -i (pull_request) Failing after 12s
6511554a8e
Author
Owner

Immer noch futsch:

✘ autodns  autodns  autodns_dns_zone:franzi.business  failed
│
├─ GET /zone/franzi.business {} (return code: 200)
│
│ {"stid":"20260519-281ab053d649d1ed50565159847084f1","status":{"code":"S0205","text":"Zonen-Informationen wurden erfolgreich ermittelt.","type":"SUCCESS"},"object":{"type":"Zone","value":"franzi.business"},"data":[{"created":"2026-05-03T09:53:31.000+0200","updated":"2026-05-03T11:14:53.000+0200","origin":"franzi.business","soa":{"refresh":43200,"retry":7200,"expire":1209600,"ttl":86400,"email":"do-not-reply@franzi.business"},"dnssec":false,"nameServerGroup":"ns14.net","owner":{"context":4,"user":"1351109325"},"updater":{"context":4,"user":"1351109325"},"domainsafe":false,"purgeType":"AUTO","nameServers":[{"name":"a.ns14.net"},{"name":"b.ns14.net"},{"name":"c.ns14.net"},{"name":"d.ns14.net"}],"wwwInclude":false,"virtualNameServer":"a.ns14.net","action":"COMPLETE","resourceRecords":[{"name":"home","ttl":60,"type":"A","value":"172.19.138.1"},{"name":"home","type":"AAAA","value":"fe80::1"}],"roid":10848670}]}
│
├─ PATCH /bulk/zone {"json": {"template": {"resourceRecordsAdd": [{"name": "home2", "type": "AAAA", "value": "fe80::1"}], "resourceRecordsRem": [{"name": "home", "type": "AAAA", "value": "fe80::1"}]}, "objects": {"origin": "franzi.business", "virtualNameServer": "a.ns14.net"}}} (return code: 400)
│
│ {"stid":"20260519-b76dd450e4f4b0cca3987c9df8d5369b","messages":[{"text":"Fehler beim Lesen des Auftrages.","objects":[{"type":"payload","value":"objects"}],"code":"EF00000","status":"ERROR"}],"status":{"type":"ERROR"}}
╵
│   File "/Users/kunsi/git/bundlewrap/.direnv/python-3.14/lib/python3.14/site-packages/bundlewrap/concurrency.py", line 137, in run
│     result = self._get_result()
│   File "/Users/kunsi/git/bundlewrap/.direnv/python-3.14/lib/python3.14/site-packages/bundlewrap/concurrency.py", line 77, in _get_result
│     raise exception
│   File "/opt/homebrew/Cellar/python@3.14/3.14.4/Frameworks/Python.framework/Versions/3.14/lib/python3.14/concurrent/futures/thread.py", line 86, in run
│     result = ctx.run(self.task)
│   File "/opt/homebrew/Cellar/python@3.14/3.14.4/Frameworks/Python.framework/Versions/3.14/lib/python3.14/concurrent/futures/thread.py", line 73, in run
│     return fn(*args, **kwargs)
│   File "/Users/kunsi/git/bundlewrap/.direnv/python-3.14/lib/python3.14/site-packages/bundlewrap/items/__init__.py", line 604, in apply
│     self.fix(status_before)
│     ~~~~~~~~^^^^^^^^^^^^^^^
│   File "/Users/kunsi/git/bundlewrap/items/autodns_dns_zone.py", line 115, in fix
│     self._api_request('PATCH', '/bulk/zone', json=data)
│     ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
│   File "/Users/kunsi/git/bundlewrap/items/autodns_dns_zone.py", line 45, in _api_request
│     r.raise_for_status()
│     ~~~~~~~~~~~~~~~~~~^^
│   File "/Users/kunsi/git/bundlewrap/.direnv/python-3.14/lib/python3.14/site-packages/requests/models.py", line 1026, in raise_for_status
│     raise HTTPError(http_error_msg, response=self)
│ HTTPError('400 Client Error: Bad Request for url: https://api.autodns.com/v1/bulk/zone')
╵
Immer noch futsch: ``` ✘ autodns autodns autodns_dns_zone:franzi.business failed │ ├─ GET /zone/franzi.business {} (return code: 200) │ │ {"stid":"20260519-281ab053d649d1ed50565159847084f1","status":{"code":"S0205","text":"Zonen-Informationen wurden erfolgreich ermittelt.","type":"SUCCESS"},"object":{"type":"Zone","value":"franzi.business"},"data":[{"created":"2026-05-03T09:53:31.000+0200","updated":"2026-05-03T11:14:53.000+0200","origin":"franzi.business","soa":{"refresh":43200,"retry":7200,"expire":1209600,"ttl":86400,"email":"do-not-reply@franzi.business"},"dnssec":false,"nameServerGroup":"ns14.net","owner":{"context":4,"user":"1351109325"},"updater":{"context":4,"user":"1351109325"},"domainsafe":false,"purgeType":"AUTO","nameServers":[{"name":"a.ns14.net"},{"name":"b.ns14.net"},{"name":"c.ns14.net"},{"name":"d.ns14.net"}],"wwwInclude":false,"virtualNameServer":"a.ns14.net","action":"COMPLETE","resourceRecords":[{"name":"home","ttl":60,"type":"A","value":"172.19.138.1"},{"name":"home","type":"AAAA","value":"fe80::1"}],"roid":10848670}]} │ ├─ PATCH /bulk/zone {"json": {"template": {"resourceRecordsAdd": [{"name": "home2", "type": "AAAA", "value": "fe80::1"}], "resourceRecordsRem": [{"name": "home", "type": "AAAA", "value": "fe80::1"}]}, "objects": {"origin": "franzi.business", "virtualNameServer": "a.ns14.net"}}} (return code: 400) │ │ {"stid":"20260519-b76dd450e4f4b0cca3987c9df8d5369b","messages":[{"text":"Fehler beim Lesen des Auftrages.","objects":[{"type":"payload","value":"objects"}],"code":"EF00000","status":"ERROR"}],"status":{"type":"ERROR"}} ╵ │ File "/Users/kunsi/git/bundlewrap/.direnv/python-3.14/lib/python3.14/site-packages/bundlewrap/concurrency.py", line 137, in run │ result = self._get_result() │ File "/Users/kunsi/git/bundlewrap/.direnv/python-3.14/lib/python3.14/site-packages/bundlewrap/concurrency.py", line 77, in _get_result │ raise exception │ File "/opt/homebrew/Cellar/python@3.14/3.14.4/Frameworks/Python.framework/Versions/3.14/lib/python3.14/concurrent/futures/thread.py", line 86, in run │ result = ctx.run(self.task) │ File "/opt/homebrew/Cellar/python@3.14/3.14.4/Frameworks/Python.framework/Versions/3.14/lib/python3.14/concurrent/futures/thread.py", line 73, in run │ return fn(*args, **kwargs) │ File "/Users/kunsi/git/bundlewrap/.direnv/python-3.14/lib/python3.14/site-packages/bundlewrap/items/__init__.py", line 604, in apply │ self.fix(status_before) │ ~~~~~~~~^^^^^^^^^^^^^^^ │ File "/Users/kunsi/git/bundlewrap/items/autodns_dns_zone.py", line 115, in fix │ self._api_request('PATCH', '/bulk/zone', json=data) │ ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ │ File "/Users/kunsi/git/bundlewrap/items/autodns_dns_zone.py", line 45, in _api_request │ r.raise_for_status() │ ~~~~~~~~~~~~~~~~~~^^ │ File "/Users/kunsi/git/bundlewrap/.direnv/python-3.14/lib/python3.14/site-packages/requests/models.py", line 1026, in raise_for_status │ raise HTTPError(http_error_msg, response=self) │ HTTPError('400 Client Error: Bad Request for url: https://api.autodns.com/v1/bulk/zone') ╵ ```
try setting SOA as well
Some checks failed
bw test / bw test -i (push) Failing after 13s
bw test / bw test (with dummy mode) (push) Failing after 13s
bw test / bw test (with dummy mode) (pull_request) Failing after 13s
bw test / bw test -i (pull_request) Failing after 13s
09edc3829b
no monitoring for autodns
Some checks failed
bw test / bw test (with dummy mode) (pull_request) Failing after 13s
bw test / bw test -i (pull_request) Failing after 13s
a8388b407a
kunsi force-pushed autodns-api from a8388b407a
Some checks failed
bw test / bw test (with dummy mode) (pull_request) Failing after 13s
bw test / bw test -i (pull_request) Failing after 13s
to 4706d401b5
Some checks failed
bw test / bw test (with dummy mode) (pull_request) Failing after 12s
bw test / bw test -i (pull_request) Failing after 12s
2026-05-19 14:03:48 +00:00
Compare
kunsi force-pushed autodns-api from 4706d401b5
Some checks failed
bw test / bw test (with dummy mode) (pull_request) Failing after 12s
bw test / bw test -i (pull_request) Failing after 12s
to d5ac2ad346
Some checks failed
bw test / bw test -i (pull_request) Failing after 12s
bw test / bw test (with dummy mode) (pull_request) Successful in 33s
2026-05-19 14:11:32 +00:00
Compare
kunsi force-pushed autodns-api from d5ac2ad346
Some checks failed
bw test / bw test -i (pull_request) Failing after 12s
bw test / bw test (with dummy mode) (pull_request) Successful in 33s
to dde0b9bf0d
All checks were successful
bw test / bw test (with dummy mode) (pull_request) Successful in 33s
bw test / bw test -i (pull_request) Successful in 33s
bw test / bw test (with dummy mode) (push) Successful in 31s
bw test / bw test -i (push) Successful in 31s
2026-05-19 16:34:48 +00:00
Compare
kunsi closed this pull request 2026-05-19 16:35:14 +00:00
All checks were successful
bw test / bw test (with dummy mode) (pull_request) Successful in 33s
bw test / bw test -i (pull_request) Successful in 33s
bw test / bw test (with dummy mode) (push) Successful in 31s
bw test / bw test -i (push) Successful in 31s

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kunsi/bundlewrap!80
No description provided.