Examples

GET /api/hosts/host222/interfaces
200
{
  "total": 3,
  "subtotal": 3,
  "page": 1,
  "per_page": 20,
  "search": null,
  "sort": {
    "by": null,
    "order": null
  },
  "results": [
    {
      "subnet_id": null,
      "subnet_name": null,
      "subnet6_id": null,
      "subnet6_name": null,
      "domain_id": null,
      "domain_name": null,
      "created_at": "2018-11-15 19:02:12 UTC",
      "updated_at": "2018-11-15 19:02:12 UTC",
      "managed": true,
      "identifier": null,
      "id": 1,
      "name": "host222",
      "ip": null,
      "ip6": null,
      "mac": null,
      "mtu": null,
      "fqdn": "host222",
      "primary": true,
      "provision": true,
      "type": "interface",
      "virtual": false
    },
    {
      "subnet_id": null,
      "subnet_name": null,
      "subnet6_id": null,
      "subnet6_name": null,
      "domain_id": null,
      "domain_name": null,
      "created_at": "2018-11-15 19:02:12 UTC",
      "updated_at": "2018-11-15 19:02:12 UTC",
      "managed": true,
      "identifier": "eth37",
      "id": 2,
      "name": null,
      "ip": "0.0.0.27",
      "ip6": null,
      "mac": "00:33:45:ab:00:1b",
      "mtu": null,
      "fqdn": null,
      "primary": false,
      "provision": false,
      "type": "interface",
      "virtual": false
    },
    {
      "subnet_id": null,
      "subnet_name": null,
      "subnet6_id": null,
      "subnet6_name": null,
      "domain_id": null,
      "domain_name": null,
      "created_at": "2018-11-15 19:02:12 UTC",
      "updated_at": "2018-11-15 19:02:12 UTC",
      "managed": true,
      "identifier": "eth38",
      "id": 3,
      "name": null,
      "ip": "0.0.0.28",
      "ip6": null,
      "mac": "00:33:45:ab:00:1c",
      "mtu": null,
      "fqdn": null,
      "primary": false,
      "provision": false,
      "type": "bond",
      "mode": "balance-rr",
      "attached_devices": "",
      "bond_options": "",
      "virtual": true
    }
  ]
}

Params

Param name Description
location_id
optional

Scope by locations

Validations:

  • Must be a Integer

organization_id
optional

Scope by organizations

Validations:

  • Must be a Integer

host_id
required

ID or name of host

Validations:

  • Must be a String

domain_id
optional

ID or name of domain

Validations:

  • Must be a String

subnet_id
optional

ID or name of subnet

Validations:

  • Must be a String

page
optional

paginate results

Validations:

  • Must be a String

per_page
optional

number of entries per request

Validations:

  • Must be a String