Retrieves details of :ref:`tp-configure-servers`.
.. deprecated:: 3.1 This endpoint has been removed from the latest version of the API, and clients are advised to use :ref:`to-api-v3-servers` instead.
Auth. Required: | Yes |
---|---|
Roles Required: | None |
Response Type: | Array |
Note
On top of the response including the response key that is of type array it will also include the keys limit
, orderby
, and size
.
Name | Required | Description |
---|---|---|
hostName | Required if no physLocationID provided | Return only the servers with this (short) hostname. Capitalization of "hostName" is important. |
physLocationID | Required if no hostName provided | Return only servers with this integral, unique identifier for the physical location where the server resides. Capitalization of "physLocationID" is important. |
GET /api/3.0/servers/details?hostName=edge HTTP/1.1
User-Agent: python-requests/2.22.0
Accept-Encoding: gzip, deflate
Accept: */*
Connection: keep-alive
Cookie: mojolicious=...
limit: | The maximum size of the |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
orderby: | A string that names the field by which the elements of the |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
response: | An array of objects, each of which represents the details of a given :ref:`Server <tp-configure-servers>`.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
size: | The page number - if pagination was requested in the query parameters, else |
HTTP/1.1 200 OK
Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept, Set-Cookie, Cookie
Access-Control-Allow-Methods: POST,GET,OPTIONS,PUT,DELETE
Access-Control-Allow-Origin: *
Content-Encoding: gzip
Content-Type: application/json
Set-Cookie: mojolicious=...; Path=/; Expires=Mon, 24 Feb 2020 01:27:36 GMT; Max-Age=3600; HttpOnly
Whole-Content-Sha512: HW2F3CEpohNAvNlEDhUfXmtwpEka4dwUWFVUSSjW98aXiv10vI6ysRIcC2P9huabCz5fdHqY3tp0LR4ekwEHqw==
X-Server-Name: traffic_ops_golang/
Date: Mon, 24 Feb 2020 00:27:36 GMT
Content-Length: 493
{
"limit": 1000,
"orderby": "hostName",
"response": [
{
"cachegroup": "CDN_in_a_Box_Edge",
"cdnName": "CDN-in-a-Box",
"deliveryservices": [
1
],
"domainName": "infra.ciab.test",
"guid": null,
"hardwareInfo": null,
"hostName": "edge",
"httpsPort": 443,
"id": 5,
"iloIpAddress": "",
"iloIpGateway": "",
"iloIpNetmask": "",
"iloPassword": "",
"iloUsername": "",
"mgmtIpAddress": "",
"mgmtIpGateway": "",
"mgmtIpNetmask": "",
"offlineReason": "",
"physLocation": "Apachecon North America 2018",
"profile": "ATS_EDGE_TIER_CACHE",
"profileDesc": "Edge Cache - Apache Traffic Server",
"rack": "",
"routerHostName": "",
"routerPortName": "",
"status": "REPORTED",
"tcpPort": 80,
"type": "EDGE",
"xmppId": "edge",
"xmppPasswd": "",
"interfaces": [
{ "ipAddresses": [
{
"address": "172.16.239.100",
"gateway": "172.16.239.1",
"service_address": true
},
{
"address": "fc01:9400:1000:8::100",
"gateway": "fc01:9400:1000:8::1",
"service_address": true
}
],
"max_bandwidth": 0,
"monitor": true,
"mtu": 1500,
"name": "eth0"
}
]
}
],
"size": 1
}
[1] | (1, 2, 3, 4, 5) For more information see the Wikipedia page on Lights-Out management. |