You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by Asmita Vagyani <As...@sigma-systems.com> on 2013/01/16 07:28:27 UTC
Generating api key for a user through API
Hi all,
I want to generate the api key for an account user through Cloudstack API.
Is there any way to do it?
I can see that the console has the icon to generate the key, but I don't want a console to do it, I want to generate it programmatically by invoking the Cloudstack API.
If I can do it, let me know.
If not, is there any alternative for this?
Thanks and Regards.
Asmita Patil Vagyani.
RE: Generating api key for a user through API
Posted by Asmita Vagyani <As...@sigma-systems.com>.
Hi Prasanna,
Thanks to you and Chris for all your pointers.
I generated the API key through console and signed the request using openssl command, it was quick and fast.
It worked for me and dint give me the certificate issue any more, so I moved on ahead.
My main motive now is whether I am able to hit the cloudstack APIs and to know how to hit the APIs.
But, I will surely try python script to generate the signature in future.
Thanks and Regards.
Asmita Patil Vagyani.
-----Original Message-----
From: srivatsav.prasanna@gmail.com [mailto:srivatsav.prasanna@gmail.com] On Behalf Of prasanna
Sent: 16 January 2013 PM 12:07
To: cloudstack-users@incubator.apache.org
Subject: Re: Generating api key for a user through API
Chris Sears responded with some python code on how to do this in your thread from y'day. Is that not working for you?
On 16 January 2013 11:58, Asmita Vagyani <As...@sigma-systems.com> wrote:
> Hi all,
>
> I want to generate the api key for an account user through Cloudstack API.
> Is there any way to do it?
>
> I can see that the console has the icon to generate the key, but I don't want a console to do it, I want to generate it programmatically by invoking the Cloudstack API.
> If I can do it, let me know.
> If not, is there any alternative for this?
>
> Thanks and Regards.
>
> Asmita Patil Vagyani.
>
>
Re: Generating api key for a user through API
Posted by prasanna <ts...@apache.org>.
Chris Sears responded with some python code on how to do this in your
thread from y'day. Is that not working for you?
On 16 January 2013 11:58, Asmita Vagyani
<As...@sigma-systems.com> wrote:
> Hi all,
>
> I want to generate the api key for an account user through Cloudstack API.
> Is there any way to do it?
>
> I can see that the console has the icon to generate the key, but I don't want a console to do it, I want to generate it programmatically by invoking the Cloudstack API.
> If I can do it, let me know.
> If not, is there any alternative for this?
>
> Thanks and Regards.
>
> Asmita Patil Vagyani.
>
>
RE: Generating api key for a user through API
Posted by Pranav Saxena <pr...@citrix.com>.
Hi ,
You could use the following API -
RegisterUserKeys
This command allows a user to register for the developer API, returning a secret key and an API key. Both secret key and API key should be returned to the user
Request parameter
Parameter Name Description Required
id User id true
Response Tags
Response Name Description
apikey the api key of the registered user
secretkey the secret key of the registered user
Thanks !
-----Original Message-----
From: Asmita Vagyani [mailto:Asmita.Vagyani@sigma-systems.com]
Sent: Wednesday, January 16, 2013 11:58 AM
To: 'cloudstack-users@incubator.apache.org'
Subject: Generating api key for a user through API
Hi all,
I want to generate the api key for an account user through Cloudstack API.
Is there any way to do it?
I can see that the console has the icon to generate the key, but I don't want a console to do it, I want to generate it programmatically by invoking the Cloudstack API.
If I can do it, let me know.
If not, is there any alternative for this?
Thanks and Regards.
Asmita Patil Vagyani.