list dns records
This commit is contained in:
parent
8498f6f0a7
commit
04ebd05a8f
5 changed files with 244 additions and 3 deletions
|
|
@ -56,3 +56,25 @@ type DomainLabel struct {
|
|||
Title string `json:"title"`
|
||||
Color string `json:"color"`
|
||||
}
|
||||
|
||||
// DNSRecordsRequest is used to get a list of DNS records
|
||||
type DNSRecordsRequest struct {
|
||||
BaseRequest
|
||||
}
|
||||
|
||||
// DNSRecord it is what it says it is.
|
||||
type DNSRecord struct {
|
||||
ID string `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Type string `json:"type"`
|
||||
Content string `json:"content"`
|
||||
TTL any `json:"ttl"`
|
||||
Priority any `json:"prio"`
|
||||
Notes string `json:"notes"`
|
||||
}
|
||||
|
||||
// DNSRecordsResponse it is what it says it is.
|
||||
type DNSRecordsResponse struct {
|
||||
BaseResponse
|
||||
Records []DNSRecord `json:"records"`
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue