diff options
| author | Matthew Treinish <treinish@linux.vnet.ibm.com> | 2012-09-14 09:52:05 -0400 |
|---|---|---|
| committer | Matthew Treinish <treinish@linux.vnet.ibm.com> | 2012-10-01 14:51:04 -0400 |
| commit | ce2ba8fae83dbee8e36eda69d9f4c82ad67838b7 (patch) | |
| tree | 4c276a8f180499d14d1fbe48f4d3d63d3f392842 /doc | |
| parent | 878dd9c0e29aeff4b485c28c63ba6c607fa7ca10 (diff) | |
Add aggregates extension to API samples test.
Change-Id: I8f0f5b022795dc1d766e585cab8fe5f8445a3722
Signed-off-by: Matthew Treinish <treinish@linux.vnet.ibm.com>
Diffstat (limited to 'doc')
26 files changed, 264 insertions, 0 deletions
diff --git a/doc/api_samples/os-aggregates/aggregate-add-host-post-req.json b/doc/api_samples/os-aggregates/aggregate-add-host-post-req.json new file mode 100644 index 000000000..cd6fc6e08 --- /dev/null +++ b/doc/api_samples/os-aggregates/aggregate-add-host-post-req.json @@ -0,0 +1,6 @@ +{ + "add_host": + { + "host": "581d29b9e3504d8a895caddb13839b15" + } +}
\ No newline at end of file diff --git a/doc/api_samples/os-aggregates/aggregate-add-host-post-req.xml b/doc/api_samples/os-aggregates/aggregate-add-host-post-req.xml new file mode 100644 index 000000000..5f48f043d --- /dev/null +++ b/doc/api_samples/os-aggregates/aggregate-add-host-post-req.xml @@ -0,0 +1,2 @@ +<?xml version="1.0" encoding="UTF-8"?> +<add_host host="7c9e00dbca5e4fb88538b021c0f933a5" />
\ No newline at end of file diff --git a/doc/api_samples/os-aggregates/aggregate-metadata-post-req.json b/doc/api_samples/os-aggregates/aggregate-metadata-post-req.json new file mode 100644 index 000000000..7331e06a8 --- /dev/null +++ b/doc/api_samples/os-aggregates/aggregate-metadata-post-req.json @@ -0,0 +1,9 @@ +{ + "set_metadata": + { + "metadata": + { + "key": "value" + } + } +}
\ No newline at end of file diff --git a/doc/api_samples/os-aggregates/aggregate-metadata-post-req.xml b/doc/api_samples/os-aggregates/aggregate-metadata-post-req.xml new file mode 100644 index 000000000..d9b935fd4 --- /dev/null +++ b/doc/api_samples/os-aggregates/aggregate-metadata-post-req.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<set_metadata> + <metadata> + <key>value</key> + </metadata> +</set_metadata>
\ No newline at end of file diff --git a/doc/api_samples/os-aggregates/aggregate-post-req.json b/doc/api_samples/os-aggregates/aggregate-post-req.json new file mode 100644 index 000000000..82272c293 --- /dev/null +++ b/doc/api_samples/os-aggregates/aggregate-post-req.json @@ -0,0 +1,7 @@ +{ + "aggregate": + { + "name": "name", + "availability_zone": "nova" + } +}
\ No newline at end of file diff --git a/doc/api_samples/os-aggregates/aggregate-post-req.xml b/doc/api_samples/os-aggregates/aggregate-post-req.xml new file mode 100644 index 000000000..d25f5f848 --- /dev/null +++ b/doc/api_samples/os-aggregates/aggregate-post-req.xml @@ -0,0 +1,2 @@ +<?xml version="1.0" encoding="UTF-8"?> +<aggregate name="name" availability_zone="nova" />
\ No newline at end of file diff --git a/doc/api_samples/os-aggregates/aggregate-post-resp.json b/doc/api_samples/os-aggregates/aggregate-post-resp.json new file mode 100644 index 000000000..6dd939b36 --- /dev/null +++ b/doc/api_samples/os-aggregates/aggregate-post-resp.json @@ -0,0 +1,11 @@ +{ + "aggregate": { + "availability_zone": "nova", + "created_at": "2012-10-01T18:50:27.781065", + "deleted": false, + "deleted_at": null, + "id": 1, + "name": "name", + "updated_at": null + } +}
\ No newline at end of file diff --git a/doc/api_samples/os-aggregates/aggregate-post-resp.xml b/doc/api_samples/os-aggregates/aggregate-post-resp.xml new file mode 100644 index 000000000..544271bdc --- /dev/null +++ b/doc/api_samples/os-aggregates/aggregate-post-resp.xml @@ -0,0 +1,10 @@ +<?xml version='1.0' encoding='UTF-8'?> +<aggregate> + <name>name</name> + <availability_zone>nova</availability_zone> + <deleted>False</deleted> + <created_at>2012-10-01 18:50:35.506667</created_at> + <updated_at>None</updated_at> + <deleted_at>None</deleted_at> + <id>1</id> +</aggregate>
\ No newline at end of file diff --git a/doc/api_samples/os-aggregates/aggregate-remove-host-post-req.json b/doc/api_samples/os-aggregates/aggregate-remove-host-post-req.json new file mode 100644 index 000000000..e5165cbab --- /dev/null +++ b/doc/api_samples/os-aggregates/aggregate-remove-host-post-req.json @@ -0,0 +1,6 @@ +{ + "remove_host": + { + "host": "581d29b9e3504d8a895caddb13839b15" + } +}
\ No newline at end of file diff --git a/doc/api_samples/os-aggregates/aggregate-remove-host-post-req.xml b/doc/api_samples/os-aggregates/aggregate-remove-host-post-req.xml new file mode 100644 index 000000000..87e5d64f9 --- /dev/null +++ b/doc/api_samples/os-aggregates/aggregate-remove-host-post-req.xml @@ -0,0 +1,2 @@ +<?xml version="1.0" encoding="UTF-8"?> +<remove_host host="7c9e00dbca5e4fb88538b021c0f933a5" />
\ No newline at end of file diff --git a/doc/api_samples/os-aggregates/aggregate-update-post-req.json b/doc/api_samples/os-aggregates/aggregate-update-post-req.json new file mode 100644 index 000000000..0af1a37a4 --- /dev/null +++ b/doc/api_samples/os-aggregates/aggregate-update-post-req.json @@ -0,0 +1,7 @@ +{ + "aggregate": + { + "name": "newname", + "availability_zone": "nova2" + } +}
\ No newline at end of file diff --git a/doc/api_samples/os-aggregates/aggregate-update-post-req.xml b/doc/api_samples/os-aggregates/aggregate-update-post-req.xml new file mode 100644 index 000000000..1eb9c38fd --- /dev/null +++ b/doc/api_samples/os-aggregates/aggregate-update-post-req.xml @@ -0,0 +1,2 @@ +<?xml version="1.0" encoding="UTF-8"?> +<aggregate name="newname" availability_zone="nova2" />
\ No newline at end of file diff --git a/doc/api_samples/os-aggregates/aggregate-update-post-resp.json b/doc/api_samples/os-aggregates/aggregate-update-post-resp.json new file mode 100644 index 000000000..81869e730 --- /dev/null +++ b/doc/api_samples/os-aggregates/aggregate-update-post-resp.json @@ -0,0 +1,13 @@ +{ + "aggregate": { + "availability_zone": "nova2", + "created_at": "2012-10-01T18:50:27.781065", + "deleted": false, + "deleted_at": null, + "hosts": [], + "id": 1, + "metadata": {}, + "name": "newname", + "updated_at": "2012-10-01T18:50:27.791392" + } +}
\ No newline at end of file diff --git a/doc/api_samples/os-aggregates/aggregate-update-post-resp.xml b/doc/api_samples/os-aggregates/aggregate-update-post-resp.xml new file mode 100644 index 000000000..ad9498aa0 --- /dev/null +++ b/doc/api_samples/os-aggregates/aggregate-update-post-resp.xml @@ -0,0 +1,12 @@ +<?xml version='1.0' encoding='UTF-8'?> +<aggregate> + <name>newname</name> + <availability_zone>nova2</availability_zone> + <deleted>False</deleted> + <created_at>2012-10-01 18:50:35.506667</created_at> + <updated_at>2012-10-01 18:50:35.517397</updated_at> + <hosts/> + <deleted_at>None</deleted_at> + <id>1</id> + <metadata/> +</aggregate>
\ No newline at end of file diff --git a/doc/api_samples/os-aggregates/aggregates-add-host-post-resp.json b/doc/api_samples/os-aggregates/aggregates-add-host-post-resp.json new file mode 100644 index 000000000..518f4176a --- /dev/null +++ b/doc/api_samples/os-aggregates/aggregates-add-host-post-resp.json @@ -0,0 +1,15 @@ +{ + "aggregate": { + "availability_zone": "nova", + "created_at": "2012-10-01T18:50:27.511586", + "deleted": false, + "deleted_at": null, + "hosts": [ + "581d29b9e3504d8a895caddb13839b15" + ], + "id": 1, + "metadata": {}, + "name": "name", + "updated_at": null + } +}
\ No newline at end of file diff --git a/doc/api_samples/os-aggregates/aggregates-add-host-post-resp.xml b/doc/api_samples/os-aggregates/aggregates-add-host-post-resp.xml new file mode 100644 index 000000000..a4c9de5fd --- /dev/null +++ b/doc/api_samples/os-aggregates/aggregates-add-host-post-resp.xml @@ -0,0 +1,14 @@ +<?xml version='1.0' encoding='UTF-8'?> +<aggregate> + <name>name</name> + <availability_zone>nova</availability_zone> + <deleted>False</deleted> + <created_at>2012-10-01 18:50:35.236556</created_at> + <updated_at>None</updated_at> + <hosts> + <host>7c9e00dbca5e4fb88538b021c0f933a5</host> + </hosts> + <deleted_at>None</deleted_at> + <id>1</id> + <metadata/> +</aggregate>
\ No newline at end of file diff --git a/doc/api_samples/os-aggregates/aggregates-get-resp.json b/doc/api_samples/os-aggregates/aggregates-get-resp.json new file mode 100644 index 000000000..cde446e51 --- /dev/null +++ b/doc/api_samples/os-aggregates/aggregates-get-resp.json @@ -0,0 +1,13 @@ +{ + "aggregate": { + "availability_zone": "nova", + "created_at": "2012-10-01T18:50:27.048605", + "deleted": false, + "deleted_at": null, + "hosts": [], + "id": 1, + "metadata": {}, + "name": "name", + "updated_at": null + } +}
\ No newline at end of file diff --git a/doc/api_samples/os-aggregates/aggregates-get-resp.xml b/doc/api_samples/os-aggregates/aggregates-get-resp.xml new file mode 100644 index 000000000..be1349bd2 --- /dev/null +++ b/doc/api_samples/os-aggregates/aggregates-get-resp.xml @@ -0,0 +1,12 @@ +<?xml version='1.0' encoding='UTF-8'?> +<aggregate> + <name>name</name> + <availability_zone>nova</availability_zone> + <deleted>False</deleted> + <created_at>2012-10-01 18:50:34.764838</created_at> + <updated_at>None</updated_at> + <hosts/> + <deleted_at>None</deleted_at> + <id>1</id> + <metadata/> +</aggregate>
\ No newline at end of file diff --git a/doc/api_samples/os-aggregates/aggregates-list-get-resp.json b/doc/api_samples/os-aggregates/aggregates-list-get-resp.json new file mode 100644 index 000000000..75b412b53 --- /dev/null +++ b/doc/api_samples/os-aggregates/aggregates-list-get-resp.json @@ -0,0 +1,15 @@ +{ + "aggregates": [ + { + "availability_zone": "nova", + "created_at": "2012-10-01T18:50:27.252869", + "deleted": false, + "deleted_at": null, + "hosts": [], + "id": 1, + "metadata": {}, + "name": "name", + "updated_at": null + } + ] +}
\ No newline at end of file diff --git a/doc/api_samples/os-aggregates/aggregates-list-get-resp.xml b/doc/api_samples/os-aggregates/aggregates-list-get-resp.xml new file mode 100644 index 000000000..c5590855b --- /dev/null +++ b/doc/api_samples/os-aggregates/aggregates-list-get-resp.xml @@ -0,0 +1,14 @@ +<?xml version='1.0' encoding='UTF-8'?> +<aggregates> + <aggregate> + <name>name</name> + <availability_zone>nova</availability_zone> + <deleted>False</deleted> + <created_at>2012-10-01 18:50:34.970677</created_at> + <updated_at>None</updated_at> + <hosts/> + <deleted_at>None</deleted_at> + <id>1</id> + <metadata/> + </aggregate> +</aggregates>
\ No newline at end of file diff --git a/doc/api_samples/os-aggregates/aggregates-metadata-post-resp.json b/doc/api_samples/os-aggregates/aggregates-metadata-post-resp.json new file mode 100644 index 000000000..dc4806a4f --- /dev/null +++ b/doc/api_samples/os-aggregates/aggregates-metadata-post-resp.json @@ -0,0 +1,15 @@ +{ + "aggregate": { + "availability_zone": "nova", + "created_at": "2012-10-01T18:50:26.604176", + "deleted": false, + "deleted_at": null, + "hosts": [], + "id": 1, + "metadata": { + "key": "value" + }, + "name": "name", + "updated_at": null + } +}
\ No newline at end of file diff --git a/doc/api_samples/os-aggregates/aggregates-metadata-post-resp.xml b/doc/api_samples/os-aggregates/aggregates-metadata-post-resp.xml new file mode 100644 index 000000000..7eeefb8b7 --- /dev/null +++ b/doc/api_samples/os-aggregates/aggregates-metadata-post-resp.xml @@ -0,0 +1,14 @@ +<?xml version='1.0' encoding='UTF-8'?> +<aggregate> + <name>name</name> + <availability_zone>nova</availability_zone> + <deleted>False</deleted> + <created_at>2012-10-01 18:50:34.313003</created_at> + <updated_at>None</updated_at> + <hosts/> + <deleted_at>None</deleted_at> + <id>1</id> + <metadata> + <key>value</key> + </metadata> +</aggregate>
\ No newline at end of file diff --git a/doc/api_samples/os-aggregates/aggregates-remove-host-post-resp.json b/doc/api_samples/os-aggregates/aggregates-remove-host-post-resp.json new file mode 100644 index 000000000..497fcb7fb --- /dev/null +++ b/doc/api_samples/os-aggregates/aggregates-remove-host-post-resp.json @@ -0,0 +1,13 @@ +{ + "aggregate": { + "availability_zone": "nova", + "created_at": "2012-10-01T18:50:27.511586", + "deleted": false, + "deleted_at": null, + "hosts": [], + "id": 1, + "metadata": {}, + "name": "name", + "updated_at": null + } +}
\ No newline at end of file diff --git a/doc/api_samples/os-aggregates/aggregates-remove-host-post-resp.xml b/doc/api_samples/os-aggregates/aggregates-remove-host-post-resp.xml new file mode 100644 index 000000000..dc8a55330 --- /dev/null +++ b/doc/api_samples/os-aggregates/aggregates-remove-host-post-resp.xml @@ -0,0 +1,12 @@ +<?xml version='1.0' encoding='UTF-8'?> +<aggregate> + <name>name</name> + <availability_zone>nova</availability_zone> + <deleted>False</deleted> + <created_at>2012-10-01 18:50:35.236556</created_at> + <updated_at>None</updated_at> + <hosts/> + <deleted_at>None</deleted_at> + <id>1</id> + <metadata/> +</aggregate>
\ No newline at end of file diff --git a/doc/api_samples/os-aggregates/server-post-req.json b/doc/api_samples/os-aggregates/server-post-req.json new file mode 100644 index 000000000..d88eb4122 --- /dev/null +++ b/doc/api_samples/os-aggregates/server-post-req.json @@ -0,0 +1,16 @@ +{ + "server" : { + "name" : "new-server-test", + "imageRef" : "http://openstack.example.com/openstack/images/70a599e0-31e7-49b7-b260-868f441e862b", + "flavorRef" : "http://openstack.example.com/openstack/flavors/1", + "metadata" : { + "My Server Name" : "Apache1" + }, + "personality" : [ + { + "path" : "/etc/banner.txt", + "contents" : "ICAgICAgDQoiQSBjbG91ZCBkb2VzIG5vdCBrbm93IHdoeSBpdCBtb3ZlcyBpbiBqdXN0IHN1Y2ggYSBkaXJlY3Rpb24gYW5kIGF0IHN1Y2ggYSBzcGVlZC4uLkl0IGZlZWxzIGFuIGltcHVsc2lvbi4uLnRoaXMgaXMgdGhlIHBsYWNlIHRvIGdvIG5vdy4gQnV0IHRoZSBza3kga25vd3MgdGhlIHJlYXNvbnMgYW5kIHRoZSBwYXR0ZXJucyBiZWhpbmQgYWxsIGNsb3VkcywgYW5kIHlvdSB3aWxsIGtub3csIHRvbywgd2hlbiB5b3UgbGlmdCB5b3Vyc2VsZiBoaWdoIGVub3VnaCB0byBzZWUgYmV5b25kIGhvcml6b25zLiINCg0KLVJpY2hhcmQgQmFjaA==" + } + ] + } +}
\ No newline at end of file diff --git a/doc/api_samples/os-aggregates/server-post-resp.json b/doc/api_samples/os-aggregates/server-post-resp.json new file mode 100644 index 000000000..0eba66ae6 --- /dev/null +++ b/doc/api_samples/os-aggregates/server-post-resp.json @@ -0,0 +1,16 @@ +{ + "server": { + "adminPass": "kWaKB9zfiMsq", + "id": "d261e7aa-50ea-45bb-827c-61bd94deb012", + "links": [ + { + "href": "http://openstack.example.com/v2/openstack/servers/d261e7aa-50ea-45bb-827c-61bd94deb012", + "rel": "self" + }, + { + "href": "http://openstack.example.com/openstack/servers/d261e7aa-50ea-45bb-827c-61bd94deb012", + "rel": "bookmark" + } + ] + } +}
\ No newline at end of file |
