Skip to content

Commit

Permalink
Added support for Floating IP API
Browse files Browse the repository at this point in the history
Modified: src/wadls/compute-api/src/ext/os-floating-ips.wadl
Added support on how to add floating ip to instance.
Sample files added:
   src/wadls/compute-api/src/api_samples/os-floating-ips/floating-ips-add-req.json
   src/wadls/compute-api/src/api_samples/os-floating-ips/floating-ips-add-req.xml
Fixes: bug 1060874

Change-Id: Ib2ae8ae6a685a66368ea61d7d3023d939825e724
  • Loading branch information
ladquin committed Jan 15, 2013
1 parent 3f25515 commit 9aacf9d
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
@@ -0,0 +1,5 @@
{
"addFloatingIp": {
"address": "10.10.10.1"
}
}
@@ -0,0 +1,4 @@
<?xml version='1.0' encoding='UTF-8'?>
<addFloatingIp>
<address>10.10.10.1</address>
</addFloatingIp>
22 changes: 22 additions & 0 deletions api-ref/src/wadls/compute-api/src/ext/os-floating-ips.wadl
Expand Up @@ -30,6 +30,9 @@

<method href="#DetailFloatingIP" />
<method href="#DeallocateFloatingIP" />
<resource path="action">
<method href="#AddFloatingIP" />
</resource>
</resource>
</resource>

Expand Down Expand Up @@ -118,5 +121,24 @@
</wadl:doc>
<response status="202" />
</method>

<method name="POST" id="AddFloatingIP">
<wadl:doc xmlns="http://www.w3.org/1999/xhtml" xml:lang="EN" title="Add Floating IP">
<p xmlns="http://www.w3.org/1999/xhtml">Add floating IP to an instance.</p>
</wadl:doc>
<request>
<representation mediaType="application/json">
<doc xml:lang="EN">
<xsdxt:code href="../api_samples/os-floating-ips/floating-ips-add-req.json" />
</doc>
</representation>
<representation mediaType="application/xml">
<doc xml:lang="EN">
<xsdxt:code href="../api_samples/os-floating-ips/floating-ips-add-req.xml" />
</doc>
</representation>
</request>
<response status="202" />
</method>

</application>

0 comments on commit 9aacf9d

Please sign in to comment.