<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">it is an action on a server so you want:<div><br></div><div><span style="color: rgb(83, 83, 83); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; line-height: 13px; background-color: rgb(255, 255, 255); ">v2/{tenant_id}/servers/{server_id}/action</span></div><div><font color="#535353" face="Helvetica Neue, Helvetica, Arial, sans-serif"><span style="font-size: 13px; line-height: 13px;"><br></span></font></div><div><font color="#535353" face="Helvetica Neue, Helvetica, Arial, sans-serif"><span style="font-size: 13px; line-height: 13px;">{</span></font></div><div><font color="#535353" face="Helvetica Neue, Helvetica, Arial, sans-serif"><span style="font-size: 13px; line-height: 13px;">    "addFloatingIp": {"address": "10.100.20.7"}</span></font></div><div><font color="#535353" face="Helvetica Neue, Helvetica, Arial, sans-serif"><span style="font-size: 13px; line-height: 13px;">}</span></font></div><div><font color="#535353" face="Helvetica Neue, Helvetica, Arial, sans-serif"><span style="font-size: 13px; line-height: 13px;"><br></span></font><div>Python-novaclient is very helpfel for this kind of thing try nova --debug add-flaoting-ip <server> <address>:</div><div><br></div><div>…</div><div><br></div><div><div>REQ: curl -i <a href="http://192.168.27.100:8774/v2/cd1a46fd42ab43c9a8e9465e0df3807b/servers/02d5dcfd-e84e-4c74-9c09-5b0f52962a1c/action">http://192.168.27.100:8774/v2/cd1a46fd42ab43c9a8e9465e0df3807b/servers/02d5dcfd-e84e-4c74-9c09-5b0f52962a1c/action</a> -X POST -H "X-Auth-Project-Id: demo" -H "User-Agent: python-novaclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: 299d0eeca66e4576a5b53e0b06977360"</div><div><br></div><div>REQ BODY: {"addFloatingIp": {"address": "192.168.27.129"}}</div><div><br></div><div>RESP:{'date': 'Tue, 14 Aug 2012 07:07:09 GMT', 'status': '202', 'content-length': '0', 'content-type': 'text/html; charset=UTF-8'} </div><div>…</div><div><br></div><div>Vish</div><div><br><div><div>On Aug 13, 2012, at 8:35 PM, Sam Su <<a href="mailto:susltd.su@gmail.com">susltd.su@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi, <div><br></div><div>I am trying to associate an floating IP to an instance from API in my Essex environment, and get the error "404 Not Found". I found someone have filed an invalid bug (the link is <a href="https://bugs.launchpad.net/nova/+bug/917064">https://bugs.launchpad.net/nova/+bug/917064</a>), I followed the information and tried several request formats as below, but all are failed.</div>
<div><br></div><div>1. curl -k -D - -H "X-Auth-Token: 7f48c07af3b842d1b9c0f15a37ddd956" -X 'POST' -d @test.json -v <a href="http://localhost:8774/v1.1/53869b3cd0cc40a28a826422a37622da/os-floating-ips/1/associate">http://localhost:8774/v1.1/53869b3cd0cc40a28a826422a37622da/os-floating-ips/1/associate</a> -H 'Content-type: application/json'</div>
<div><br></div><div>The file test.json:</div><div><div><i><font color="#cc0000">{</font></i></div><div><i><font color="#cc0000">    "associate_address" : {</font></i></div><div><i><font color="#cc0000">       "fixed_ip" : "192.168.20.3"</font></i></div>
<div><i><font color="#cc0000">    }</font></i></div><div><i><font color="#cc0000">}</font></i></div></div><div><i><font color="#cc0000"><br></font></i></div><div><font style="background-color:rgb(255,255,255)">2. curl -k -D - -H "X-Auth-Token: 7f48c07af3b842d1b9c0f15a37ddd956" -X 'POST' -d @test.json -v <a href="http://localhost:8774/v1.1/53869b3cd0cc40a28a826422a37622da/os-floating-ips/1/action">http://localhost:8774/v1.1/53869b3cd0cc40a28a826422a37622da/os-floating-ips/1/action</a>  -H 'Content-type: application/json'</font></div>
<div><font style="background-color:rgb(255,255,255)"><br></font></div><div><font style="background-color:rgb(255,255,255)"><div>The file test.json:</div><div><div><i><font color="#cc0000">{</font></i></div><div><i><font color="#cc0000">    "addFloatingIp": {</font></i></div>
<div><i><font color="#cc0000">       "address" : "10.100.20.17"</font></i></div><div><i><font color="#cc0000">    },</font></i></div><div><i><font color="#cc0000">    "associate_address" : {</font></i></div>
<div><i><font color="#cc0000">       "fixed_ip" : "192.168.20.3"</font></i></div><div><i><font color="#cc0000">    }</font></i></div><div><i><font color="#cc0000">}</font></i></div></div></font></div><div>
<font style="background-color:rgb(255,255,255)"><br></font></div><div><font style="background-color:rgb(255,255,255)">3. curl -k -D - -H "X-Auth-Token: 7f48c07af3b842d1b9c0f15a37ddd956" -X 'POST' -d @test.json -v http://
localhost:8774/v1.1/53869b3cd0cc40a28a826422a37622da/os-floating-ips/1/addFloatingIp  -H 'Content-type: application/json'</font></div><div><font style="background-color:rgb(255,255,255)"><br></font></div><div><font style="background-color:rgb(255,255,255)"><div>
The file test.json:</div><div><div><i><font color="#cc0000">{</font></i></div><div><i><font color="#cc0000">    "associate_address" : {</font></i></div><div><i><font color="#cc0000">       "fixed_ip" : "192.168.20.3"</font></i></div>
<div><i><font color="#cc0000">    }</font></i></div><div><i><font color="#cc0000">}</font></i></div></div><br class="Apple-interchange-newline"></font></div><div><font style="background-color:rgb(255,255,255)">I am wondering what is the correct request format or just a bug?  </font><span style="background-color:rgb(255,255,255)">It will be much appreciated if someone can give me some hints.</span></div>
<div><span style="background-color:rgb(255,255,255)"><br></span></div><div><span style="background-color:rgb(255,255,255)">Thanks,</span></div><div><span style="background-color:rgb(255,255,255)">Sam</span></div><div><font style="background-color:rgb(255,255,255)"><br>
</font></div><div><font style="background-color:rgb(255,255,255)"><br></font></div><div><font style="background-color:rgb(255,255,255)"><br></font></div><div><font style="background-color:rgb(255,255,255)"><br></font></div>
<div><font style="background-color:rgb(255,255,255)"><br></font></div>
_______________________________________________<br>Mailing list: <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><br>Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>Unsubscribe : <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><br>More help   : <a href="https://help.launchpad.net/ListHelp">https://help.launchpad.net/ListHelp</a><br></blockquote></div><br></div></div></div></body></html>