Hi, Gaspare
To generate the signature, you need SecretKey as well as request parameter.
CloudStack itself has the tools to generate signature for each request.
The util location: test/src/com/cloud/test/utils/SignRequest.java

As an example, your apikey is APIKEY, secretkey is SECRETKEY and
request url is URL, to generate the whole url with signature, the
command line parameter should be:
-a "APIKEY" -u "URL" -s "SECRETKEY"



On Fri, Feb 22, 2013 at 3:36 PM, Gaspare A Silvestri
<g.silves...@netsons.com> wrote:
> Thank you for your answer.
>
> My problem is which API command using to create the signature and to be able
> to access the console,\ using the custom link earlier written.
>
> Have you any advice about this?
>
> Thank you for your time!
>
> Gaspare
>
>
> On 22/02/2013 08:33, Mice Xia wrote:
>>
>>
>> http://incubator.apache.org/cloudstack/docs/en-US/Apache_CloudStack/4.0.1-incubating/html/API_Developers_Guide/signing-api-requests.html
>>
>> this links to 'how to sign api request', hope it help.
>>
>> -Mice
>>
>> -----Original Message-----
>> From: Gaspare A Silvestri [mailto:g.silves...@netsons.com]
>> Sent: Friday, February 22, 2013 3:22 PM
>> To: cloudstack-users@incubator.apache.org
>> Subject: Re: VM Console Access - API
>>
>> Hello everybody,
>>
>> is there somebody that can help me about the previous request?
>>
>> Thanks a lot!
>>
>> Gaspare
>>
>> On 21/02/2013 15:59, Gaspare A Silvestri wrote:
>>>
>>> Hello everybody,
>>>
>>> me and my developement team are trying to access the Virtual Machine
>>> console within our customize portal, accessing through the CS 4.0.1 APIs.
>>>
>>> We are not able to perform this task, always receiving the following
>>> error: " _/*Access denied. Invalid web session or API key in
>>> request*/_ " .
>>>
>>> We have already tried using the following community advices to create
>>> the web access link:
>>>
>>>   *
>>>
>>>     http://server:8080/client/console?cmd=access&vm=XXXXXXX
>>>
>>> http://server:8080/client/console?cmd=access&vm=XXXXXXX&signature=XXXX
>>> X
>>>
>>> Today I've found the following post:
>>> http://www.mail-archive.com/cloudstack-users@incubator.apache.org/msg0
>>> 3923.html, on which I've read that the direct access to the VM console
>>> can be performed using the APIand Secret KEys plusthe SSO key.
>>>
>>> How can we use these three keys to generate the URL to pass to our
>>> application, and finally permitting users accessing the VM console? Or
>>> as alternative, how can we generate the signature showed in the second
>>> link?
>>>
>>> Thanks in advance, all the best,
>>>
>>> Gaspare
>>>
>>>
>>
>>
>> <http://it.linkedin.com/in/gasilvestri>
>
>
>
>
> <http://it.linkedin.com/in/gasilvestri>



-- 
Gavin

Reply via email to