NetDNA API Docs
NetDNA is a content delivery network ("CDN") provider.
Index
Overview
-
Sign up for a free NetDNA developer account.
-
Create a new application.
-
Integrate with our RESTful API using your language wrapper:
- Node (NPM) https://github.com/netdna/node-netdna
- .NET https://github.com/netdna/netdnarws-net
- Ruby https://github.com/netdna/netdnarws-ruby
- Python https://github.com/netdna/netdnarws
- PHP https://github.com/netdna/netdnarws-php
- Perl https://github.com/netdna/netdnarws-perl
Follow the documentation for our API below!
Support
Have a question? Check out our Knowledge base to see if your question has already been answered.
Still need help? Visit our Contact page to get in touch.
Feel free to tweet and follow us @netdna and @netdnasupport.
Changelog
- 2013-03-29 Added "Bad Request" for Purges without file(s) parameter in body
- 2013-03-14 Added .ie to the TLD Validation
- 2013-03-12 Added single file Purge to use cURL multi
- 2013-03-12 Fixed SSL Update Bug
- 2013-03-08 cURL Multi Purge Files
- 2013-03-07 Fix 3-legged OAuth Restriction
- 2013-01-16 Fixed SSL Bug
- 2012-12-05 Added 2xx_hit calculation to all
statuscodebyfilename
Reports - 2012-02-27 Released Alpha Version of RWS API.
Key: Path Parameters
Parameter | Description |
---|---|
{companyalias} | The alias you used when creating your account |
{zone_type} | The type of zone you are making a request on - one of push,pull, vod, or live |
{report_type} | The format you want the reports summarized by - one of hourly,daily, or monthly. This value can be left blank to receive thetotals ungrouped. |
Account API
Get Account
Gets account information
Response Parameters
Parameter | Description |
--- | --- | ---
id
| Account ID |
name
| The name of your account |
address_id
| Address ID |
alias
| Company Alias |
ssl_credits
| SSL Credits |
flex_credits
| Flex Location Credits |
date_created
| Date Created |
date_updated
| Date Updated |
Update Account
Updates account information
Accepted Request Parameters
Parameter | Default Value | Validation | Description |
--- | --- | --- | --- | ---
name
| - | required
length: 1-30 chars | The name of your account |
Response Parameters
Parameter | Description |
--- | --- | ---
id
| Account ID |
name
| The name of your account |
address_id
| Address ID |
alias
| Company Alias |
ssl_credits
| SSL Credits |
flex_credits
| Flex Location Credits |
date_created
| Date Created |
date_updated
| Date Updated |
Get Account Address
Gets account address information
Response Parameters
Parameter | Description |
--- | --- | ---
id
| Address ID |
street1
| Street Address Line 1 |
street2
| Street Address Line 2 |
city
| City |
state
| State |
zip
| ZIP |
country
| Country Code |
date_created
| Date Created |
date_updated
| Date Updated |
Update Account Address
Updates account address information
Accepted Request Parameters
Parameter | Default Value | Validation | Description |
--- | --- | --- | --- | ---
street1
| - | length: 1-200 chars | Street Address Line 1 |
street2
| - | length: 1-200 chars | Street Address Line 2 |
city
| - | length: 1-50 chars | City |
state
| - | length: 1-50 chars | State |
zip
| - | length: 3-5 chars; only digits accepted | ZIP |
country
| - | length: 2 chars | Country Code |
Response Parameters
Parameter | Description |
--- | --- | ---
id
| Address ID |
street1
| Street Address Line 1 |
street2
| Street Address Line 2 |
city
| City |
state
| State |
zip
| ZIP |
country
| Country Code |
date_created
| Date Created |
date_updated
| Date Updated |
Users API
List Users
Returns a list of all users on the specified account
Response Parameters
Parameter | Description |
--- | --- | ---
id
| User ID |
email
| Email Address |
firstname
| First Name |
lastname
| Last Name |
phone
| Phone Number |
timezone
| User's Timezone |
date_last_login
| The date and time the user last logged into the system |
ip_last_login
| The IP for the user at the last login |
date_created
| Date Created |
date_updated
| Date Updated |
roles
| An array of roles for the given user |
Create User
Creates a new user on the specified account
Accepted Request Parameters
Parameter | Default Value | Validation | Description |
--- | --- | --- | --- | ---
email
| - | required
length: 6-200 chars; valid email address | Email Address |
password
| - | required
length: 5-30 chars | Password |
firstname
| - | required
length: 1-32 chars | First Name |
lastname
| - | required
length: 1-32 chars | Last Name |
phone
| - | length: 7, 10, 11, or 14 chars; only digits considered | Phone Number |
timezone
| - | valid::timezone | Valid timezone (see List ofSupported Timezones) |
Response Parameters
Parameter | Description |
--- | --- | ---
id
| User ID |
email
| Email Address |
firstname
| First Name |
lastname
| Last Name |
phone
| Phone Number |
timezone
| User's Timezone |
date_last_login
| The date and time the user last logged into the system |
ip_last_login
| The IP for the user at the last login |
date_created
| Date Created |
date_updated
| Date Updated |
roles
| An array of roles for the given user |
Get User
Gets a user specified by the {user_id} parameter
Response Parameters
Parameter | Description |
--- | --- | ---
id
| User ID |
email
| Email Address |
firstname
| First Name |
lastname
| Last Name |
phone
| Phone Number |
timezone
| User's Timezone |
Update User
Updates a user specified by the {user_id} parameter
Accepted Request Parameters
Parameter | Default Value | Validation | Description |
--- | --- | --- | --- | ---
email
| - | length: 6-200 chars; valid email address | Email Address |
firstname
| - | length: 1-32 chars | First Name |
lastname
| - | length: 1-32 chars | Last Name |
phone
| - | length: 7, 10, 11, or 14 chars; only digits considered | Phone Number |
timezone
| - | valid::timezone | Valid timezone (see List ofSupported Timezones) |
Response Parameters
Parameter | Description |
--- | --- | ---
id
| User ID |
email
| Email Address |
firstname
| First Name |
lastname
| Last Name |
phone
| Phone Number |
timezone
| User's Timezone |
Delete User
Deletes a user specified by the {user_id} parameter
Zones API
List Zones
Returns a list of all zones on the specified account
Get Zone Summary
Gets a summarized count of all zone types on the specified account
Response Parameters
Parameter | Description |
--- | --- | ---
pull
| The number of pull zones for your account |
push
| The number of push zones for your account |
vod
| The number of vod zones for your account |
live
| The number of live zones for your account |
Get Zone Count
Counts all zones on the specified account
Response Parameters
Parameter | Description |
--- | --- | ---
count
| The total number of content zones for your account |
Pull Zone API
List Pull Zones
Returns a list of all pull zones on the specified account
Response Parameters
Parameter | Description |
--- | --- | ---
id
| Pull Zone ID |
name
| Pull Zone name |
url
| Origin URL |
port
| Port |
ip
| IP address of the Origin URL |
compress
| On the fly compression of your files served from our edges.GZip compression for the following file types: text/plain,text/html, text/javascript, text/css, text/xml,application/javascript, application/x-javascript, application/xml,text/x-component, application/json, application/xhtml+xml,application/rss+xml, application/atom+xml, app/vnd.ms-fontobject,image/svg+xml, application/x-font-ttf, font/opentype |
backend_compress
| Allow us to cache compressed versions of your files from theorigin. GZip compression for the following file types: text/plain,text/html, text/javascript, text/css, text/xml,application/javascript, application/x-javascript, application/xml,text/x-component, application/json, application/xhtml+xml,application/rss+xml, application/atom+xml, app/vnd.ms-fontobject,image/svg+xml, application/x-font-ttf, font/opentype |
queries
| Treat Query Strings as a separate cacheable item |
set_host_header
| The URL sent as the Host in all HTTP Response Headers |
cache_valid
| Ignore the origin Cache-Control Header and set every request tohave a Max-Age of 1d, 7d, 1M or 12M |
ignore_setcookie_header
| Ignore any cookies set by the origin in order to make thecontent consistently cacheable |
ignore_cache_control
| Ignore any max age values set by the origin and use the CDN setvalue instead |
use_stale
| Serve expired content while fetching new content. This willalso cause the CDN to serve expired content in cases where theorigin is down or the file is not found |
proxy_cache_lock
| When multiple requests for an uncached file are received, theywill wait until the first response is received rather than sendingeach request back to the origin |
label
| Something that describes your zone |
valid_referers
| List of domains for http referrer protection (separated byspace). Only the domains in the list will be treated as validreferrers |
expires
| Set any request with a no "Cache-Control header" from theorigin to stay on the server. Possible values are 1d, 7d, 1M,12M |
disallow_robots
| Enable robots.txt |
disallow_robots_txt
| Use custom robots.txt |
canonical_link_headers
| Pass the canonical URL in the Link HTTP Header |
content_disposition
| Force files to download |
pseudo_streaming
| Enable the zone for pseudo streaming content |
sslshared
| Enable Shared SSL. This feature allows you use your zone inHTTPS mode. You don't need your own SSL certificate, our servernetdna-ssl.com will be used. |
suspend
| Flag denoting if the zone has been suspended |
locked
| Flag denoting if the zone has been locked |
inactive
| Flag denoting if the zone has been deleted |
creation_date
| Date Created |
Create Pull Zone
Creates a new pull zone
Accepted Request Parameters
Parameter | Default Value | Validation | Description |
--- | --- | --- | --- | ---
name
| - | required
length: 3-32 chars; only letters, digits, and dash (-)accepted | Pull Zone Name |
url
| - | required
length: 4-100 chars; only valid URLs accepted | Origin URL |
port
| 80 | length: 1-5 chars; only digits accepted | Port |
ip
| - | length: 1-10 chars, only digits accepted | Valid IP address of the Origin URL. If omitted, the servicewill try to lookup the IP automatically. |
compress
| 0 | only 0 or 1 accepted | On the fly compression of your files served from our edges.Enable GZip compression for the following file types: text/plain,text/html, text/javascript, text/css, text/xml,application/javascript, application/x-javascript, application/xml,text/x-component, application/json, application/xhtml+xml,application/rss+xml, application/atom+xml, app/vnd.ms-fontobject,image/svg+xml, application/x-font-ttf, font/opentype |
backend_compress
| 0 | only 0 or 1 accepted | Allow us to cache compressed versions of your files from theorigin. Enable GZip compression for the following file types:text/plain, text/html, text/javascript, text/css, text/xml,application/javascript, application/x-javascript, application/xml,text/x-component, application/json, application/xhtml+xml,application/rss+xml, application/atom+xml, app/vnd.ms-fontobject,image/svg+xml, application/x-font-ttf, font/opentype |
queries
| 0 | only 0 or 1 accepted | Treat Query Strings as a separate cacheable item |
set_host_header
| - | length: 4-100 chars; only valid URLs accepted | The URL to send as the Host in all HTTP Response Headers |
cache_valid
| 1d | length: 1-30 chars; must be a number followed by one of s, m,h, d, M, or Y | Ignore the origin Cache-Control Header and set every request tohave a Max-Age of 1d, 7d, 1M or 12M |
ignore_setcookie_header
| 0 | only 0 or 1 accepted | Ignore any cookies set by the origin in order to make thecontent consistently cacheable |
ignore_cache_control
| 0 | only 0 or 1 accepted | Ignore any max age values set by the origin and use the CDN setvalue instead |
use_stale
| 0 | only 0 or 1 accepted | Serve expired content while fetching new content. This willalso cause the CDN to serve expired content in cases where theorigin is down or the file is not found |
proxy_cache_lock
| 0 | only 0 or 1 accepted | When multiple requests for an uncached file are received, theywill wait until the first response is received rather than sendingeach request back to the origin |
label
| - | length: 1-255 chars | Something that describes your zone |
valid_referers
| - | length: 1-100 chars | List of domains for http referrer protection (separated byspace). Only the domains in the list will be treated as validreferrers |
expires
| 1d | length: 1-32 chars | Set any request with a no "Cache-Control header" from theorigin to stay on the server. Possible values are 1d, 7d, 1M,12M |
disallow_robots
| 0 | only 0 or 1 accepted | Enable robots.txt |
disallow_robots_txt
| - | length 1-255 chars | Use custom robots.txt |
canonical_link_headers
| 1 | only 0 or 1 accepted | Pass the canonical URL in the Link HTTP Header |
content_disposition
| 0 | only 0 or 1 accepted | Force files to download |
pseudo_streaming
| 0 | only 0 or 1 accepted | Enable the zone for pseudo streaming content |
secret
| - | length: 1 - 32 chars | Use a secret to protect your files from unwanted visitors |
sslshared
| 0 | only 0 or 1 accepted | Enable Shared SSL. This feature allows you use your zone inHTTPS mode. You don't need your own SSL certificate, our servernetdna-ssl.com will be used. |
Response Parameters
Parameter | Description |
--- | --- | ---
id
| Pull Zone ID |
name
| Pull Zone name |
url
| Origin URL |
port
| Port |
ip
| IP address of the Origin URL |
compress
| On the fly compression of your files served from our edges.GZip compression for the following file types: text/plain,text/html, text/javascript, text/css, text/xml,application/javascript, application/x-javascript, application/xml,text/x-component, application/json, application/xhtml+xml,application/rss+xml, application/atom+xml, app/vnd.ms-fontobject,image/svg+xml, application/x-font-ttf, font/opentype |
backend_compress
| Allow us to cache compressed versions of your files from theorigin. GZip compression for the following file types: text/plain,text/html, text/javascript, text/css, text/xml,application/javascript, application/x-javascript, application/xml,text/x-component, application/json, application/xhtml+xml,application/rss+xml, application/atom+xml, app/vnd.ms-fontobject,image/svg+xml, application/x-font-ttf, font/opentype |
queries
| Treat Query Strings as a separate cacheable item |
set_host_header
| The URL sent as the Host in all HTTP Response Headers |
cache_valid
| Ignore the origin Cache-Control Header and set every request tohave a Max-Age of 1d, 7d, 1M or 12M |
ignore_setcookie_header
| Ignore any cookies set by the origin in order to make thecontent consistently cacheable |
ignore_cache_control
| Ignore any max age values set by the origin and use the CDN setvalue instead |
use_stale
| Serve expired content while fetching new content. This willalso cause the CDN to serve expired content in cases where theorigin is down or the file is not found |
proxy_cache_lock
| When multiple requests for an uncached file are received, theywill wait until the first response is received rather than sendingeach request back to the origin |
label
| Something that describes your zone |
valid_referers
| List of domains for http referrer protection (separated byspace). Only the domains in the list will be treated as validreferrers |
expires
| Set any request with a no "Cache-Control header" from theorigin to stay on the server. Possible values are 1d, 7d, 1M,12M |
disallow_robots
| Enable robots.txt |
disallow_robots_txt
| Use custom robots.txt |
canonical_link_headers
| Pass the canonical URL in the Link HTTP Header |
content_disposition
| Force files to download |
pseudo_streaming
| Enable the zone for pseudo streaming content |
sslshared
| Enable Shared SSL. This feature allows you use your zone inHTTPS mode. You don't need your own SSL certificate, our servernetdna-ssl.com will be used. |
suspend
| Flag denoting if the zone has been suspended |
locked
| Flag denoting if the zone has been locked |
inactive
| Flag denoting if the zone has been deleted |
creation_date
| Date Created |
Get Pull Zones Count
Counts all pull zones on the specified account
Response Parameters
Parameter | Description |
--- | --- | ---
count
| The number of pull zones on the specified account |
Get Pull Zone
Gets a pull zone specified by the {zone_id} parameter
Response Parameters
Parameter | Description |
--- | --- | ---
id
| The Pull Zone ID |
name
| Pull Zone name |
url
| Origin URL |
port
| Port |
ip
| Valid IP address of the Origin URL. If omitted, the servicewill try to lookup the IP automatically. |
compress
| On the fly compression of your files served from our edges.GZip compression for the following file types: text/plain,text/html, text/javascript, text/css, text/xml,application/javascript, application/x-javascript, application/xml,text/x-component, application/json, application/xhtml+xml,application/rss+xml, application/atom+xml, app/vnd.ms-fontobject,image/svg+xml, application/x-font-ttf, font/opentype |
backend_compress
| Allow us to cache compressed versions of your files from theorigin. GZip compression for the following file types: text/plain,text/html, text/javascript, text/css, text/xml,application/javascript, application/x-javascript, application/xml,text/x-component, application/json, application/xhtml+xml,application/rss+xml, application/atom+xml, app/vnd.ms-fontobject,image/svg+xml, application/x-font-ttf, font/opentype |
queries
| Treat Query Strings as a separate cacheable item |
set_host_header
| The URL sent as the Host in all HTTP Response Headers |
cache_valid
| Ignore the origin Cache-Control Header and set every request tohave a Max-Age of 1d, 7d, 1M or 12M |
ignore_setcookie_header
| Ignore any cookies set by the origin in order to make thecontent consistently cacheable |
ignore_cache_control
| Ignore any max age values set by the origin and use the CDN setvalue instead |
use_stale
| Serve expired content while fetching new content. This willalso cause the CDN to serve expired content in cases where theorigin is down or the file is not found |
proxy_cache_lock
| When multiple requests for an uncached file are received, theywill wait until the first response is received rather than sendingeach request back to the origin |
label
| Something that describes your zone |
valid_referers
| List of domains for http referrer protection (separated byspace). Only the domains in the list will be treated as validreferrers |
expires
| Set any request with a no "Cache-Control header" from theorigin to stay on the server. Possible values are 1d, 7d, 1M,12M |
disallow_robots
| Enable robots.txt |
disallow_robots_txt
| Use custom robots.txt |
canonical_link_headers
| Pass the canonical URL in the Link HTTP Header |
content_disposition
| Force files to download |
pseudo_streaming
| Enable the zone for pseudo streaming content |
sslshared
| Enable Shared SSL. This feature allows you use your zone in HTTPS mode. You don't need your own SSL certificate, our server netdna-ssl.com will be used. |
suspend
| Flag denoting if the zone has been suspended |
locked
| Flag denoting if the zone has been locked |
inactive
| Flag denoting if the zone has been deleted |
creation_date
| Date Created |
Update Pull Zone
Updates a pull zone specified by the {zone_id} parameter
Accepted Request Parameters
Parameter | Default Value | Validation | Description |
--- | --- | --- | --- | ---
url
| - | length: 4-100 chars; only valid URLs accepted | Origin URL |
port
| 80 | length: 1-5 chars; only digits accepted | Port |
compress
| 0 | only 0 or 1 accepted | On the fly compression of your files served from our edges.Enable GZip compression for the following file types: text/plain
, text/html
, text/javascript
, text/css
, text/xml
, application/javascript
, application/x-javascript
, application/xml
, text/x-component
, application/json
, application/xhtml+xml
, application/rss+xml
, application/atom+xml
, app/vnd.ms-fontobject
, image/svg+xml
, application/x-font-ttf
, font/opentype
|
backend_compress
| 0 | only 0 or 1 accepted | Allow us to cache compressed versions of your files from the origin. Enable GZip compression for the following file types: text/plain
, text/html
, text/javascript
, text/css
, text/xml
, application/javascript
, application/x-javascript
, application/xml
, text/x-component
, application/json
, application/xhtml+xml
, application/rss+xml
, application/atom+xml
, app/vnd.ms-fontobject
, image/svg+xml
, application/x-font-ttf
, font/opentype
|
queries
| 0 | only 0 or 1 accepted | Treat Query Strings as a separate cacheable item |
set_host_header
| - | length: 4-100 chars; only valid URLs accepted | The URL to send as the Host in all HTTP Response Headers |
cache_valid
| - | length: 1-30 chars; must be a number followed by one of s
, m
, h
, d
, M
, or Y
| Ignore the origin Cache-Control Header and set every request to have a Max-Age of 1d
, 7d
, 1M
or 12M
|
ignore_setcookie_header
| 0 | only 0 or 1 accepted | Ignore any cookies set by the origin in order to make the content consistently cacheable |
ignore_cache_control
| 0 | only 0 or 1 accepted | Ignore any max age values set by the origin and use the CDN set value instead |
use_stale
| 0 | only 0 or 1 accepted | Serve expired content while fetching new content. This will also cause the CDN to serve expired content in cases where the origin is down or the file is not found |
proxy_cache_lock
| 0 | only 0 or 1 accepted | When multiple requests for an uncached file are received, they will wait until the first response is received rather than sending each request back to the origin |
label
| - | length: 1-255 chars | Something that describes your zone |
valid_referers
| - | length: 1-100 chars | List of domains for http referrer protection (separated by space). Only the domains in the list will be treated as valid referrers |
expires
| 1d | length: 1-32 chars | Set any request with a no "Cache-Control header" from the origin to stay on the server. Possible values are 1d, 7d, 1M,12M |
disallow_robots
| 0 | only 0 or 1 accepted | Enable robots.txt |
disallow_robots_txt
| - | length: 1-255 chars | Use custom robots.txt |
canonical_link_headers
| 1 | only 0 or 1 accepted | Pass the canonical URL in the Link HTTP Header |
content_disposition
| 0 | only 0 or 1 accepted | Force files to download |
pseudo_streaming
| 0 | only 0 or 1 accepted | Enable the zone for pseudo streaming content |
secret
| - | length: 1 - 32 chars | Use a secret to protect your files from unwanted visitors |
sslshared
| 0 | only 0 or 1 accepted | Enable Shared SSL. This feature allows you use your zone inHTTPS mode. You don't need your own SSL certificate, our servernetdna-ssl.com will be used. |
Response Parameters
Parameter | Description |
--- | --- | ---
id
| Pull Zone ID |
name
| Pull Zone name |
url
| Origin URL |
port
| Port |
ip
| Valid IP address of the Origin URL. If omitted, the servicewill try to lookup the IP automatically. |
compress
| On the fly compression of your files served from our edges.GZip compression for the following file types: text/plain,text/html, text/javascript, text/css, text/xml,application/javascript, application/x-javascript, application/xml,text/x-component, application/json, application/xhtml+xml,application/rss+xml, application/atom+xml, app/vnd.ms-fontobject,image/svg+xml, application/x-font-ttf, font/opentype |
backend_compress
| Allow us to cache compressed versions of your files from theorigin. GZip compression for the following file types: text/plain,text/html, text/javascript, text/css, text/xml,application/javascript, application/x-javascript, application/xml,text/x-component, application/json, application/xhtml+xml,application/rss+xml, application/atom+xml, app/vnd.ms-fontobject,image/svg+xml, application/x-font-ttf, font/opentype |
queries
| Treat Query Strings as a separate cacheable item |
set_host_header
| The URL sent as the Host in all HTTP Response Headers |
cache_valid
| Ignore the origin Cache-Control Header and set every request tohave a Max-Age of 1d, 7d, 1M or 12M |
ignore_setcookie_header
| Ignore any cookies set by the origin in order to make thecontent consistently cacheable |
ignore_cache_control
| Ignore any max age values set by the origin and use the CDN setvalue instead |
use_stale
| Serve expired content while fetching new content. This willalso cause the CDN to serve expired content in cases where theorigin is down or the file is not found |
proxy_cache_lock
| When multiple requests for an uncached file are received, theywill wait until the first response is received rather than sendingeach request back to the origin |
label
| Something that describes your zone |
valid_referers
| List of domains for http referrer protection (separated byspace). Only the domains in the list will be treated as validreferrers |
expires
| Set any request with a no "Cache-Control header" from theorigin to stay on the server. Possible values are 1d, 7d, 1M,12M |
disallow_robots
| Enable robots.txt |
disallow_robots_txt
| Use custom robots.txt |
canonical_link_headers
| Pass the canonical URL in the Link HTTP Header |
content_disposition
| Force files to download |
pseudo_streaming
| Enable the zone for pseudo streaming content |
sslshared
| Enable Shared SSL. This feature allows you use your zone inHTTPS mode. You don't need your own SSL certificate, our servernetdna-ssl.com will be used. |
suspend
| Flag denoting if the zone has been suspended |
locked
| Flag denoting if the zone has been locked |
inactive
| Flag denoting if the zone has been deleted |
creation_date
| Date Created |
Delete Pull Zone
Deletes a pull zone specified by the {zone_id} parameter
Enable Pull Zone
Enables a pull zone specified by the {zone_id} parameter
Disable Pull Zone
Disables a pull zone specified by the {zone_id} parameter
Purge Cache
Purges pull zone cache
Accepted Request Parameters
Parameter | Default Value | Validation | Description |
--- | --- | --- | --- | ---
files
| - | An array containing relative paths of the files to purge (i.e./favicon.ico) |
Code Samples
require 'netdnarws' api = NetDNARWS::NetDNA.new("myalias", "consumer_key", "consumer_secret") api.purge(zone_id) api.purge(zone_id, '/some_file') api.purge(zone_id, ['/some_file', '/another_file'])
from netdnarws import NetDNA api = NetDNA("myalias", "consumer_key", "consumer_secret") api.delete("/zones/pull.json/zone_id/cache") api.delete("/zones/pull.json/zone_id/cache", data={'file': '/my-file.png'})
'/robots.txt'); echo $api->delete('/zones/pull.json/6055/cache', $params); ?>
var netdna = require('netdna')({ companyAlias: 'alias' , consumerKey: 'key' , consumerSecret: 'secret' }) netdna.del('/zones/pull.json/zone_id', callback) function callback(err, response) { if (err) return console.log(err) console.log(response) }
{ code: 200 }
Pull Zone Custom Domains API
List Custom Domains
Returns a list of all custom domains on the zone specified by {zone_id}
Response Parameters
Parameter | Description |
--- | --- | ---
id
| The id of the custom domain |
bucket_id
| The id of the zone the custom domain belongs to |
custom_domain
| A valid custom domain |
Create Custom Domain
Adds a new custom domain to {zone_id}
Accepted Request Parameters
Parameter | Default Value | Validation | Description |
--- | --- | --- | --- | ---
custom_domain
| - | required
length: 1-255 chars, valid::custom_domain, !valid::full_domain | A valid custom domain |
type
| - | Applies only to Vod Zones and must be either 'vod-rtmp','vod-pseudo', 'vod-direct', or 'vod-ftp' | The type of custom domain being created |
Response Parameters
Parameter | Description |
--- | --- | ---
id
| The id of the custom domain |
bucket_id
| The id of the zone the custom domain belongs to |
custom_domain
| The valid custom domain |
Get Custom Domain
Gets a custom domain specified by the {zone_id} and {customdomain_id} parameters
Response Parameters
Parameter | Description |
--- | --- | ---
id
| The id of the custom domain |
bucket_id
| The id of the zone the custom domain belongs to |
custom_domain
| The valid custom domain |
Update Custom Domain
Updates a custom domain specified by the id parameter
Accepted Request Parameters
Parameter | Default Value | Validation | Description |
--- | --- | --- | --- | ---
custom_domain
| - | required
length: 1-255 chars, valid::custom_domain, !valid::full_domain | A new valid custom domain |
Response Parameters
Parameter | Description |
--- | --- | ---
id
| The id of the custom domain |
bucket_id
| The id of the zone the custom domain belongs to |
custom_domain
| The new valid custom domain |
Delete Custom Domain
Deletes a custom domain specified by the {zone_id} and {customdomain_id} parameters
Push Zone API
List Push Zones
Returns a list of all push zones on the specified account
Response Parameters
Parameter | Description |
--- | --- | ---
id
| Push Zone ID |
name
| Push Zone name |
label
| Something that describes your zone |
valid_referers
| List of domains for http referrer protection (separated byspace). Only the domains in the list will be treated as validreferrers |
content_disposition
| Force files to download |
sslshared
| Enable Shared SSL. This feature allows you use your zone inHTTPS mode. You don't need your own SSL certificate, our servernetdna-ssl.com will be used. |
suspend
| Flag denoting if the zone has been suspended |
locked
| Flag denoting if the zone has been locked |
inactive
| Flag denoting if the zone has been deleted |
creation_date
| Date Created |
Create Push Zone
Creates a new push zone
Accepted Request Parameters
Parameter | Default Value | Validation | Description |
--- | --- | --- | --- | ---
name
| - | required
length: 3-30 chars; only letters, digits, and dash (-)accepted | Push Zone name |
password
| - | required
length: 5-30 chars; | Push Zone FTP password |
label
| - | length: 1-255 chars | Something that describes your zone |
valid_referers
| - | length: 1-200 chars | List of domains for http referrer protection (separated byspace). Only the domains in the list will be treated as validreferrers |
content_disposition
| 0 | only 0 or 1 accepted | Force files to download |
sslshared
| 0 | only 0 or 1 accepted | Enable Shared SSL. This feature allows you use your zone inHTTPS mode. You don't need your own SSL certificate, our servernetdna-ssl.com will be used. |
Response Parameters
Parameter | Description |
--- | --- | ---
id
| Push Zone ID |
name
| Push Zone name |
label
| Something that describes your zone |
valid_referers
| List of domains for http referrer protection (separated byspace). Only the domains in the list will be treated as validreferrers |
content_disposition
| Force files to download |
sslshared
| Enable Shared SSL. This feature allows you use your zone inHTTPS mode. You don't need your own SSL certificate, our servernetdna-ssl.com will be used. |
suspend
| Flag denoting if the zone has been suspended |
locked
| Flag denoting if the zone has been locked |
inactive
| Flag denoting if the zone has been deleted |
creation_date
| Date Created |
Get Push Zones Count
Counts all push zones on the specified account
Response Parameters
Parameter | Description |
--- | --- | ---
count
| The number of push zones on the specified account |
Get Push Zone
Gets a push zone specified by the {zone_id} parameter
Response Parameters
Parameter | Description |
--- | --- | ---
id
| Push Zone ID |
name
| Push Zone name |
label
| Something that describes your zone |
valid_referers
| List of domains for http referrer protection (separated byspace). Only the domains in the list will be treated as validreferrers |
content_disposition
| Force files to download |
sslshared
| Enable Shared SSL. This feature allows you use your zone inHTTPS mode. You don't need your own SSL certificate, our servernetdna-ssl.com will be used. |
suspend
| Flag denoting if the zone has been suspended |
locked
| Flag denoting if the zone has been locked |
inactive
| Flag denoting if the zone has been deleted |
creation_date
| Date Created |
Update Push Zone
Updates a push zone specified by the {zone_id} parameter
Accepted Request Parameters
Parameter | Default Value | Validation | Description |
--- | --- | --- | --- | ---
label
| - | length: 1-255 chars | Something that describes your zone |
valid_referers
| - | length: 1-100 chars | List of domains for http referrer protection (separated byspace). Only the domains in the list will be treated as validreferrers |
content_disposition
| 0 | only 0 or 1 accepted | Force files to download |
sslshared
| 0 | only 0 or 1 accepted | Enable Shared SSL. This feature allows you use your zone inHTTPS mode. You don't need your own SSL certificate, our servernetdna-ssl.com will be used. |
Response Parameters
Parameter | Description |
--- | --- | ---
id
| Push Zone ID |
name
| Push Zone name |
label
| Something that describes your zone |
valid_referers
| List of domains for http referrer protection (separated byspace). Only the domains in the list will be treated as validreferrers |
content_disposition
| Force files to download |
sslshared
| Enable Shared SSL. This feature allows you use your zone inHTTPS mode. You don't need your own SSL certificate, our servernetdna-ssl.com will be used. |
suspend
| Flag denoting if the zone has been suspended |
locked
| Flag denoting if the zone has been locked |
inactive
| Flag denoting if the zone has been deleted |
creation_date
| Date Created |
Delete Push Zone
Deletes a push zone specified by the {zone_id} parameter
Enable Push Zone
Enables a push zone specified by the {zone_id} parameter
Disable Push Zone
Disables a push zone specified by the {zone_id} parameter
Push Zone Custom Domains API
List Custom Domains
Returns a list of all custom domains on the zone specified by {zone_id}
Response Parameters
Parameter | Description |
--- | --- | ---
id
| The id of the custom domain |
bucket_id
| The id of the zone the custom domain belongs to |
custom_domain
| A valid custom domain |
Create Custom Domain
Adds a new custom domain to {zone_id}
Accepted Request Parameters
Parameter | Default Value | Validation | Description |
--- | --- | --- | --- | ---
custom_domain
| - | required
length: 1-255 chars, valid::custom_domain, !valid::full_domain | A valid custom domain |
type
| - | Applies only to Vod Zones and must be either 'vod-rtmp','vod-pseudo', 'vod-direct', or 'vod-ftp' | The type of custom domain being created |
Response Parameters
Parameter | Description |
--- | --- | ---
id
| The id of the custom domain |
bucket_id
| The id of the zone the custom domain belongs to |
custom_domain
| The valid custom domain |
Get Custom Domain
Gets a custom domain specified by the {zone_id} and {customdomain_id} parameters
Response Parameters
Parameter | Description |
--- | --- | ---
id
| The id of the custom domain |
bucket_id
| The id of the zone the custom domain belongs to |
custom_domain
| The valid custom domain |
Update Custom Domain
Updates a custom domain specified by the id parameter
Accepted Request Parameters
Parameter | Default Value | Validation | Description |
--- | --- | --- | --- | ---
custom_domain
| - | required
length: 1-255 chars, valid::custom_domain, !valid::full_domain | A new valid custom domain |
Response Parameters
Parameter | Description |
--- | --- | ---
id
| The id of the custom domain |
bucket_id
| The id of the zone the custom domain belongs to |
custom_domain
| The new valid custom domain |
Delete Custom Domain
Deletes a custom domain specified by the {zone_id} and {customdomain_id} parameters
VOD Zone API
List VOD Zones
Returns a list of all VOD zones on the specified account
Response Parameters
Parameter | Description |
--- | --- | ---
id
| VOD Zone ID |
name
| VOD Zone name |
label
| The zone's description |
suspend
| Flag denoting if the zone has been suspended |
locked
| Flag denoting if the zone has been locked |
inactive
| Flag denoting if the zone has been deleted |
creation_date
| Date Created |
Create VOD Zone
Creates a new VOD zone
Accepted Request Parameters
Parameter | Default Value | Validation | Description |
--- | --- | --- | --- | ---
name
| - | required
length: 3-30 chars; only letters, digits, and dash (-)accepted | VOD Zone user name |
password
| - | required
length: 5-30 chars | Your desired password |
token
| - | length: 1-64 chars | The token value (shared secret) for secure streaming |
label
| - | length: 1-255 chars | Something that describes your zone |
Response Parameters
Parameter | Description |
--- | --- | ---
id
| VOD Zone ID |
name
| VOD Zone name |
label
| The zone's description |
suspend
| Flag denoting if the zone has been suspended |
locked
| Flag denoting if the zone has been locked |
inactive
| Flag denoting if the zone has been deleted |
creation_date
| Date Created |
Get VOD Zones Count
Counts all vod zones on the specified account
Response Parameters
Parameter | Description |
--- | --- | ---
count
| The number of vod zones on the specified account |
Get VOD Zone
Gets a VOD zone specified by the {zone_id} parameter
Response Parameters
Parameter | Description |
--- | --- | ---
id
| VOD Zone ID |
name
| VOD Zone name |
label
| The zone's description |
suspend
| Flag denoting if the zone has been suspended |
locked
| Flag denoting if the zone has been locked |
inactive
| Flag denoting if the zone has been deleted |
creation_date
| Date Created |
Update VOD Zone
Updates a VOD zone specified by the {zone_id} parameter
Accepted Request Parameters
Parameter | Default Value | Validation | Description |
--- | --- | --- | --- | ---
password
| - | length: 5-30 chars | Your desired password |
token
| - | length: 1-64 chars | The token value (shared secret) for secure streaming |
label
| - | length: 1-255 chars | Something that describes your zone |
Response Parameters
Parameter | Description |
--- | --- | ---
id
| VOD Zone ID |
name
| VOD Zone name |
label
| The zone's description |
suspend
| Flag denoting if the zone has been suspended |
locked
| Flag denoting if the zone has been locked |
inactive
| Flag denoting if the zone has been deleted |
creation_date
| Date Created |
Delete VOD Zone
Deletes a VOD zone specified by the {zone_id} parameter
Enable VOD Zone
Enables a VOD zone specified by the {zone_id} parameter
Disable VOD Zone
Disables a VOD zone specified by the {zone_id} parameter
VOD Zone Custom Domains API
List Custom Domains
Returns a list of all custom domains on the zone specified by {zone_id}
Response Parameters
Parameter | Description |
--- | --- | ---
id
| The id of the custom domain |
bucket_id
| The id of the zone the custom domain belongs to |
custom_domain
| A valid custom domain |
Create Custom Domain
Adds a new custom domain to {zone_id}
Accepted Request Parameters
Parameter | Default Value | Validation | Description |
--- | --- | --- | --- | ---
custom_domain
| - | required
length: 1-255 chars, valid::custom_domain, !valid::full_domain | A valid custom domain |
type
| - | Applies only to Vod Zones and must be either 'vod-rtmp','vod-pseudo', 'vod-direct', or 'vod-ftp' | The type of custom domain being created |
Response Parameters
Parameter | Description |
--- | --- | ---
id
| The id of the custom domain |
bucket_id
| The id of the zone the custom domain belongs to |
custom_domain
| The valid custom domain |
Get Custom Domain
Gets a custom domain specified by the {zone_id} and {customdomain_id} parameters
Response Parameters
Parameter | Description |
--- | --- | ---
id
| The id of the custom domain |
bucket_id
| The id of the zone the custom domain belongs to |
custom_domain
| The valid custom domain |
Update Custom Domain
Updates a custom domain specified by the id parameter
Accepted Request Parameters
Parameter | Default Value | Validation | Description |
--- | --- | --- | --- | ---
custom_domain
| - | required
length: 1-255 chars, valid::custom_domain, !valid::full_domain | A new valid custom domain |
Response Parameters
Parameter | Description |
--- | --- | ---
id
| The id of the custom domain |
bucket_id
| The id of the zone the custom domain belongs to |
custom_domain
| The new valid custom domain |
Delete Custom Domain
Deletes a custom domain specified by the {zone_id} and {customdomain_id} parameters
Live Zone API
List Live Zones
Returns a list of all live zones on the specified account
Response Parameters
Parameter | Description |
--- | --- | ---
id
| Live Zone ID |
name
| Live Zone name |
label
| The zone's description |
suspend
| Flag denoting if the zone has been suspended |
locked
| Flag denoting if the zone has been locked |
inactive
| Flag denoting if the zone has been deleted |
creation_date
| Date Created |
Create Live Zone
Creates a new live zone
Accepted Request Parameters
Parameter | Default Value | Validation | Description |
--- | --- | --- | --- | ---
name
| - | required
length: 3-30 chars; only letters, digits, and dash (-)accepted | Your desired zone name |
password
| - | length: 5-30 chars | Your desired password |
label
| - | length: 1-255 chars | Something that describes your zone |
Response Parameters
Parameter | Description |
--- | --- | ---
id
| Live Zone ID |
name
| Live Zone name |
label
| The zone's description |
suspend
| Flag denoting if the zone has been suspended |
locked
| Flag denoting if the zone has been locked |
inactive
| Flag denoting if the zone has been deleted |
creation_date
| Date Created |
Get Live Zones Count
Counts all live zones on the specified account
Response Parameters
Parameter | Description |
--- | --- | ---
count
| The number of live zones on the specified account |
Get Live Zone
Gets a live zone specified by the {zone_id} parameter
Response Parameters
Parameter | Description |
--- | --- | ---
id
| Live Zone ID |
name
| Live Zone name |
label
| The zone's description |
suspend
| Flag denoting if the zone has been suspended |
locked
| Flag denoting if the zone has been locked |
inactive
| Flag denoting if the zone has been deleted |
creation_date
| Date Created |
Update Live Zone
Updates a live zone specified by the {zone_id} parameter
Accepted Request Parameters
Parameter | Default Value | Validation | Description |
--- | --- | --- | --- | ---
password
| - | length: 5-30 chars | Your desired password |
token
| - | length: 1-64 chars | The token value (shared secret) for secure streaming |
label
| - | length: 1-255 chars | Something that describes your zone |
Response Parameters
Parameter | Description |
--- | --- | ---
id
| Live Zone ID |
name
| Live Zone name |
label
| The zone's description |
suspend
| Flag denoting if the zone has been suspended |
locked
| Flag denoting if the zone has been locked |
inactive
| Flag denoting if the zone has been deleted |
creation_date
| Date Created |
Delete Live Zone
Deletes a live zone specified by the {zone_id} parameter
Enable Live Zone
Enables a live zone specified by the {zone_id} parameter
Disable Live Zone
Disables a live zone specified by the {zone_id} parameter
Zones SSL API
Get Zone's SSL Information
Get the SSL certificate for the specified {zone_type} and {zone_id}.
Install SSL on Zone
Upload an SSL certificate for the specified {zone_type} and {zone_id}.
Accepted Request Parameters
Parameter | Default Value | Validation | Description |
--- | --- | --- | --- | ---
ssl_crt
| - | required
| The SSL certificate you are installing. |
ssl_key
| - | required
| The key for the SSL certificate you are installing. |
ssl_cabundle
| - | The CA Bundle for the SSL Certificate you are installing. |
Response Parameters
Parameter | Description |
--- | --- | ---
id
| The SSL Certificate ID. |
ssl_crt
| The SSL certificate. |
ssl_key
| The SSL Private Key. |
ssl_cabundle
| The CA Bundle for the cert. |
domain
| The domain applicable to this certificate. |
date_expiration
| The date of expiration for the certificate. |
wildcard
| Flag to signify whether this is a wildcard certificate. |
Update Zone's SSL Information
Update the SSL certificate for the specified {zone_type} and {zone_id}.
Accepted Request Parameters
Parameter | Default Value | Validation | Description |
--- | --- | --- | --- | ---
ssl_crt
| - | required
| The SSL certificate you are installing. |
ssl_key
| - | required
| The key for the SSL certificate you are installing. |
ssl_cabundle
| - | The CABundle for the SSL Certificate you are installing. |
Response Parameters
Parameter | Description |
--- | --- | ---
id
| The SSL Certificate ID. |
ssl_crt
| The SSL certificate. |
ssl_key
| The SSL Private Key. |
ssl_cabundle
| The CA Bundle for the cert. |
domain
| The domain applicable to this certificate. |
date_expiration
| The date of expiration for the certificate. |
wildcard
| Flag to signify whether this is a wildcard certificate. |
Remove Zone's SSL Information
Remove the SSL certificate for the specified {zone_type} and {zone_id}.
Zones Upstream API
Get Upstream information for the current zone
Get the upstream information for the specified {zone_id}.
Enable Upstream on Zone
Create and enable Upstream for a specific {zone_id}.
Accepted Request Parameters
Parameter | Default Value | Validation | Description |
--- | --- | --- | --- | ---
server_url
| - | required
| The server url or ip to provide the streaming resources | 1.0.1 |
port
| - | required
| The port where server is to be called | 1.0.1 |
Response Parameters
Parameter | Description |
--- | --- | ---
id
| The Upstream ID. | 1.0.1 |
bucket_id
| The bucket_id it belongs to | 1.0.1 |
server_url
| The server url or ip | 1.0.1 |
port
| The port it uses to call the server | 1.0.1 |
Update Zone's Upstream Information
Update the Upstream information for the specified {zone_id}.
Accepted Request Parameters
Parameter | Default Value | Validation | Description |
--- | --- | --- | --- | ---
upstream_id
| - | required
| The Upstream Information you're modifying. | 1.0.1 |
server_url
| - | required
| The server url or ip | 1.0.1 |
port
| - | required
| The port it uses to call the server | 1.0.1 |
Response Parameters
Parameter | Description |
--- | --- | ---
id
| The Upstream ID. | 1.0.1 |
bucket_id
| The bucket_id it belongs to | 1.0.1 |
server_url
| The server url or ip | 1.0.1 |
port
| The port it uses to call the server | 1.0.1 |
Remove Zone's Upstream Information
Remove the Upstream Information for the specified {zone_id}.
Reports by Zone API
List Zone Stats
Gets all zone usage statistics optionally broken up by {report_type}. If no {report_type} is given the request will return the total usage for the zones.
Accepted Request Parameters
Parameter | Default Value | Validation | Description |
--- | --- | --- | --- | ---
date_from
| now() - 1 month | Y-m-d (e.g. 2012-01-01) | Start date |
date_to
| now() | Y-m-d (e.g. 2012-01-01) | End date |
Response Parameters
Parameter | Description |
--- | --- | ---
size
| The amount of bytes transferred |
hit
| The number of times files were requested |
noncache_hit
| The number of times a requested file was not in cache |
cache_hit
| The number of times a requested file was already cached |
timestamp
| The timestamp for the corresponding {report_type}. |
List Stats per Zone
Gets the {zone_id} usage statistics optionally broken up by {report_type}. If no {report_type} is given the request will return the total usage for the zones.
Accepted Request Parameters
Parameter | Default Value | Validation | Description |
--- | --- | --- | --- | ---
date_from
| now() - 1 month | Y-m-d (e.g. 2012-01-01) | Start date |
date_to
| now() | Y-m-d (e.g. 2012-01-01) | End date |
Response Parameters
Parameter | Description |
--- | --- | ---
size
| The amount of bytes transferred |
hit
| The number of times files were requested |
noncache_hit
| The number of times a requested file was not in cache |
cache_hit
| The number of times a requested file was already cached |
timestamp
| The timestamp for the corresponding {report_type}. |
Reports by Location API
List Nodes
Gets a list of all active nodes (locations)
Response Parameters
Parameter | Description |
--- | --- | ---
id
| Node Id |
name
| Node 3 letter code |
description
| Full node name |
List Nodes by Zone
Gets a list of all active nodes (locations) specified by the {zone_id} parameter
Response Parameters
Parameter | Description |
--- | --- | ---
id
| Node Id |
name
| Node 3 letter code |
description
| Full node name |
List Zone Node Stats by Report Type
Get usage statistics broken up by nodes and optionally {report_type}. If no {report_type} is given the request will return the total usage broken up by node.
Accepted Request Parameters
Parameter | Default Value | Validation | Description |
--- | --- | --- | --- | ---
date_from
| now() - 1 month | Y-m-d (e.g. 2012-01-31) | Start date |
date_to
| now() | Y-m-d (e.g. 2012-01-31) | End date |
Response Parameters
Parameter | Description |
--- | --- | ---
pop_id
| Node Id |
pop_name
| Node 3 letter code. Only returned when {report_type} is notempty. |
pop_description
| Full node name. Only returned when {report_type} is notempty. |
size
| The amount of bytes transferred |
hit
| The number of times files were requested |
noncache_hit
| The number of times a requested file was not in cache |
cache_hit
| The number of times a requested file was already cached |
timestamp
| A timestamp corresponding to {report_type}. Only returned when{report_type} is not empty. |
List Node Stats by Zone and Report Type
Get usage statistics for a particular {zone_id} broken up by nodes and optionally {report_type}. If no {report_type} is given the request will return the total usage broken up by node.
Accepted Request Parameters
Parameter | Default Value | Validation | Description |
--- | --- | --- | --- | ---
date_from
| now() - 1 month | Y-m-d (e.g. 2012-01-01) | Start date |
date_to
| now() | Y-m-d (e.g. 2012-01-01) | End date |
Response Parameters
Parameter | Description |
--- | --- | ---
pop_id
| Node Id |
pop_name
| Node 3 letter code. Only returned when {report_type} is notempty. |
pop_description
| Full node name. Only returned when {report_type} is notempty. |
size
| The amount of bytes transferred |
hit
| The number of times files were requested |
noncache_hit
| The number of times a requested file was not in cache |
cache_hit
| The number of times a requested file was already cached |
timestamp
| A timestamp corresponding to {report_type}. Only returned when{report_type} is not empty. |
Get Zone Node
Gets the node information for the specified {node_id}
Response Parameters
Parameter | Description |
--- | --- | ---
id
| Node Id |
name
| Node 3 letter code |
description
| Full node name |
Get Node by Zone
Gets the node information for the specified {node_id} and {zone_id}
Response Parameters
Parameter | Description |
--- | --- | ---
id
| Node Id |
name
| Node 3 letter code |
description
| Full node name |
Get Zone Node Stats by Report Type
Get usage statistics for a particular {node_id} optionally broken up by {report_type}. If no {report_type} is given the request will return the total usage for the node.
Accepted Request Parameters
Parameter | Default Value | Validation | Description |
--- | --- | --- | --- | ---
date_from
| now() - 1 month | Y-m-d (e.g. 2012-01-01) | Start date. |
date_to
| now() | Y-m-d (e.g. 2012-01-01) | End date. |
Response Parameters
Parameter | Description |
--- | --- | ---
size
| The amount of bytes transferred |
hit
| The number of times files were requested |
noncache_hit
| The number of times a requested file was not in cache |
cache_hit
| The number of times a requested file was already cached |
timestamp
| A timestamp corresponding to {report_type}. Only returned when{report_type} is not empty. |
Get Node Stats by Zone and Report Type
Get usage statistics for a particular {node_id} and {zone_id}, optionally broken up by {report_type}. If no {report_type} is given the request will return the total usage for the node.
Accepted Request Parameters
Parameter | Default Value | Validation | Description |
--- | --- | --- | --- | ---
date_from
| now() - 1 month | Y-m-d (e.g. 2012-01-01) | Start date |
date_to
| now() | Y-m-d (e.g. 2012-01-01) | End date |
Response Parameters
Parameter | Description |
--- | --- | ---
size
| The amount of bytes transferred |
hit
| The number of times files were requested |
noncache_hit
| The number of times a requested file was not in cache |
cache_hit
| The number of times a requested file was already cached |
timestamp
| A timestamp corresponding to {report_type}. Only returned when{report_type} is not empty. |
Reports by Popular Files API
List Popular Files
Gets the most popularly requested files for your account, grouped into daily statistics
Accepted Request Parameters
Parameter | Default Value | Validation | Description |
--- | --- | --- | --- | ---
date_from
| now() - 1 month | Y-m-d (e.g. 2012-01-01). | Start date |
date_to
| now() | Y-m-d (e.g. 2012-01-01). | End date |
Response Parameters
Parameter | Description |
--- | --- | ---
bucket_id
| The Zone ID for the popular file |
uri
| The URI for the requested popular file |
hit
| The number of times the file was requested |
size
| The amount of bytes transferred for the given file |
vhost
| The CDN URL for the corresponding zone |
timestamp
| The amount of bytes transferred |
List Popular Files
Gets the most popularly requested files for your account, filtered by {zone_type} and grouped into daily statistics
Accepted Request Parameters
Parameter | Default Value | Validation | Description |
--- | --- | --- | --- | ---
date_from
| now() - 1 month | Y-m-d (e.g. 2012-01-01) | Start date |
date_to
| now() | Y-m-d (e.g. 2012-01-01) | End date |
Response Parameters
Parameter | Description |
--- | --- | ---
bucket_id
| The Zone ID for the popular file |
uri
| The URI for the requested popular file |
hit
| The number of times the file was requested |
size
| The amount of bytes transferred for the given file |
vhost
| The CDN URL for the corresponding zone |
timestamp
| The amount of bytes transferred |
Reports by Status Codes API
List Status Code Responses
Gets HTTP status code response statistics for your account
Accepted Request Parameters
Parameter | Default Value | Validation | Description |
--- | --- | --- | --- | ---
date_from
| now() - 1 month | Y-m-d (e.g. 2012-01-01) | Start date |
date_to
| now() | Y-m-d (e.g. 2012-01-01) | End date |
Response Parameters
Parameter | Description |
--- | --- | ---
status_code
| The HTTP status code for the response |
hit
| The number of responses with this status code |
definition
| The definition for the status code |
List Status Code Responses by Zone Id
Gets HTTP status code response statistics for a specific {zone_id}
Accepted Request Parameters
Parameter | Default Value | Validation | Description |
--- | --- | --- | --- | ---
date_from
| now() - 1 month | Y-m-d (e.g. 2012-01-01) | Start date |
date_to
| now() | Y-m-d (e.g. 2012-01-01) | End date |
Response Parameters
Parameter | Description |
--- | --- | ---
status_code
| The HTTP status code for the response |
hit
| The number of responses with this status code |
definition
| The definition for the status code |
List Status Codes by Zone Type
Gets HTTP status code response statistics for a specific {zone_type}
Accepted Request Parameters
Parameter | Default Value | Validation | Description |
--- | --- | --- | --- | ---
date_from
| now() - 1 month | Y-m-d (e.g. 2012-01-01) | Start date |
date_to
| now() | Y-m-d (e.g. 2012-01-01) | End date |
Response Parameters
Parameter | Description |
--- | --- | ---
status_code
| The HTTP status code for the response |
hit
| The number of responses with this status code |
definition
| The definition for the status code |
List Status Codes by Zone Id
Gets HTTP status code response statistics for a specific {zone_type} and {zone_id}
Accepted Request Parameters
Parameter | Default Value | Validation | Description |
--- | --- | --- | --- | ---
date_from
| now() - 1 month | Y-m-d (e.g. 2012-01-01) | Start date |
date_to
| now() | Y-m-d (e.g. 2012-01-01) | End date |
Response Parameters
Parameter | Description |
--- | --- | ---
status_code
| The HTTP status code for the response |
hit
| The number of responses with this status code |
definition
| The definition for the status code |
Reports by File Types API
List File Types
Gets file type statistics for your account
Accepted Request Parameters
Parameter | Default Value | Validation | Description |
--- | --- | --- | --- | ---
date_from
| now() - 1 month | Y-m-d (e.g. 2012-01-01) | Start date |
date_to
| now() | Y-m-d (e.g. 2012-01-01) | End date |
Response Parameters
Parameter | Description |
--- | --- | ---
file_type
| The file type requested |
hit
| The number of times a file of this type has been requested |
List File Types by Zone Id
Gets file type statistics for a specific {zone_id}
Accepted Request Parameters
Parameter | Default Value | Validation | Description |
--- | --- | --- | --- | ---
date_from
| now() - 1 month | Y-m-d e.g. 2012-01-01 | Start date |
date_to
| now() | Y-m-d e.g. 2012-01-01 | End date |
Response Parameters
Parameter | Description |
--- | --- | ---
file_type
| The file type requested |
hit
| The number of times a file of this type has been requested |
List File Types by Zone Type
Gets file type statistics for a specific {zone_type}
Response Parameters
Parameter | Description |
--- | --- | ---
file_type
| The file type requested |
hit
| The number of times a file of this type has been requested |
List File Types by Zone Id
Gets file type statistics for a specific {zone_type} and {zone_id}
Accepted Request Parameters
Parameter | Default Value | Validation | Description |
--- | --- | --- | --- | ---
date_from
| now() - 1 month | Y-m-d (e.g. 2012-01-01) | Start date |
date_to
| now() | Y-m-d (e.g. 2012-01-01) | End date |
Response Parameters
Parameter | Description |
--- | --- | ---
file_type
| The file type requested |
hit
| The number of times a file of this type has been requested |
Reports by File Size Ranges API
List File Sizes
Gets request statistics for your account based on file size ranges
Accepted Request Parameters
Parameter | Default Value | Validation | Description |
--- | --- | --- | --- | ---
date_from
| now() - 1 month | Y-m-d (e.g. 2012-01-01) | Start date |
date_to
| now() | Y-m-d (e.g. 2012-01-01) | End date |
Response Parameters
Parameter | Description |
--- | --- | ---
le_10k_hits
| The number of requests for files <= 10KB |
le_50k_hits
| The number of requests for files <= 50KB |
le_100k_hits
| The number of requests for files <= 100KB |
le_500k_hits
| The number of requests for files <= 500KB |
le_1m_hits
| The number of requests for files <= 1MB |
le_10m_hits
| The number of requests for files <= 10MB |
le_100m_hits
| The number of requests for files <= 100MB |
gt_100m_hits
| The number of requests for files > 100MB |
List File Sizes by Zone Id
Gets request statistics for the specified {zone_id} based on file size ranges
Accepted Request Parameters
Parameter | Default Value | Validation | Description |
--- | --- | --- | --- | ---
date_from
| now() - 1 month | Y-m-d e.g. 2012-01-01 | Start date |
date_to
| now() | Y-m-d e.g. 2012-01-01 | End date |
Response Parameters
Parameter | Description |
--- | --- | ---
le_10k_hits
| The number of requests for files <= 10KB |
le_50k_hits
| The number of requests for files <= 50KB |
le_100k_hits
| The number of requests for files <= 100KB |
le_500k_hits
| The number of requests for files <= 500KB |
le_1m_hits
| The number of requests for files <= 1MB |
le_10m_hits
| The number of requests for files <= 10MB |
le_100m_hits
| The number of requests for files <= 100MB |
gt_100m_hits
| The number of requests for files > 100MB |
List File Sizes by Zone Type
Gets request statistics for the specified {zone_type} based on file size ranges
Accepted Request Parameters
Parameter | Default Value | Validation | Description |
--- | --- | --- | --- | ---
date_from
| now() - 1 month | Y-m-d e.g. 2012-01-01 | Start date |
date_to
| now() | Y-m-d e.g. 2012-01-01 | End date |
Response Parameters
Parameter | Description |
--- | --- | ---
le_10k_hits
| The number of requests for files <= 10KB |
le_50k_hits
| The number of requests for files <= 50KB |
le_100k_hits
| The number of requests for files <= 100KB |
le_500k_hits
| The number of requests for files <= 500KB |
le_1m_hits
| The number of requests for files <= 1MB |
le_10m_hits
| The number of requests for files <= 10MB |
le_100m_hits
| The number of requests for files <= 100MB |
gt_100m_hits
| The number of requests for files > 100MB |
List File Sizes by Zone Id
Gets request statistics for the specified {zone_type} and {zone_id} based on file size ranges
Accepted Request Parameters
Parameter | Default Value | Validation | Description |
--- | --- | --- | --- | ---
date_from
| now() - 1 month | Y-m-d (e.g. 2012-01-01) | Start date |
date_to
| now() | Y-m-d (e.g. 2012-01-01) | End date |
Response Parameters
Parameter | Description |
--- | --- | ---
le_10k_hits
| The number of requests for files <= 10KB |
le_50k_hits
| The number of requests for files <= 50KB |
le_100k_hits
| The number of requests for files <= 100KB |
le_500k_hits
| The number of requests for files <= 500KB |
le_1m_hits
| The number of requests for files <= 1MB |
le_10m_hits
| The number of requests for files <= 10MB |
le_100m_hits
| The number of requests for files <= 100MB |
gt_100m_hits
| The number of requests for files > 100MB |
Reports By Directory API
List Stats By Directory
Gets usage statistics by directory for your account. (This report has to be enabled by Sales).
Accepted Request Parameters
Parameter | Default Value | Validation | Description |
--- | --- | --- | --- | ---
date_from
| now() - 1 month | Y-m-d (e.g. 2012-01-01) | Start date |
date_to
| now() | Y-m-d (e.g. 2012-01-01) | End date |
Response Parameters
Parameter | Description |
--- | --- | ---
bucket_id
| The Zone ID for the top level directory |
dir
| The name of the directory |
hit
| The number of requests made to files within this directory |
size
| The amount of bytes transferred from within this directory |
List Stats By Directory and Zone Id
Gets usage statistics by directory for the specified {zone_id}. (This report has to be enabled by Sales).
Accepted Request Parameters
Parameter | Default Value | Validation | Description |
--- | --- | --- | --- | ---
date_from
| now() - 1 month | Y-m-d (e.g. 2012-01-01) | Start date |
date_to
| now() | Y-m-d (e.g. 2012-01-01) | End date |
Response Parameters
Parameter | Description |
--- | --- | ---
bucket_id
| The Zone ID for the top level directory |
dir
| The name of the directory |
hit
| The number of requests made to files within this directory |
size
| The amount of bytes transferred from within this directory |
Reports By File Name API
List Stats By File Name
Gets usage statistics by file name for your account
Accepted Request Parameters
Parameter | Default Value | Validation | Description |
--- | --- | --- | --- | ---
date_from
| now() - 1 month | Y-m-d (e.g. 2012-01-01) | Start date |
date_to
| now() | Y-m-d (e.g. 2012-01-01) | End date |
file_names
| A JSON Encoded file names list |
filter
| Matching expression for file names |
sort_by
| Field to sort by |
sort_dir
| Directory to sort files by |
page_size
| - | The number of records returned in the result set |
Response Parameters
Parameter | Description |
--- | --- | ---
bucket_id
| The Zone ID for the top level directory |
hit
| The number of requests made to files within this directory |
size
| The amount of bytes transferred from within this directory |
200
| The amount of 200 hits |
206
| The amount of 206 hits |
2xx
| The amount of 2xx hits |
3xx
| The amount of 3xx hits |
404
| The amount of 404 hits |
4xx
| The amount of 4xx hits |
5xx
| The amount of 206 hits |
5xx
| The amount of 206 hits |
timestampf
| Timestamp |
List Stats By File Name and Zone Id
Gets usage statistics by file name for the specified {zone_id}
Accepted Request Parameters
Parameter | Default Value | Validation | Description |
--- | --- | --- | --- | ---
date_from
| now() - 1 month | Y-m-d (e.g. 2012-01-01) | Start date |
date_to
| now() | Y-m-d (e.g. 2012-01-01) | End date |
file_names
| A JSON Encoded file names list |
filter
| Matching expression for file names |
sort_by
| Field to sort by |
sort_dir
| Directory to sort files by |
page_size
| - | The number of records returned in the result set |
Response Parameters
Parameter | Description |
--- | --- | ---
bucket_id
| The Zone ID for the top level directory |
hit
| The number of requests made to files within this directory |
size
| The amount of bytes transferred from within this directory |
200
| The amount of 200 hits |
206
| The amount of 206 hits |
2xx
| The amount of 2xx hits |
3xx
| The amount of 3xx hits |
404
| The amount of 404 hits |
4xx
| The amount of 4xx hits |
5xx
| The amount of 206 hits |
5xx
| The amount of 206 hits |
timestampf
| Timestamp |
Reports By Custom Domain API
List Stats By Directory
Gets usage statistics by custom domain for your account. (This report has to be enabled by Sales).
Accepted Request Parameters
Parameter | Default Value | Validation | Description |
--- | --- | --- | --- | ---
date_from
| now() - 1 month | Y-m-d (e.g. 2012-01-01) | Start date |
date_to
| now() | Y-m-d (e.g. 2012-01-01) | End date |
Response Parameters
Parameter | Description |
--- | --- | ---
bucket_id
| The Zone ID for the custom domain |
custom_domain_id
| The ID of your custom domain |
hit
| The number of requests made to this custom domain |
size
| The amount of bytes transferred to/from this custom domain |
List Stats By Custom Domain and Zone Id
Gets usage statistics by custom domain for the specified {zone_id}. (This report has to be enabled by Sales).
Accepted Request Parameters
Parameter | Default Value | Validation | Description |
--- | --- | --- | --- | ---
date_from
| now() - 1 month | Y-m-d (e.g. 2012-01-01) | Start date |
date_to
| now() | Y-m-d (e.g. 2012-01-01) | End date |
Response Parameters
Parameter | Description |
--- | --- | ---
bucket_id
| The Zone ID for the top level directory |
custom_domain_id
| The ID of the Custom Domain |
hit
| The number of requests made to this custom domain |
size
| The amount of bytes transferred to/from this custom domain |
Reports for Live Zones API
List Connection Stats
Gets zone stats in hourly, daily, or monthly summaries
Accepted Request Parameters
Parameter | Default Value | Validation | Description |
--- | --- | --- | --- | ---
date_from
| - | Y-m-d e.g. 2012-01-01 | Start date |
date_to
| - | Y-m-d e.g. 2012-01-01 | End date |