Skip to content

Commit

Permalink
Added addFloatingIp action to compute extensions
Browse files Browse the repository at this point in the history
Closes-Bug: #1188856
Closes-Bug: #1174511

Change-Id: I9a9a2604a7ce95d27d72277cad3be675d5ff0f80
author: diane fleming
  • Loading branch information
dian4554 committed Oct 13, 2013
1 parent a9bc78a commit 5670e0b
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
@@ -0,0 +1 @@
{"addFloatingIp": {"fixed_address": "166.78.185.201", "address": "166.78.185.201"}}
@@ -0,0 +1,6 @@
{
"addFloatingIp":{
"fixed_address":"166.78.185.201",
"address":"172.24.4.225"
}
}
38 changes: 38 additions & 0 deletions api-ref/src/wadls/compute-api/src/ext/os-admin-actions.wadl
Expand Up @@ -42,6 +42,7 @@
<method href="#evacuate"/>
<method href="#addSecurityGroup"/>
<method href="#removeSecurityGroup"/>
<method href="#addFloatingIP"/>
</resource>
</resource>
</resource>
Expand Down Expand Up @@ -610,4 +611,41 @@
</request>
<response status="200"/>
</method>
<method name="POST" id="addFloatingIP">
<wadl:doc xmlns="http://docbook.org/ns/docbook" xml:lang="EN">
<para role="shortdesc">Adds a floating IP address to an
instance.</para><para>You can optionally associate a
fixed IP address with the floating IP address.</para>
</wadl:doc>
<request>
<param name="addFloatingIp" style="plain"
type="xsd:string" required="true">
<wadl:doc xmlns="http://docbook.org/ns/docbook"
xml:lang="EN"><para>Specify the
<code>addFloatingIP</code> action in the
request body.</para></wadl:doc>
</param>
<param name="fixed_address" style="plain" required="false"
type="xsd:string">
<doc><p xmlns="http://www.w3.org/1999/xhtml">A fixed
IP address that you want to associate with the
floating IP address.</p></doc>
</param>
<param name="address" style="plain" required="true"
type="xsd:string">
<doc><p xmlns="http://www.w3.org/1999/xhtml">A
floating IP address to associate with the
instance.</p></doc>
</param>
<representation mediaType="application/json">
<wadl:doc xmlns="http://docbook.org/ns/docbook"
xml:lang="EN">
<xsdxt:code
href="../api_samples/os-admin-actions/admin-actions-add-floating-ip.json"
/>
</wadl:doc>
</representation>
</request>
<response status="200"/>
</method>
</application>

0 comments on commit 5670e0b

Please sign in to comment.