Get a List of Applications by a Domain ID
The Get Applications List by a Domain ID allows to get a list of application for the given Domain using particular Domain ID.
GET /api/vendor/v1/domains/{id}/applications.json?api_token={api_token}Arguments
Name | Parameter Type | Data type | Required/ | Description |
|---|---|---|---|---|
id | path | integer | Required | A domain ID |
| api_token | query | string | Required | API token of the manager who perform the operation (see API Token Authentication) |
| page | query | integer | Optional | Returning a list of application instances by current page number |
| per_page | query | integer | Optional | Setting a number of items in the page |
| sorting[field] | query | string | Optional | Sorting the list by the specified field |
| sorting[reversed] | query | string | Required | Set the reversed sorting mode by the specified field:
|
| filters[created_at] | query | string | Optional | Filtering the list by a creation date |
| filters[updated_at] | query | string | Optional | Filtering the list by an update date |
Response model
Name | Data type | Description |
|---|---|---|
id | integer | A domain ID |
account_id | integer | An account ID, to whom relates the domain |
name | string | A domain name |
records | array | The list of DNS records of the domain |
Request example
GET http://billing.activeplatform.com:80/api/vendor/v1/domains/1012.json?api_token=654321Response example
{
"id": 1012,
"account_id": 2000359,
"name": "activeplatfrom.com",
"records": [
{
"name": "activeplatfrom.com.",
"type": "SOA",
"content": {
"primary": "ns1.master.activebilling.devnet.by",
"hostmaster": "john.doe@gmail.com",
"serial": "2016011903",
"refresh": "14400",
"retry": "7200",
"expire": "2419200",
"default_ttl": "3600"
},
"ttl": 3600,
"prio": null,
"raw_content": "ns1.master.activebilling.devnet.by john.doe@gmail.com 2016011903 14400 7200 2419200 3600"
},
{
"name": "activeplatfrom.com.",
"type": "NS",
"content": {
"nsdname": "ns1.master.activebilling.devnet.by."
},
"ttl": 3600,
"prio": null,
"raw_content": "ns1.master.activebilling.devnet.by"
},
{
"name": "activeplatfrom.com.",
"type": "NS",
"content": {
"nsdname": "ns2.master.activebilling.devnet.by."
},
"ttl": 3600,
"prio": null,
"raw_content": "ns2.master.activebilling.devnet.by"
}
]
}