api.dns.record
¶
/dns/domain/(name)/record¶
-
api.dns.record.views.
dns_record_list
(*args, **kwargs)¶ List (
GET
) all DNS records which belong to a DNS domain. Delete (DELETE
) specified DNS records that belong to a DNS domain.-
GET
/dns/domain/
(name)/record
¶ DC-bound?: Permissions: Asynchronous?: Parameters: - name (string) – required - Domain name
- data.full (boolean) – Return list of objects with all record details (default: false)
- data.order_by (string) – Available fields for sorting:
id
,name
,type
,ttl
,disabled
,changed
(default:id
)
Status Codes: - 200 OK – SUCCESS
- 403 Forbidden – Forbidden
-
DELETE
/dns/domain/
(name)/record
¶ DC-bound?: Permissions: Asynchronous?: Parameters: - name (string) – required - Domain name
- data.records (array) – required List of DNS record ids to be deleted
Status Codes: - 200 OK – SUCCESS
- 400 Bad Request – FAILURE
- 403 Forbidden – Forbidden
- 404 Not Found – Domain not found / Record not found
- 412 Precondition Failed – Invalid records
-
/dns/domain/(name)/record/(record_id)¶
-
api.dns.record.views.
dns_record
(*args, **kwargs)¶ Show (
GET
), create (POST
, update (PUT
) or delete (DELETE
) a DNS record.-
GET
/dns/domain/
(name)/record/
(record_id)¶ DC-bound?: Permissions: Asynchronous?: Parameters: - name (string) – required - Domain name
- record_id (integer) – required - DNS record ID
Status Codes: - 200 OK – SUCCESS
- 403 Forbidden – Forbidden
- 404 Not Found – Domain not found / Record not found
-
POST
/dns/domain/
(name)/record
¶ DC-bound?: Permissions: Asynchronous?: Parameters: - name (string) – required - Domain name
- data.name (string) – required - The name of the DNS record - the full URI the DNS server should pick up on
- data.type (string) – required - DNS record type (one of: A, AAAA, CERT, CNAME, HINFO, KEY, LOC, MX, NAPTR, NS, PTR, RP, SOA, SPF, SSHFP, SRV, TLSA, TXT)
- data.content (string) – required - DNS record content - the answer of the DNS query
- data.ttl (integer) – How long (seconds) the DNS client is allowed to remember this record (default: 3600)
- data.prio (integer) – Priority used by some record types (default: 0)
- data.disabled (boolean) – If set to true, this record is hidden from DNS clients (default: false)
Status Codes: - 201 Created – SUCCESS
- 400 Bad Request – FAILURE
- 403 Forbidden – Forbidden
- 404 Not Found – Domain not found
- 406 Not Acceptable – Record already exists
-
PUT
/dns/domain/
(name)/record/
(record_id)¶ DC-bound?: Permissions: Asynchronous?: Parameters: - name (string) – required - Domain name
- record_id (integer) – required - DNS record ID
- data.name (string) – The name of the DNS record - the full URI the DNS server should pick up on
- data.type (string) – DNS record type (one of: A, AAAA, CERT, CNAME, HINFO, KEY, LOC, MX, NAPTR, NS, PTR, RP, SOA, SPF, SSHFP, SRV, TLSA, TXT)
- data.content (string) – DNS record content - the answer of the DNS query
- data.ttl (integer) – How long (seconds) the DNS client is allowed to remember this record
- data.prio (integer) – Priority used by some record types
- data.disabled (boolean) – If set to true, this record is hidden from DNS clients
Status Codes: - 200 OK – SUCCESS
- 400 Bad Request – FAILURE
- 403 Forbidden – Forbidden
- 404 Not Found – Domain not found / Record not found
-
DELETE
/dns/domain/
(name)/record/
(record_id)¶ DC-bound?: Permissions: Asynchronous?: Parameters: - name (string) – required - Domain name
- record_id (integer) – required - DNS record ID
Status Codes: - 200 OK – SUCCESS
- 400 Bad Request – FAILURE
- 403 Forbidden – Forbidden
- 404 Not Found – Domain not found / Record not found
-