Get CDN service live reports

URL

https://cdnsun.com/api/cdns/[ID]/live-reports

Method

GET

Curl example

curl -i -X GET -u username:password -H 'Accept: application/json' -H 'Content-type: application/json' --url 'https://cdnsun.com/api/cdns/[ID]/live-reports?type=MBPS&period=1h'

Options

OptionData TypeDescriptionExampleKnown ValuesNote
IDintegerSpecify the CDN service ID for live reports.5  
periodstringSpecify the time period for live reports.1h1h, 2h, 4h, 12h, 24h, 48h, 7d, 14dIt is a mandatory option when start and end options are not set.
startstringSpecify the start time for live reports.2014-01-15T01:23:00+01:00  
endstringSpecify the end time for live reports.2014-01-19T14:56:00+01:00  
type*stringSpecify the type of live reports.MBPSMBPS, GB, CODES
location_idsarrayFilter live reports by indicated CDN location integer ID(s).[1, 2] Example query string: ?location_ids[]=1&location_ids[]=2
cdn_idsarrayFilter live reports by indicated CDN service integer ID(s).[1, 2] Example query string: ?cdn_ids[]=1

Note

The stat_time property of the live reports is in the ISO 8601 (with timezone) format. To change your timezone please visit the Billing/Settings section.

When you set start and end options then the period option is not needed and it is ignored. The start and end options are expected to be in the ISO 8601 format in your timezone. To change your timezone please visit the Billing/Settings section.

Please note that live reports are kept for the last 14 days. Please refer to CDN Usage Reports for more details.

Please note that for wide time frames live reports are automatically aggregated.

Contact Us

 ______     ______    _____   
|      \\  /_   _//  |__  //  
|  --  //   -| ||-     / //   
|  --  \\   _| ||_    / //__  
|______//  /_____//  /_____|| 
`------`   `-----`   `-----`