Create CDN-enabled Container

Overview

Calling this PUT request creates a container enabled for CDN integration. Once creation is complete, the container and its objects are accessible through any location (both data centers and PoPs) on the SoftLayer network.

Parameters

N/A

Running This Method

*HTTP Verb: PUT
*Path: /<version/<account>/<container>

Required Headers

*X-Auth-Token: <token>
*X-Container-Read: .r:*

Optional Headers

*X-Context: cdn

Related Methods

*List CDN-enabled public read containers
*Container CDN-Enabled status
*Modify Container CDN-Enabling

Response Status Code

*201 Created

Error Status Code

*204, when the container already exists

Examples

Request Header

PUT /<version>/<account>/<container>
X-Auth-Token: 1234567890abcdefghijklmnop
X-Container-Read: .r:*

Response Header

Response Header
HTTP/1.1 201 Created
Date: Thu, 19 Oct 2011 12:00:00 GMT
Content-Type: text/plain;charset=UTF-8

Modify Container CDN-Enabling

Object-Storage-Modify-Container-CDN-Enabling

Container CDN-Enabled Status

Overview

Calling this HEAD or GET request retrieves the CDN-enabled status for a particular container. The response retrieved indicates whether or not a container is CDN-Enabled, but does not perform any enable/disable actions on that container.

Parameters

N/A

Running This Method

*HTTP Verb: HEAD or GET
*Path: /<version>/<account>/<container>

Required Headers

*X-Auth-Token: <token>

Optional Headers

X-Context: cdn

Associated Methods

*List CDN-Enabled Public Read Containers
*Modify Container CDN-Enabling

Response Code

*200 OK
*204 No Content

Error Status Code

*400 Bad Requst, when a container is not CDN-enabled

Examples

Request Header

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

Response Header

HTTP/1.1 200OK
Date: Thu, 19 Oct 2011 12:00:00 GMT
Content-Type: text/plain; charset=UTF-8
X-Container-Read: .r:*