Update and correct documentation snippets

Partially implements: blueprint example-snippet-generator
Change-Id: I26f63bd9ef4a1ec5559d41bda7c476ba829b1729
This commit is contained in:
Riley Bastrop 2014-11-12 14:40:38 -06:00 committed by Tim Simpson
parent 38aaa60b6c
commit fc80208a46
166 changed files with 1554 additions and 218 deletions

View File

@ -0,0 +1,7 @@
POST /v1.0/1234/backups HTTP/1.1
User-Agent: python-troveclient
Host: troveapi.org
X-Auth-Token: 87c6033c-9ff6-405f-943e-2deb73f278b7
Accept: application/json
Content-Type: application/json

View File

@ -0,0 +1,8 @@
{
"backup": {
"description": "My Backup",
"instance": "44b277eb-39be-4921-be31-3d61b43651d7",
"name": "snapshot"
}
}

View File

@ -0,0 +1,5 @@
HTTP/1.1 202 Accepted
Content-Type: application/json
Content-Length: 404
Date: Mon, 18 Mar 2013 19:09:17 GMT

View File

@ -0,0 +1,20 @@
{
"backup": {
"created": "2014-10-30T12:30:00",
"datastore": {
"type": "mysql",
"version": "5.5",
"version_id": "b00000b0-00b0-0b00-00b0-000b000000bb"
},
"description": "My Backup",
"id": "a9832168-7541-4536-b8d9-a8a9b79cf1b4",
"instance_id": "44b277eb-39be-4921-be31-3d61b43651d7",
"locationRef": null,
"name": "snapshot",
"parent_id": null,
"size": null,
"status": "NEW",
"updated": "2014-10-30T12:30:00"
}
}

View File

@ -0,0 +1,7 @@
DELETE /v1.0/1234/backups/a9832168-7541-4536-b8d9-a8a9b79cf1b4 HTTP/1.1
User-Agent: python-troveclient
Host: troveapi.org
X-Auth-Token: 87c6033c-9ff6-405f-943e-2deb73f278b7
Accept: application/json
Content-Type: application/json

View File

@ -0,0 +1,5 @@
HTTP/1.1 202 Accepted
Content-Type: application/json
Content-Length: 0
Date: Mon, 18 Mar 2013 19:09:17 GMT

View File

@ -0,0 +1,7 @@
GET /v1.0/1234/backups/a9832168-7541-4536-b8d9-a8a9b79cf1b4 HTTP/1.1
User-Agent: python-troveclient
Host: troveapi.org
X-Auth-Token: 87c6033c-9ff6-405f-943e-2deb73f278b7
Accept: application/json
Content-Type: application/json

View File

@ -0,0 +1,5 @@
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 439
Date: Mon, 18 Mar 2013 19:09:17 GMT

View File

@ -0,0 +1,20 @@
{
"backup": {
"created": "2014-10-30T12:30:00",
"datastore": {
"type": "mysql",
"version": "5.5",
"version_id": "b00000b0-00b0-0b00-00b0-000b000000bb"
},
"description": "My Backup",
"id": "a9832168-7541-4536-b8d9-a8a9b79cf1b4",
"instance_id": "44b277eb-39be-4921-be31-3d61b43651d7",
"locationRef": "http://localhost/path/to/backup",
"name": "snapshot",
"parent_id": null,
"size": null,
"status": "COMPLETED",
"updated": "2014-10-30T12:30:00"
}
}

View File

@ -0,0 +1,7 @@
GET /v1.0/1234/backups HTTP/1.1
User-Agent: python-troveclient
Host: troveapi.org
X-Auth-Token: 87c6033c-9ff6-405f-943e-2deb73f278b7
Accept: application/json
Content-Type: application/json

View File

@ -0,0 +1,5 @@
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 442
Date: Mon, 18 Mar 2013 19:09:17 GMT

View File

@ -0,0 +1,22 @@
{
"backups": [
{
"created": "2014-10-30T12:30:00",
"datastore": {
"type": "mysql",
"version": "5.5",
"version_id": "b00000b0-00b0-0b00-00b0-000b000000bb"
},
"description": "My Backup",
"id": "a9832168-7541-4536-b8d9-a8a9b79cf1b4",
"instance_id": "44b277eb-39be-4921-be31-3d61b43651d7",
"locationRef": "http://localhost/path/to/backup",
"name": "snapshot",
"parent_id": null,
"size": null,
"status": "COMPLETED",
"updated": "2014-10-30T12:30:00"
}
]
}

View File

@ -0,0 +1,7 @@
POST /v1.0/1234/instances HTTP/1.1
User-Agent: python-troveclient
Host: troveapi.org
X-Auth-Token: 87c6033c-9ff6-405f-943e-2deb73f278b7
Accept: application/json
Content-Type: application/json

View File

@ -0,0 +1,13 @@
{
"instance": {
"flavorRef": 1,
"name": "backup_instance",
"restorePoint": {
"backupRef": "a9832168-7541-4536-b8d9-a8a9b79cf1b4"
},
"volume": {
"size": 2
}
}
}

View File

@ -0,0 +1,5 @@
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 694
Date: Mon, 18 Mar 2013 19:09:17 GMT

View File

@ -0,0 +1,41 @@
{
"instance": {
"created": "2014-10-30T12:30:00",
"datastore": {
"type": "mysql",
"version": "5.5"
},
"flavor": {
"id": "1",
"links": [
{
"href": "https://troveapi.org/v1.0/1234/flavors/1",
"rel": "self"
},
{
"href": "https://troveapi.org/flavors/1",
"rel": "bookmark"
}
]
},
"hostname": "e09ad9a3f73309469cf1f43d11e79549caf9acf2.troveexampledb.com",
"id": "d5a9db64-7ef7-41c5-8e1e-4013166874bc",
"links": [
{
"href": "https://troveapi.org/v1.0/1234/instances/d5a9db64-7ef7-41c5-8e1e-4013166874bc",
"rel": "self"
},
{
"href": "https://troveapi.org/instances/d5a9db64-7ef7-41c5-8e1e-4013166874bc",
"rel": "bookmark"
}
],
"name": "backup_instance",
"status": "BUILD",
"updated": "2014-10-30T12:30:00",
"volume": {
"size": 2
}
}
}

View File

@ -0,0 +1,7 @@
GET /v1.0/1234/instances/44b277eb-39be-4921-be31-3d61b43651d7/backups HTTP/1.1
User-Agent: python-troveclient
Host: troveapi.org
X-Auth-Token: 87c6033c-9ff6-405f-943e-2deb73f278b7
Accept: application/json
Content-Type: application/json

View File

@ -0,0 +1,5 @@
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 442
Date: Mon, 18 Mar 2013 19:09:17 GMT

View File

@ -0,0 +1,22 @@
{
"backups": [
{
"created": "2014-10-30T12:30:00",
"datastore": {
"type": "mysql",
"version": "5.5",
"version_id": "b00000b0-00b0-0b00-00b0-000b000000bb"
},
"description": "My Backup",
"id": "a9832168-7541-4536-b8d9-a8a9b79cf1b4",
"instance_id": "44b277eb-39be-4921-be31-3d61b43651d7",
"locationRef": "http://localhost/path/to/backup",
"name": "snapshot",
"parent_id": null,
"size": null,
"status": "COMPLETED",
"updated": "2014-10-30T12:30:00"
}
]
}

View File

@ -0,0 +1,7 @@
PUT /v1.0/1234/instances/44b277eb-39be-4921-be31-3d61b43651d7/users/dbuser1 HTTP/1.1
User-Agent: python-troveclient
Host: troveapi.org
X-Auth-Token: 87c6033c-9ff6-405f-943e-2deb73f278b7
Accept: application/json
Content-Type: application/json

View File

@ -0,0 +1,7 @@
{
"user": {
"name": "new_username",
"password": "new_password"
}
}

View File

@ -0,0 +1,5 @@
HTTP/1.1 202 Accepted
Content-Type: application/json
Content-Length: 0
Date: Mon, 18 Mar 2013 19:09:17 GMT

View File

@ -1,6 +1,7 @@
GET /v1.0/1234/instances/44b277eb-39be-4921-be31-3d61b43651d7/root HTTP/1.1
User-Agent: python-reddwarfclient
Host: ord.databases.api.rackspacecloud.com
User-Agent: python-troveclient
Host: troveapi.org
X-Auth-Token: 87c6033c-9ff6-405f-943e-2deb73f278b7
Accept: application/json
Content-Type: application/json
Content-Type: application/json

View File

@ -1,6 +1,5 @@
HTTP/1.1 200 OK
Content-Type: application/json
Via: 1.1 Repose (Repose/2.6.7)
Content-Length: 21
Date: Mon, 18 Mar 2013 19:09:17 GMT
Server: Jetty(8.0.y.z-SNAPSHOT)

View File

@ -1,3 +1,4 @@
{
"rootEnabled": true
}
}

View File

@ -0,0 +1,7 @@
PUT /v1.0/1234/instances/44b277eb-39be-4921-be31-3d61b43651d7 HTTP/1.1
User-Agent: python-troveclient
Host: troveapi.org
X-Auth-Token: 87c6033c-9ff6-405f-943e-2deb73f278b7
Accept: application/json
Content-Type: application/json

View File

@ -0,0 +1,6 @@
{
"instance": {
"configuration": "43a6ea86-e959-4735-9e46-a6a5d4a2d80f"
}
}

View File

@ -0,0 +1,5 @@
HTTP/1.1 202 Accepted
Content-Type: application/json
Content-Length: 0
Date: Mon, 18 Mar 2013 19:09:17 GMT

View File

@ -0,0 +1,7 @@
POST /v1.0/1234/configurations HTTP/1.1
User-Agent: python-troveclient
Host: troveapi.org
X-Auth-Token: 87c6033c-9ff6-405f-943e-2deb73f278b7
Accept: application/json
Content-Type: application/json

View File

@ -0,0 +1,15 @@
{
"configuration": {
"datastore": {
"type": "a00000a0-00a0-0a00-00a0-000a000000aa",
"version": "b00000b0-00b0-0b00-00b0-000b000000bb"
},
"description": "example description",
"name": "example-configuration-name",
"values": {
"collation_server": "latin1_swedish_ci",
"connect_timeout": 120
}
}
}

View File

@ -0,0 +1,5 @@
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 431
Date: Mon, 18 Mar 2013 19:09:17 GMT

View File

@ -0,0 +1,18 @@
{
"configuration": {
"created": "2014-10-30T12:30:00",
"datastore_name": "mysql",
"datastore_version_id": "b00000b0-00b0-0b00-00b0-000b000000bb",
"datastore_version_name": "5.5",
"description": "example description",
"id": "43a6ea86-e959-4735-9e46-a6a5d4a2d80f",
"instance_count": 0,
"name": "example-configuration-name",
"updated": "2014-10-30T12:30:00",
"values": {
"collation_server": "latin1_swedish_ci",
"connect_timeout": 120
}
}
}

View File

@ -0,0 +1,7 @@
DELETE /v1.0/1234/configurations/43a6ea86-e959-4735-9e46-a6a5d4a2d80f HTTP/1.1
User-Agent: python-troveclient
Host: troveapi.org
X-Auth-Token: 87c6033c-9ff6-405f-943e-2deb73f278b7
Accept: application/json
Content-Type: application/json

View File

@ -0,0 +1,5 @@
HTTP/1.1 202 Accepted
Content-Type: application/json
Content-Length: 0
Date: Mon, 18 Mar 2013 19:09:17 GMT

View File

@ -0,0 +1,7 @@
PUT /v1.0/1234/instances/44b277eb-39be-4921-be31-3d61b43651d7 HTTP/1.1
User-Agent: python-troveclient
Host: troveapi.org
X-Auth-Token: 87c6033c-9ff6-405f-943e-2deb73f278b7
Accept: application/json
Content-Type: application/json

View File

@ -0,0 +1,6 @@
{
"instance": {
"configuration": ""
}
}

View File

@ -0,0 +1,5 @@
HTTP/1.1 202 Accepted
Content-Type: application/json
Content-Length: 0
Date: Mon, 18 Mar 2013 19:09:17 GMT

View File

@ -0,0 +1,7 @@
GET /v1.0/1234/configurations/43a6ea86-e959-4735-9e46-a6a5d4a2d80f HTTP/1.1
User-Agent: python-troveclient
Host: troveapi.org
X-Auth-Token: 87c6033c-9ff6-405f-943e-2deb73f278b7
Accept: application/json
Content-Type: application/json

View File

@ -0,0 +1,5 @@
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 431
Date: Mon, 18 Mar 2013 19:09:17 GMT

View File

@ -0,0 +1,18 @@
{
"configuration": {
"created": "2014-10-30T12:30:00",
"datastore_name": "mysql",
"datastore_version_id": "b00000b0-00b0-0b00-00b0-000b000000bb",
"datastore_version_name": "5.5",
"description": "example description",
"id": "43a6ea86-e959-4735-9e46-a6a5d4a2d80f",
"instance_count": 0,
"name": "example-configuration-name",
"updated": "2014-10-30T12:30:00",
"values": {
"collation_server": "latin1_swedish_ci",
"connect_timeout": 120
}
}
}

View File

@ -0,0 +1,7 @@
PATCH /v1.0/1234/configurations/43a6ea86-e959-4735-9e46-a6a5d4a2d80f HTTP/1.1
User-Agent: python-troveclient
Host: troveapi.org
X-Auth-Token: 87c6033c-9ff6-405f-943e-2deb73f278b7
Accept: application/json
Content-Type: application/json

View File

@ -0,0 +1,8 @@
{
"configuration": {
"values": {
"connect_timeout": 300
}
}
}

View File

@ -0,0 +1,5 @@
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 0
Date: Mon, 18 Mar 2013 19:09:17 GMT

View File

@ -0,0 +1,7 @@
GET /v1.0/1234/configurations/43a6ea86-e959-4735-9e46-a6a5d4a2d80f/instances HTTP/1.1
User-Agent: python-troveclient
Host: troveapi.org
X-Auth-Token: 87c6033c-9ff6-405f-943e-2deb73f278b7
Accept: application/json
Content-Type: application/json

View File

@ -0,0 +1,5 @@
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 93
Date: Mon, 18 Mar 2013 19:09:17 GMT

View File

@ -0,0 +1,9 @@
{
"instances": [
{
"id": "44b277eb-39be-4921-be31-3d61b43651d7",
"name": "json_rack_instance"
}
]
}

View File

@ -0,0 +1,7 @@
GET /v1.0/1234/configurations HTTP/1.1
User-Agent: python-troveclient
Host: troveapi.org
X-Auth-Token: 87c6033c-9ff6-405f-943e-2deb73f278b7
Accept: application/json
Content-Type: application/json

View File

@ -0,0 +1,5 @@
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 336
Date: Mon, 18 Mar 2013 19:09:17 GMT

View File

@ -0,0 +1,15 @@
{
"configurations": [
{
"created": "2014-10-30T12:30:00",
"datastore_name": "mysql",
"datastore_version_id": "b00000b0-00b0-0b00-00b0-000b000000bb",
"datastore_version_name": "5.5",
"description": "example description",
"id": "43a6ea86-e959-4735-9e46-a6a5d4a2d80f",
"name": "example-configuration-name",
"updated": "2014-10-30T12:30:00"
}
]
}

View File

@ -0,0 +1,7 @@
GET /v1.0/1234/datastores/a00000a0-00a0-0a00-00a0-000a000000aa/versions/b00000b0-00b0-0b00-00b0-000b000000bb/parameters/collation_server HTTP/1.1
User-Agent: python-troveclient
Host: troveapi.org
X-Auth-Token: 87c6033c-9ff6-405f-943e-2deb73f278b7
Accept: application/json
Content-Type: application/json

View File

@ -0,0 +1,5 @@
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 154
Date: Mon, 18 Mar 2013 19:09:17 GMT

View File

@ -0,0 +1,8 @@
{
"datastore_version_id": "b00000b0-00b0-0b00-00b0-000b000000bb",
"min_size": "0",
"name": "collation_server",
"restart_required": false,
"type": "string"
}

View File

@ -0,0 +1,7 @@
GET /v1.0/1234/datastores/versions/b00000b0-00b0-0b00-00b0-000b000000bb/parameters/collation_server HTTP/1.1
User-Agent: python-troveclient
Host: troveapi.org
X-Auth-Token: 87c6033c-9ff6-405f-943e-2deb73f278b7
Accept: application/json
Content-Type: application/json

View File

@ -0,0 +1,5 @@
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 154
Date: Mon, 18 Mar 2013 19:09:17 GMT

View File

@ -0,0 +1,8 @@
{
"datastore_version_id": "b00000b0-00b0-0b00-00b0-000b000000bb",
"min_size": "0",
"name": "collation_server",
"restart_required": false,
"type": "string"
}

View File

@ -0,0 +1,7 @@
GET /v1.0/1234/datastores/a00000a0-00a0-0a00-00a0-000a000000aa/versions/b00000b0-00b0-0b00-00b0-000b000000bb/parameters HTTP/1.1
User-Agent: python-troveclient
Host: troveapi.org
X-Auth-Token: 87c6033c-9ff6-405f-943e-2deb73f278b7
Accept: application/json
Content-Type: application/json

View File

@ -0,0 +1,5 @@
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 1085
Date: Mon, 18 Mar 2013 19:09:17 GMT

View File

@ -0,0 +1,52 @@
{
"configuration-parameters": [
{
"datastore_version_id": "b00000b0-00b0-0b00-00b0-000b000000bb",
"min_size": "0",
"name": "collation_server",
"restart_required": false,
"type": "string"
},
{
"datastore_version_id": "b00000b0-00b0-0b00-00b0-000b000000bb",
"max_size": "65535",
"min_size": "0",
"name": "connect_timeout",
"restart_required": false,
"type": "integer"
},
{
"datastore_version_id": "b00000b0-00b0-0b00-00b0-000b000000bb",
"max_size": "57671680",
"min_size": "0",
"name": "innodb_buffer_pool_size",
"restart_required": true,
"type": "integer"
},
{
"datastore_version_id": "b00000b0-00b0-0b00-00b0-000b000000bb",
"max_size": "4294967296",
"min_size": "0",
"name": "join_buffer_size",
"restart_required": false,
"type": "integer"
},
{
"datastore_version_id": "b00000b0-00b0-0b00-00b0-000b000000bb",
"max_size": "4294967296",
"min_size": "0",
"name": "key_buffer_size",
"restart_required": false,
"type": "integer"
},
{
"datastore_version_id": "b00000b0-00b0-0b00-00b0-000b000000bb",
"max_size": "1",
"min_size": "0",
"name": "local_infile",
"restart_required": false,
"type": "integer"
}
]
}

View File

@ -0,0 +1,7 @@
GET /v1.0/1234/datastores/versions/b00000b0-00b0-0b00-00b0-000b000000bb/parameters HTTP/1.1
User-Agent: python-troveclient
Host: troveapi.org
X-Auth-Token: 87c6033c-9ff6-405f-943e-2deb73f278b7
Accept: application/json
Content-Type: application/json

View File

@ -0,0 +1,5 @@
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 1085
Date: Mon, 18 Mar 2013 19:09:17 GMT

View File

@ -0,0 +1,52 @@
{
"configuration-parameters": [
{
"datastore_version_id": "b00000b0-00b0-0b00-00b0-000b000000bb",
"min_size": "0",
"name": "collation_server",
"restart_required": false,
"type": "string"
},
{
"datastore_version_id": "b00000b0-00b0-0b00-00b0-000b000000bb",
"max_size": "65535",
"min_size": "0",
"name": "connect_timeout",
"restart_required": false,
"type": "integer"
},
{
"datastore_version_id": "b00000b0-00b0-0b00-00b0-000b000000bb",
"max_size": "57671680",
"min_size": "0",
"name": "innodb_buffer_pool_size",
"restart_required": true,
"type": "integer"
},
{
"datastore_version_id": "b00000b0-00b0-0b00-00b0-000b000000bb",
"max_size": "4294967296",
"min_size": "0",
"name": "join_buffer_size",
"restart_required": false,
"type": "integer"
},
{
"datastore_version_id": "b00000b0-00b0-0b00-00b0-000b000000bb",
"max_size": "4294967296",
"min_size": "0",
"name": "key_buffer_size",
"restart_required": false,
"type": "integer"
},
{
"datastore_version_id": "b00000b0-00b0-0b00-00b0-000b000000bb",
"max_size": "1",
"min_size": "0",
"name": "local_infile",
"restart_required": false,
"type": "integer"
}
]
}

View File

@ -0,0 +1,7 @@
PUT /v1.0/1234/configurations/43a6ea86-e959-4735-9e46-a6a5d4a2d80f HTTP/1.1
User-Agent: python-troveclient
Host: troveapi.org
X-Auth-Token: 87c6033c-9ff6-405f-943e-2deb73f278b7
Accept: application/json
Content-Type: application/json

View File

@ -0,0 +1,11 @@
{
"configuration": {
"description": "example updated description",
"name": "example-updated-name",
"values": {
"collation_server": "utf8_unicode_ci",
"connect_timeout": 150
}
}
}

View File

@ -0,0 +1,5 @@
HTTP/1.1 202 Accepted
Content-Type: application/json
Content-Length: 0
Date: Mon, 18 Mar 2013 19:09:17 GMT

View File

@ -1,6 +1,7 @@
POST /v1.0/1234/instances/44b277eb-39be-4921-be31-3d61b43651d7/databases HTTP/1.1
User-Agent: python-reddwarfclient
Host: ord.databases.api.rackspacecloud.com
User-Agent: python-troveclient
Host: troveapi.org
X-Auth-Token: 87c6033c-9ff6-405f-943e-2deb73f278b7
Accept: application/json
Content-Type: application/json
Content-Type: application/json

View File

@ -12,4 +12,5 @@
"name": "oneMoreDB"
}
]
}
}

View File

@ -1,6 +1,5 @@
HTTP/1.1 202 Accepted
Content-Type: application/json
Via: 1.1 Repose (Repose/2.6.7)
Content-Length: 0
Date: Mon, 18 Mar 2013 19:09:17 GMT
Server: Jetty(8.0.y.z-SNAPSHOT)

View File

@ -1,6 +1,7 @@
POST /v1.0/1234/instances HTTP/1.1
User-Agent: python-reddwarfclient
Host: ord.databases.api.rackspacecloud.com
User-Agent: python-troveclient
Host: troveapi.org
X-Auth-Token: 87c6033c-9ff6-405f-943e-2deb73f278b7
Accept: application/json
Content-Type: application/json
Content-Type: application/json

View File

@ -27,4 +27,5 @@
"size": 2
}
}
}
}

View File

@ -1,6 +1,5 @@
HTTP/1.1 200 OK
Content-Type: application/json
Via: 1.1 Repose (Repose/2.6.7)
Content-Length: 591
Content-Length: 697
Date: Mon, 18 Mar 2013 19:09:17 GMT
Server: Jetty(8.0.y.z-SNAPSHOT)

View File

@ -1,35 +1,41 @@
{
"instance": {
"created": "2013-03-18T19:09:17",
"created": "2014-10-30T12:30:00",
"datastore": {
"type": "mysql",
"version": "5.5"
},
"flavor": {
"id": "1",
"links": [
{
"href": "https://ord.databases.api.rackspacecloud.com/v1.0/1234/flavors/1",
"href": "https://troveapi.org/v1.0/1234/flavors/1",
"rel": "self"
},
{
"href": "https://ord.databases.api.rackspacecloud.com/flavors/1",
"href": "https://troveapi.org/flavors/1",
"rel": "bookmark"
}
]
},
"hostname": "e09ad9a3f73309469cf1f43d11e79549caf9acf2.troveexampledb.com",
"id": "44b277eb-39be-4921-be31-3d61b43651d7",
"links": [
{
"href": "https://ord.databases.api.rackspacecloud.com/v1.0/1234/instances/44b277eb-39be-4921-be31-3d61b43651d7",
"href": "https://troveapi.org/v1.0/1234/instances/44b277eb-39be-4921-be31-3d61b43651d7",
"rel": "self"
},
{
"href": "https://ord.databases.api.rackspacecloud.com/instances/44b277eb-39be-4921-be31-3d61b43651d7",
"href": "https://troveapi.org/instances/44b277eb-39be-4921-be31-3d61b43651d7",
"rel": "bookmark"
}
],
"name": "json_rack_instance",
"status": "BUILD",
"updated": "2013-03-18T19:09:17",
"updated": "2014-10-30T12:30:00",
"volume": {
"size": 2
}
}
}
}

View File

@ -1,6 +1,7 @@
POST /v1.0/1234/instances/44b277eb-39be-4921-be31-3d61b43651d7/users HTTP/1.1
User-Agent: python-reddwarfclient
Host: ord.databases.api.rackspacecloud.com
User-Agent: python-troveclient
Host: troveapi.org
X-Auth-Token: 87c6033c-9ff6-405f-943e-2deb73f278b7
Accept: application/json
Content-Type: application/json
Content-Type: application/json

View File

@ -1,7 +1,11 @@
{
"users": [
{
"database": "databaseA",
"databases": [
{
"name": "databaseA"
}
],
"name": "dbuser1",
"password": "password"
},
@ -18,9 +22,14 @@
"password": "password"
},
{
"database": "databaseD",
"databases": [
{
"name": "databaseD"
}
],
"name": "dbuser3",
"password": "password"
}
]
}
}

View File

@ -1,6 +1,5 @@
HTTP/1.1 202 Accepted
Content-Type: application/json
Via: 1.1 Repose (Repose/2.6.7)
Content-Length: 0
Date: Mon, 18 Mar 2013 19:09:17 GMT
Server: Jetty(8.0.y.z-SNAPSHOT)

View File

@ -0,0 +1,7 @@
GET /v1.0/1234/datastores/a00000a0-00a0-0a00-00a0-000a000000aa HTTP/1.1
User-Agent: python-troveclient
Host: troveapi.org
X-Auth-Token: 87c6033c-9ff6-405f-943e-2deb73f278b7
Accept: application/json
Content-Type: application/json

View File

@ -0,0 +1,5 @@
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 678
Date: Mon, 18 Mar 2013 19:09:17 GMT

View File

@ -0,0 +1,34 @@
{
"datastore": {
"default_version": "b00000b0-00b0-0b00-00b0-000b000000bb",
"id": "a00000a0-00a0-0a00-00a0-000a000000aa",
"links": [
{
"href": "https://troveapi.org/v1.0/1234/datastores/a00000a0-00a0-0a00-00a0-000a000000aa",
"rel": "self"
},
{
"href": "https://troveapi.org/datastores/a00000a0-00a0-0a00-00a0-000a000000aa",
"rel": "bookmark"
}
],
"name": "mysql",
"versions": [
{
"id": "b00000b0-00b0-0b00-00b0-000b000000bb",
"links": [
{
"href": "https://troveapi.org/v1.0/1234/datastores/versions/b00000b0-00b0-0b00-00b0-000b000000bb",
"rel": "self"
},
{
"href": "https://troveapi.org/datastores/versions/b00000b0-00b0-0b00-00b0-000b000000bb",
"rel": "bookmark"
}
],
"name": "5.5"
}
]
}
}

View File

@ -0,0 +1,7 @@
GET /v1.0/1234/datastores/a00000a0-00a0-0a00-00a0-000a000000aa/versions/b00000b0-00b0-0b00-00b0-000b000000bb HTTP/1.1
User-Agent: python-troveclient
Host: troveapi.org
X-Auth-Token: 87c6033c-9ff6-405f-943e-2deb73f278b7
Accept: application/json
Content-Type: application/json

View File

@ -0,0 +1,5 @@
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 368
Date: Mon, 18 Mar 2013 19:09:17 GMT

View File

@ -0,0 +1,18 @@
{
"version": {
"datastore": "a00000a0-00a0-0a00-00a0-000a000000aa",
"id": "b00000b0-00b0-0b00-00b0-000b000000bb",
"links": [
{
"href": "https://troveapi.org/v1.0/1234/datastores/versions/b00000b0-00b0-0b00-00b0-000b000000bb",
"rel": "self"
},
{
"href": "https://troveapi.org/datastores/versions/b00000b0-00b0-0b00-00b0-000b000000bb",
"rel": "bookmark"
}
],
"name": "5.5"
}
}

View File

@ -0,0 +1,7 @@
GET /v1.0/1234/datastores/a00000a0-00a0-0a00-00a0-000a000000aa/versions HTTP/1.1
User-Agent: python-troveclient
Host: troveapi.org
X-Auth-Token: 87c6033c-9ff6-405f-943e-2deb73f278b7
Accept: application/json
Content-Type: application/json

View File

@ -0,0 +1,5 @@
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 371
Date: Mon, 18 Mar 2013 19:09:17 GMT

View File

@ -0,0 +1,20 @@
{
"versions": [
{
"datastore": "a00000a0-00a0-0a00-00a0-000a000000aa",
"id": "b00000b0-00b0-0b00-00b0-000b000000bb",
"links": [
{
"href": "https://troveapi.org/v1.0/1234/datastores/versions/b00000b0-00b0-0b00-00b0-000b000000bb",
"rel": "self"
},
{
"href": "https://troveapi.org/datastores/versions/b00000b0-00b0-0b00-00b0-000b000000bb",
"rel": "bookmark"
}
],
"name": "5.5"
}
]
}

View File

@ -0,0 +1,7 @@
GET /v1.0/1234/datastores HTTP/1.1
User-Agent: python-troveclient
Host: troveapi.org
X-Auth-Token: 87c6033c-9ff6-405f-943e-2deb73f278b7
Accept: application/json
Content-Type: application/json

View File

@ -0,0 +1,5 @@
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 681
Date: Mon, 18 Mar 2013 19:09:17 GMT

View File

@ -0,0 +1,36 @@
{
"datastores": [
{
"default_version": "b00000b0-00b0-0b00-00b0-000b000000bb",
"id": "a00000a0-00a0-0a00-00a0-000a000000aa",
"links": [
{
"href": "https://troveapi.org/v1.0/1234/datastores/a00000a0-00a0-0a00-00a0-000a000000aa",
"rel": "self"
},
{
"href": "https://troveapi.org/datastores/a00000a0-00a0-0a00-00a0-000a000000aa",
"rel": "bookmark"
}
],
"name": "mysql",
"versions": [
{
"id": "b00000b0-00b0-0b00-00b0-000b000000bb",
"links": [
{
"href": "https://troveapi.org/v1.0/1234/datastores/versions/b00000b0-00b0-0b00-00b0-000b000000bb",
"rel": "self"
},
{
"href": "https://troveapi.org/datastores/versions/b00000b0-00b0-0b00-00b0-000b000000bb",
"rel": "bookmark"
}
],
"name": "5.5"
}
]
}
]
}

View File

@ -1,6 +1,7 @@
DELETE /v1.0/1234/instances/44b277eb-39be-4921-be31-3d61b43651d7/databases/testingdb HTTP/1.1
User-Agent: python-reddwarfclient
Host: ord.databases.api.rackspacecloud.com
User-Agent: python-troveclient
Host: troveapi.org
X-Auth-Token: 87c6033c-9ff6-405f-943e-2deb73f278b7
Accept: application/json
Content-Type: application/json
Content-Type: application/json

View File

@ -1,6 +1,5 @@
HTTP/1.1 202 Accepted
Content-Type: application/json
Via: 1.1 Repose (Repose/2.6.7)
Content-Length: 0
Date: Mon, 18 Mar 2013 19:09:17 GMT
Server: Jetty(8.0.y.z-SNAPSHOT)

View File

@ -1,6 +1,7 @@
DELETE /v1.0/1234/instances/44b277eb-39be-4921-be31-3d61b43651d7 HTTP/1.1
User-Agent: python-reddwarfclient
Host: ord.databases.api.rackspacecloud.com
User-Agent: python-troveclient
Host: troveapi.org
X-Auth-Token: 87c6033c-9ff6-405f-943e-2deb73f278b7
Accept: application/json
Content-Type: application/json
Content-Type: application/json

View File

@ -1,6 +1,5 @@
HTTP/1.1 202 Accepted
Content-Type: application/json
Via: 1.1 Repose (Repose/2.6.7)
Content-Length: 0
Date: Mon, 18 Mar 2013 19:09:18 GMT
Server: Jetty(8.0.y.z-SNAPSHOT)
Date: Mon, 18 Mar 2013 19:09:17 GMT

View File

@ -1,6 +1,7 @@
DELETE /v1.0/1234/instances/44b277eb-39be-4921-be31-3d61b43651d7/users/testuser HTTP/1.1
User-Agent: python-reddwarfclient
Host: ord.databases.api.rackspacecloud.com
DELETE /v1.0/1234/instances/44b277eb-39be-4921-be31-3d61b43651d7/users/demouser HTTP/1.1
User-Agent: python-troveclient
Host: troveapi.org
X-Auth-Token: 87c6033c-9ff6-405f-943e-2deb73f278b7
Accept: application/json
Content-Type: application/json
Content-Type: application/json

View File

@ -1,6 +1,5 @@
HTTP/1.1 202 Accepted
Content-Type: application/json
Via: 1.1 Repose (Repose/2.6.7)
Content-Length: 0
Date: Mon, 18 Mar 2013 19:09:17 GMT
Server: Jetty(8.0.y.z-SNAPSHOT)

View File

@ -1,6 +1,7 @@
POST /v1.0/1234/instances/44b277eb-39be-4921-be31-3d61b43651d7/root HTTP/1.1
User-Agent: python-reddwarfclient
Host: ord.databases.api.rackspacecloud.com
User-Agent: python-troveclient
Host: troveapi.org
X-Auth-Token: 87c6033c-9ff6-405f-943e-2deb73f278b7
Accept: application/json
Content-Type: application/json
Content-Type: application/json

View File

@ -1,6 +1,5 @@
HTTP/1.1 200 OK
Content-Type: application/json
Via: 1.1 Repose (Repose/2.6.7)
Content-Length: 47
Date: Mon, 18 Mar 2013 19:09:17 GMT
Server: Jetty(8.0.y.z-SNAPSHOT)

View File

@ -3,4 +3,5 @@
"name": "root",
"password": "12345"
}
}
}

View File

@ -1,6 +1,7 @@
GET /v1.0/1234/flavors/1 HTTP/1.1
User-Agent: python-reddwarfclient
Host: ord.databases.api.rackspacecloud.com
User-Agent: python-troveclient
Host: troveapi.org
X-Auth-Token: 87c6033c-9ff6-405f-943e-2deb73f278b7
Accept: application/json
Content-Type: application/json
Content-Type: application/json

View File

@ -1,6 +1,5 @@
HTTP/1.1 200 OK
Content-Type: application/json
Via: 1.1 Repose (Repose/2.6.7)
Content-Length: 206
Content-Length: 199
Date: Mon, 18 Mar 2013 19:09:17 GMT
Server: Jetty(8.0.y.z-SNAPSHOT)

View File

@ -3,15 +3,16 @@
"id": 1,
"links": [
{
"href": "https://ord.databases.api.rackspacecloud.com/v1.0/1234/flavors/1",
"href": "https://troveapi.org/v1.0/1234/flavors/1",
"rel": "self"
},
{
"href": "https://ord.databases.api.rackspacecloud.com/flavors/1",
"href": "https://troveapi.org/flavors/1",
"rel": "bookmark"
}
],
"name": "512MB Instance",
"name": "m1.tiny",
"ram": 512
}
}
}

View File

@ -1,6 +1,7 @@
GET /v1.0/1234/flavors HTTP/1.1
User-Agent: python-reddwarfclient
Host: ord.databases.api.rackspacecloud.com
User-Agent: python-troveclient
Host: troveapi.org
X-Auth-Token: 87c6033c-9ff6-405f-943e-2deb73f278b7
Accept: application/json
Content-Type: application/json
Content-Type: application/json

View File

@ -1,6 +1,5 @@
HTTP/1.1 200 OK
Content-Type: application/json
Via: 1.1 Repose (Repose/2.6.7)
Content-Length: 1186
Content-Length: 2320
Date: Mon, 18 Mar 2013 19:09:17 GMT
Server: Jetty(8.0.y.z-SNAPSHOT)

Some files were not shown because too many files have changed in this diff Show More