Base operations#
This section describes the base operations of the Rackspace CDN API.
Retrieve the home document#
GET /v1.0/{project_id}/
This operation retrieves the home document.
The entire API is discoverable from a single starting point, the home document. To explore the entire API, you need to know only this one URI.
The home document schema is currently not ratified in OpenStack and might change. For more information about home documents, see Home Documents for HTTP APIs on the IEFT website.
The following table shows the possible response codes for this operation.
Response Code |
Name |
Description |
---|---|---|
200 |
OK |
Success. |
Request#
The following table shows the URI parameters for the request.
Name |
Type |
Description |
---|---|---|
{project_id} |
String |
The project ID for the user. If you do not set the |
This operation does not accept a request body.
Example: Retrieve the home document HTTP request
GET /v1.0/110011/ HTTP/1.1
Host: global.cdn.api.rackspacecloud.com
X-Auth-Token: 0f6e9f63600142f0a970911583522217
Accept: application/json
Content-type: application/json
Response#
Example: Retrieve the home document HTTP and JSON response
HTTP/1.1 200 OK
Content-Type: application/json
{
"resources": {
"rel/health": {
"href-template": "/health",
"href-vars": {
"subsystem": "param/subsystem"
},
"hints": {
"allow": [
"GET"
],
"formats": {
"application/json": {}
}
}
},
"rel/flavors": {
"href-template": "/flavors/{flavor_id}",
"href-vars": {
"marker": "param/flavor_id"
},
"hints": {
"allow": [
"GET",
"POST",
"DELETE"
],
"formats": {
"application/json": {}
}
}
},
"rel/ping": {
"href-template": "/ping",
"hints": {
"allow": [
"GET"
],
"formats": {
"application/json": {}
}
}
},
"rel/services": {
"href-template": "/services{?marker,limit}",
"href-vars": {
"marker": "param/marker",
"limit": "param/limit"
},
"hints": {
"allow": [
"GET",
"POST"
],
"formats": {
"application/json": {}
}
}
}
}
}
Ping the server#
GET /v1.0/{project_id}/ping
This operation pings the server.
The following table shows the possible response codes for this operation.
Response Code |
Name |
Description |
---|---|---|
204 |
No Content |
The server successfully processed the request, but is not returning any content. |
500 |
Internal Server Error |
The implementation of ping may return a 500 response in cases where the API service is unable to communicate with one or more implementation nodes for the service. Errors in the transport layer between the client and the API node may produce other errors. |
503 |
Service Unavailable |
The implementation of ping may return a 503 response in cases where the API service is unable to communicate with one or more implementation nodes for the service. Errors in the transport layer between the client and the API node may produce other errors. |
Request#
The following table shows the URI parameters for the request.
Name |
Type |
Description |
---|---|---|
{project_id} |
String |
The project ID for the user. If you do not set the
|
This operation does not accept a request body.
Example: Ping the server HTTP request
GET /v1.0/110011/ping HTTP/1.1
Host: global.cdn.api.rackspacecloud.com
X-Auth-Token: 0f6e9f63600142f0a970911583522217
Response#
This operation does not return a response body.
Example: Ping the server HTTP response
HTTP/1.1 204 No Content