Server¶
/api/1.1/servers¶
GET /api/1.1/servers
Retrieves properties of CDN servers.
Authentication Required: Yes
Role(s) Required: None
Request Query Parameters
Name Required Description dsIdno Used to filter servers by delivery service. statusno Used to filter servers by status. typeno Used to filter servers by type. Response Properties
Parameter Type Description cachegroupstring The cache group name (see Cache Group). cachegroupIdstring The cache group id. cdnIdstring Id of the CDN to which the server belongs to. cdnNamestring Name of the CDN to which the server belongs to. domainNamestring The domain name part of the FQDN of the cache. guidstring An identifier used to uniquely identify the server. hostNamestring The host name part of the cache. httpsPortstring The HTTPS port on which the main application listens (443 in most cases). idstring The server id (database row number). iloIpAddressstring The IPv4 address of the lights-out-management port. iloIpGatewaystring The IPv4 gateway address of the lights-out-management port. iloIpNetmaskstring The IPv4 netmask of the lights-out-management port. iloPasswordstring The password of the of the lights-out-management user (displays as ** unless you are an ‘admin’ user). iloUsernamestring The user name for lights-out-management. interfaceMtustring The Maximum Transmission Unit (MTU) to configure for interfaceName.interfaceNamestring The network interface name used for serving traffic. ip6Addressstring The IPv6 address/netmask for interfaceName.ip6Gatewaystring The IPv6 gateway for interfaceName.ipAddressstring The IPv4 address for interfaceName.ipGatewaystring The IPv4 gateway for interfaceName.ipNetmaskstring The IPv4 netmask for interfaceName.lastUpdatedstring The Time and Date for the last update for this server. mgmtIpAddressstring The IPv4 address of the management port (optional). mgmtIpGatewaystring The IPv4 gateway of the management port (optional). mgmtIpNetmaskstring The IPv4 netmask of the management port (optional). offlineReasonstring A user-entered reason why the server is in ADMIN_DOWN or OFFLINE status. physLocationstring The physical location name (see Physical Location). physLocationIdstring The physical location id (see Physical Location). profilestring The assigned profile name (see Profiles). profileDescstring The assigned profile description (see Profiles). profileIdstring The assigned profile Id (see Profiles). rackstring A string indicating rack location. routerHostNamestring The human readable name of the router. routerPortNamestring The human readable name of the router port. statusstring The Status string (See Status). statusIdstring The Status id (See Status). tcpPortstring The default TCP port on which the main application listens (80 for a cache in most cases). typestring The name of the type of this server (see Types). typeIdstring The id of the type of this server (see Types). updPendingbool Response Example
{ "response": [ { "cachegroup": "us-il-chicago", "cachegroupId": "3", "cdnId": "3", "cdnName": "CDN-1", "domainName": "chi.kabletown.net", "guid": null, "hostName": "atsec-chi-00", "id": "19", "iloIpAddress": "172.16.2.6", "iloIpGateway": "172.16.2.1", "iloIpNetmask": "255.255.255.0", "iloPassword": "********", "iloUsername": "", "interfaceMtu": "9000", "interfaceName": "bond0", "ip6Address": "2033:D0D0:3300::2:2/64", "ip6Gateway": "2033:D0D0:3300::2:1", "ipAddress": "10.10.2.2", "ipGateway": "10.10.2.1", "ipNetmask": "255.255.255.0", "lastUpdated": "2015-03-08 15:57:32", "mgmtIpAddress": "", "mgmtIpGateway": "", "mgmtIpNetmask": "", "offlineReason": "N/A", "physLocation": "plocation-chi-1", "physLocationId": "9", "profile": "EDGE1_CDN1_421_SSL", "profileDesc": "EDGE1_CDN1_421_SSL profile", "profileId": "12", "rack": "RR 119.02", "routerHostName": "rtr-chi.kabletown.net", "routerPortName": "2", "status": "ONLINE", "statusId": "6", "tcpPort": "80", "httpsPort": "443", "type": "EDGE", "typeId": "3", "updPending": false }, { ... more server data } ] }
GET /api/1.1/servers/:id
Retrieves properties of a CDN server by server ID.
Authentication Required: Yes
Role(s) Required: None
Request Route Parameters
Name Required Description idyes Server id. Response Properties
Parameter Type Description cachegroupstring The cache group name (see Cache Group). cachegroupIdstring The cache group id. cdnIdstring Id of the CDN to which the server belongs to. cdnNamestring Name of the CDN to which the server belongs to. domainNamestring The domain name part of the FQDN of the cache. guidstring An identifier used to uniquely identify the server. hostNamestring The host name part of the cache. httpsPortstring The HTTPS port on which the main application listens (443 in most cases). idstring The server id (database row number). iloIpAddressstring The IPv4 address of the lights-out-management port. iloIpGatewaystring The IPv4 gateway address of the lights-out-management port. iloIpNetmaskstring The IPv4 netmask of the lights-out-management port. iloPasswordstring The password of the of the lights-out-management user (displays as ** unless you are an ‘admin’ user). iloUsernamestring The user name for lights-out-management. interfaceMtustring The Maximum Transmission Unit (MTU) to configure for interfaceName.interfaceNamestring The network interface name used for serving traffic. ip6Addressstring The IPv6 address/netmask for interfaceName.ip6Gatewaystring The IPv6 gateway for interfaceName.ipAddressstring The IPv4 address for interfaceName.ipGatewaystring The IPv4 gateway for interfaceName.ipNetmaskstring The IPv4 netmask for interfaceName.lastUpdatedstring The Time and Date for the last update for this server. mgmtIpAddressstring The IPv4 address of the management port (optional). mgmtIpGatewaystring The IPv4 gateway of the management port (optional). mgmtIpNetmaskstring The IPv4 netmask of the management port (optional). offlineReasonstring A user-entered reason why the server is in ADMIN_DOWN or OFFLINE status. physLocationstring The physical location name (see Physical Location). physLocationIdstring The physical location id (see Physical Location). profilestring The assigned profile name (see Profiles). profileDescstring The assigned profile description (see Profiles). profileIdstring The assigned profile Id (see Profiles). rackstring A string indicating rack location. routerHostNamestring The human readable name of the router. routerPortNamestring The human readable name of the router port. statusstring The Status string (See Status). statusIdstring The Status id (See Status). tcpPortstring The default TCP port on which the main application listens (80 for a cache in most cases). typestring The name of the type of this server (see Types). typeIdstring The id of the type of this server (see Types). updPendingbool Response Example
{ "response": [ { "cachegroup": "us-il-chicago", "cachegroupId": "3", "cdnId": "3", "cdnName": "CDN-1", "domainName": "chi.kabletown.net", "guid": null, "hostName": "atsec-chi-00", "id": "19", "iloIpAddress": "172.16.2.6", "iloIpGateway": "172.16.2.1", "iloIpNetmask": "255.255.255.0", "iloPassword": "********", "iloUsername": "", "interfaceMtu": "9000", "interfaceName": "bond0", "ip6Address": "2033:D0D0:3300::2:2/64", "ip6Gateway": "2033:D0D0:3300::2:1", "ipAddress": "10.10.2.2", "ipGateway": "10.10.2.1", "ipNetmask": "255.255.255.0", "lastUpdated": "2015-03-08 15:57:32", "mgmtIpAddress": "", "mgmtIpGateway": "", "mgmtIpNetmask": "", "offlineReason": "N/A", "physLocation": "plocation-chi-1", "physLocationId": "9", "profile": "EDGE1_CDN1_421_SSL", "profileDesc": "EDGE1_CDN1_421_SSL profile", "profileId": "12", "rack": "RR 119.02", "routerHostName": "rtr-chi.kabletown.net", "routerPortName": "2", "status": "ONLINE", "statusId": "6", "tcpPort": "80", "httpsPort": "443", "type": "EDGE", "typeId": "3", "updPending": false } ] }
GET /api/1.1/servers/summary
Retrieves a count of CDN servers by type.
Authentication Required: Yes
Role(s) Required: None
Response Properties
Parameter Type Description countint The number of servers of this type in this instance of Traffic Ops. typestring The name of the type of the server count (see Types). Response Example
{ "response": [ { "count": 4, "type": "CCR" }, { "count": 55, "type": "EDGE" }, { "type": "MID", "count": 18 }, { "count": 0, "type": "INFLUXDB" }, { "count": 4, "type": "RASCAL" } }
GET /api/1.1/servers/hostname/:name/details
Retrieves the details of a server.
Authentication Required: Yes
Role(s) Required: None
Request Route Parameters
Name Required Description nameyes The host name part of the cache. Response Properties
Parameter Type Description cachegroupstring The cache group name (see Cache Group). deliveryservicesarray Array of strings with the delivery service ids assigned (see Delivery Service). domainNamestring The domain name part of the FQDN of the cache. hardwareInfohash Hwinfo struct (see Hardware Info). hostNamestring The host name part of the cache. idstring The server id (database row number). iloIpAddressstring The IPv4 address of the lights-out-management port. iloIpGatewaystring The IPv4 gateway address of the lights-out-management port. iloIpNetmaskstring The IPv4 netmask of the lights-out-management port. iloPasswordstring The password of the of the lights-out-management user (displays as ** unless you are an ‘admin’ user). iloUsernamestring The user name for lights-out-management. interfaceMtustring The Maximum Transmission Unit (MTU) to configure for interfaceName.interfaceNamestring The network interface name used for serving traffic. ip6Addressstring The IPv6 address/netmask for interfaceName.ip6Gatewaystring The IPv6 gateway for interfaceName.ipAddressstring The IPv4 address for interfaceName.ipGatewaystring The IPv4 gateway for interfaceName.ipNetmaskstring The IPv4 netmask for interfaceName.lastUpdatedstring The Time/Date of the last update for this server. mgmtIpAddressstring The IPv4 address of the management port (optional). mgmtIpGatewaystring The IPv4 gateway of the management port (optional). mgmtIpNetmaskstring The IPv4 netmask of the management port (optional). physLocationstring The physical location name (see Physical Location). profilestring The assigned profile name (see Profiles). rackstring A string indicating rack location. routerHostNamestring The human readable name of the router. routerPortNamestring The human readable name of the router port. statusstring The Status string (See Status). tcpPortstring The default TCP port on which the main application listens (80 for a cache in most cases). httpsPortstring The default HTTPS port on which the main application listens (443 for a cache in most cases). typestring The name of the type of this server (see Types). xmppIdstring Deprecated. xmppPasswdstring Deprecated. Response Example
{ "response": { "cachegroup": "us-il-chicago", "deliveryservices": [ "1", "2", "3", "4" ], "domainName": "chi.kabletown.net", "hardwareInfo": { "Physical Disk 0:1:3": "D1S2", "Physical Disk 0:1:2": "D1S2", "Physical Disk 0:1:15": "D1S2", "Power Supply.Slot.2": "04.07.15", "Physical Disk 0:1:24": "YS08", "Physical Disk 0:1:1": "D1S2", "Model": "PowerEdge R720xd", "Physical Disk 0:1:22": "D1S2", "Physical Disk 0:1:18": "D1S2", "Enterprise UEFI Diagnostics": "4217A5", "Lifecycle Controller": "1.0.8.42", "Physical Disk 0:1:8": "D1S2", "Manufacturer": "Dell Inc.", "Physical Disk 0:1:6": "D1S2", "SysMemTotalSize": "196608", "PopulatedDIMMSlots": "24", "Physical Disk 0:1:20": "D1S2", "Intel(R) Ethernet 10G 2P X520 Adapter": "13.5.7", "Physical Disk 0:1:14": "D1S2", "BACKPLANE FIRMWARE": "1.00", "Dell OS Drivers Pack, 7.0.0.29, A00": "7.0.0.29", "Integrated Dell Remote Access Controller": "1.57.57", "Physical Disk 0:1:5": "D1S2", "ServiceTag": "D6XPDV1", "PowerState": "2", "Physical Disk 0:1:23": "D1S2", "Physical Disk 0:1:25": "D903", "BIOS": "1.3.6", "Physical Disk 0:1:12": "D1S2", "System CPLD": "1.0.3", "Physical Disk 0:1:4": "D1S2", "Physical Disk 0:1:0": "D1S2", "Power Supply.Slot.1": "04.07.15", "PERC H710P Mini": "21.0.2-0001", "PowerCap": "689", "Physical Disk 0:1:16": "D1S2", "Physical Disk 0:1:10": "D1S2", "Physical Disk 0:1:11": "D1S2", "Lifecycle Controller 2": "1.0.8.42", "BP12G+EXP 0:1": "1.07", "Physical Disk 0:1:9": "D1S2", "Physical Disk 0:1:17": "D1S2", "Broadcom Gigabit Ethernet BCM5720": "7.2.20", "Physical Disk 0:1:21": "D1S2", "Physical Disk 0:1:13": "D1S2", "Physical Disk 0:1:7": "D1S2", "Physical Disk 0:1:19": "D1S2" }, "hostName": "atsec-chi-00", "id": "19", "iloIpAddress": "172.16.2.6", "iloIpGateway": "172.16.2.1", "iloIpNetmask": "255.255.255.0", "iloPassword": "********", "iloUsername": "", "interfaceMtu": "9000", "interfaceName": "bond0", "ip6Address": "2033:D0D0:3300::2:2/64", "ip6Gateway": "2033:D0D0:3300::2:1", "ipAddress": "10.10.2.2", "ipGateway": "10.10.2.1", "ipNetmask": "255.255.255.0", "mgmtIpAddress": "", "mgmtIpGateway": "", "mgmtIpNetmask": "", "physLocation": "plocation-chi-1", "profile": "EDGE1_CDN1_421_SSL", "rack": "RR 119.02", "routerHostName": "rtr-chi.kabletown.net", "routerPortName": "2", "status": "ONLINE", "tcpPort": "80", "httpsPort": "443", "type": "EDGE", "xmppId": "atsec-chi-00-dummyxmpp", "xmppPasswd": "X" } }
POST /api/1.1/servercheck
Post a server check result to the serverchecks table.
Authentication Required: Yes
Role(s) Required: None
Request Route Parameters
Name Required Description idyes host_nameyes servercheck_short_nameyes valueyes Request Example
{ "id": "", "host_name": "", "servercheck_short_name": "", "value": "" }
Response Properties
Parameter Type Description alertsarray A collection of alert messages. >levelstring Success, info, warning or error. >textstring Alert message. versionstring Response Example
Response Example: { "alerts": [ { "level": "success", "text": "Server Check was successfully updated." } ], }