Examples

GET /api/locations/447626439/domains
200
{
  "total": 2,
  "subtotal": 2,
  "page": 1,
  "per_page": 20,
  "search": null,
  "sort": {
    "by": null,
    "order": null
  },
  "results": [
    {
      "fullname": null,
      "created_at": "2022-03-29 08:25:48 UTC",
      "updated_at": "2022-03-29 08:25:48 UTC",
      "id": 22495316,
      "name": "mydomain.net",
      "dns_id": 113629430,
      "dns": null
    },
    {
      "fullname": "somewhere in yourdomain",
      "created_at": "2022-03-29 08:25:48 UTC",
      "updated_at": "2022-03-29 08:25:48 UTC",
      "id": 589326610,
      "name": "yourdomain.net",
      "dns_id": 113629430,
      "dns": null
    }
  ]
}

Params

Param name Description
subnet_id
optional

ID of subnet

Validations:

  • Must be a String

location_id
optional

Scope by locations

Validations:

  • Must be a Integer

organization_id
optional

Scope by organizations

Validations:

  • Must be a Integer

search
optional

filter results

Validations:

  • Must be a String

order
optional

Sort and order by a searchable field, e.g. ‘

Maruku could not parse this XML/HTML: 
<field> DESC'

Validations:

  • Must be a String

page
optional

Page number, starting at 1

Validations:

  • Must be a number.

per_page
optional

Number of results per page to return, ‘all’ to return all results

Validations:

  • Must match regular expression /\A([1-9]\d|all)\Z$/.

Search fields

Field name Type Possible values
fullname string
id integer
location string
location_id integer
name string
organization string
organization_id integer
params string