List All Domains
Send GET request
to /v1/domains
.
- Name
get
- Type
- /v1/domains
- Description
Send a
GET
request to list all domains.
Request
Example
curl -X GET "https://api.simplystack.com/v1/domains" \
-H "Content-Type: application/json" \
-H "Authorization: Token d359ad9cc9422b5ff07aede0cd2707da4ff82be0"
Response
JSON object with key named domains
with the following identifiers:
Attributes
Example
json
{
"domains": [
{
"name": "example.com",
"zone_file": "$ORIGIN example.com.\n$TTL 1800\nexample.com. IN SOA ns1.simplystack.com. hostmaster.example.com. 1518510805 10800 3600 604800 1800\nexample.com. 1800 IN NS ns1.simplystack.com.\nexample.com. 1800 IN NS ns2.simplystack.com.\nexample.com. 1800 IN NS ns3.simplystack.com.\nexample.com. 1800 IN A 192.168.1.1\nexample.com. 1800 IN A 192.168.1.1\nwww.example.com. 1800 IN A 192.168.1.1\n",
"created_at": "2020-02-13T08:33:25.371494Z",
"records": []
},
{
"name": "example1.com",
"zone_file": "$ORIGIN example1.com.\n$TTL 1800\nexample1.com. IN SOA ns1.simplystack.com. hostmaster.example1.com. 1518510948 10800 3600 604800 1800\nexample1.com. 1800 IN NS ns1.simplystack.com.\nexample1.com. 1800 IN NS ns2.simplystack.com.\nexample1.com. 1800 IN NS ns3.simplystack.com.\n",
"created_at": "2020-02-13T08:35:48.584245Z",
"records": []
}
],
"meta": {
"pagination": {
"current_page": 1,
"next_page": null,
"pages": 1,
"per_page": 25,
"previous_page": null,
"total": 2
},
"query": null,
"sort": null
}
}