On Mon, May 6, 2013 at 11:01 PM, Andrew Eng <andrewc...@gmail.com> wrote:
> Thanks for pointing out the api doc.  This is the first time using it -
> so....  just listing out physical Networks is causing an issue.  It's
> saying :
>
> <listphysicalnetworksresponse
> cloud-stack-version="4.0.1.20130201075054"><errorcode>401</errorcode><errortext>unable
> to verify user credentials and/or request
> signature</errortext></listphysicalnetworksresponse>
>
> The API I'm using is:
>
> http://127.0.0.1:8080/client/api?command=listPhysicalNetworks&zoneId=1&apiKey=<admin
> API key>&signature=<admin secret key>
>
> Am i doing something wrong?
>


signature != secret key

If you want to know all of the sordid details of hashing a signature, look here:
http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.0.2/html/API_Developers_Guide/signing-api-requests.html

If you just want to be productive, use the command line tool Cloudmonkey
https://cwiki.apache.org/CLOUDSTACK/cloudstack-cloudmonkey-cli.html

--David

Reply via email to