Merge lp:~sleepsonthefloor/nova/extdoc into lp:~annegentle/nova/extdoc

Proposed by Anthony Young
Status: Needs review
Proposed branch: lp:~sleepsonthefloor/nova/extdoc
Merge into: lp:~annegentle/nova/extdoc
Diff against target: 72 lines (+55/-2)
1 file modified
nova/api/openstack/contrib/doc/ext_floating_ips.rst (+55/-2)
To merge this branch: bzr merge lp:~sleepsonthefloor/nova/extdoc
Reviewer Review Type Date Requested Status
Anne Gentle Approve
Review via email: mp+76083@code.launchpad.net

Description of the change

Updates to the os-floating-ips docs.

To post a comment you must log in.
Revision history for this message
Anthony Young (sleepsonthefloor) wrote :

Anne - take a look and let me know if you have any feedback. I wasn't sure of the best way to format the info.

Revision history for this message
Anne Gentle (annegentle) wrote :

Very useful, thanks. Yes I'm also finding that Sphinx doesn't want to format the XML examples like I thought they should be. So I'm working on that as well but this detailed info with examples is hugely helpful.

Revision history for this message
Anne Gentle (annegentle) wrote :

Merging it in with my branch, will figure out the formatting.

review: Approve

Unmerged revisions

1585. By Anthony Young

progress on floating-ip docs

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'nova/api/openstack/contrib/doc/ext_floating_ips.rst'
2--- nova/api/openstack/contrib/doc/ext_floating_ips.rst 2011-09-19 00:38:17 +0000
3+++ nova/api/openstack/contrib/doc/ext_floating_ips.rst 2011-09-19 18:47:30 +0000
4@@ -93,7 +93,60 @@
5
6 New Resources
7 -------------
8-None
9+This extension provides an os-floating-ips resource extension to do the following:
10+
11+List a tenant's floating ips::
12+
13+ GET /v1.1/tenant_id/os-floating-ips/
14+
15+ # Sample Response:
16+ { "floating_ips" : [ { "fixed_ip" : "10.0.0.3",
17+ "id" : 1,
18+ "instance_id" : 1,
19+ "ip" : "10.6.0.0"
20+ },
21+ { "fixed_ip" : null,
22+ "id" : 2,
23+ "instance_id" : null,
24+ "ip" : "10.6.0.1"
25+ }
26+ ] }
27+
28+ Normal Response Code: 200
29+
30+Allocate a floating ip to a tenant::
31+
32+ POST /v1.1/tenant_id/os-floating-ips/
33+
34+ # Sample Response:
35+ { "floating_ip" : { "fixed_ip" : "10.0.0.3",
36+ "id" : 1,
37+ "instance_id" : 1,
38+ "ip" : "10.6.0.0"
39+ }}
40+
41+ If there are no floating ips available, 400 will be returned, with a
42+ message indicating that no more floating ips are available
43+
44+
45+De-allocate a floating ip from a tenant::
46+
47+ DELETE /v1.1/tenant_id/os-floating-ips/id
48+
49+ Normal Response Code: 202
50+
51+Show a floating ip::
52+
53+ GET /v1.1/tenant_id/os-floating-ips/id
54+
55+ # Sample Response:
56+ { "floating_ip" : { "fixed_ip" : "10.0.0.3",
57+ "id" : 1,
58+ "instance_id" : 1,
59+ "ip" : "10.6.0.0"
60+ }}
61+
62+ Normal Response Code: 200
63
64 New States
65 ----------
66@@ -106,4 +159,4 @@
67
68 In the List Addresses section of the Cloud Servers Specification: Examples 4.21 and 4.22 should be replaced with examples below.
69
70-Provide examples in XML and JSON
71\ No newline at end of file
72+Provide examples in XML and JSON

Subscribers

People subscribed via source and target branches

to all changes: