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
=== modified file 'nova/api/openstack/contrib/doc/ext_floating_ips.rst'
--- nova/api/openstack/contrib/doc/ext_floating_ips.rst 2011-09-19 00:38:17 +0000
+++ nova/api/openstack/contrib/doc/ext_floating_ips.rst 2011-09-19 18:47:30 +0000
@@ -93,7 +93,60 @@
9393
94New Resources94New Resources
95-------------95-------------
96None96This extension provides an os-floating-ips resource extension to do the following:
97
98List a tenant's floating ips::
99
100 GET /v1.1/tenant_id/os-floating-ips/
101
102 # Sample Response:
103 { "floating_ips" : [ { "fixed_ip" : "10.0.0.3",
104 "id" : 1,
105 "instance_id" : 1,
106 "ip" : "10.6.0.0"
107 },
108 { "fixed_ip" : null,
109 "id" : 2,
110 "instance_id" : null,
111 "ip" : "10.6.0.1"
112 }
113 ] }
114
115 Normal Response Code: 200
116
117Allocate a floating ip to a tenant::
118
119 POST /v1.1/tenant_id/os-floating-ips/
120
121 # Sample Response:
122 { "floating_ip" : { "fixed_ip" : "10.0.0.3",
123 "id" : 1,
124 "instance_id" : 1,
125 "ip" : "10.6.0.0"
126 }}
127
128 If there are no floating ips available, 400 will be returned, with a
129 message indicating that no more floating ips are available
130
131
132De-allocate a floating ip from a tenant::
133
134 DELETE /v1.1/tenant_id/os-floating-ips/id
135
136 Normal Response Code: 202
137
138Show a floating ip::
139
140 GET /v1.1/tenant_id/os-floating-ips/id
141
142 # Sample Response:
143 { "floating_ip" : { "fixed_ip" : "10.0.0.3",
144 "id" : 1,
145 "instance_id" : 1,
146 "ip" : "10.6.0.0"
147 }}
148
149 Normal Response Code: 200
97150
98New States151New States
99----------152----------
@@ -106,4 +159,4 @@
106159
107In the List Addresses section of the Cloud Servers Specification: Examples 4.21 and 4.22 should be replaced with examples below. 160In the List Addresses section of the Cloud Servers Specification: Examples 4.21 and 4.22 should be replaced with examples below.
108161
109Provide examples in XML and JSON
110\ No newline at end of file162\ No newline at end of file
163Provide examples in XML and JSON

Subscribers

People subscribed via source and target branches

to all changes: