Implement DNS mixin (GET/PUT/DELETE records by type/name) #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Type
Feature
Lineage
Depends on #1 (scaffold). Immediate need for
palinks #28(custom domain wiring).Repo
ldraney/godaddy-sdkUser Story
As Lucas
I want to set DNS A records programmatically via the SDK
So that custom domain wiring doesn't require manual GoDaddy dashboard clicks
Context
DNS record endpoints are in the domains swagger spec. 5 endpoints:
GET /v1/domains/{domain}/records/{type}/{name}— get records by type/namePUT /v1/domains/{domain}/records/{type}/{name}— replace records by type/nameDELETE /v1/domains/{domain}/records/{type}/{name}— delete records by type/namePUT /v1/domains/{domain}/records/{type}— replace all records of a typePUT /v1/domains/{domain}/records— replace all recordsPATCH /v1/domains/{domain}/records— add recordsFile Targets
src/godaddy_sdk/dns.py—DNSMixinwith methods for all DNS endpointstests/test_dns.py— integration tests against live API (OTE or prod)docs/dns.md— endpoint referenceFeature Flag
None.
Acceptance Criteria
client.get_records("palinks.app", "A")returns current A recordsclient.replace_records("palinks.app", "A", "@", [{"data": "178.156.129.142", "ttl": 600}])sets A recordclient.delete_records("palinks.app", "A", "@")removes A recordTest Expectations
Constraints
Checklist
Related
project-godaddy-sdkldraney/palinks #50— set DNS A records for palinks.app