Cloud Files

Use the Cloud Files feed operations to get information about usage and system events for the Rackspace Cloud Files service.

Get feed for Files events

GET /files/events/{tid}

This operation obtains the most recent events for this product's feed.

Request

The following table shows the header parameters for the request:

NameTypeDescription
ACCEPTAcceptheadertype (Required)Specifies the type of Accept header to be used in the request.

The following table shows the URI parameters for the request:

NameTypeDescription
{tid}StringSpecifies the tenant Id.

The following table shows the query parameters for the request:

NameTypeDescription
markerAnyuri (Optional)Specifies the entry from which the feed is read. If no value is specified, forward is used by default.
limitInt (Optional)Specifies the number of entries to return. By default the limit is set to 25. The minimum limit is 1 and the maximum limit is 1,000.
directionString (Optional)Valid values for this parameter are either backward or forward.

This operation does not accept a request body.

Response

The following table shows the possible response codes for this
operation.

Response CodeNameDescription
200OKThe request succeeded.
400Bad RequestThe request is missing one or more elements, or the values of some elements are invalid.
401UnauthorizedAuthentication failed, or the user does not have permissions for a requested operation.
404Not FoundThe requested resource was not found.
429Rate LimitedToo many requests. Wait and retry.
500Internal Server ErrorThe server encountered an unexpected condition which prevented it from fulfilling the request.
503Service UnavailableService is not available. Try again later.

Get Files event by ID

GET /files/events/{tid}/entries/{id}

This http request fetches one particular event whose ID is listed in the
URI.

Request

The following table shows the header parameters for the request:

NameTypeDescription
ACCEPTAcceptheadertype (Required)

The following table shows the URI parameters for the request:

NameTypeDescription
{tid}StringSpecifies the tenant Id.
{id}Anyuri<urn:uuid:676f3860-447c-> 40a3-8f61-9791819cc82f

This operation does not accept a request body.

Message samples

The following examples show the XML and JSON messages for each event
message type.

Cloud Files bandwidth usage information, v1

Specifies the bandwidth usage information for the Cloud Files account,
version 1

The following table describes attributes for the event message.

Attribute NameDescriptionTypeOptionality
bandwidthInSpecifies the amount of inbound bandwidth, in bytes.unsignedLongRequired
bandwidthOutSpecifies the amount of outbound bandwidth, in bytes.unsignedLongRequired

XML Sample

<?xml version="1.0"?>
<atom:entry xmlns:atom="http://www.w3.org/2005/Atom" xmlns="http://docs.rackspace.com/core/event" xmlns:cf-b="http://docs.rackspace.com/usage/cloudfiles/bandwidth">
       <atom:id> urn:uuid:8d89673c-c989-11e1-895a-0b3d632a8a89 </atom:id>
       <atom:category term="tid:1234"/>
       <atom:category term="rgn:DFW"/>
       <atom:category term="dc:DFW1"/>
       <atom:category term="cloudfiles.bandwidth.usage"/>
       <atom:category term="type:cloudfiles.bandwidth.usage"/>
       <atom:content type="application/xml">
              <event dataCenter="DFW1" endTime="2012-06-15T10:19:52Z" environment="PROD" id="8d89673c-c989-11e1-895a-0b3d632a8a89" region="DFW" startTime="2012-06-14T10:19:52Z" tenantId="1234" type="USAGE" version="1">
                     <cf-b:product bandwidthIn="192998" bandwidthOut="39993882" serviceCode="CloudFiles" version="1"/>
              </event>
       </atom:content>
       <atom:link href="https://ord.feeds.api.rackspacecloud.com/files/events/entries/urn:uuid:8d89673c-c989-11e1-895a-0b3d632a8a89" rel="self"/>
       <atom:updated> 2013-02-28T19:40:39.120Z </atom:updated>
       <atom:published> 2013-02-28T19:40:39.120Z </atom:published>
</atom:entry>

JSON Sample

{
       "entry": {
              "@type": "http:\/\/www.w3.org\/2005\/Atom",
              "category": [
                     {
                            "term": "tid:1234"
                     },
                     {
                            "term": "rgn:DFW"
                     },
                     {
                            "term": "dc:DFW1"
                     },
                     {
                            "term": "cloudfiles.bandwidth.usage"
                     },
                     {
                            "term": "type:cloudfiles.bandwidth.usage"
                     }
              ],
              "content": {
                     "event": {
                            "@type": "http:\/\/docs.rackspace.com\/core\/event",
                            "dataCenter": "DFW1",
                            "endTime": "2012-06-15T10:19:52Z",
                            "environment": "PROD",
                            "id": "8d89673c-c989-11e1-895a-0b3d632a8a89",
                            "product": {
                                   "@type": "http:\/\/docs.rackspace.com\/usage\/cloudfiles\/bandwidth",
                                   "bandwidthIn": 192998,
                                   "bandwidthOut": 39993882,
                                   "serviceCode": "CloudFiles",
                                   "version": "1"
                            },
                            "region": "DFW",
                            "startTime": "2012-06-14T10:19:52Z",
                            "tenantId": "1234",
                            "type": "USAGE",
                            "version": "1"
                     }
              },
              "id": "urn:uuid:8d89673c-c989-11e1-895a-0b3d632a8a89",
              "link": [
                     {
                            "href": "https:\/\/ord.feeds.api.rackspacecloud.com\/files\/events\/entries\/urn:uuid:8d89673c-c989-11e1-895a-0b3d632a8a89",
                            "rel": "self"
                     }
              ],
              "published": "2013-02-28T19:40:39.120Z",
              "updated": "2013-02-28T19:40:39.120Z"
       }
}

Cloud Files CDN usage information, v1

Specifies the CDN usage information for the Cloud Files account, version
1

The following table describes attributes for the event message.

Attribute NameDescriptionTypeOptionality
cdnBandwidthOutSpecifies the amount of outband bandwidth, in bytes.unsignedLongRequired

XML Sample

<?xml version="1.0"?>
<atom:entry xmlns:atom="http://www.w3.org/2005/Atom" xmlns="http://docs.rackspace.com/core/event" xmlns:cf-cdn="http://docs.rackspace.com/usage/cloudfiles/cdnbandwidth">
       <atom:id> urn:uuid:8d89673c-c989-11e1-895a-0b3d632a8a89 </atom:id>
       <atom:category term="tid:1234"/>
       <atom:category term="rgn:DFW"/>
       <atom:category term="dc:DFW1"/>
       <atom:category term="cloudfiles.cdnbandwidth.usage"/>
       <atom:category term="type:cloudfiles.cdnbandwidth.usage"/>
       <atom:content type="application/xml">
              <event dataCenter="DFW1" endTime="2012-06-20T10:19:52Z" environment="PROD" id="8d89673c-c989-11e1-895a-0b3d632a8a89" region="DFW" startTime="2012-06-19T10:19:52Z" tenantId="1234" type="USAGE" version="1">
                     <cf-cdn:product cdnBandwidthOut="2999283" serviceCode="CloudFiles" version="1"/>
              </event>
       </atom:content>
       <atom:link href="https://ord.feeds.api.rackspacecloud.com/files/events/entries/urn:uuid:8d89673c-c989-11e1-895a-0b3d632a8a89" rel="self"/>
       <atom:updated> 2013-02-28T19:43:24.517Z </atom:updated>
       <atom:published> 2013-02-28T19:43:24.517Z </atom:published>
</atom:entry>

JSON Sample

{
       "entry": {
              "@type": "http:\/\/www.w3.org\/2005\/Atom",
              "category": [
                     {
                            "term": "tid:1234"
                     },
                     {
                            "term": "rgn:DFW"
                     },
                     {
                            "term": "dc:DFW1"
                     },
                     {
                            "term": "cloudfiles.cdnbandwidth.usage"
                     },
                     {
                            "term": "type:cloudfiles.cdnbandwidth.usage"
                     }
              ],
              "content": {
                     "event": {
                            "@type": "http:\/\/docs.rackspace.com\/core\/event",
                            "dataCenter": "DFW1",
                            "endTime": "2012-06-20T10:19:52Z",
                            "environment": "PROD",
                            "id": "8d89673c-c989-11e1-895a-0b3d632a8a89",
                            "product": {
                                   "@type": "http:\/\/docs.rackspace.com\/usage\/cloudfiles\/cdnbandwidth",
                                   "cdnBandwidthOut": 2999283,
                                   "serviceCode": "CloudFiles",
                                   "version": "1"
                            },
                            "region": "DFW",
                            "startTime": "2012-06-19T10:19:52Z",
                            "tenantId": "1234",
                            "type": "USAGE",
                            "version": "1"
                     }
              },
              "id": "urn:uuid:8d89673c-c989-11e1-895a-0b3d632a8a89",
              "link": [
                     {
                            "href": "https:\/\/ord.feeds.api.rackspacecloud.com\/files\/events\/entries\/urn:uuid:8d89673c-c989-11e1-895a-0b3d632a8a89",
                            "rel": "self"
                     }
              ],
              "published": "2013-02-28T19:43:24.517Z",
              "updated": "2013-02-28T19:43:24.517Z"
       }
}

Cloud Files storage usage information event, v1

Specifies the storage information for the Cloud Files account, version 1

The following table describes attributes for the event message.

Attribute NameDescriptionTypeOptionality
diskSpecifies the amount of disk usage, in bytes.unsignedLongRequired
freeopsSpecifies the number of free operations.unsignedIntRequired
costopsSpecifies the number of operations that accrue a cost.unsignedIntRequired

XML Sample

<?xml version="1.0"?>
<atom:entry xmlns:atom="http://www.w3.org/2005/Atom" xmlns="http://docs.rackspace.com/core/event" xmlns:cf-str="http://docs.rackspace.com/usage/cloudfiles/storage">
       <atom:id> urn:uuid:8d89673c-c989-11e1-895a-0b3d632a8a89 </atom:id>
       <atom:category term="tid:1234"/>
       <atom:category term="rgn:DFW"/>
       <atom:category term="dc:DFW1"/>
       <atom:category term="cloudfiles.storage.usage"/>
       <atom:category term="type:cloudfiles.storage.usage"/>
       <atom:content type="application/xml">
              <event dataCenter="DFW1" endTime="2012-06-21T10:19:52Z" environment="PROD" id="8d89673c-c989-11e1-895a-0b3d632a8a89" region="DFW" startTime="2012-06-20T10:19:52Z" tenantId="1234" type="USAGE" version="1">
                     <cf-str:product costops="9393" disk="299" freeops="2992" serviceCode="CloudFiles" version="1"/>
              </event>
       </atom:content>
       <atom:link href="https://ord.feeds.api.rackspacecloud.com/files/events/entries/urn:uuid:8d89673c-c989-11e1-895a-0b3d632a8a89" rel="self"/>
       <atom:updated> 2013-02-28T19:46:30.259Z </atom:updated>
       <atom:published> 2013-02-28T19:46:30.259Z </atom:published>
</atom:entry>

JSON Sample

{
       "entry": {
              "@type": "http:\/\/www.w3.org\/2005\/Atom",
              "category": [
                     {
                            "term": "tid:1234"
                     },
                     {
                            "term": "rgn:DFW"
                     },
                     {
                            "term": "dc:DFW1"
                     },
                     {
                            "term": "cloudfiles.storage.usage"
                     },
                     {
                            "term": "type:cloudfiles.storage.usage"
                     }
              ],
              "content": {
                     "event": {
                            "@type": "http:\/\/docs.rackspace.com\/core\/event",
                            "dataCenter": "DFW1",
                            "endTime": "2012-06-21T10:19:52Z",
                            "environment": "PROD",
                            "id": "8d89673c-c989-11e1-895a-0b3d632a8a89",
                            "product": {
                                   "@type": "http:\/\/docs.rackspace.com\/usage\/cloudfiles\/storage",
                                   "costops": 9393,
                                   "disk": 299,
                                   "freeops": 2992,
                                   "serviceCode": "CloudFiles",
                                   "version": "1"
                            },
                            "region": "DFW",
                            "startTime": "2012-06-20T10:19:52Z",
                            "tenantId": "1234",
                            "type": "USAGE",
                            "version": "1"
                     }
              },
              "id": "urn:uuid:8d89673c-c989-11e1-895a-0b3d632a8a89",
              "link": [
                     {
                            "href": "https:\/\/ord.feeds.api.rackspacecloud.com\/files\/events\/entries\/urn:uuid:8d89673c-c989-11e1-895a-0b3d632a8a89",
                            "rel": "self"
                     }
              ],
              "published": "2013-02-28T19:46:30.259Z",
              "updated": "2013-02-28T19:46:30.259Z"
       }
}

Response

The following table shows the possible response codes for this
operation.

Response CodeNameDescription
200OKThe request completed successfully
400Bad RequestThe request is missing one or more elements, or the values of some elements are invalid.
401UnauthorizedAuthentication failed, or the user does not have permissions for a requested operation.
429Rate LimitedToo many requests. Wait and retry.
500Internal Server ErrorThe server encountered an unexpected condition which prevented it from fulfilling the request.
503Service UnavailableService is not available. Try again later.