List CDN-Enabled Public Read Containers

Overview

Calling this GET method retrieves a list of CDN containers that are flagged as Public-Read. “CDN Container” is a publicly readable container, if activated as such. To make a container publicly readable, set X-Container-Read to .r:*. X-Container-Read is built-in container meta-data.

Parameters

*limit: For integer value n, limits the number of results to, at most, n values.
*marker: Given a string value x, return object names greater in value than the specified marker.
*format: Specify json, xml or plain to return the respective serialized response.

Running This Method

*HTTP Verb: GET
*Path: /<version>/<account>

Required Headers

*X-Auth-Token: <token>
*X-Contex: cdn

Optional Headers

N/A

Response Status Code

*200 OK
*204 No Content

Error Status Code

Examples

Request Header

GET /<version>/<account>/ 
 X-Context: cdn 
 X-Auth-Token: 12345647890abcdefghijklmnop

Response Header

 HTTP/1.1 200 OK 
 Date: Thu, 19 Oct 2011 12:00:00 GMT 
 Content-Type: text/plain; charset=UTF-8 
 X-Container-Read: .r:*  
 X-cdn-url: http://sl34455.swift.slcdn.com 
 X-cdn-ssl-url: http://sl34455.ssl.swift.slcdn.com 
 X-cdn-stream-http-url: http://sl34455.stream.swift.cf0.slcdn.com     
 X-cdn-stream-flash-url: http://sl34455.flash.swift.cf0.slcdn.com   

Response Body

 container01     
 container02 
 container03

Retrieve CDN URLs

Overview

Calling this HEAD method retrieves all URLs associated with the CDN.

Parameters

N/A

Running This Method

*HTTP Verb: Head
*Path: /<version>/<account>

Required Headers

*X-Auth-Token: <token>
*X-Content: cdn

Optional Headers

N/A

Response Status Code

*200 OK
*204 No Content

Error Status Code

N/A

Examples

Request Header

HEAD/<version>/<account>/
X-Context: cdn
X-Auth-Token: 1234567890abcdefghijklmnop

Response Header

HTTP/1.1 200 OK
Date: Thu, 19 Oct 2011 12:00:00 GMT
Content-Type: text/plain; charset=UTF-8
X-Container-Read: .r:*
X-cdn-url:  http://sl34455.swift.slcdn.com 
X-cdn-ssl-url: http://sl34455.ssl.swift.slcdn.com 
X-cdn-stream-http-url: http://sl34455.stream.swift.cf0.slcdn.com     
X-cdn-stream-flash-url: http://sl34455.flash.swift.cf0.slcdn.com