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/ 
Optional

Description

id

path

integer

Required

A domain ID.

api_tokenquerystringRequiredAPI token of the manager who perform the operation (see API Token Authentication).
pagequeryintegerOptionalReturning a list of application instances by current page number.
per_pagequeryintegerOptionalSetting a number of items in the page.
sorting[field]querystringOptionalSorting the list by a specified field.
sorting[reversed]querystringRequired

Setting the sorting mode:

  • true - a descending sorting;
  • false - an ascending sorting (by default).
filters[created_at]querystringOptional

Filtering the list by a creation date.

filters[updated_at]querystringOptionalFiltering 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=654321

Response 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"
    }
  ]
}