Get a List of Domains by Application ID

This method allows to get the list of domains that were attached to an Application using the Application ID.

GET /api/vendor/v1/applications/{id}/domains.json?api_token={api_token}

Arguments

Name

Parameter Type

Data type

Required/ 
Optional

Description

idpathintegerRequiredAn ID of the Application instance
api_tokenquerystringRequiredAPI 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

Optional

Set the reversed sorting mode by the specified field:

  • true — descending sorting.
  • false — ascending sorting (by default).

filters[created_at]

query

date

Optional

Filtering the list by a creation date

filters[updated_at]

query

date

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/applications/2003000/domains.json?api_token=654321

Response example

[
  { 
   "id": 1019, 
   "account_id": 2000384, 
   "name": "d000000000000298.delegate.master.activebilling.devnet.by", 
   "records": [ 
     { 
       "name": "d000000000000298.delegate.master.activebilling.devnet.by.", 
       "type": "SOA", 
       "content": { 
         "primary": "ns1.master.activebilling.devnet.by", 
         "hostmaster": "ilia.orlenko+1050@gmail.com", 
         "serial": "2016012004", 
         "refresh": "14400", 
         "retry": "7200", 
         "expire": "2419200", 
         "default_ttl": "3600" 
       }, 
       "ttl": 3600, 
       "prio": null, 
       "raw_content": "ns1.master.activebilling.devnet.by ilia.orlenko+1050@gmail.com 2016012004 14400 7200 2419200 3600" 
     }, 
     { 
       "name": "d000000000000298.delegate.master.activebilling.devnet.by.", 
       "type": "NS", 
       "content": { 
         "nsdname": "ns1.master.activebilling.devnet.by." 
       }, 
       "ttl": 3600, 
       "prio": null, 
       "raw_content": "ns1.master.activebilling.devnet.by" 
     }, 
     { 
       "name": "d000000000000298.delegate.master.activebilling.devnet.by.", 
       "type": "NS", 
       "content": { 
          "nsdname": "ns2.master.activebilling.devnet.by." 
       }, 
       "ttl": 3600, 
       "prio": null, 
       "raw_content": "ns2.master.activebilling.devnet.by" 
     } 
   ] 
  }
]