List
GET {{baseUrl}}/servers.json?filter[name]=<string>&filter[host]=<string>&filter[ids]=<string>,<string>&filter[labels]=<string>&filter[reported]=<boolean>&page=<integer>
This API endpoint returns a paginated list of the Servers associated with your New Relic account. The time range for summary data is the last 2 minutes.
Servers can be filtered by their name, hostname, or the list of server IDs.
See our documentation for a discussion and examples of using filters and summary data output.
Request Params
| Key | Datatype | Required | Description |
|---|---|---|---|
filter[name] | string | Filter by name | |
filter[host] | string | Filter by host | |
filter[ids] | string | Filter by server IDs | |
filter[labels] | string | Filter by server labels (beta) | |
filter[reported] | string | Filter by reported in last 10 hours | |
page | string | Pagination index |
RESPONSES
status: OK
{"server":{"host":"nulla reprehenderit veniam","account_id":76540804,"health_status":"irure ullamco sint","id":-49069473,"last_reported_at":"1986-05-04T17:42:36.264Z","links":{"alert_policy":19428721},"name":"deserunt aliqua","reporting":true,"summary":{"cpu":1609418.8160360903,"cpu_stolen":567816.1967925876,"disk_io":12074931.858166143,"fullest_disk":90457517.85521886,"fullest_disk_free":33945233,"memory":-42641098.40858508,"memory_total":61998001,"memory_used":-23214060}}}