HomeGuidesAPI Reference
GuidesAPI ReferenceGitHubAirheads Developer CommunityLog In
API Reference

List Switches

Get switches You can only specify one of group, label and stack_id parameters.
Possible error_codes for the error responses are

  1. 0001 - General Error.
  2. 0002 - Validation Error. Out of Range value for a query parameter.
  3. 0003 - Validation Error. Unsupported query combination
  4. 0004 - Validation Error. Invalid value for a query parameter
Query Params
string

Filter by group name

string

Filter by Label name

string

Filter by Switch stack_id

string

Filter by Switch status

string

Comma separated list of fields to be returned. Valid fields are status, macaddr, model, ip_address, public_ip_address, firmware_version, labels, uplink_ports, site

boolean

Whether to calculate total Switches

boolean

Whether to show switch uptime, max_power, power_consumption, temperature, fan_speed, cpu_utilization, mem_free, mem_total, poe_consumption.

boolean

Whether to calculate client count per Switch

string

Filter by public ip address

string

Filter by site name

int32

Pagination offset

int32

Pagination limit. Default is 100 and max is 1000

string

Sort parameter may be one of +serial, -serial, +name, -name, +macaddr, -macaddr

Responses

401

Unauthorized access

403

Forbidden

413

Request-size limit exceeded

417

Request-size limit exceeded

429

API Rate limit exceeded

Language
Credentials
Bearer
URL
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json