Description
The Unit is B/s(Byte/second)
Request URL
Compute API v2.0 GET /v2/{tenant_id}/servers/{server_id}/rrd/interface?port_id={port_id}
Request Paramters
Parameter | Value | Style | Description |
---|---|---|---|
X-Auth-Token | User Token | header | |
tenant_id | URI | ||
server_id | Server ID | URI | |
port_id (Required) | Port ID | query | |
start_date_raw (Optional) | Starting time (UNIX Time) | query | Default: 1 day ago |
end_date_raw (Optional) | Ending Time (UNIX Time) | query | Default: Current Time |
mode (Optional) | Mode of Data Handling | query | {average,max,min} Default: average |
Normal response codes
200
Example
curl -i -X GET \ -H "Accept: application/json" \ -H "X-Auth-Token: 35941e7df872405d84e5b026dba8323c" \ https://compute.tyo1.cloud.z.com/v2/1864e71d2deb46f6b47526b69c65a45d/servers/e25b3611-96df-4514-a54b-7729aec48dc1/rrd/interface?port_id={port_id}\&start_date_raw=1426529435\&end_date_raw=1426532835\&mode=average
HTTP/1.1 200 OK Date: Thu, 19 Mar 2015 01:31:26 GMT Server: Apache Content-Length: 1337 Content-Type: application/json { "interface": { "schema": [ "unixtime", "rx", "tx" ], "data": [ [ 1426529500, 70.584, 0.624 ], (snip) [ 1426532000, 43.44, 0.264 ], [ 1426532500, 37.624, 0.624 ], [ 1426533000, 45.948, 0.264 ] ] } }