Get Domain Info by a Domain ID

The Get Domain Info by ID method allows to get domain information using the domain ID.

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

Arguments

Name

Parameter Type

Data type

Required/ 
Optional

Description

id

path

integer

Required

A domain ID.

api_tokenquerystringRequiredAPI token of the manager who perform the operation (see API Token Authentication).

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

A list of DNS records of the domain.

Request example

 GET http://billing.activeplatform.com:80/api/vendor/v1/domains/1012.json?api_token=654321

Response example

{ 
  "id": 1012, 
  "account_id": 2000359, 
  "name": "activeplatform.com.", 
  "records": [ 
  { 
   "name": "sactiveplatform.com", 
   "type": "SOA", 
   "content": { 
     "primary": "ns1.master.activebilling.devnet.by", 
     "hostmaster": "john.doe@activeplatform.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@activeplatform.com 2016011903 14400 7200 2419200 3600" 
  },
  { 
   "name": "activeplatform.com.", 
   "type": "NS", 
   "content": { 
     "nsdname": "ns1.master.activebilling.devnet.by." 
   }, 
   "ttl": 3600, 
   "prio": null,
   "raw_content": "ns1.master.activebilling.devnet.by" 
   }, 
   { 
   "name": "activeplatform.com.", 
   "type": "NS", 
   "content": { 
     "nsdname": "ns2.master.activebilling.devnet.by." 
   }, 
   "ttl": 3600, 
   "prio": null, 
   "raw_content": "ns2.master.activebilling.devnet.by" 
   } 
  ]
}