Here are the steps documented to sign an API request for CloudStack: 
https://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.0.2/html/API_Developers_Guide/signing-api-requests.html
I guess, you need to add sorting of query parameters. 

Prachi

-----Original Message-----
From: Nux! [mailto:n...@li.nux.ro] 
Sent: Wednesday, October 15, 2014 7:22 AM
To: dev
Subject: Using Cloudstack API from PHP issue

Hi,

A PHP developer colleague is trying to make some calls to the ACS API; some 
work (like deploy virtualmachine), but some fail, like "authorize 
securitygroup":
"401 unable to verify user credentials and/or request signature"

This is his code for generating the signature, is there anything obviously 
wrong with it?
http://fpaste.org/142102/33827661/raw/

Lucian

--
Sent from the Delta quadrant using Borg technology!

Nux!
www.nux.ro

Reply via email to