Use the Cloud Databases feed operations to get information about usage and system events for the Rackspace Cloud Databases service.
Get feed for Databases events
GET /dbaas/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:
Name | Type | Description |
---|---|---|
ACCEPT | Acceptheadertype (Required) | Specifies the type of Accept header to be used in the request. |
The following table shows the URI parameters for the request:
Name | Type | Description |
---|---|---|
{tid} | String | Specifies the tenant Id. |
The following table shows the query parameters for the request:
Name | Type | Description |
---|---|---|
marker | Anyuri (Optional) | Specifies the entry from which the feed is read. If no value is specified, forward is used by default. |
limit | Int (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. |
direction | String (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 Code | Name | Description |
---|---|---|
200 | OK | The request succeeded. |
400 | Bad Request | The request is missing one or more elements, or the values of some elements are invalid. |
401 | Unauthorized | Authentication failed, or the user does not have permissions for a requested operation. |
404 | Not Found | The requested resource was not found. |
429 | Rate Limited | Too many requests. Wait and retry. |
500 | Internal Server Error | The server encountered an unexpected condition which prevented it from fulfilling the request. |
503 | Service Unavailable | Service is not available. Try again later. |
Get Databases event by ID
GET /dbaas/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:
Name | Type | Description |
---|---|---|
ACCEPT | Acceptheadertype (Required) |
The following table shows the URI parameters for the request:
Name | Type | Description |
---|---|---|
{tid} | String | Specifies 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.
User fields event message, v1
Specifies the user fields that are specific to Dbaas, version 1
The following table describes attributes for the event message.
Attribute Name | Description | Type | Optionality |
---|---|---|---|
memory | Specifies the memory that has been provisioned for this database. | int | Required |
storage | Specifies the provisioned size of the storage volume for this database. | int | Required |
XML Sample
<?xml version="1.0"?>
<atom:entry xmlns:atom="http://www.w3.org/2005/Atom">
<atom:id> urn:uuid:560490c6-6c63-11e1-adfe-27851d5aed13 </atom:id>
<atom:category term="tid:12334"/>
<atom:category term="rgn:DFW"/>
<atom:category term="dc:DFW1"/>
<atom:category term="rid:4a2b42f4-6c63-11e1-815b-7fcbcf67f549"/>
<atom:category term="clouddatabase.dbaas.mysql.usage"/>
<atom:category term="type:clouddatabase.dbaas.mysql.usage"/>
<atom:title type="text"> DBaas Usage </atom:title>
<atom:category term="reddwarf.instance.modify_volume"/>
<atom:content type="application/xml">
<event xmlns:dbaas="http://docs.rackspace.com/usage/dbaas" xmlns="http://docs.rackspace.com/core/event" dataCenter="DFW1" endTime="2012-03-12T15:51:11Z" environment="QA" id="560490c6-6c63-11e1-adfe-27851d5aed13" region="DFW" resourceId="4a2b42f4-6c63-11e1-815b-7fcbcf67f549" resourceName="MyDatabase" rootAction="reddwarf.instance.modify_volume" startTime="2012-03-12T11:51:11Z" tenantId="12334" type="USAGE" version="1">
<dbaas:product memory="16" resourceType="MYSQL" serviceCode="CloudDatabase" storage="64" version="1"/>
</event>
</atom:content>
<atom:link href="https://ord.feeds.api.rackspacecloud.com/dbaas/events/entries/urn:uuid:560490c6-6c63-11e1-adfe-27851d5aed13" rel="self"/>
<atom:updated> 2013-03-01T19:42:35.507Z </atom:updated>
<atom:published> 2013-03-01T19:42:35.507Z </atom:published>
</atom:entry>
JSON Sample
{
"entry": {
"@type": "http:\/\/www.w3.org\/2005\/Atom",
"category": [
{
"term": "reddwarf.instance.modify_volume"
}
],
"content": {
"event": {
"@type": "http:\/\/docs.rackspace.com\/core\/event",
"dataCenter": "DFW1",
"endTime": "2012-03-12T15:51:11Z",
"environment": "QA",
"id": "560490c6-6c63-11e1-adfe-27851d5aed13",
"product": {
"@type": "http:\/\/docs.rackspace.com\/usage\/dbaas",
"memory": 16,
"resourceType": "MYSQL",
"serviceCode": "CloudDatabase",
"storage": 64,
"version": "1"
},
"region": "DFW",
"resourceId": "4a2b42f4-6c63-11e1-815b-7fcbcf67f549",
"resourceName": "MyDatabase",
"rootAction": "reddwarf.instance.modify_volume",
"startTime": "2012-03-12T11:51:11Z",
"tenantId": "12334",
"type": "USAGE",
"version": "1"
}
},
"id": "urn:uuid:560490c6-6c63-11e1-adfe-27851d5aed13",
"link": [
{
"href": "https:\/\/ord.feeds.api.rackspacecloud.com\/dbaas\/events\/entries\/urn:uuid:560490c6-6c63-11e1-adfe-27851d5aed13",
"rel": "self"
}
],
"published": "2013-03-01T19:42:35.507Z",
"title": {
"@text": "DBaas Usage",
"type": "text"
},
"updated": "2013-03-01T19:42:35.507Z"
}
}
User fields event message, v2
Specifies the Dbaas-specific user fields, version 2
The following table provides attribute descriptions for the event
message.
Attribute Name | Description | Type | Optionality |
---|---|---|---|
memory | Specifies the memory that has been provisioned for this database. | int | Required |
storage | Specifies the provisioned size of the storage volume for this database. | int | Optional |
dbVersion | Specifies the version of the database. | string | Required |
XML Sample
<?xml version="1.0"?>
<atom:entry xmlns:atom="http://www.w3.org/2005/Atom" xmlns="http://www.w3.org/2001/XMLSchema">
<atom:id> urn:uuid:e53d007a-fc23-11e1-975c-cfa6b29bb814 </atom:id>
<atom:category term="tid:1234"/>
<atom:category term="rgn:DFW"/>
<atom:category term="dc:DFW1"/>
<atom:category term="rid:4a2b42f4-6c63-11e1-815b-7fcbcf67f549"/>
<atom:category term="clouddatabase.dbaas.mysql.usage"/>
<atom:category term="type:clouddatabase.dbaas.mysql.usage"/>
<atom:title> CloudDatabase </atom:title>
<atom:content type="application/xml">
<event xmlns:sample="http://docs.rackspace.com/usage/dbaas" xmlns="http://docs.rackspace.com/core/event" id="e53d007a-fc23-11e1-975c-cfa6b29bb814" version="2" resourceId="4a2b42f4-6c63-11e1-815b-7fcbcf67f549" tenantId="1234" startTime="2013-03-15T11:51:11Z" endTime="2013-03-16T00:00:00Z" type="USAGE" dataCenter="DFW1" region="DFW">
<sample:product serviceCode="CloudDatabase" version="2" resourceType="MYSQL" memory="0" storage="64" dbVersion="sampleString"/>
</event>
</atom:content>
<atom:link href="https://ord.feeds.api.rackspacecloud.com/dbaas/events/entries/urn:uuid:e53d007a-fc23-11e1-975c-cfa6b29bb814" rel="self"/>
<atom:updated> 2013-03-01T19:42:35.507Z </atom:updated>
<atom:published> 2013-03-01T19:42:35.507 </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": "rid:4a2b42f4-6c63-11e1-815b-7fcbcf67f549"
},
{
"term": "clouddatabase.dbaas.mysql.usage"
},
{
"term": "type:clouddatabase.dbaas.mysql.usage"
}
],
"link": [
{
"href": "https:\/\/ord.feeds.api.rackspacecloud.com\/dbaas\/events\/entries\/urn:uuid:e53d007a-fc23-11e1-975c-cfa6b29bb814",
"rel": "self"
}
],
"id": "urn:uuid:e53d007a-fc23-11e1-975c-cfa6b29bb814",
"title": "CloudDatabase",
"content": {
"event": {
"@type": "http:\/\/docs.rackspace.com\/core\/event",
"id": "e53d007a-fc23-11e1-975c-cfa6b29bb814",
"version": "2",
"resourceId": "4a2b42f4-6c63-11e1-815b-7fcbcf67f549",
"tenantId": "1234",
"startTime": "2013-03-15T11:51:11Z",
"endTime": "2013-03-16T00:00:00Z",
"type": "USAGE",
"dataCenter": "DFW1",
"region": "DFW",
"product": {
"@type": "http:\/\/docs.rackspace.com\/usage\/dbaas",
"serviceCode": "CloudDatabase",
"version": "2",
"resourceType": "MYSQL",
"memory": 0,
"storage": 64,
"dbVersion": "sampleString"
}
}
},
"updated": "2013-03-01T19:42:35.507Z",
"published": "2013-03-01T19:42:35.507"
}
}
User fields event message, v3
Specifies the fields specific to Cloud Databases, version 3
The following table describes attributes for the event message.
Attribute Name | Description | Type | Optionality |
---|---|---|---|
memory | Specifies the memory that has been provisioned for this database. | int | Required |
storage | Specifies the provisioned size of the storage volume for this database. | int | Optional |
dbVersion | Specifies the version of the database. | string | Required |
isHAInstance | Specifies if the resource is an HA instance. | boolean | Optional |
XML Sample
<?xml version="1.0"?>
<atom:entry xmlns:atom="http://www.w3.org/2005/Atom" xmlns="http://www.w3.org/2001/XMLSchema">
<atom:id> urn:uuid:e53d007a-fc23-11e1-975c-cfa6b29bb814 </atom:id>
<atom:category term="tid:1234"/>
<atom:category term="rgn:DFW"/>
<atom:category term="dc:DFW1"/>
<atom:category term="rid:4a2b42f4-6c63-11e1-815b-7fcbcf67f549"/>
<atom:category term="clouddatabase.dbaas.mysql.usage"/>
<atom:category term="type:clouddatabase.dbaas.mysql.usage"/>
<atom:title> CloudDatabase </atom:title>
<atom:content type="application/xml">
<event xmlns:sample="http://docs.rackspace.com/usage/dbaas" xmlns="http://docs.rackspace.com/core/event" id="e53d007a-fc23-11e1-975c-cfa6b29bb814" version="2" resourceId="4a2b42f4-6c63-11e1-815b-7fcbcf67f549" tenantId="1234" startTime="2013-03-15T11:51:11Z" endTime="2013-03-16T00:00:00Z" type="USAGE" dataCenter="DFW1" region="DFW">
<sample:product serviceCode="CloudDatabase" version="3" resourceType="MYSQL" memory="0" storage="64" isHAInstance="true" dbVersion="sampleString"/>
</event>
</atom:content>
<atom:link href="https://ord.feeds.api.rackspacecloud.com/dbaas/events/entries/urn:uuid:e53d007a-fc23-11e1-975c-cfa6b29bb814" rel="self"/>
<atom:updated> 2013-03-01T19:42:35.507Z </atom:updated>
<atom:published> 2013-03-01T19:42:35.507 </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": "rid:4a2b42f4-6c63-11e1-815b-7fcbcf67f549"
},
{
"term": "clouddatabase.dbaas.mysql.usage"
},
{
"term": "type:clouddatabase.dbaas.mysql.usage"
}
],
"link": [
{
"href": "https:\/\/ord.feeds.api.rackspacecloud.com\/dbaas\/events\/entries\/urn:uuid:e53d007a-fc23-11e1-975c-cfa6b29bb814",
"rel": "self"
}
],
"id": "urn:uuid:e53d007a-fc23-11e1-975c-cfa6b29bb814",
"title": "CloudDatabase",
"content": {
"event": {
"@type": "http:\/\/docs.rackspace.com\/core\/event",
"id": "e53d007a-fc23-11e1-975c-cfa6b29bb814",
"version": "2",
"resourceId": "4a2b42f4-6c63-11e1-815b-7fcbcf67f549",
"tenantId": "1234",
"startTime": "2013-03-15T11:51:11Z",
"endTime": "2013-03-16T00:00:00Z",
"type": "USAGE",
"dataCenter": "DFW1",
"region": "DFW",
"product": {
"@type": "http:\/\/docs.rackspace.com\/usage\/dbaas",
"serviceCode": "CloudDatabase",
"version": "3",
"resourceType": "MYSQL",
"storage": 64,
"isHAInstance": true,
"memory": 0,
"dbVersion": "sampleString"
}
}
},
"updated": "2013-03-01T19:42:35.507Z",
"published": "2013-03-01T19:42:35.507"
}
}
Response
The following table shows the possible response codes for this
operation.
Response Code | Name | Description |
---|---|---|
200 | OK | The request completed successfully |
400 | Bad Request | The request is missing one or more elements, or the values of some elements are invalid. |
401 | Unauthorized | Authentication failed, or the user does not have permissions for a requested operation. |
429 | Rate Limited | Too many requests. Wait and retry. |
500 | Internal Server Error | The server encountered an unexpected condition which prevented it from fulfilling the request. |
503 | Service Unavailable | Service is not available. Try again later. |