cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kelven Yang <kelven.y...@citrix.com>
Subject Re: Console Access via API
Date Tue, 05 Mar 2013 00:10:06 GMT
Please also check out developer guide on how to sign the request

http://incubator.apache.org/cloudstack/docs/en-US/Apache_CloudStack/4.0.0-i
ncubating/pdf/API_Developers_Guide/Apache_CloudStack-4.0.0-incubating-API_D
evelopers_Guide-en-US.pdf


Kelven

On 3/4/13 2:53 AM, "Sebastien Goasguen" <runseb@gmail.com> wrote:

>
>On Feb 15, 2013, at 4:39 AM, Antonio Petrocelli
><a.petrocelli@netsons.com> wrote:
>
>> Thanks Sebastien,
>> 
>> i know where is the API key.
>> 
>> I means that there is no API KEY inside the string request that Kelven
>>gived to me.
>
>Antonio, sorry for the delay, did you look at:
>http://incubator.apache.org/cloudstack/docs/en-US/Apache_CloudStack/4.0.1-
>incubating/html/API_Developers_Guide/making-api-request.html
>
>The easiest way to make these calls properly is to use an existing client
>library:
>
>I use Python and this one has been good to me:
>
>https://github.com/jasonhancock/cloudstack-python-client
>
>CloudMonkey is also very powerful and up to date:
>https://cwiki.apache.org/CLOUDSTACK/cloudstack-cloudmonkey-cli.html
>
>
>> 
>> Il 15/02/2013 10:03, Sebastien Goasguen ha scritto:
>>> On Feb 13, 2013, at 9:50 AM, Antonio Petrocelli
>>><a.petrocelli@netsons.com> wrote:
>>> 
>>>> Hello,
>>>> 
>>>> thanks a lot.
>>>> 
>>>> This still doesn't work...
>>>> 
>>>> A question: how i can obtain the signature without the apikey in the
>>>>string?
>>>> 
>>>> The signature generation came from the same API request algorithm
>>>>(SHA1)?
>>>> 
>>>> I obtain an error: Access denied. Invalid web session or API key in
>>>>request
>>>> 
>>>> So where is the API key?
>>> If you are asking about how to get the API Key, you can get it from
>>>the UI. Go to Accounts, View Users, select the user you want, there is
>>>an icon to generate the keys.
>>> 
>>>> Thanks
>>>> 
>>>> Regards.
>>>> 
>>>> Il 13/02/2013 00:36, Kelven Yang ha scritto:
>>>>> My bad, I forget "client" in the reply.
>>>>> 
>>>>> 
>>>>>http://xx.xx.xx.xx:8080/client/console?cmd=access&vm=xxxx&signature=xx
>>>>>xx
>>>>> 
>>>>> 
>>>>> Kelven
>>>>> 
>>>>> 
>>>>> On 2/11/13 5:39 AM, "Antonio Petrocelli" <a.petrocelli@netsons.com>
>>>>>wrote:
>>>>> 
>>>>>> Hello,
>>>>>> 
>>>>>> access to http://xx.xx.xx.xx:8080/console?xxxxx
>>>>>> 
>>>>>> reply blank page.
>>>>>> 
>>>>>> Why that call is not in the API manual? How you obtained these info?
>>>>>> 
>>>>>> Thanks.
>>>>>> 
>>>>>> Best Regards.
>>>>>> 
>>>>>> 
>>>>>> Il 09/02/2013 03:39, Kelven Yang ha scritto:
>>>>>>> Try this URL form
>>>>>>> 
>>>>>>> http://xx.xx.xx.xx:8080/console?cmd=access&vm=xxx&signature=xxxxx
>>>>>>> 
>>>>>>> Kelven
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> On 2/8/13 6:49 AM, "Antonio Petrocelli" <a.petrocelli@netsons.com>
>>>>>>> wrote:
>>>>>>> 
>>>>>>>> Hello,
>>>>>>>> 
>>>>>>>> Under CloudStack UI interface, the console link is:
>>>>>>>> http://xx.xx.xx.xx:8080/client/console?cmd=access&vm=xxxxxxxxx
>>>>>>>> 
>>>>>>>> I'm trying to use signiture under API, all other commands
works,
>>>>>>>>but
>>>>>>>> I'm
>>>>>>>> trying to get VM console, just not work:
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>>http://xx.xx.xx.xx:8080/client/console?cmd=access&vm=xxxxxxxxx&sign
>>>>>>>>ature
>>>>>>>> =X
>>>>>>>> XXXXX
>>>>>>>> or
>>>>>>>> 
>>>>>>>> 
>>>>>>>>http://xx.xx.xx.xx:8080/client/api?cmd=access&vm=xxxxxxxxx&signatur
>>>>>>>>e=XXX
>>>>>>>> XX
>>>>>>>> X
>>>>>>>> 
>>>>>>>> Could any friend point me correct command for console access
>>>>>>>>through
>>>>>>>> API?
>>>>>>>> 
>>>>>>>> Thanks!
>>>>>>>> 
>>>>>>>> --
>>>>>>>> Antonio "Petrox" Petrocelli
>>>>>>>> 
>>>>>>>> Supernova s.r.l.
>>>>>>>> Via Misticoni 3, 65100 Pescara
>>>>>>>> Tel: 0854510052
>>>>>>>> Fax: 0859112033
>>>>>>>> http://www.netsons.com
>>>>>>>> 
>>>>>>>> Netsons è un marchio registrato dalla Supernova s.r.l.
>>>>>>>> 
>>>>>>>> 
>>>>>>>> Le informazioni trasmesse sono riservate alla persona o alla
>>>>>>>>società
>>>>>>>> indicata come destinatario, e possono includere contenuti
>>>>>>>>considerati
>>>>>>>> confidenziali. Ogni elaborazione, comunicazione, trasmissione
o
>>>>>>>>altro
>>>>>>>> utilizzo, anche azioni conseguenti alla conoscenza di queste
>>>>>>>> informazioni
>>>>>>>> da parte di chiunque non sia espressamente indicato come
>>>>>>>>destinatario è
>>>>>>>> proibita. Nel caso abbiate ricevuto per errore questa
>>>>>>>>comunicazione,
>>>>>>>> siete pregati di darne avviso a info [at] netsons.com ed
>>>>>>>>eliminare ogni
>>>>>>>> stampa ed ogni traccia informatica. Il ricevente dovrà inoltre
>>>>>>>> accertarsi
>>>>>>>> che gli eventuali allegati non contengano virus prima di
aprirli.
>>>>>>>> Qualunque opinione o affermazione presentata in questo messaggio
>>>>>>>>è da
>>>>>>>> ritenersi propria dell'autore e non rappresenta necessariamente
la
>>>>>>>> posizione della Società.
>>>>>>>> 
>>>>>>>> The information transmitted is intended only for the person
or
>>>>>>>>entity
>>>>>>>> to
>>>>>>>> which it is addressed and may contain confidential material.
Any
>>>>>>>> review,
>>>>>>>> retransmission, dissemination or other use of, or taking
of any
>>>>>>>>action
>>>>>>>> in
>>>>>>>> reliance upon this information by persons or entities other
than
>>>>>>>>the
>>>>>>>> intended recipient is prohibited. If you received this in
error,
>>>>>>>>please
>>>>>>>> contact: info [at] netsons.com and delete the material from
any
>>>>>>>> computer.
>>>>>>>> If this email contains attachments you should ensure they
are
>>>>>>>>checked
>>>>>>>> for
>>>>>>>> viruses before opening them. Any views or opinions presented
are
>>>>>>>>solely
>>>>>>>> those of the author and do not necessarily represent those
of the
>>>>>>>> company.
>>>>>>>> 
>>>>>>>> 
>>>>>> -- 
>>>>>> Antonio "Petrox" Petrocelli
>>>>>> 
>>>>>> Supernova s.r.l.
>>>>>> Via Misticoni 3, 65100 Pescara
>>>>>> Tel: 0854510052
>>>>>> Fax: 0859112033
>>>>>> http://www.netsons.com
>>>>>> 
>>>>>> Netsons è un marchio registrato dalla Supernova s.r.l.
>>>>>> 
>>>>>> 
>>>>>> Le informazioni trasmesse sono riservate alla persona o alla società
>>>>>> indicata come destinatario, e possono includere contenuti
>>>>>>considerati
>>>>>> confidenziali. Ogni elaborazione, comunicazione, trasmissione o
>>>>>>altro
>>>>>> utilizzo, anche azioni conseguenti alla conoscenza di queste
>>>>>>informazioni
>>>>>> da parte di chiunque non sia espressamente indicato come
>>>>>>destinatario è
>>>>>> proibita. Nel caso abbiate ricevuto per errore questa comunicazione,
>>>>>> siete pregati di darne avviso a info [at] netsons.com ed eliminare
>>>>>>ogni
>>>>>> stampa ed ogni traccia informatica. Il ricevente dovrà inoltre
>>>>>>accertarsi
>>>>>> che gli eventuali allegati non contengano virus prima di aprirli.
>>>>>> Qualunque opinione o affermazione presentata in questo messaggio
è
>>>>>>da
>>>>>> ritenersi propria dell'autore e non rappresenta necessariamente la
>>>>>> posizione della Società.
>>>>>> 
>>>>>> The information transmitted is intended only for the person or
>>>>>>entity to
>>>>>> which it is addressed and may contain confidential material. Any
>>>>>>review,
>>>>>> retransmission, dissemination or other use of, or taking of any
>>>>>>action in
>>>>>> reliance upon this information by persons or entities other than
the
>>>>>> intended recipient is prohibited. If you received this in error,
>>>>>>please
>>>>>> contact: info [at] netsons.com and delete the material from any
>>>>>>computer.
>>>>>> If this email contains attachments you should ensure they are
>>>>>>checked for
>>>>>> viruses before opening them. Any views or opinions presented are
>>>>>>solely
>>>>>> those of the author and do not necessarily represent those of the
>>>>>>company.
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>> 
>>>> -- 
>>>> Antonio "Petrox" Petrocelli
>>>> 
>>>> Supernova s.r.l.
>>>> Via Misticoni 3, 65100 Pescara
>>>> Tel: 0854510052
>>>> Fax: 0859112033
>>>> http://www.netsons.com
>>>> 
>>>> Netsons è un marchio registrato dalla Supernova s.r.l.
>>>> 
>>>> 
>>>> Le informazioni trasmesse sono riservate alla persona o alla società
>>>>indicata come destinatario, e possono includere contenuti considerati
>>>>confidenziali. Ogni elaborazione, comunicazione, trasmissione o altro
>>>>utilizzo, anche azioni conseguenti alla conoscenza di queste
>>>>informazioni da parte di chiunque non sia espressamente indicato come
>>>>destinatario è proibita. Nel caso abbiate ricevuto per errore questa
>>>>comunicazione, siete pregati di darne avviso a info [at] netsons.com
>>>>ed eliminare ogni stampa ed ogni traccia informatica. Il ricevente
>>>>dovrà inoltre accertarsi che gli eventuali allegati non contengano
>>>>virus prima di aprirli. Qualunque opinione o affermazione presentata
>>>>in questo messaggio è da ritenersi propria dell'autore e non
>>>>rappresenta necessariamente la posizione della Società.
>>>> 
>>>> The information transmitted is intended only for the person or entity
>>>>to which it is addressed and may contain confidential material. Any
>>>>review, retransmission, dissemination or other use of, or taking of
>>>>any action in reliance upon this information by persons or entities
>>>>other than the intended recipient is prohibited. If you received this
>>>>in error, please contact: info [at] netsons.com and delete the
>>>>material from any computer. If this email contains attachments you
>>>>should ensure they are checked for viruses before opening them. Any
>>>>views or opinions presented are solely those of the author and do not
>>>>necessarily represent those of the company.
>>> 
>> 
>> 
>> -- 
>> Antonio "Petrox" Petrocelli
>> 
>> Supernova s.r.l.
>> Via Misticoni 3, 65100 Pescara
>> Tel: 0854510052
>> Fax: 0859112033
>> http://www.netsons.com
>> 
>> Netsons è un marchio registrato dalla Supernova s.r.l.
>> 
>> 
>> Le informazioni trasmesse sono riservate alla persona o alla società
>>indicata come destinatario, e possono includere contenuti considerati
>>confidenziali. Ogni elaborazione, comunicazione, trasmissione o altro
>>utilizzo, anche azioni conseguenti alla conoscenza di queste
>>informazioni da parte di chiunque non sia espressamente indicato come
>>destinatario è proibita. Nel caso abbiate ricevuto per errore questa
>>comunicazione, siete pregati di darne avviso a info [at] netsons.com ed
>>eliminare ogni stampa ed ogni traccia informatica. Il ricevente dovrà
>>inoltre accertarsi che gli eventuali allegati non contengano virus prima
>>di aprirli. Qualunque opinione o affermazione presentata in questo
>>messaggio è da ritenersi propria dell'autore e non rappresenta
>>necessariamente la posizione della Società.
>> 
>> The information transmitted is intended only for the person or entity
>>to which it is addressed and may contain confidential material. Any
>>review, retransmission, dissemination or other use of, or taking of any
>>action in reliance upon this information by persons or entities other
>>than the intended recipient is prohibited. If you received this in
>>error, please contact: info [at] netsons.com and delete the material
>>from any computer. If this email contains attachments you should ensure
>>they are checked for viruses before opening them. Any views or opinions
>>presented are solely those of the author and do not necessarily
>>represent those of the company.
>> 
>> 
>


Mime
View raw message