diff options
| author | Jenkins <jenkins@review.openstack.org> | 2013-02-10 15:19:39 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2013-02-10 15:19:39 +0000 |
| commit | e6c28a7a8d47e0c3410ded31e48e2fd3cbd6c238 (patch) | |
| tree | ebb7659b489417f0ef6e634378df52c43ea2e704 /doc | |
| parent | f9c4cd90a94516ec05acbb62b13b48af646fa218 (diff) | |
| parent | 73b3686862a6663493c011d2faa909b61857e19e (diff) | |
| download | nova-e6c28a7a8d47e0c3410ded31e48e2fd3cbd6c238.tar.gz nova-e6c28a7a8d47e0c3410ded31e48e2fd3cbd6c238.tar.xz nova-e6c28a7a8d47e0c3410ded31e48e2fd3cbd6c238.zip | |
Merge "Add api-samples to multinic extension"
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/api_samples/NMN/multinic-add-fixed-ip-req.json | 5 | ||||
| -rw-r--r-- | doc/api_samples/NMN/multinic-add-fixed-ip-req.xml | 3 | ||||
| -rw-r--r-- | doc/api_samples/NMN/multinic-remove-fixed-ip-req.json | 5 | ||||
| -rw-r--r-- | doc/api_samples/NMN/multinic-remove-fixed-ip-req.xml | 3 | ||||
| -rw-r--r-- | doc/api_samples/NMN/server-post-req.json | 16 | ||||
| -rw-r--r-- | doc/api_samples/NMN/server-post-req.xml | 19 | ||||
| -rw-r--r-- | doc/api_samples/NMN/server-post-resp.json | 16 | ||||
| -rw-r--r-- | doc/api_samples/NMN/server-post-resp.xml | 6 |
8 files changed, 73 insertions, 0 deletions
diff --git a/doc/api_samples/NMN/multinic-add-fixed-ip-req.json b/doc/api_samples/NMN/multinic-add-fixed-ip-req.json new file mode 100644 index 000000000..860308403 --- /dev/null +++ b/doc/api_samples/NMN/multinic-add-fixed-ip-req.json @@ -0,0 +1,5 @@ +{ + "addFixedIp":{ + "networkId": 1 + } +} diff --git a/doc/api_samples/NMN/multinic-add-fixed-ip-req.xml b/doc/api_samples/NMN/multinic-add-fixed-ip-req.xml new file mode 100644 index 000000000..4c72212a7 --- /dev/null +++ b/doc/api_samples/NMN/multinic-add-fixed-ip-req.xml @@ -0,0 +1,3 @@ +<addFixedIp> + <networkId>1</networkId> +</addFixedIp> diff --git a/doc/api_samples/NMN/multinic-remove-fixed-ip-req.json b/doc/api_samples/NMN/multinic-remove-fixed-ip-req.json new file mode 100644 index 000000000..0756d039e --- /dev/null +++ b/doc/api_samples/NMN/multinic-remove-fixed-ip-req.json @@ -0,0 +1,5 @@ +{ + "removeFixedIp":{ + "address": "10.0.0.2" + } +} diff --git a/doc/api_samples/NMN/multinic-remove-fixed-ip-req.xml b/doc/api_samples/NMN/multinic-remove-fixed-ip-req.xml new file mode 100644 index 000000000..4e6ccdd87 --- /dev/null +++ b/doc/api_samples/NMN/multinic-remove-fixed-ip-req.xml @@ -0,0 +1,3 @@ +<removeFixedIp> + <address>10.0.0.2</address> +</removeFixedIp> diff --git a/doc/api_samples/NMN/server-post-req.json b/doc/api_samples/NMN/server-post-req.json new file mode 100644 index 000000000..d88eb4122 --- /dev/null +++ b/doc/api_samples/NMN/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/NMN/server-post-req.xml b/doc/api_samples/NMN/server-post-req.xml new file mode 100644 index 000000000..0a3c8bb53 --- /dev/null +++ b/doc/api_samples/NMN/server-post-req.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<server xmlns="http://docs.openstack.org/compute/api/v1.1" imageRef="http://openstack.example.com/openstack/images/70a599e0-31e7-49b7-b260-868f441e862b" flavorRef="http://openstack.example.com/openstack/flavors/1" name="new-server-test"> + <metadata> + <meta key="My Server Name">Apache1</meta> + </metadata> + <personality> + <file path="/etc/banner.txt"> + ICAgICAgDQoiQSBjbG91ZCBkb2VzIG5vdCBrbm93IHdoeSBp + dCBtb3ZlcyBpbiBqdXN0IHN1Y2ggYSBkaXJlY3Rpb24gYW5k + IGF0IHN1Y2ggYSBzcGVlZC4uLkl0IGZlZWxzIGFuIGltcHVs + c2lvbi4uLnRoaXMgaXMgdGhlIHBsYWNlIHRvIGdvIG5vdy4g + QnV0IHRoZSBza3kga25vd3MgdGhlIHJlYXNvbnMgYW5kIHRo + ZSBwYXR0ZXJucyBiZWhpbmQgYWxsIGNsb3VkcywgYW5kIHlv + dSB3aWxsIGtub3csIHRvbywgd2hlbiB5b3UgbGlmdCB5b3Vy + c2VsZiBoaWdoIGVub3VnaCB0byBzZWUgYmV5b25kIGhvcml6 + b25zLiINCg0KLVJpY2hhcmQgQmFjaA== + </file> + </personality> +</server>
\ No newline at end of file diff --git a/doc/api_samples/NMN/server-post-resp.json b/doc/api_samples/NMN/server-post-resp.json new file mode 100644 index 000000000..09d9fb612 --- /dev/null +++ b/doc/api_samples/NMN/server-post-resp.json @@ -0,0 +1,16 @@ +{ + "server": { + "adminPass": "xrDLoBeMD28B", + "id": "3f69b6bd-00a8-4636-96ee-650093624304", + "links": [ + { + "href": "http://openstack.example.com/v2/openstack/servers/3f69b6bd-00a8-4636-96ee-650093624304", + "rel": "self" + }, + { + "href": "http://openstack.example.com/openstack/servers/3f69b6bd-00a8-4636-96ee-650093624304", + "rel": "bookmark" + } + ] + } +}
\ No newline at end of file diff --git a/doc/api_samples/NMN/server-post-resp.xml b/doc/api_samples/NMN/server-post-resp.xml new file mode 100644 index 000000000..7f84ac03d --- /dev/null +++ b/doc/api_samples/NMN/server-post-resp.xml @@ -0,0 +1,6 @@ +<?xml version='1.0' encoding='UTF-8'?> +<server xmlns:atom="http://www.w3.org/2005/Atom" xmlns="http://docs.openstack.org/compute/api/v1.1" id="6ed1d112-6c33-4c8b-9780-e2f978bf5ffd" adminPass="uF9wWxBh3mWL"> + <metadata/> + <atom:link href="http://openstack.example.com/v2/openstack/servers/6ed1d112-6c33-4c8b-9780-e2f978bf5ffd" rel="self"/> + <atom:link href="http://openstack.example.com/openstack/servers/6ed1d112-6c33-4c8b-9780-e2f978bf5ffd" rel="bookmark"/> +</server>
\ No newline at end of file |
