You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Mike Tutkowski <mi...@solidfire.com> on 2013/02/12 19:06:16 UTC

CloudStack API Question

Hi everyone,

I have not yet made use of the CS API and was looking at this URL:

http://incubator.apache.org/cloudstack/docs/api/apidocs-4.0.0/TOC_Root_Admin.html

I was wondering where we specify what the protocol is?  Does CS use JSON
over HTTP?

Can someone point me to these specifics?

Thanks!

-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkowski@solidfire.com
o: 303.746.7302
Advancing the way the world uses the
cloud<http://solidfire.com/solution/overview/?video=play>
*™*

Re: CloudStack API Question

Posted by Mike Tutkowski <mi...@solidfire.com>.
Great - thanks, Will!


On Tue, Feb 12, 2013 at 9:07 PM, Will Stevens <ws...@cloudops.com> wrote:

> If its a fresh install, you will access the client at:
> the.machines.ip:8080/client/
> Login with username/password of: admin/password
> Click: Accounts -> admin -> View Users -> admin -> (in the main window
> there are 3 buttons at the top left of the screen, mouse over the right
> most one of the 3 and it should say 'Generate Keys', click that)
>
> You can follow that same process for any user who has an account.
>
>
>
>
>
> On Tue, Feb 12, 2013 at 10:26 PM, Mike Tutkowski <
> mike.tutkowski@solidfire.com> wrote:
>
> > Can you point me to the location in the GUI where I can generate keys?
> >
> > Thanks!
> >
> >
> > On Tue, Feb 12, 2013 at 4:17 PM, Will Stevens <ws...@cloudops.com>
> > wrote:
> >
> > > They do not expire, but in the UI you can regenerate the keys, so in
> that
> > > case they would change.
> > >
> > >
> > > On Tue, Feb 12, 2013 at 6:13 PM, Mike Tutkowski <
> > > mike.tutkowski@solidfire.com> wrote:
> > >
> > > > to "say" (I mean) :)
> > > >
> > > >
> > > > On Tue, Feb 12, 2013 at 4:13 PM, Mike Tutkowski <
> > > > mike.tutkowski@solidfire.com> wrote:
> > > >
> > > > > Sounds good...and these do not expire?  Is that accurate to day?
> > > > >
> > > > >
> > > > > On Tue, Feb 12, 2013 at 4:03 PM, Will Stevens <
> wstevens@cloudops.com
> > > > >wrote:
> > > > >
> > > > >> Every role uses the same procedure.  They all need an api key and
> > > secret
> > > > >> key.
> > > > >>
> > > > >>
> > > > >> On Tue, Feb 12, 2013 at 5:54 PM, Mike Tutkowski <
> > > > >> mike.tutkowski@solidfire.com> wrote:
> > > > >>
> > > > >> > Thanks for the info.
> > > > >> >
> > > > >> > So, I see we have three roles in CloudStack:  Root Admin, Domain
> > > > Admin,
> > > > >> and
> > > > >> > User.
> > > > >> >
> > > > >> > When submitting API commands, does the submitter - regardless of
> > > role
> > > > -
> > > > >> > have to provide an API Key and Secret Key (or is that something,
> > > say,
> > > > >> the
> > > > >> > Root Admin doesn't have to do)?
> > > > >> >
> > > > >> > Thanks!
> > > > >> >
> > > > >> >
> > > > >> > On Tue, Feb 12, 2013 at 3:33 PM, David Nalley <da...@gnsa.us>
> > > wrote:
> > > > >> >
> > > > >> > > On Tue, Feb 12, 2013 at 5:27 PM, Mike Tutkowski
> > > > >> > > <mi...@solidfire.com> wrote:
> > > > >> > > > So, I'm looking at these comments now:
> > > > >> > > >
> > > > >> > > > 2.3. Getting Started
> > > > >> > > > To get started using the CloudStack API, you should have the
> > > > >> following:
> > > > >> > > >
> > > > >> > > >    - URL of the CloudStack server you wish to integrate
> with.
> > > > >> > > >    - Both the API Key and Secret Key for an account. This
> > should
> > > > >> have
> > > > >> > > been
> > > > >> > > >    generated by the administrator of the cloud instance and
> > > given
> > > > to
> > > > >> > you.
> > > > >> > > >    - Familiarity with HTTP GET/POST and query strings.
> > > > >> > > >    - Knowledge of either XML or JSON.
> > > > >> > > >    - Knowledge of a programming language that can generate
> > HTTP
> > > > >> > requests;
> > > > >> > > >    for example, Java or PHP.
> > > > >> > > >
> > > > >> > > >
> > > > >> > > > I'm not sure how to generate the API Key and Secret Key for
> an
> > > > >> account.
> > > > >> > > >  Can someone point me to instructions for this?
> > > > >> > > >
> > > > >> > > > Thanks!
> > > > >> > > >
> > > > >> > >
> > > > >> > >
> > > > >> > >
> > > > >> >
> > > > >>
> > > >
> > >
> >
> http://incubator.apache.org/cloudstack/docs/api/apidocs-4.0.0/root_admin/registerUserKeys.html
> > > > >> > > Please file a bug for the DevGuide documentation not being
> clear
> > > on
> > > > >> this
> > > > >> > > issue
> > > > >> > >
> > > > >> > > -David
> > > > >> > >
> > > > >> >
> > > > >> >
> > > > >> >
> > > > >> > --
> > > > >> > *Mike Tutkowski*
> > > > >> > *Senior CloudStack Developer, SolidFire Inc.*
> > > > >> > e: mike.tutkowski@solidfire.com
> > > > >> > o: 303.746.7302
> > > > >> > Advancing the way the world uses the
> > > > >> > cloud<http://solidfire.com/solution/overview/?video=play>
> > > > >> > *™*
> > > > >> >
> > > > >>
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > *Mike Tutkowski*
> > > > > *Senior CloudStack Developer, SolidFire Inc.*
> > > > > e: mike.tutkowski@solidfire.com
> > > > > o: 303.746.7302
> > > > > Advancing the way the world uses the cloud<
> > > > http://solidfire.com/solution/overview/?video=play>
> > > > > *™*
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > *Mike Tutkowski*
> > > > *Senior CloudStack Developer, SolidFire Inc.*
> > > > e: mike.tutkowski@solidfire.com
> > > > o: 303.746.7302
> > > > Advancing the way the world uses the
> > > > cloud<http://solidfire.com/solution/overview/?video=play>
> > > > *™*
> > > >
> > >
> >
> >
> >
> > --
> > *Mike Tutkowski*
> > *Senior CloudStack Developer, SolidFire Inc.*
> > e: mike.tutkowski@solidfire.com
> > o: 303.746.7302
> > Advancing the way the world uses the
> > cloud<http://solidfire.com/solution/overview/?video=play>
> > *™*
> >
>



-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkowski@solidfire.com
o: 303.746.7302
Advancing the way the world uses the
cloud<http://solidfire.com/solution/overview/?video=play>
*™*

Re: CloudStack API Question

Posted by Mike Tutkowski <mi...@solidfire.com>.
Great - thanks, guys!

I am looking into the details of how I did the sorting and what I used when
I generated the signature.


On Thu, Feb 14, 2013 at 12:40 PM, Will Stevens <ws...@cloudops.com>wrote:

> When you generated your signature, did you first sort the parameters being
> passed alphabetically?  If you didn't then the signature which you
> generated is wrong.
>
> Something to check anyway...
>
>
> On Thu, Feb 14, 2013 at 2:35 PM, Mike Tutkowski <
> mike.tutkowski@solidfire.com> wrote:
>
> > So, my next API question.  :)
> >
> > I am getting a 401 with the following Java code.  A 401 is authentication
> > related, but I'm not sure if I need to provide a username and password
> > because I didn't see that in the example on the web that I'm following.
> >
> > Any thoughts?
> >
> > Thanks!
> >
> >   final String strHost = "127.0.0.1:8080/";
> >
> >    final String strFinalUrl = "http://" + strHost + strApiUrl +
> > "&apiKey="+ strApiKey +
> > "&signature=" + strEncodedSignature;
> >
> >    System.out.println(strFinalUrl);
> >
> >    final HttpClient client = new DefaultHttpClient();
> >
> >  final HttpResponse response = client.execute(new HttpGet(strFinalUrl));
> >
> >    if (response.getStatusLine().getStatusCode() != 200)
> >
> >  {
> >
> >   throw new RuntimeException("Failed on CloudStack deployVirtualMachine
> API
> > call : HTTP error code : " + response.getStatusLine().getStatusCode());
> >
> >  }
> >
> > The URL I'm printing looks like this:
> >
> >
> >
> >
> http://127.0.0.1:8080/client/api?command=deployVirtualMachine&serviceOfferingId=1&diskOfferingId=1&templateId=1&zoneId=1&apiKey=X0U60K_Qgodb6nL5csNcAzRiz2cKiwx-tjBj1dTMLSVxkdmD0QtUhFzDf3MCmwGnC3z2dQPo0j3x_XJYmoEBmg&signature=CJvLoJ%2ByvUM12OUNb9hxyD1Gsjw%3D
> >
> >
> >
> > On Wed, Feb 13, 2013 at 12:06 PM, Mike Tutkowski <
> > mike.tutkowski@solidfire.com> wrote:
> >
> > > Thanks, David - that was very useful info. :)
> > >
> > > I'm not completely up to speed yet on what CloudStack considers a
> domain
> > > versus an account versus a user, but I found this page and am going
> > through
> > > it now:
> > >
> > > http://wiki.cloudstack.org/pages/viewpage.action?pageId=8224884
> > >
> > >
> > > On Wed, Feb 13, 2013 at 11:21 AM, David Grizzanti <
> > > david.grizzanti@sungard.com> wrote:
> > >
> > >> Mike,
> > >>
> > >> In the UI if you go to "Accounts" in the left hand sidebar -> click
> the
> > >> name of an account (i.e. "admin") -> under Details click "View Users"
> ->
> > >> click the Username of the user in question (i.e. "admin") and the API
> > and
> > >> Secrety Key should be listed under the Details there.
> > >>
> > >> Hope that helps!
> > >>
> > >> --
> > >> David Grizzanti
> > >> Software Engineer - SunGard Availability Services
> > >> 401 N. Broad Street, Philadelphia, PA 19108
> > >> o: 215-446-1431 - e: david.grizzanti@sungard.com
> > >>
> > >> On Feb 13, 2013, at 12:44 PM, Mike Tutkowski wrote:
> > >>
> > >> > OK, just getting around to doing this now.
> > >> >
> > >> > It looks like the Generate Keys command worked (I didn't get an
> error
> > >> > message), but I'm not sure where to look in the GUI to find these
> > keys.
> > >> >
> > >> > Would you mind pointing that out for me?
> > >> >
> > >> > Thanks!!
> > >> >
> > >> >
> > >> > On Tue, Feb 12, 2013 at 9:07 PM, Will Stevens <
> wstevens@cloudops.com>
> > >> wrote:
> > >> >
> > >> >> If its a fresh install, you will access the client at:
> > >> >> the.machines.ip:8080/client/
> > >> >> Login with username/password of: admin/password
> > >> >> Click: Accounts -> admin -> View Users -> admin -> (in the main
> > window
> > >> >> there are 3 buttons at the top left of the screen, mouse over the
> > right
> > >> >> most one of the 3 and it should say 'Generate Keys', click that)
> > >> >>
> > >> >> You can follow that same process for any user who has an account.
> > >> >>
> > >> >>
> > >> >>
> > >> >>
> > >> >>
> > >> >> On Tue, Feb 12, 2013 at 10:26 PM, Mike Tutkowski <
> > >> >> mike.tutkowski@solidfire.com> wrote:
> > >> >>
> > >> >>> Can you point me to the location in the GUI where I can generate
> > keys?
> > >> >>>
> > >> >>> Thanks!
> > >> >>>
> > >> >>>
> > >> >>> On Tue, Feb 12, 2013 at 4:17 PM, Will Stevens <
> > wstevens@cloudops.com>
> > >> >>> wrote:
> > >> >>>
> > >> >>>> They do not expire, but in the UI you can regenerate the keys, so
> > in
> > >> >> that
> > >> >>>> case they would change.
> > >> >>>>
> > >> >>>>
> > >> >>>> On Tue, Feb 12, 2013 at 6:13 PM, Mike Tutkowski <
> > >> >>>> mike.tutkowski@solidfire.com> wrote:
> > >> >>>>
> > >> >>>>> to "say" (I mean) :)
> > >> >>>>>
> > >> >>>>>
> > >> >>>>> On Tue, Feb 12, 2013 at 4:13 PM, Mike Tutkowski <
> > >> >>>>> mike.tutkowski@solidfire.com> wrote:
> > >> >>>>>
> > >> >>>>>> Sounds good...and these do not expire?  Is that accurate to
> day?
> > >> >>>>>>
> > >> >>>>>>
> > >> >>>>>> On Tue, Feb 12, 2013 at 4:03 PM, Will Stevens <
> > >> >> wstevens@cloudops.com
> > >> >>>>>> wrote:
> > >> >>>>>>
> > >> >>>>>>> Every role uses the same procedure.  They all need an api key
> > and
> > >> >>>> secret
> > >> >>>>>>> key.
> > >> >>>>>>>
> > >> >>>>>>>
> > >> >>>>>>> On Tue, Feb 12, 2013 at 5:54 PM, Mike Tutkowski <
> > >> >>>>>>> mike.tutkowski@solidfire.com> wrote:
> > >> >>>>>>>
> > >> >>>>>>>> Thanks for the info.
> > >> >>>>>>>>
> > >> >>>>>>>> So, I see we have three roles in CloudStack:  Root Admin,
> > Domain
> > >> >>>>> Admin,
> > >> >>>>>>> and
> > >> >>>>>>>> User.
> > >> >>>>>>>>
> > >> >>>>>>>> When submitting API commands, does the submitter - regardless
> > of
> > >> >>>> role
> > >> >>>>> -
> > >> >>>>>>>> have to provide an API Key and Secret Key (or is that
> > something,
> > >> >>>> say,
> > >> >>>>>>> the
> > >> >>>>>>>> Root Admin doesn't have to do)?
> > >> >>>>>>>>
> > >> >>>>>>>> Thanks!
> > >> >>>>>>>>
> > >> >>>>>>>>
> > >> >>>>>>>> On Tue, Feb 12, 2013 at 3:33 PM, David Nalley <david@gnsa.us
> >
> > >> >>>> wrote:
> > >> >>>>>>>>
> > >> >>>>>>>>> On Tue, Feb 12, 2013 at 5:27 PM, Mike Tutkowski
> > >> >>>>>>>>> <mi...@solidfire.com> wrote:
> > >> >>>>>>>>>> So, I'm looking at these comments now:
> > >> >>>>>>>>>>
> > >> >>>>>>>>>> 2.3. Getting Started
> > >> >>>>>>>>>> To get started using the CloudStack API, you should have
> the
> > >> >>>>>>> following:
> > >> >>>>>>>>>>
> > >> >>>>>>>>>>   - URL of the CloudStack server you wish to integrate
> > >> >> with.
> > >> >>>>>>>>>>   - Both the API Key and Secret Key for an account. This
> > >> >>> should
> > >> >>>>>>> have
> > >> >>>>>>>>> been
> > >> >>>>>>>>>>   generated by the administrator of the cloud instance and
> > >> >>>> given
> > >> >>>>> to
> > >> >>>>>>>> you.
> > >> >>>>>>>>>>   - Familiarity with HTTP GET/POST and query strings.
> > >> >>>>>>>>>>   - Knowledge of either XML or JSON.
> > >> >>>>>>>>>>   - Knowledge of a programming language that can generate
> > >> >>> HTTP
> > >> >>>>>>>> requests;
> > >> >>>>>>>>>>   for example, Java or PHP.
> > >> >>>>>>>>>>
> > >> >>>>>>>>>>
> > >> >>>>>>>>>> I'm not sure how to generate the API Key and Secret Key for
> > >> >> an
> > >> >>>>>>> account.
> > >> >>>>>>>>>> Can someone point me to instructions for this?
> > >> >>>>>>>>>>
> > >> >>>>>>>>>> Thanks!
> > >> >>>>>>>>>>
> > >> >>>>>>>>>
> > >> >>>>>>>>>
> > >> >>>>>>>>>
> > >> >>>>>>>>
> > >> >>>>>>>
> > >> >>>>>
> > >> >>>>
> > >> >>>
> > >> >>
> > >>
> >
> http://incubator.apache.org/cloudstack/docs/api/apidocs-4.0.0/root_admin/registerUserKeys.html
> > >> >>>>>>>>> Please file a bug for the DevGuide documentation not being
> > >> >> clear
> > >> >>>> on
> > >> >>>>>>> this
> > >> >>>>>>>>> issue
> > >> >>>>>>>>>
> > >> >>>>>>>>> -David
> > >> >>>>>>>>>
> > >> >>>>>>>>
> > >> >>>>>>>>
> > >> >>>>>>>>
> > >> >>>>>>>> --
> > >> >>>>>>>> *Mike Tutkowski*
> > >> >>>>>>>> *Senior CloudStack Developer, SolidFire Inc.*
> > >> >>>>>>>> e: mike.tutkowski@solidfire.com
> > >> >>>>>>>> o: 303.746.7302
> > >> >>>>>>>> Advancing the way the world uses the
> > >> >>>>>>>> cloud<http://solidfire.com/solution/overview/?video=play>
> > >> >>>>>>>> *™*
> > >> >>>>>>>>
> > >> >>>>>>>
> > >> >>>>>>
> > >> >>>>>>
> > >> >>>>>>
> > >> >>>>>> --
> > >> >>>>>> *Mike Tutkowski*
> > >> >>>>>> *Senior CloudStack Developer, SolidFire Inc.*
> > >> >>>>>> e: mike.tutkowski@solidfire.com
> > >> >>>>>> o: 303.746.7302
> > >> >>>>>> Advancing the way the world uses the cloud<
> > >> >>>>> http://solidfire.com/solution/overview/?video=play>
> > >> >>>>>> *™*
> > >> >>>>>>
> > >> >>>>>
> > >> >>>>>
> > >> >>>>>
> > >> >>>>> --
> > >> >>>>> *Mike Tutkowski*
> > >> >>>>> *Senior CloudStack Developer, SolidFire Inc.*
> > >> >>>>> e: mike.tutkowski@solidfire.com
> > >> >>>>> o: 303.746.7302
> > >> >>>>> Advancing the way the world uses the
> > >> >>>>> cloud<http://solidfire.com/solution/overview/?video=play>
> > >> >>>>> *™*
> > >> >>>>>
> > >> >>>>
> > >> >>>
> > >> >>>
> > >> >>>
> > >> >>> --
> > >> >>> *Mike Tutkowski*
> > >> >>> *Senior CloudStack Developer, SolidFire Inc.*
> > >> >>> e: mike.tutkowski@solidfire.com
> > >> >>> o: 303.746.7302
> > >> >>> Advancing the way the world uses the
> > >> >>> cloud<http://solidfire.com/solution/overview/?video=play>
> > >> >>> *™*
> > >> >>>
> > >> >>
> > >> >
> > >> >
> > >> >
> > >> > --
> > >> > *Mike Tutkowski*
> > >> > *Senior CloudStack Developer, SolidFire Inc.*
> > >> > e: mike.tutkowski@solidfire.com
> > >> > o: 303.746.7302
> > >> > Advancing the way the world uses the
> > >> > cloud<http://solidfire.com/solution/overview/?video=play>
> > >> > *™*
> > >>
> > >>
> > >
> > >
> > > --
> > > *Mike Tutkowski*
> > > *Senior CloudStack Developer, SolidFire Inc.*
> > > e: mike.tutkowski@solidfire.com
> > > o: 303.746.7302
> > > Advancing the way the world uses the cloud<
> > http://solidfire.com/solution/overview/?video=play>
> > > *™*
> > >
> >
> >
> >
> > --
> > *Mike Tutkowski*
> > *Senior CloudStack Developer, SolidFire Inc.*
> > e: mike.tutkowski@solidfire.com
> > o: 303.746.7302
> > Advancing the way the world uses the
> > cloud<http://solidfire.com/solution/overview/?video=play>
> > *™*
> >
>



-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkowski@solidfire.com
o: 303.746.7302
Advancing the way the world uses the
cloud<http://solidfire.com/solution/overview/?video=play>
*™*

Re: CloudStack API Question

Posted by Mike Tutkowski <mi...@solidfire.com>.
Looking in the GUI, I see a UUID-type value for a Compute Offering's ID (is
this a value I would use in the API call?):

IDe91f2471-f26d-4376-889f-cc123963a921


On Thu, Feb 14, 2013 at 1:13 PM, Mike Tutkowski <
mike.tutkowski@solidfire.com> wrote:

> At the moment, I only have a couple Compute Offerings, Primary Storages,
> etc., so I just assumed the indexing started at 1 and hard coded that.
>
>
> On Thu, Feb 14, 2013 at 1:12 PM, Mike Tutkowski <
> mike.tutkowski@solidfire.com> wrote:
>
>> Which leads me to my next question, do I have to run a query to get the
>> IDs of templates and such or is that something visible in the GUI I can
>> just look at and hard code in my program for the time being?
>>
>>
>> On Thu, Feb 14, 2013 at 1:11 PM, Mike Tutkowski <
>> mike.tutkowski@solidfire.com> wrote:
>>
>>> Actually, when I do a copy/paste of the URL into Chrome, this is what I
>>> get back:
>>>
>>> <deployvirtualmachineresponse cloud-stack-version="4.1.0-SNAPSHOT">
>>> <errorcode>431</errorcode>
>>> <cserrorcode>4350</cserrorcode>
>>> <errortext>
>>> Unable to use system template 1 to deploy a user vm
>>> </errortext>
>>> </deployvirtualmachineresponse>
>>>
>>>
>>> On Thu, Feb 14, 2013 at 1:08 PM, Mike Tutkowski <
>>> mike.tutkowski@solidfire.com> wrote:
>>>
>>>> I think I fixed the signature issue because now I get a new error code:
>>>>  431
>>>>
>>>> 431 Request Header Fields Too Large (RFC 6585<http://tools.ietf.org/html/rfc6585>
>>>> ) The server is unwilling to process the request because either an
>>>> individual header field, or all the header fields collectively, are too
>>>> large.[18]<http://en.wikipedia.org/wiki/List_of_HTTP_status_codes#cite_note-rfc6585-18>
>>>>
>>>> I'm using a GET request.  Maybe I have to do this as a POST request?
>>>>
>>>>
>>>> On Thu, Feb 14, 2013 at 12:46 PM, Mike Tutkowski <
>>>> mike.tutkowski@solidfire.com> wrote:
>>>>
>>>>> Cool...thanks, Will.
>>>>>
>>>>> It sounds like if I get the signature right, then I should be good.
>>>>>
>>>>> Looking into it now.
>>>>>
>>>>>
>>>>> On Thu, Feb 14, 2013 at 12:45 PM, Will Stevens <ws...@cloudops.com>wrote:
>>>>>
>>>>>> Looking at what you pasted in.  I think you forgot to add the api key
>>>>>> to
>>>>>> the request parameters before you sorted them and then generated your
>>>>>> signature.  In short, your signature is wrong...
>>>>>>
>>>>>>
>>>>>> On Thu, Feb 14, 2013 at 2:40 PM, Will Stevens <ws...@cloudops.com>
>>>>>> wrote:
>>>>>>
>>>>>> > When you generated your signature, did you first sort the
>>>>>> parameters being
>>>>>> > passed alphabetically?  If you didn't then the signature which you
>>>>>> > generated is wrong.
>>>>>> >
>>>>>> > Something to check anyway...
>>>>>> >
>>>>>> >
>>>>>> > On Thu, Feb 14, 2013 at 2:35 PM, Mike Tutkowski <
>>>>>> > mike.tutkowski@solidfire.com> wrote:
>>>>>> >
>>>>>> >> So, my next API question.  :)
>>>>>> >>
>>>>>> >> I am getting a 401 with the following Java code.  A 401 is
>>>>>> authentication
>>>>>> >> related, but I'm not sure if I need to provide a username and
>>>>>> password
>>>>>> >> because I didn't see that in the example on the web that I'm
>>>>>> following.
>>>>>> >>
>>>>>> >> Any thoughts?
>>>>>> >>
>>>>>> >> Thanks!
>>>>>> >>
>>>>>> >>   final String strHost = "127.0.0.1:8080/";
>>>>>> >>
>>>>>> >>    final String strFinalUrl = "http://" + strHost + strApiUrl +
>>>>>> >> "&apiKey="+ strApiKey +
>>>>>> >> "&signature=" + strEncodedSignature;
>>>>>> >>
>>>>>> >>    System.out.println(strFinalUrl);
>>>>>> >>
>>>>>> >>    final HttpClient client = new DefaultHttpClient();
>>>>>> >>
>>>>>> >>  final HttpResponse response = client.execute(new
>>>>>> HttpGet(strFinalUrl));
>>>>>> >>
>>>>>> >>    if (response.getStatusLine().getStatusCode() != 200)
>>>>>> >>
>>>>>> >>  {
>>>>>> >>
>>>>>> >>   throw new RuntimeException("Failed on CloudStack
>>>>>> deployVirtualMachine
>>>>>> >> API
>>>>>> >> call : HTTP error code : " +
>>>>>> response.getStatusLine().getStatusCode());
>>>>>> >>
>>>>>> >>  }
>>>>>> >>
>>>>>> >> The URL I'm printing looks like this:
>>>>>> >>
>>>>>> >>
>>>>>> >>
>>>>>> >>
>>>>>> http://127.0.0.1:8080/client/api?command=deployVirtualMachine&serviceOfferingId=1&diskOfferingId=1&templateId=1&zoneId=1&apiKey=X0U60K_Qgodb6nL5csNcAzRiz2cKiwx-tjBj1dTMLSVxkdmD0QtUhFzDf3MCmwGnC3z2dQPo0j3x_XJYmoEBmg&signature=CJvLoJ%2ByvUM12OUNb9hxyD1Gsjw%3D
>>>>>> >>
>>>>>> >>
>>>>>> >>
>>>>>> >> On Wed, Feb 13, 2013 at 12:06 PM, Mike Tutkowski <
>>>>>> >> mike.tutkowski@solidfire.com> wrote:
>>>>>> >>
>>>>>> >> > Thanks, David - that was very useful info. :)
>>>>>> >> >
>>>>>> >> > I'm not completely up to speed yet on what CloudStack considers
>>>>>> a domain
>>>>>> >> > versus an account versus a user, but I found this page and am
>>>>>> going
>>>>>> >> through
>>>>>> >> > it now:
>>>>>> >> >
>>>>>> >> > http://wiki.cloudstack.org/pages/viewpage.action?pageId=8224884
>>>>>> >> >
>>>>>> >> >
>>>>>> >> > On Wed, Feb 13, 2013 at 11:21 AM, David Grizzanti <
>>>>>> >> > david.grizzanti@sungard.com> wrote:
>>>>>> >> >
>>>>>> >> >> Mike,
>>>>>> >> >>
>>>>>> >> >> In the UI if you go to "Accounts" in the left hand sidebar ->
>>>>>> click the
>>>>>> >> >> name of an account (i.e. "admin") -> under Details click "View
>>>>>> Users"
>>>>>> >> ->
>>>>>> >> >> click the Username of the user in question (i.e. "admin") and
>>>>>> the API
>>>>>> >> and
>>>>>> >> >> Secrety Key should be listed under the Details there.
>>>>>> >> >>
>>>>>> >> >> Hope that helps!
>>>>>> >> >>
>>>>>> >> >> --
>>>>>> >> >> David Grizzanti
>>>>>> >> >> Software Engineer - SunGard Availability Services
>>>>>> >> >> 401 N. Broad Street, Philadelphia, PA 19108
>>>>>> >> >> o: 215-446-1431 - e: david.grizzanti@sungard.com
>>>>>> >> >>
>>>>>> >> >> On Feb 13, 2013, at 12:44 PM, Mike Tutkowski wrote:
>>>>>> >> >>
>>>>>> >> >> > OK, just getting around to doing this now.
>>>>>> >> >> >
>>>>>> >> >> > It looks like the Generate Keys command worked (I didn't get
>>>>>> an error
>>>>>> >> >> > message), but I'm not sure where to look in the GUI to find
>>>>>> these
>>>>>> >> keys.
>>>>>> >> >> >
>>>>>> >> >> > Would you mind pointing that out for me?
>>>>>> >> >> >
>>>>>> >> >> > Thanks!!
>>>>>> >> >> >
>>>>>> >> >> >
>>>>>> >> >> > On Tue, Feb 12, 2013 at 9:07 PM, Will Stevens <
>>>>>> wstevens@cloudops.com
>>>>>> >> >
>>>>>> >> >> wrote:
>>>>>> >> >> >
>>>>>> >> >> >> If its a fresh install, you will access the client at:
>>>>>> >> >> >> the.machines.ip:8080/client/
>>>>>> >> >> >> Login with username/password of: admin/password
>>>>>> >> >> >> Click: Accounts -> admin -> View Users -> admin -> (in the
>>>>>> main
>>>>>> >> window
>>>>>> >> >> >> there are 3 buttons at the top left of the screen, mouse
>>>>>> over the
>>>>>> >> right
>>>>>> >> >> >> most one of the 3 and it should say 'Generate Keys', click
>>>>>> that)
>>>>>> >> >> >>
>>>>>> >> >> >> You can follow that same process for any user who has an
>>>>>> account.
>>>>>> >> >> >>
>>>>>> >> >> >>
>>>>>> >> >> >>
>>>>>> >> >> >>
>>>>>> >> >> >>
>>>>>> >> >> >> On Tue, Feb 12, 2013 at 10:26 PM, Mike Tutkowski <
>>>>>> >> >> >> mike.tutkowski@solidfire.com> wrote:
>>>>>> >> >> >>
>>>>>> >> >> >>> Can you point me to the location in the GUI where I can
>>>>>> generate
>>>>>> >> keys?
>>>>>> >> >> >>>
>>>>>> >> >> >>> Thanks!
>>>>>> >> >> >>>
>>>>>> >> >> >>>
>>>>>> >> >> >>> On Tue, Feb 12, 2013 at 4:17 PM, Will Stevens <
>>>>>> >> wstevens@cloudops.com>
>>>>>> >> >> >>> wrote:
>>>>>> >> >> >>>
>>>>>> >> >> >>>> They do not expire, but in the UI you can regenerate the
>>>>>> keys, so
>>>>>> >> in
>>>>>> >> >> >> that
>>>>>> >> >> >>>> case they would change.
>>>>>> >> >> >>>>
>>>>>> >> >> >>>>
>>>>>> >> >> >>>> On Tue, Feb 12, 2013 at 6:13 PM, Mike Tutkowski <
>>>>>> >> >> >>>> mike.tutkowski@solidfire.com> wrote:
>>>>>> >> >> >>>>
>>>>>> >> >> >>>>> to "say" (I mean) :)
>>>>>> >> >> >>>>>
>>>>>> >> >> >>>>>
>>>>>> >> >> >>>>> On Tue, Feb 12, 2013 at 4:13 PM, Mike Tutkowski <
>>>>>> >> >> >>>>> mike.tutkowski@solidfire.com> wrote:
>>>>>> >> >> >>>>>
>>>>>> >> >> >>>>>> Sounds good...and these do not expire?  Is that accurate
>>>>>> to day?
>>>>>> >> >> >>>>>>
>>>>>> >> >> >>>>>>
>>>>>> >> >> >>>>>> On Tue, Feb 12, 2013 at 4:03 PM, Will Stevens <
>>>>>> >> >> >> wstevens@cloudops.com
>>>>>> >> >> >>>>>> wrote:
>>>>>> >> >> >>>>>>
>>>>>> >> >> >>>>>>> Every role uses the same procedure.  They all need an
>>>>>> api key
>>>>>> >> and
>>>>>> >> >> >>>> secret
>>>>>> >> >> >>>>>>> key.
>>>>>> >> >> >>>>>>>
>>>>>> >> >> >>>>>>>
>>>>>> >> >> >>>>>>> On Tue, Feb 12, 2013 at 5:54 PM, Mike Tutkowski <
>>>>>> >> >> >>>>>>> mike.tutkowski@solidfire.com> wrote:
>>>>>> >> >> >>>>>>>
>>>>>> >> >> >>>>>>>> Thanks for the info.
>>>>>> >> >> >>>>>>>>
>>>>>> >> >> >>>>>>>> So, I see we have three roles in CloudStack:  Root
>>>>>> Admin,
>>>>>> >> Domain
>>>>>> >> >> >>>>> Admin,
>>>>>> >> >> >>>>>>> and
>>>>>> >> >> >>>>>>>> User.
>>>>>> >> >> >>>>>>>>
>>>>>> >> >> >>>>>>>> When submitting API commands, does the submitter -
>>>>>> regardless
>>>>>> >> of
>>>>>> >> >> >>>> role
>>>>>> >> >> >>>>> -
>>>>>> >> >> >>>>>>>> have to provide an API Key and Secret Key (or is that
>>>>>> >> something,
>>>>>> >> >> >>>> say,
>>>>>> >> >> >>>>>>> the
>>>>>> >> >> >>>>>>>> Root Admin doesn't have to do)?
>>>>>> >> >> >>>>>>>>
>>>>>> >> >> >>>>>>>> Thanks!
>>>>>> >> >> >>>>>>>>
>>>>>> >> >> >>>>>>>>
>>>>>> >> >> >>>>>>>> On Tue, Feb 12, 2013 at 3:33 PM, David Nalley <
>>>>>> david@gnsa.us>
>>>>>> >> >> >>>> wrote:
>>>>>> >> >> >>>>>>>>
>>>>>> >> >> >>>>>>>>> On Tue, Feb 12, 2013 at 5:27 PM, Mike Tutkowski
>>>>>> >> >> >>>>>>>>> <mi...@solidfire.com> wrote:
>>>>>> >> >> >>>>>>>>>> So, I'm looking at these comments now:
>>>>>> >> >> >>>>>>>>>>
>>>>>> >> >> >>>>>>>>>> 2.3. Getting Started
>>>>>> >> >> >>>>>>>>>> To get started using the CloudStack API, you should
>>>>>> have the
>>>>>> >> >> >>>>>>> following:
>>>>>> >> >> >>>>>>>>>>
>>>>>> >> >> >>>>>>>>>>   - URL of the CloudStack server you wish to
>>>>>> integrate
>>>>>> >> >> >> with.
>>>>>> >> >> >>>>>>>>>>   - Both the API Key and Secret Key for an account.
>>>>>> This
>>>>>> >> >> >>> should
>>>>>> >> >> >>>>>>> have
>>>>>> >> >> >>>>>>>>> been
>>>>>> >> >> >>>>>>>>>>   generated by the administrator of the cloud
>>>>>> instance and
>>>>>> >> >> >>>> given
>>>>>> >> >> >>>>> to
>>>>>> >> >> >>>>>>>> you.
>>>>>> >> >> >>>>>>>>>>   - Familiarity with HTTP GET/POST and query strings.
>>>>>> >> >> >>>>>>>>>>   - Knowledge of either XML or JSON.
>>>>>> >> >> >>>>>>>>>>   - Knowledge of a programming language that can
>>>>>> generate
>>>>>> >> >> >>> HTTP
>>>>>> >> >> >>>>>>>> requests;
>>>>>> >> >> >>>>>>>>>>   for example, Java or PHP.
>>>>>> >> >> >>>>>>>>>>
>>>>>> >> >> >>>>>>>>>>
>>>>>> >> >> >>>>>>>>>> I'm not sure how to generate the API Key and Secret
>>>>>> Key for
>>>>>> >> >> >> an
>>>>>> >> >> >>>>>>> account.
>>>>>> >> >> >>>>>>>>>> Can someone point me to instructions for this?
>>>>>> >> >> >>>>>>>>>>
>>>>>> >> >> >>>>>>>>>> Thanks!
>>>>>> >> >> >>>>>>>>>>
>>>>>> >> >> >>>>>>>>>
>>>>>> >> >> >>>>>>>>>
>>>>>> >> >> >>>>>>>>>
>>>>>> >> >> >>>>>>>>
>>>>>> >> >> >>>>>>>
>>>>>> >> >> >>>>>
>>>>>> >> >> >>>>
>>>>>> >> >> >>>
>>>>>> >> >> >>
>>>>>> >> >>
>>>>>> >>
>>>>>> http://incubator.apache.org/cloudstack/docs/api/apidocs-4.0.0/root_admin/registerUserKeys.html
>>>>>> >> >> >>>>>>>>> Please file a bug for the DevGuide documentation not
>>>>>> being
>>>>>> >> >> >> clear
>>>>>> >> >> >>>> on
>>>>>> >> >> >>>>>>> this
>>>>>> >> >> >>>>>>>>> issue
>>>>>> >> >> >>>>>>>>>
>>>>>> >> >> >>>>>>>>> -David
>>>>>> >> >> >>>>>>>>>
>>>>>> >> >> >>>>>>>>
>>>>>> >> >> >>>>>>>>
>>>>>> >> >> >>>>>>>>
>>>>>> >> >> >>>>>>>> --
>>>>>> >> >> >>>>>>>> *Mike Tutkowski*
>>>>>> >> >> >>>>>>>> *Senior CloudStack Developer, SolidFire Inc.*
>>>>>> >> >> >>>>>>>> e: mike.tutkowski@solidfire.com
>>>>>> >> >> >>>>>>>> o: 303.746.7302
>>>>>> >> >> >>>>>>>> Advancing the way the world uses the
>>>>>> >> >> >>>>>>>> cloud<
>>>>>> http://solidfire.com/solution/overview/?video=play>
>>>>>> >> >> >>>>>>>> *™*
>>>>>> >> >> >>>>>>>>
>>>>>> >> >> >>>>>>>
>>>>>> >> >> >>>>>>
>>>>>> >> >> >>>>>>
>>>>>> >> >> >>>>>>
>>>>>> >> >> >>>>>> --
>>>>>> >> >> >>>>>> *Mike Tutkowski*
>>>>>> >> >> >>>>>> *Senior CloudStack Developer, SolidFire Inc.*
>>>>>> >> >> >>>>>> e: mike.tutkowski@solidfire.com
>>>>>> >> >> >>>>>> o: 303.746.7302
>>>>>> >> >> >>>>>> Advancing the way the world uses the cloud<
>>>>>> >> >> >>>>> http://solidfire.com/solution/overview/?video=play>
>>>>>> >> >> >>>>>> *™*
>>>>>> >> >> >>>>>>
>>>>>> >> >> >>>>>
>>>>>> >> >> >>>>>
>>>>>> >> >> >>>>>
>>>>>> >> >> >>>>> --
>>>>>> >> >> >>>>> *Mike Tutkowski*
>>>>>> >> >> >>>>> *Senior CloudStack Developer, SolidFire Inc.*
>>>>>> >> >> >>>>> e: mike.tutkowski@solidfire.com
>>>>>> >> >> >>>>> o: 303.746.7302
>>>>>> >> >> >>>>> Advancing the way the world uses the
>>>>>> >> >> >>>>> cloud<http://solidfire.com/solution/overview/?video=play>
>>>>>> >> >> >>>>> *™*
>>>>>> >> >> >>>>>
>>>>>> >> >> >>>>
>>>>>> >> >> >>>
>>>>>> >> >> >>>
>>>>>> >> >> >>>
>>>>>> >> >> >>> --
>>>>>> >> >> >>> *Mike Tutkowski*
>>>>>> >> >> >>> *Senior CloudStack Developer, SolidFire Inc.*
>>>>>> >> >> >>> e: mike.tutkowski@solidfire.com
>>>>>> >> >> >>> o: 303.746.7302
>>>>>> >> >> >>> Advancing the way the world uses the
>>>>>> >> >> >>> cloud<http://solidfire.com/solution/overview/?video=play>
>>>>>> >> >> >>> *™*
>>>>>> >> >> >>>
>>>>>> >> >> >>
>>>>>> >> >> >
>>>>>> >> >> >
>>>>>> >> >> >
>>>>>> >> >> > --
>>>>>> >> >> > *Mike Tutkowski*
>>>>>> >> >> > *Senior CloudStack Developer, SolidFire Inc.*
>>>>>> >> >> > e: mike.tutkowski@solidfire.com
>>>>>> >> >> > o: 303.746.7302
>>>>>> >> >> > Advancing the way the world uses the
>>>>>> >> >> > cloud<http://solidfire.com/solution/overview/?video=play>
>>>>>> >> >> > *™*
>>>>>> >> >>
>>>>>> >> >>
>>>>>> >> >
>>>>>> >> >
>>>>>> >> > --
>>>>>> >> > *Mike Tutkowski*
>>>>>> >> > *Senior CloudStack Developer, SolidFire Inc.*
>>>>>> >> > e: mike.tutkowski@solidfire.com
>>>>>> >> > o: 303.746.7302
>>>>>> >> > Advancing the way the world uses the cloud<
>>>>>> >> http://solidfire.com/solution/overview/?video=play>
>>>>>> >> > *™*
>>>>>> >> >
>>>>>> >>
>>>>>> >>
>>>>>> >>
>>>>>> >> --
>>>>>> >> *Mike Tutkowski*
>>>>>> >> *Senior CloudStack Developer, SolidFire Inc.*
>>>>>> >> e: mike.tutkowski@solidfire.com
>>>>>> >> o: 303.746.7302
>>>>>> >> Advancing the way the world uses the
>>>>>> >> cloud<http://solidfire.com/solution/overview/?video=play>
>>>>>> >> *™*
>>>>>> >>
>>>>>> >
>>>>>> >
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> *Mike Tutkowski*
>>>>> *Senior CloudStack Developer, SolidFire Inc.*
>>>>> e: mike.tutkowski@solidfire.com
>>>>> o: 303.746.7302
>>>>> Advancing the way the world uses the cloud<http://solidfire.com/solution/overview/?video=play>
>>>>> *™*
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> *Mike Tutkowski*
>>>> *Senior CloudStack Developer, SolidFire Inc.*
>>>> e: mike.tutkowski@solidfire.com
>>>> o: 303.746.7302
>>>> Advancing the way the world uses the cloud<http://solidfire.com/solution/overview/?video=play>
>>>> *™*
>>>>
>>>
>>>
>>>
>>> --
>>> *Mike Tutkowski*
>>> *Senior CloudStack Developer, SolidFire Inc.*
>>> e: mike.tutkowski@solidfire.com
>>> o: 303.746.7302
>>> Advancing the way the world uses the cloud<http://solidfire.com/solution/overview/?video=play>
>>> *™*
>>>
>>
>>
>>
>> --
>> *Mike Tutkowski*
>> *Senior CloudStack Developer, SolidFire Inc.*
>> e: mike.tutkowski@solidfire.com
>> o: 303.746.7302
>> Advancing the way the world uses the cloud<http://solidfire.com/solution/overview/?video=play>
>> *™*
>>
>
>
>
> --
> *Mike Tutkowski*
> *Senior CloudStack Developer, SolidFire Inc.*
> e: mike.tutkowski@solidfire.com
> o: 303.746.7302
> Advancing the way the world uses the cloud<http://solidfire.com/solution/overview/?video=play>
> *™*
>



-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkowski@solidfire.com
o: 303.746.7302
Advancing the way the world uses the
cloud<http://solidfire.com/solution/overview/?video=play>
*™*

Re: CloudStack API Question

Posted by Will Stevens <ws...@cloudops.com>.
If you are trying to launch a VM, you need to do the following 3 calls
'listZones', 'listServiceOfferings', 'listTemplates' in order to get the
details you need to actually call 'deployVirtualMachine'.


On Thu, Feb 14, 2013 at 3:13 PM, Mike Tutkowski <
mike.tutkowski@solidfire.com> wrote:

> At the moment, I only have a couple Compute Offerings, Primary Storages,
> etc., so I just assumed the indexing started at 1 and hard coded that.
>
>
> On Thu, Feb 14, 2013 at 1:12 PM, Mike Tutkowski <
> mike.tutkowski@solidfire.com> wrote:
>
> > Which leads me to my next question, do I have to run a query to get the
> > IDs of templates and such or is that something visible in the GUI I can
> > just look at and hard code in my program for the time being?
> >
> >
> > On Thu, Feb 14, 2013 at 1:11 PM, Mike Tutkowski <
> > mike.tutkowski@solidfire.com> wrote:
> >
> >> Actually, when I do a copy/paste of the URL into Chrome, this is what I
> >> get back:
> >>
> >> <deployvirtualmachineresponse cloud-stack-version="4.1.0-SNAPSHOT">
> >> <errorcode>431</errorcode>
> >> <cserrorcode>4350</cserrorcode>
> >> <errortext>
> >> Unable to use system template 1 to deploy a user vm
> >> </errortext>
> >> </deployvirtualmachineresponse>
> >>
> >>
> >> On Thu, Feb 14, 2013 at 1:08 PM, Mike Tutkowski <
> >> mike.tutkowski@solidfire.com> wrote:
> >>
> >>> I think I fixed the signature issue because now I get a new error code:
> >>>  431
> >>>
> >>> 431 Request Header Fields Too Large (RFC 6585<
> http://tools.ietf.org/html/rfc6585>
> >>> ) The server is unwilling to process the request because either an
> >>> individual header field, or all the header fields collectively, are too
> >>> large.[18]<
> http://en.wikipedia.org/wiki/List_of_HTTP_status_codes#cite_note-rfc6585-18
> >
> >>>
> >>> I'm using a GET request.  Maybe I have to do this as a POST request?
> >>>
> >>>
> >>> On Thu, Feb 14, 2013 at 12:46 PM, Mike Tutkowski <
> >>> mike.tutkowski@solidfire.com> wrote:
> >>>
> >>>> Cool...thanks, Will.
> >>>>
> >>>> It sounds like if I get the signature right, then I should be good.
> >>>>
> >>>> Looking into it now.
> >>>>
> >>>>
> >>>> On Thu, Feb 14, 2013 at 12:45 PM, Will Stevens <wstevens@cloudops.com
> >wrote:
> >>>>
> >>>>> Looking at what you pasted in.  I think you forgot to add the api key
> >>>>> to
> >>>>> the request parameters before you sorted them and then generated your
> >>>>> signature.  In short, your signature is wrong...
> >>>>>
> >>>>>
> >>>>> On Thu, Feb 14, 2013 at 2:40 PM, Will Stevens <wstevens@cloudops.com
> >
> >>>>> wrote:
> >>>>>
> >>>>> > When you generated your signature, did you first sort the
> parameters
> >>>>> being
> >>>>> > passed alphabetically?  If you didn't then the signature which you
> >>>>> > generated is wrong.
> >>>>> >
> >>>>> > Something to check anyway...
> >>>>> >
> >>>>> >
> >>>>> > On Thu, Feb 14, 2013 at 2:35 PM, Mike Tutkowski <
> >>>>> > mike.tutkowski@solidfire.com> wrote:
> >>>>> >
> >>>>> >> So, my next API question.  :)
> >>>>> >>
> >>>>> >> I am getting a 401 with the following Java code.  A 401 is
> >>>>> authentication
> >>>>> >> related, but I'm not sure if I need to provide a username and
> >>>>> password
> >>>>> >> because I didn't see that in the example on the web that I'm
> >>>>> following.
> >>>>> >>
> >>>>> >> Any thoughts?
> >>>>> >>
> >>>>> >> Thanks!
> >>>>> >>
> >>>>> >>   final String strHost = "127.0.0.1:8080/";
> >>>>> >>
> >>>>> >>    final String strFinalUrl = "http://" + strHost + strApiUrl +
> >>>>> >> "&apiKey="+ strApiKey +
> >>>>> >> "&signature=" + strEncodedSignature;
> >>>>> >>
> >>>>> >>    System.out.println(strFinalUrl);
> >>>>> >>
> >>>>> >>    final HttpClient client = new DefaultHttpClient();
> >>>>> >>
> >>>>> >>  final HttpResponse response = client.execute(new
> >>>>> HttpGet(strFinalUrl));
> >>>>> >>
> >>>>> >>    if (response.getStatusLine().getStatusCode() != 200)
> >>>>> >>
> >>>>> >>  {
> >>>>> >>
> >>>>> >>   throw new RuntimeException("Failed on CloudStack
> >>>>> deployVirtualMachine
> >>>>> >> API
> >>>>> >> call : HTTP error code : " +
> >>>>> response.getStatusLine().getStatusCode());
> >>>>> >>
> >>>>> >>  }
> >>>>> >>
> >>>>> >> The URL I'm printing looks like this:
> >>>>> >>
> >>>>> >>
> >>>>> >>
> >>>>> >>
> >>>>>
> http://127.0.0.1:8080/client/api?command=deployVirtualMachine&serviceOfferingId=1&diskOfferingId=1&templateId=1&zoneId=1&apiKey=X0U60K_Qgodb6nL5csNcAzRiz2cKiwx-tjBj1dTMLSVxkdmD0QtUhFzDf3MCmwGnC3z2dQPo0j3x_XJYmoEBmg&signature=CJvLoJ%2ByvUM12OUNb9hxyD1Gsjw%3D
> >>>>> >>
> >>>>> >>
> >>>>> >>
> >>>>> >> On Wed, Feb 13, 2013 at 12:06 PM, Mike Tutkowski <
> >>>>> >> mike.tutkowski@solidfire.com> wrote:
> >>>>> >>
> >>>>> >> > Thanks, David - that was very useful info. :)
> >>>>> >> >
> >>>>> >> > I'm not completely up to speed yet on what CloudStack considers
> a
> >>>>> domain
> >>>>> >> > versus an account versus a user, but I found this page and am
> >>>>> going
> >>>>> >> through
> >>>>> >> > it now:
> >>>>> >> >
> >>>>> >> > http://wiki.cloudstack.org/pages/viewpage.action?pageId=8224884
> >>>>> >> >
> >>>>> >> >
> >>>>> >> > On Wed, Feb 13, 2013 at 11:21 AM, David Grizzanti <
> >>>>> >> > david.grizzanti@sungard.com> wrote:
> >>>>> >> >
> >>>>> >> >> Mike,
> >>>>> >> >>
> >>>>> >> >> In the UI if you go to "Accounts" in the left hand sidebar ->
> >>>>> click the
> >>>>> >> >> name of an account (i.e. "admin") -> under Details click "View
> >>>>> Users"
> >>>>> >> ->
> >>>>> >> >> click the Username of the user in question (i.e. "admin") and
> >>>>> the API
> >>>>> >> and
> >>>>> >> >> Secrety Key should be listed under the Details there.
> >>>>> >> >>
> >>>>> >> >> Hope that helps!
> >>>>> >> >>
> >>>>> >> >> --
> >>>>> >> >> David Grizzanti
> >>>>> >> >> Software Engineer - SunGard Availability Services
> >>>>> >> >> 401 N. Broad Street, Philadelphia, PA 19108
> >>>>> >> >> o: 215-446-1431 - e: david.grizzanti@sungard.com
> >>>>> >> >>
> >>>>> >> >> On Feb 13, 2013, at 12:44 PM, Mike Tutkowski wrote:
> >>>>> >> >>
> >>>>> >> >> > OK, just getting around to doing this now.
> >>>>> >> >> >
> >>>>> >> >> > It looks like the Generate Keys command worked (I didn't get
> >>>>> an error
> >>>>> >> >> > message), but I'm not sure where to look in the GUI to find
> >>>>> these
> >>>>> >> keys.
> >>>>> >> >> >
> >>>>> >> >> > Would you mind pointing that out for me?
> >>>>> >> >> >
> >>>>> >> >> > Thanks!!
> >>>>> >> >> >
> >>>>> >> >> >
> >>>>> >> >> > On Tue, Feb 12, 2013 at 9:07 PM, Will Stevens <
> >>>>> wstevens@cloudops.com
> >>>>> >> >
> >>>>> >> >> wrote:
> >>>>> >> >> >
> >>>>> >> >> >> If its a fresh install, you will access the client at:
> >>>>> >> >> >> the.machines.ip:8080/client/
> >>>>> >> >> >> Login with username/password of: admin/password
> >>>>> >> >> >> Click: Accounts -> admin -> View Users -> admin -> (in the
> >>>>> main
> >>>>> >> window
> >>>>> >> >> >> there are 3 buttons at the top left of the screen, mouse
> over
> >>>>> the
> >>>>> >> right
> >>>>> >> >> >> most one of the 3 and it should say 'Generate Keys', click
> >>>>> that)
> >>>>> >> >> >>
> >>>>> >> >> >> You can follow that same process for any user who has an
> >>>>> account.
> >>>>> >> >> >>
> >>>>> >> >> >>
> >>>>> >> >> >>
> >>>>> >> >> >>
> >>>>> >> >> >>
> >>>>> >> >> >> On Tue, Feb 12, 2013 at 10:26 PM, Mike Tutkowski <
> >>>>> >> >> >> mike.tutkowski@solidfire.com> wrote:
> >>>>> >> >> >>
> >>>>> >> >> >>> Can you point me to the location in the GUI where I can
> >>>>> generate
> >>>>> >> keys?
> >>>>> >> >> >>>
> >>>>> >> >> >>> Thanks!
> >>>>> >> >> >>>
> >>>>> >> >> >>>
> >>>>> >> >> >>> On Tue, Feb 12, 2013 at 4:17 PM, Will Stevens <
> >>>>> >> wstevens@cloudops.com>
> >>>>> >> >> >>> wrote:
> >>>>> >> >> >>>
> >>>>> >> >> >>>> They do not expire, but in the UI you can regenerate the
> >>>>> keys, so
> >>>>> >> in
> >>>>> >> >> >> that
> >>>>> >> >> >>>> case they would change.
> >>>>> >> >> >>>>
> >>>>> >> >> >>>>
> >>>>> >> >> >>>> On Tue, Feb 12, 2013 at 6:13 PM, Mike Tutkowski <
> >>>>> >> >> >>>> mike.tutkowski@solidfire.com> wrote:
> >>>>> >> >> >>>>
> >>>>> >> >> >>>>> to "say" (I mean) :)
> >>>>> >> >> >>>>>
> >>>>> >> >> >>>>>
> >>>>> >> >> >>>>> On Tue, Feb 12, 2013 at 4:13 PM, Mike Tutkowski <
> >>>>> >> >> >>>>> mike.tutkowski@solidfire.com> wrote:
> >>>>> >> >> >>>>>
> >>>>> >> >> >>>>>> Sounds good...and these do not expire?  Is that accurate
> >>>>> to day?
> >>>>> >> >> >>>>>>
> >>>>> >> >> >>>>>>
> >>>>> >> >> >>>>>> On Tue, Feb 12, 2013 at 4:03 PM, Will Stevens <
> >>>>> >> >> >> wstevens@cloudops.com
> >>>>> >> >> >>>>>> wrote:
> >>>>> >> >> >>>>>>
> >>>>> >> >> >>>>>>> Every role uses the same procedure.  They all need an
> >>>>> api key
> >>>>> >> and
> >>>>> >> >> >>>> secret
> >>>>> >> >> >>>>>>> key.
> >>>>> >> >> >>>>>>>
> >>>>> >> >> >>>>>>>
> >>>>> >> >> >>>>>>> On Tue, Feb 12, 2013 at 5:54 PM, Mike Tutkowski <
> >>>>> >> >> >>>>>>> mike.tutkowski@solidfire.com> wrote:
> >>>>> >> >> >>>>>>>
> >>>>> >> >> >>>>>>>> Thanks for the info.
> >>>>> >> >> >>>>>>>>
> >>>>> >> >> >>>>>>>> So, I see we have three roles in CloudStack:  Root
> >>>>> Admin,
> >>>>> >> Domain
> >>>>> >> >> >>>>> Admin,
> >>>>> >> >> >>>>>>> and
> >>>>> >> >> >>>>>>>> User.
> >>>>> >> >> >>>>>>>>
> >>>>> >> >> >>>>>>>> When submitting API commands, does the submitter -
> >>>>> regardless
> >>>>> >> of
> >>>>> >> >> >>>> role
> >>>>> >> >> >>>>> -
> >>>>> >> >> >>>>>>>> have to provide an API Key and Secret Key (or is that
> >>>>> >> something,
> >>>>> >> >> >>>> say,
> >>>>> >> >> >>>>>>> the
> >>>>> >> >> >>>>>>>> Root Admin doesn't have to do)?
> >>>>> >> >> >>>>>>>>
> >>>>> >> >> >>>>>>>> Thanks!
> >>>>> >> >> >>>>>>>>
> >>>>> >> >> >>>>>>>>
> >>>>> >> >> >>>>>>>> On Tue, Feb 12, 2013 at 3:33 PM, David Nalley <
> >>>>> david@gnsa.us>
> >>>>> >> >> >>>> wrote:
> >>>>> >> >> >>>>>>>>
> >>>>> >> >> >>>>>>>>> On Tue, Feb 12, 2013 at 5:27 PM, Mike Tutkowski
> >>>>> >> >> >>>>>>>>> <mi...@solidfire.com> wrote:
> >>>>> >> >> >>>>>>>>>> So, I'm looking at these comments now:
> >>>>> >> >> >>>>>>>>>>
> >>>>> >> >> >>>>>>>>>> 2.3. Getting Started
> >>>>> >> >> >>>>>>>>>> To get started using the CloudStack API, you should
> >>>>> have the
> >>>>> >> >> >>>>>>> following:
> >>>>> >> >> >>>>>>>>>>
> >>>>> >> >> >>>>>>>>>>   - URL of the CloudStack server you wish to
> integrate
> >>>>> >> >> >> with.
> >>>>> >> >> >>>>>>>>>>   - Both the API Key and Secret Key for an account.
> >>>>> This
> >>>>> >> >> >>> should
> >>>>> >> >> >>>>>>> have
> >>>>> >> >> >>>>>>>>> been
> >>>>> >> >> >>>>>>>>>>   generated by the administrator of the cloud
> >>>>> instance and
> >>>>> >> >> >>>> given
> >>>>> >> >> >>>>> to
> >>>>> >> >> >>>>>>>> you.
> >>>>> >> >> >>>>>>>>>>   - Familiarity with HTTP GET/POST and query
> strings.
> >>>>> >> >> >>>>>>>>>>   - Knowledge of either XML or JSON.
> >>>>> >> >> >>>>>>>>>>   - Knowledge of a programming language that can
> >>>>> generate
> >>>>> >> >> >>> HTTP
> >>>>> >> >> >>>>>>>> requests;
> >>>>> >> >> >>>>>>>>>>   for example, Java or PHP.
> >>>>> >> >> >>>>>>>>>>
> >>>>> >> >> >>>>>>>>>>
> >>>>> >> >> >>>>>>>>>> I'm not sure how to generate the API Key and Secret
> >>>>> Key for
> >>>>> >> >> >> an
> >>>>> >> >> >>>>>>> account.
> >>>>> >> >> >>>>>>>>>> Can someone point me to instructions for this?
> >>>>> >> >> >>>>>>>>>>
> >>>>> >> >> >>>>>>>>>> Thanks!
> >>>>> >> >> >>>>>>>>>>
> >>>>> >> >> >>>>>>>>>
> >>>>> >> >> >>>>>>>>>
> >>>>> >> >> >>>>>>>>>
> >>>>> >> >> >>>>>>>>
> >>>>> >> >> >>>>>>>
> >>>>> >> >> >>>>>
> >>>>> >> >> >>>>
> >>>>> >> >> >>>
> >>>>> >> >> >>
> >>>>> >> >>
> >>>>> >>
> >>>>>
> http://incubator.apache.org/cloudstack/docs/api/apidocs-4.0.0/root_admin/registerUserKeys.html
> >>>>> >> >> >>>>>>>>> Please file a bug for the DevGuide documentation not
> >>>>> being
> >>>>> >> >> >> clear
> >>>>> >> >> >>>> on
> >>>>> >> >> >>>>>>> this
> >>>>> >> >> >>>>>>>>> issue
> >>>>> >> >> >>>>>>>>>
> >>>>> >> >> >>>>>>>>> -David
> >>>>> >> >> >>>>>>>>>
> >>>>> >> >> >>>>>>>>
> >>>>> >> >> >>>>>>>>
> >>>>> >> >> >>>>>>>>
> >>>>> >> >> >>>>>>>> --
> >>>>> >> >> >>>>>>>> *Mike Tutkowski*
> >>>>> >> >> >>>>>>>> *Senior CloudStack Developer, SolidFire Inc.*
> >>>>> >> >> >>>>>>>> e: mike.tutkowski@solidfire.com
> >>>>> >> >> >>>>>>>> o: 303.746.7302
> >>>>> >> >> >>>>>>>> Advancing the way the world uses the
> >>>>> >> >> >>>>>>>> cloud<
> >>>>> http://solidfire.com/solution/overview/?video=play>
> >>>>> >> >> >>>>>>>> *™*
> >>>>> >> >> >>>>>>>>
> >>>>> >> >> >>>>>>>
> >>>>> >> >> >>>>>>
> >>>>> >> >> >>>>>>
> >>>>> >> >> >>>>>>
> >>>>> >> >> >>>>>> --
> >>>>> >> >> >>>>>> *Mike Tutkowski*
> >>>>> >> >> >>>>>> *Senior CloudStack Developer, SolidFire Inc.*
> >>>>> >> >> >>>>>> e: mike.tutkowski@solidfire.com
> >>>>> >> >> >>>>>> o: 303.746.7302
> >>>>> >> >> >>>>>> Advancing the way the world uses the cloud<
> >>>>> >> >> >>>>> http://solidfire.com/solution/overview/?video=play>
> >>>>> >> >> >>>>>> *™*
> >>>>> >> >> >>>>>>
> >>>>> >> >> >>>>>
> >>>>> >> >> >>>>>
> >>>>> >> >> >>>>>
> >>>>> >> >> >>>>> --
> >>>>> >> >> >>>>> *Mike Tutkowski*
> >>>>> >> >> >>>>> *Senior CloudStack Developer, SolidFire Inc.*
> >>>>> >> >> >>>>> e: mike.tutkowski@solidfire.com
> >>>>> >> >> >>>>> o: 303.746.7302
> >>>>> >> >> >>>>> Advancing the way the world uses the
> >>>>> >> >> >>>>> cloud<http://solidfire.com/solution/overview/?video=play
> >
> >>>>> >> >> >>>>> *™*
> >>>>> >> >> >>>>>
> >>>>> >> >> >>>>
> >>>>> >> >> >>>
> >>>>> >> >> >>>
> >>>>> >> >> >>>
> >>>>> >> >> >>> --
> >>>>> >> >> >>> *Mike Tutkowski*
> >>>>> >> >> >>> *Senior CloudStack Developer, SolidFire Inc.*
> >>>>> >> >> >>> e: mike.tutkowski@solidfire.com
> >>>>> >> >> >>> o: 303.746.7302
> >>>>> >> >> >>> Advancing the way the world uses the
> >>>>> >> >> >>> cloud<http://solidfire.com/solution/overview/?video=play>
> >>>>> >> >> >>> *™*
> >>>>> >> >> >>>
> >>>>> >> >> >>
> >>>>> >> >> >
> >>>>> >> >> >
> >>>>> >> >> >
> >>>>> >> >> > --
> >>>>> >> >> > *Mike Tutkowski*
> >>>>> >> >> > *Senior CloudStack Developer, SolidFire Inc.*
> >>>>> >> >> > e: mike.tutkowski@solidfire.com
> >>>>> >> >> > o: 303.746.7302
> >>>>> >> >> > Advancing the way the world uses the
> >>>>> >> >> > cloud<http://solidfire.com/solution/overview/?video=play>
> >>>>> >> >> > *™*
> >>>>> >> >>
> >>>>> >> >>
> >>>>> >> >
> >>>>> >> >
> >>>>> >> > --
> >>>>> >> > *Mike Tutkowski*
> >>>>> >> > *Senior CloudStack Developer, SolidFire Inc.*
> >>>>> >> > e: mike.tutkowski@solidfire.com
> >>>>> >> > o: 303.746.7302
> >>>>> >> > Advancing the way the world uses the cloud<
> >>>>> >> http://solidfire.com/solution/overview/?video=play>
> >>>>> >> > *™*
> >>>>> >> >
> >>>>> >>
> >>>>> >>
> >>>>> >>
> >>>>> >> --
> >>>>> >> *Mike Tutkowski*
> >>>>> >> *Senior CloudStack Developer, SolidFire Inc.*
> >>>>> >> e: mike.tutkowski@solidfire.com
> >>>>> >> o: 303.746.7302
> >>>>> >> Advancing the way the world uses the
> >>>>> >> cloud<http://solidfire.com/solution/overview/?video=play>
> >>>>> >> *™*
> >>>>> >>
> >>>>> >
> >>>>> >
> >>>>>
> >>>>
> >>>>
> >>>>
> >>>> --
> >>>> *Mike Tutkowski*
> >>>> *Senior CloudStack Developer, SolidFire Inc.*
> >>>> e: mike.tutkowski@solidfire.com
> >>>> o: 303.746.7302
> >>>> Advancing the way the world uses the cloud<
> http://solidfire.com/solution/overview/?video=play>
> >>>> *™*
> >>>>
> >>>
> >>>
> >>>
> >>> --
> >>> *Mike Tutkowski*
> >>> *Senior CloudStack Developer, SolidFire Inc.*
> >>> e: mike.tutkowski@solidfire.com
> >>> o: 303.746.7302
> >>> Advancing the way the world uses the cloud<
> http://solidfire.com/solution/overview/?video=play>
> >>> *™*
> >>>
> >>
> >>
> >>
> >> --
> >> *Mike Tutkowski*
> >> *Senior CloudStack Developer, SolidFire Inc.*
> >> e: mike.tutkowski@solidfire.com
> >> o: 303.746.7302
> >> Advancing the way the world uses the cloud<
> http://solidfire.com/solution/overview/?video=play>
> >> *™*
> >>
> >
> >
> >
> > --
> > *Mike Tutkowski*
> > *Senior CloudStack Developer, SolidFire Inc.*
> > e: mike.tutkowski@solidfire.com
> > o: 303.746.7302
> > Advancing the way the world uses the cloud<
> http://solidfire.com/solution/overview/?video=play>
> > *™*
> >
>
>
>
> --
> *Mike Tutkowski*
> *Senior CloudStack Developer, SolidFire Inc.*
> e: mike.tutkowski@solidfire.com
> o: 303.746.7302
> Advancing the way the world uses the
> cloud<http://solidfire.com/solution/overview/?video=play>
> *™*
>

Re: CloudStack API Question

Posted by Mike Tutkowski <mi...@solidfire.com>.
At the moment, I only have a couple Compute Offerings, Primary Storages,
etc., so I just assumed the indexing started at 1 and hard coded that.


On Thu, Feb 14, 2013 at 1:12 PM, Mike Tutkowski <
mike.tutkowski@solidfire.com> wrote:

> Which leads me to my next question, do I have to run a query to get the
> IDs of templates and such or is that something visible in the GUI I can
> just look at and hard code in my program for the time being?
>
>
> On Thu, Feb 14, 2013 at 1:11 PM, Mike Tutkowski <
> mike.tutkowski@solidfire.com> wrote:
>
>> Actually, when I do a copy/paste of the URL into Chrome, this is what I
>> get back:
>>
>> <deployvirtualmachineresponse cloud-stack-version="4.1.0-SNAPSHOT">
>> <errorcode>431</errorcode>
>> <cserrorcode>4350</cserrorcode>
>> <errortext>
>> Unable to use system template 1 to deploy a user vm
>> </errortext>
>> </deployvirtualmachineresponse>
>>
>>
>> On Thu, Feb 14, 2013 at 1:08 PM, Mike Tutkowski <
>> mike.tutkowski@solidfire.com> wrote:
>>
>>> I think I fixed the signature issue because now I get a new error code:
>>>  431
>>>
>>> 431 Request Header Fields Too Large (RFC 6585<http://tools.ietf.org/html/rfc6585>
>>> ) The server is unwilling to process the request because either an
>>> individual header field, or all the header fields collectively, are too
>>> large.[18]<http://en.wikipedia.org/wiki/List_of_HTTP_status_codes#cite_note-rfc6585-18>
>>>
>>> I'm using a GET request.  Maybe I have to do this as a POST request?
>>>
>>>
>>> On Thu, Feb 14, 2013 at 12:46 PM, Mike Tutkowski <
>>> mike.tutkowski@solidfire.com> wrote:
>>>
>>>> Cool...thanks, Will.
>>>>
>>>> It sounds like if I get the signature right, then I should be good.
>>>>
>>>> Looking into it now.
>>>>
>>>>
>>>> On Thu, Feb 14, 2013 at 12:45 PM, Will Stevens <ws...@cloudops.com>wrote:
>>>>
>>>>> Looking at what you pasted in.  I think you forgot to add the api key
>>>>> to
>>>>> the request parameters before you sorted them and then generated your
>>>>> signature.  In short, your signature is wrong...
>>>>>
>>>>>
>>>>> On Thu, Feb 14, 2013 at 2:40 PM, Will Stevens <ws...@cloudops.com>
>>>>> wrote:
>>>>>
>>>>> > When you generated your signature, did you first sort the parameters
>>>>> being
>>>>> > passed alphabetically?  If you didn't then the signature which you
>>>>> > generated is wrong.
>>>>> >
>>>>> > Something to check anyway...
>>>>> >
>>>>> >
>>>>> > On Thu, Feb 14, 2013 at 2:35 PM, Mike Tutkowski <
>>>>> > mike.tutkowski@solidfire.com> wrote:
>>>>> >
>>>>> >> So, my next API question.  :)
>>>>> >>
>>>>> >> I am getting a 401 with the following Java code.  A 401 is
>>>>> authentication
>>>>> >> related, but I'm not sure if I need to provide a username and
>>>>> password
>>>>> >> because I didn't see that in the example on the web that I'm
>>>>> following.
>>>>> >>
>>>>> >> Any thoughts?
>>>>> >>
>>>>> >> Thanks!
>>>>> >>
>>>>> >>   final String strHost = "127.0.0.1:8080/";
>>>>> >>
>>>>> >>    final String strFinalUrl = "http://" + strHost + strApiUrl +
>>>>> >> "&apiKey="+ strApiKey +
>>>>> >> "&signature=" + strEncodedSignature;
>>>>> >>
>>>>> >>    System.out.println(strFinalUrl);
>>>>> >>
>>>>> >>    final HttpClient client = new DefaultHttpClient();
>>>>> >>
>>>>> >>  final HttpResponse response = client.execute(new
>>>>> HttpGet(strFinalUrl));
>>>>> >>
>>>>> >>    if (response.getStatusLine().getStatusCode() != 200)
>>>>> >>
>>>>> >>  {
>>>>> >>
>>>>> >>   throw new RuntimeException("Failed on CloudStack
>>>>> deployVirtualMachine
>>>>> >> API
>>>>> >> call : HTTP error code : " +
>>>>> response.getStatusLine().getStatusCode());
>>>>> >>
>>>>> >>  }
>>>>> >>
>>>>> >> The URL I'm printing looks like this:
>>>>> >>
>>>>> >>
>>>>> >>
>>>>> >>
>>>>> http://127.0.0.1:8080/client/api?command=deployVirtualMachine&serviceOfferingId=1&diskOfferingId=1&templateId=1&zoneId=1&apiKey=X0U60K_Qgodb6nL5csNcAzRiz2cKiwx-tjBj1dTMLSVxkdmD0QtUhFzDf3MCmwGnC3z2dQPo0j3x_XJYmoEBmg&signature=CJvLoJ%2ByvUM12OUNb9hxyD1Gsjw%3D
>>>>> >>
>>>>> >>
>>>>> >>
>>>>> >> On Wed, Feb 13, 2013 at 12:06 PM, Mike Tutkowski <
>>>>> >> mike.tutkowski@solidfire.com> wrote:
>>>>> >>
>>>>> >> > Thanks, David - that was very useful info. :)
>>>>> >> >
>>>>> >> > I'm not completely up to speed yet on what CloudStack considers a
>>>>> domain
>>>>> >> > versus an account versus a user, but I found this page and am
>>>>> going
>>>>> >> through
>>>>> >> > it now:
>>>>> >> >
>>>>> >> > http://wiki.cloudstack.org/pages/viewpage.action?pageId=8224884
>>>>> >> >
>>>>> >> >
>>>>> >> > On Wed, Feb 13, 2013 at 11:21 AM, David Grizzanti <
>>>>> >> > david.grizzanti@sungard.com> wrote:
>>>>> >> >
>>>>> >> >> Mike,
>>>>> >> >>
>>>>> >> >> In the UI if you go to "Accounts" in the left hand sidebar ->
>>>>> click the
>>>>> >> >> name of an account (i.e. "admin") -> under Details click "View
>>>>> Users"
>>>>> >> ->
>>>>> >> >> click the Username of the user in question (i.e. "admin") and
>>>>> the API
>>>>> >> and
>>>>> >> >> Secrety Key should be listed under the Details there.
>>>>> >> >>
>>>>> >> >> Hope that helps!
>>>>> >> >>
>>>>> >> >> --
>>>>> >> >> David Grizzanti
>>>>> >> >> Software Engineer - SunGard Availability Services
>>>>> >> >> 401 N. Broad Street, Philadelphia, PA 19108
>>>>> >> >> o: 215-446-1431 - e: david.grizzanti@sungard.com
>>>>> >> >>
>>>>> >> >> On Feb 13, 2013, at 12:44 PM, Mike Tutkowski wrote:
>>>>> >> >>
>>>>> >> >> > OK, just getting around to doing this now.
>>>>> >> >> >
>>>>> >> >> > It looks like the Generate Keys command worked (I didn't get
>>>>> an error
>>>>> >> >> > message), but I'm not sure where to look in the GUI to find
>>>>> these
>>>>> >> keys.
>>>>> >> >> >
>>>>> >> >> > Would you mind pointing that out for me?
>>>>> >> >> >
>>>>> >> >> > Thanks!!
>>>>> >> >> >
>>>>> >> >> >
>>>>> >> >> > On Tue, Feb 12, 2013 at 9:07 PM, Will Stevens <
>>>>> wstevens@cloudops.com
>>>>> >> >
>>>>> >> >> wrote:
>>>>> >> >> >
>>>>> >> >> >> If its a fresh install, you will access the client at:
>>>>> >> >> >> the.machines.ip:8080/client/
>>>>> >> >> >> Login with username/password of: admin/password
>>>>> >> >> >> Click: Accounts -> admin -> View Users -> admin -> (in the
>>>>> main
>>>>> >> window
>>>>> >> >> >> there are 3 buttons at the top left of the screen, mouse over
>>>>> the
>>>>> >> right
>>>>> >> >> >> most one of the 3 and it should say 'Generate Keys', click
>>>>> that)
>>>>> >> >> >>
>>>>> >> >> >> You can follow that same process for any user who has an
>>>>> account.
>>>>> >> >> >>
>>>>> >> >> >>
>>>>> >> >> >>
>>>>> >> >> >>
>>>>> >> >> >>
>>>>> >> >> >> On Tue, Feb 12, 2013 at 10:26 PM, Mike Tutkowski <
>>>>> >> >> >> mike.tutkowski@solidfire.com> wrote:
>>>>> >> >> >>
>>>>> >> >> >>> Can you point me to the location in the GUI where I can
>>>>> generate
>>>>> >> keys?
>>>>> >> >> >>>
>>>>> >> >> >>> Thanks!
>>>>> >> >> >>>
>>>>> >> >> >>>
>>>>> >> >> >>> On Tue, Feb 12, 2013 at 4:17 PM, Will Stevens <
>>>>> >> wstevens@cloudops.com>
>>>>> >> >> >>> wrote:
>>>>> >> >> >>>
>>>>> >> >> >>>> They do not expire, but in the UI you can regenerate the
>>>>> keys, so
>>>>> >> in
>>>>> >> >> >> that
>>>>> >> >> >>>> case they would change.
>>>>> >> >> >>>>
>>>>> >> >> >>>>
>>>>> >> >> >>>> On Tue, Feb 12, 2013 at 6:13 PM, Mike Tutkowski <
>>>>> >> >> >>>> mike.tutkowski@solidfire.com> wrote:
>>>>> >> >> >>>>
>>>>> >> >> >>>>> to "say" (I mean) :)
>>>>> >> >> >>>>>
>>>>> >> >> >>>>>
>>>>> >> >> >>>>> On Tue, Feb 12, 2013 at 4:13 PM, Mike Tutkowski <
>>>>> >> >> >>>>> mike.tutkowski@solidfire.com> wrote:
>>>>> >> >> >>>>>
>>>>> >> >> >>>>>> Sounds good...and these do not expire?  Is that accurate
>>>>> to day?
>>>>> >> >> >>>>>>
>>>>> >> >> >>>>>>
>>>>> >> >> >>>>>> On Tue, Feb 12, 2013 at 4:03 PM, Will Stevens <
>>>>> >> >> >> wstevens@cloudops.com
>>>>> >> >> >>>>>> wrote:
>>>>> >> >> >>>>>>
>>>>> >> >> >>>>>>> Every role uses the same procedure.  They all need an
>>>>> api key
>>>>> >> and
>>>>> >> >> >>>> secret
>>>>> >> >> >>>>>>> key.
>>>>> >> >> >>>>>>>
>>>>> >> >> >>>>>>>
>>>>> >> >> >>>>>>> On Tue, Feb 12, 2013 at 5:54 PM, Mike Tutkowski <
>>>>> >> >> >>>>>>> mike.tutkowski@solidfire.com> wrote:
>>>>> >> >> >>>>>>>
>>>>> >> >> >>>>>>>> Thanks for the info.
>>>>> >> >> >>>>>>>>
>>>>> >> >> >>>>>>>> So, I see we have three roles in CloudStack:  Root
>>>>> Admin,
>>>>> >> Domain
>>>>> >> >> >>>>> Admin,
>>>>> >> >> >>>>>>> and
>>>>> >> >> >>>>>>>> User.
>>>>> >> >> >>>>>>>>
>>>>> >> >> >>>>>>>> When submitting API commands, does the submitter -
>>>>> regardless
>>>>> >> of
>>>>> >> >> >>>> role
>>>>> >> >> >>>>> -
>>>>> >> >> >>>>>>>> have to provide an API Key and Secret Key (or is that
>>>>> >> something,
>>>>> >> >> >>>> say,
>>>>> >> >> >>>>>>> the
>>>>> >> >> >>>>>>>> Root Admin doesn't have to do)?
>>>>> >> >> >>>>>>>>
>>>>> >> >> >>>>>>>> Thanks!
>>>>> >> >> >>>>>>>>
>>>>> >> >> >>>>>>>>
>>>>> >> >> >>>>>>>> On Tue, Feb 12, 2013 at 3:33 PM, David Nalley <
>>>>> david@gnsa.us>
>>>>> >> >> >>>> wrote:
>>>>> >> >> >>>>>>>>
>>>>> >> >> >>>>>>>>> On Tue, Feb 12, 2013 at 5:27 PM, Mike Tutkowski
>>>>> >> >> >>>>>>>>> <mi...@solidfire.com> wrote:
>>>>> >> >> >>>>>>>>>> So, I'm looking at these comments now:
>>>>> >> >> >>>>>>>>>>
>>>>> >> >> >>>>>>>>>> 2.3. Getting Started
>>>>> >> >> >>>>>>>>>> To get started using the CloudStack API, you should
>>>>> have the
>>>>> >> >> >>>>>>> following:
>>>>> >> >> >>>>>>>>>>
>>>>> >> >> >>>>>>>>>>   - URL of the CloudStack server you wish to integrate
>>>>> >> >> >> with.
>>>>> >> >> >>>>>>>>>>   - Both the API Key and Secret Key for an account.
>>>>> This
>>>>> >> >> >>> should
>>>>> >> >> >>>>>>> have
>>>>> >> >> >>>>>>>>> been
>>>>> >> >> >>>>>>>>>>   generated by the administrator of the cloud
>>>>> instance and
>>>>> >> >> >>>> given
>>>>> >> >> >>>>> to
>>>>> >> >> >>>>>>>> you.
>>>>> >> >> >>>>>>>>>>   - Familiarity with HTTP GET/POST and query strings.
>>>>> >> >> >>>>>>>>>>   - Knowledge of either XML or JSON.
>>>>> >> >> >>>>>>>>>>   - Knowledge of a programming language that can
>>>>> generate
>>>>> >> >> >>> HTTP
>>>>> >> >> >>>>>>>> requests;
>>>>> >> >> >>>>>>>>>>   for example, Java or PHP.
>>>>> >> >> >>>>>>>>>>
>>>>> >> >> >>>>>>>>>>
>>>>> >> >> >>>>>>>>>> I'm not sure how to generate the API Key and Secret
>>>>> Key for
>>>>> >> >> >> an
>>>>> >> >> >>>>>>> account.
>>>>> >> >> >>>>>>>>>> Can someone point me to instructions for this?
>>>>> >> >> >>>>>>>>>>
>>>>> >> >> >>>>>>>>>> Thanks!
>>>>> >> >> >>>>>>>>>>
>>>>> >> >> >>>>>>>>>
>>>>> >> >> >>>>>>>>>
>>>>> >> >> >>>>>>>>>
>>>>> >> >> >>>>>>>>
>>>>> >> >> >>>>>>>
>>>>> >> >> >>>>>
>>>>> >> >> >>>>
>>>>> >> >> >>>
>>>>> >> >> >>
>>>>> >> >>
>>>>> >>
>>>>> http://incubator.apache.org/cloudstack/docs/api/apidocs-4.0.0/root_admin/registerUserKeys.html
>>>>> >> >> >>>>>>>>> Please file a bug for the DevGuide documentation not
>>>>> being
>>>>> >> >> >> clear
>>>>> >> >> >>>> on
>>>>> >> >> >>>>>>> this
>>>>> >> >> >>>>>>>>> issue
>>>>> >> >> >>>>>>>>>
>>>>> >> >> >>>>>>>>> -David
>>>>> >> >> >>>>>>>>>
>>>>> >> >> >>>>>>>>
>>>>> >> >> >>>>>>>>
>>>>> >> >> >>>>>>>>
>>>>> >> >> >>>>>>>> --
>>>>> >> >> >>>>>>>> *Mike Tutkowski*
>>>>> >> >> >>>>>>>> *Senior CloudStack Developer, SolidFire Inc.*
>>>>> >> >> >>>>>>>> e: mike.tutkowski@solidfire.com
>>>>> >> >> >>>>>>>> o: 303.746.7302
>>>>> >> >> >>>>>>>> Advancing the way the world uses the
>>>>> >> >> >>>>>>>> cloud<
>>>>> http://solidfire.com/solution/overview/?video=play>
>>>>> >> >> >>>>>>>> *™*
>>>>> >> >> >>>>>>>>
>>>>> >> >> >>>>>>>
>>>>> >> >> >>>>>>
>>>>> >> >> >>>>>>
>>>>> >> >> >>>>>>
>>>>> >> >> >>>>>> --
>>>>> >> >> >>>>>> *Mike Tutkowski*
>>>>> >> >> >>>>>> *Senior CloudStack Developer, SolidFire Inc.*
>>>>> >> >> >>>>>> e: mike.tutkowski@solidfire.com
>>>>> >> >> >>>>>> o: 303.746.7302
>>>>> >> >> >>>>>> Advancing the way the world uses the cloud<
>>>>> >> >> >>>>> http://solidfire.com/solution/overview/?video=play>
>>>>> >> >> >>>>>> *™*
>>>>> >> >> >>>>>>
>>>>> >> >> >>>>>
>>>>> >> >> >>>>>
>>>>> >> >> >>>>>
>>>>> >> >> >>>>> --
>>>>> >> >> >>>>> *Mike Tutkowski*
>>>>> >> >> >>>>> *Senior CloudStack Developer, SolidFire Inc.*
>>>>> >> >> >>>>> e: mike.tutkowski@solidfire.com
>>>>> >> >> >>>>> o: 303.746.7302
>>>>> >> >> >>>>> Advancing the way the world uses the
>>>>> >> >> >>>>> cloud<http://solidfire.com/solution/overview/?video=play>
>>>>> >> >> >>>>> *™*
>>>>> >> >> >>>>>
>>>>> >> >> >>>>
>>>>> >> >> >>>
>>>>> >> >> >>>
>>>>> >> >> >>>
>>>>> >> >> >>> --
>>>>> >> >> >>> *Mike Tutkowski*
>>>>> >> >> >>> *Senior CloudStack Developer, SolidFire Inc.*
>>>>> >> >> >>> e: mike.tutkowski@solidfire.com
>>>>> >> >> >>> o: 303.746.7302
>>>>> >> >> >>> Advancing the way the world uses the
>>>>> >> >> >>> cloud<http://solidfire.com/solution/overview/?video=play>
>>>>> >> >> >>> *™*
>>>>> >> >> >>>
>>>>> >> >> >>
>>>>> >> >> >
>>>>> >> >> >
>>>>> >> >> >
>>>>> >> >> > --
>>>>> >> >> > *Mike Tutkowski*
>>>>> >> >> > *Senior CloudStack Developer, SolidFire Inc.*
>>>>> >> >> > e: mike.tutkowski@solidfire.com
>>>>> >> >> > o: 303.746.7302
>>>>> >> >> > Advancing the way the world uses the
>>>>> >> >> > cloud<http://solidfire.com/solution/overview/?video=play>
>>>>> >> >> > *™*
>>>>> >> >>
>>>>> >> >>
>>>>> >> >
>>>>> >> >
>>>>> >> > --
>>>>> >> > *Mike Tutkowski*
>>>>> >> > *Senior CloudStack Developer, SolidFire Inc.*
>>>>> >> > e: mike.tutkowski@solidfire.com
>>>>> >> > o: 303.746.7302
>>>>> >> > Advancing the way the world uses the cloud<
>>>>> >> http://solidfire.com/solution/overview/?video=play>
>>>>> >> > *™*
>>>>> >> >
>>>>> >>
>>>>> >>
>>>>> >>
>>>>> >> --
>>>>> >> *Mike Tutkowski*
>>>>> >> *Senior CloudStack Developer, SolidFire Inc.*
>>>>> >> e: mike.tutkowski@solidfire.com
>>>>> >> o: 303.746.7302
>>>>> >> Advancing the way the world uses the
>>>>> >> cloud<http://solidfire.com/solution/overview/?video=play>
>>>>> >> *™*
>>>>> >>
>>>>> >
>>>>> >
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> *Mike Tutkowski*
>>>> *Senior CloudStack Developer, SolidFire Inc.*
>>>> e: mike.tutkowski@solidfire.com
>>>> o: 303.746.7302
>>>> Advancing the way the world uses the cloud<http://solidfire.com/solution/overview/?video=play>
>>>> *™*
>>>>
>>>
>>>
>>>
>>> --
>>> *Mike Tutkowski*
>>> *Senior CloudStack Developer, SolidFire Inc.*
>>> e: mike.tutkowski@solidfire.com
>>> o: 303.746.7302
>>> Advancing the way the world uses the cloud<http://solidfire.com/solution/overview/?video=play>
>>> *™*
>>>
>>
>>
>>
>> --
>> *Mike Tutkowski*
>> *Senior CloudStack Developer, SolidFire Inc.*
>> e: mike.tutkowski@solidfire.com
>> o: 303.746.7302
>> Advancing the way the world uses the cloud<http://solidfire.com/solution/overview/?video=play>
>> *™*
>>
>
>
>
> --
> *Mike Tutkowski*
> *Senior CloudStack Developer, SolidFire Inc.*
> e: mike.tutkowski@solidfire.com
> o: 303.746.7302
> Advancing the way the world uses the cloud<http://solidfire.com/solution/overview/?video=play>
> *™*
>



-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkowski@solidfire.com
o: 303.746.7302
Advancing the way the world uses the
cloud<http://solidfire.com/solution/overview/?video=play>
*™*

Re: CloudStack API Question

Posted by Mike Tutkowski <mi...@solidfire.com>.
Which leads me to my next question, do I have to run a query to get the IDs
of templates and such or is that something visible in the GUI I can just
look at and hard code in my program for the time being?


On Thu, Feb 14, 2013 at 1:11 PM, Mike Tutkowski <
mike.tutkowski@solidfire.com> wrote:

> Actually, when I do a copy/paste of the URL into Chrome, this is what I
> get back:
>
> <deployvirtualmachineresponse cloud-stack-version="4.1.0-SNAPSHOT">
> <errorcode>431</errorcode>
> <cserrorcode>4350</cserrorcode>
> <errortext>
> Unable to use system template 1 to deploy a user vm
> </errortext>
> </deployvirtualmachineresponse>
>
>
> On Thu, Feb 14, 2013 at 1:08 PM, Mike Tutkowski <
> mike.tutkowski@solidfire.com> wrote:
>
>> I think I fixed the signature issue because now I get a new error code:
>>  431
>>
>> 431 Request Header Fields Too Large (RFC 6585<http://tools.ietf.org/html/rfc6585>
>> ) The server is unwilling to process the request because either an
>> individual header field, or all the header fields collectively, are too
>> large.[18]<http://en.wikipedia.org/wiki/List_of_HTTP_status_codes#cite_note-rfc6585-18>
>>
>> I'm using a GET request.  Maybe I have to do this as a POST request?
>>
>>
>> On Thu, Feb 14, 2013 at 12:46 PM, Mike Tutkowski <
>> mike.tutkowski@solidfire.com> wrote:
>>
>>> Cool...thanks, Will.
>>>
>>> It sounds like if I get the signature right, then I should be good.
>>>
>>> Looking into it now.
>>>
>>>
>>> On Thu, Feb 14, 2013 at 12:45 PM, Will Stevens <ws...@cloudops.com>wrote:
>>>
>>>> Looking at what you pasted in.  I think you forgot to add the api key to
>>>> the request parameters before you sorted them and then generated your
>>>> signature.  In short, your signature is wrong...
>>>>
>>>>
>>>> On Thu, Feb 14, 2013 at 2:40 PM, Will Stevens <ws...@cloudops.com>
>>>> wrote:
>>>>
>>>> > When you generated your signature, did you first sort the parameters
>>>> being
>>>> > passed alphabetically?  If you didn't then the signature which you
>>>> > generated is wrong.
>>>> >
>>>> > Something to check anyway...
>>>> >
>>>> >
>>>> > On Thu, Feb 14, 2013 at 2:35 PM, Mike Tutkowski <
>>>> > mike.tutkowski@solidfire.com> wrote:
>>>> >
>>>> >> So, my next API question.  :)
>>>> >>
>>>> >> I am getting a 401 with the following Java code.  A 401 is
>>>> authentication
>>>> >> related, but I'm not sure if I need to provide a username and
>>>> password
>>>> >> because I didn't see that in the example on the web that I'm
>>>> following.
>>>> >>
>>>> >> Any thoughts?
>>>> >>
>>>> >> Thanks!
>>>> >>
>>>> >>   final String strHost = "127.0.0.1:8080/";
>>>> >>
>>>> >>    final String strFinalUrl = "http://" + strHost + strApiUrl +
>>>> >> "&apiKey="+ strApiKey +
>>>> >> "&signature=" + strEncodedSignature;
>>>> >>
>>>> >>    System.out.println(strFinalUrl);
>>>> >>
>>>> >>    final HttpClient client = new DefaultHttpClient();
>>>> >>
>>>> >>  final HttpResponse response = client.execute(new
>>>> HttpGet(strFinalUrl));
>>>> >>
>>>> >>    if (response.getStatusLine().getStatusCode() != 200)
>>>> >>
>>>> >>  {
>>>> >>
>>>> >>   throw new RuntimeException("Failed on CloudStack
>>>> deployVirtualMachine
>>>> >> API
>>>> >> call : HTTP error code : " +
>>>> response.getStatusLine().getStatusCode());
>>>> >>
>>>> >>  }
>>>> >>
>>>> >> The URL I'm printing looks like this:
>>>> >>
>>>> >>
>>>> >>
>>>> >>
>>>> http://127.0.0.1:8080/client/api?command=deployVirtualMachine&serviceOfferingId=1&diskOfferingId=1&templateId=1&zoneId=1&apiKey=X0U60K_Qgodb6nL5csNcAzRiz2cKiwx-tjBj1dTMLSVxkdmD0QtUhFzDf3MCmwGnC3z2dQPo0j3x_XJYmoEBmg&signature=CJvLoJ%2ByvUM12OUNb9hxyD1Gsjw%3D
>>>> >>
>>>> >>
>>>> >>
>>>> >> On Wed, Feb 13, 2013 at 12:06 PM, Mike Tutkowski <
>>>> >> mike.tutkowski@solidfire.com> wrote:
>>>> >>
>>>> >> > Thanks, David - that was very useful info. :)
>>>> >> >
>>>> >> > I'm not completely up to speed yet on what CloudStack considers a
>>>> domain
>>>> >> > versus an account versus a user, but I found this page and am going
>>>> >> through
>>>> >> > it now:
>>>> >> >
>>>> >> > http://wiki.cloudstack.org/pages/viewpage.action?pageId=8224884
>>>> >> >
>>>> >> >
>>>> >> > On Wed, Feb 13, 2013 at 11:21 AM, David Grizzanti <
>>>> >> > david.grizzanti@sungard.com> wrote:
>>>> >> >
>>>> >> >> Mike,
>>>> >> >>
>>>> >> >> In the UI if you go to "Accounts" in the left hand sidebar ->
>>>> click the
>>>> >> >> name of an account (i.e. "admin") -> under Details click "View
>>>> Users"
>>>> >> ->
>>>> >> >> click the Username of the user in question (i.e. "admin") and the
>>>> API
>>>> >> and
>>>> >> >> Secrety Key should be listed under the Details there.
>>>> >> >>
>>>> >> >> Hope that helps!
>>>> >> >>
>>>> >> >> --
>>>> >> >> David Grizzanti
>>>> >> >> Software Engineer - SunGard Availability Services
>>>> >> >> 401 N. Broad Street, Philadelphia, PA 19108
>>>> >> >> o: 215-446-1431 - e: david.grizzanti@sungard.com
>>>> >> >>
>>>> >> >> On Feb 13, 2013, at 12:44 PM, Mike Tutkowski wrote:
>>>> >> >>
>>>> >> >> > OK, just getting around to doing this now.
>>>> >> >> >
>>>> >> >> > It looks like the Generate Keys command worked (I didn't get an
>>>> error
>>>> >> >> > message), but I'm not sure where to look in the GUI to find
>>>> these
>>>> >> keys.
>>>> >> >> >
>>>> >> >> > Would you mind pointing that out for me?
>>>> >> >> >
>>>> >> >> > Thanks!!
>>>> >> >> >
>>>> >> >> >
>>>> >> >> > On Tue, Feb 12, 2013 at 9:07 PM, Will Stevens <
>>>> wstevens@cloudops.com
>>>> >> >
>>>> >> >> wrote:
>>>> >> >> >
>>>> >> >> >> If its a fresh install, you will access the client at:
>>>> >> >> >> the.machines.ip:8080/client/
>>>> >> >> >> Login with username/password of: admin/password
>>>> >> >> >> Click: Accounts -> admin -> View Users -> admin -> (in the main
>>>> >> window
>>>> >> >> >> there are 3 buttons at the top left of the screen, mouse over
>>>> the
>>>> >> right
>>>> >> >> >> most one of the 3 and it should say 'Generate Keys', click
>>>> that)
>>>> >> >> >>
>>>> >> >> >> You can follow that same process for any user who has an
>>>> account.
>>>> >> >> >>
>>>> >> >> >>
>>>> >> >> >>
>>>> >> >> >>
>>>> >> >> >>
>>>> >> >> >> On Tue, Feb 12, 2013 at 10:26 PM, Mike Tutkowski <
>>>> >> >> >> mike.tutkowski@solidfire.com> wrote:
>>>> >> >> >>
>>>> >> >> >>> Can you point me to the location in the GUI where I can
>>>> generate
>>>> >> keys?
>>>> >> >> >>>
>>>> >> >> >>> Thanks!
>>>> >> >> >>>
>>>> >> >> >>>
>>>> >> >> >>> On Tue, Feb 12, 2013 at 4:17 PM, Will Stevens <
>>>> >> wstevens@cloudops.com>
>>>> >> >> >>> wrote:
>>>> >> >> >>>
>>>> >> >> >>>> They do not expire, but in the UI you can regenerate the
>>>> keys, so
>>>> >> in
>>>> >> >> >> that
>>>> >> >> >>>> case they would change.
>>>> >> >> >>>>
>>>> >> >> >>>>
>>>> >> >> >>>> On Tue, Feb 12, 2013 at 6:13 PM, Mike Tutkowski <
>>>> >> >> >>>> mike.tutkowski@solidfire.com> wrote:
>>>> >> >> >>>>
>>>> >> >> >>>>> to "say" (I mean) :)
>>>> >> >> >>>>>
>>>> >> >> >>>>>
>>>> >> >> >>>>> On Tue, Feb 12, 2013 at 4:13 PM, Mike Tutkowski <
>>>> >> >> >>>>> mike.tutkowski@solidfire.com> wrote:
>>>> >> >> >>>>>
>>>> >> >> >>>>>> Sounds good...and these do not expire?  Is that accurate
>>>> to day?
>>>> >> >> >>>>>>
>>>> >> >> >>>>>>
>>>> >> >> >>>>>> On Tue, Feb 12, 2013 at 4:03 PM, Will Stevens <
>>>> >> >> >> wstevens@cloudops.com
>>>> >> >> >>>>>> wrote:
>>>> >> >> >>>>>>
>>>> >> >> >>>>>>> Every role uses the same procedure.  They all need an api
>>>> key
>>>> >> and
>>>> >> >> >>>> secret
>>>> >> >> >>>>>>> key.
>>>> >> >> >>>>>>>
>>>> >> >> >>>>>>>
>>>> >> >> >>>>>>> On Tue, Feb 12, 2013 at 5:54 PM, Mike Tutkowski <
>>>> >> >> >>>>>>> mike.tutkowski@solidfire.com> wrote:
>>>> >> >> >>>>>>>
>>>> >> >> >>>>>>>> Thanks for the info.
>>>> >> >> >>>>>>>>
>>>> >> >> >>>>>>>> So, I see we have three roles in CloudStack:  Root Admin,
>>>> >> Domain
>>>> >> >> >>>>> Admin,
>>>> >> >> >>>>>>> and
>>>> >> >> >>>>>>>> User.
>>>> >> >> >>>>>>>>
>>>> >> >> >>>>>>>> When submitting API commands, does the submitter -
>>>> regardless
>>>> >> of
>>>> >> >> >>>> role
>>>> >> >> >>>>> -
>>>> >> >> >>>>>>>> have to provide an API Key and Secret Key (or is that
>>>> >> something,
>>>> >> >> >>>> say,
>>>> >> >> >>>>>>> the
>>>> >> >> >>>>>>>> Root Admin doesn't have to do)?
>>>> >> >> >>>>>>>>
>>>> >> >> >>>>>>>> Thanks!
>>>> >> >> >>>>>>>>
>>>> >> >> >>>>>>>>
>>>> >> >> >>>>>>>> On Tue, Feb 12, 2013 at 3:33 PM, David Nalley <
>>>> david@gnsa.us>
>>>> >> >> >>>> wrote:
>>>> >> >> >>>>>>>>
>>>> >> >> >>>>>>>>> On Tue, Feb 12, 2013 at 5:27 PM, Mike Tutkowski
>>>> >> >> >>>>>>>>> <mi...@solidfire.com> wrote:
>>>> >> >> >>>>>>>>>> So, I'm looking at these comments now:
>>>> >> >> >>>>>>>>>>
>>>> >> >> >>>>>>>>>> 2.3. Getting Started
>>>> >> >> >>>>>>>>>> To get started using the CloudStack API, you should
>>>> have the
>>>> >> >> >>>>>>> following:
>>>> >> >> >>>>>>>>>>
>>>> >> >> >>>>>>>>>>   - URL of the CloudStack server you wish to integrate
>>>> >> >> >> with.
>>>> >> >> >>>>>>>>>>   - Both the API Key and Secret Key for an account.
>>>> This
>>>> >> >> >>> should
>>>> >> >> >>>>>>> have
>>>> >> >> >>>>>>>>> been
>>>> >> >> >>>>>>>>>>   generated by the administrator of the cloud instance
>>>> and
>>>> >> >> >>>> given
>>>> >> >> >>>>> to
>>>> >> >> >>>>>>>> you.
>>>> >> >> >>>>>>>>>>   - Familiarity with HTTP GET/POST and query strings.
>>>> >> >> >>>>>>>>>>   - Knowledge of either XML or JSON.
>>>> >> >> >>>>>>>>>>   - Knowledge of a programming language that can
>>>> generate
>>>> >> >> >>> HTTP
>>>> >> >> >>>>>>>> requests;
>>>> >> >> >>>>>>>>>>   for example, Java or PHP.
>>>> >> >> >>>>>>>>>>
>>>> >> >> >>>>>>>>>>
>>>> >> >> >>>>>>>>>> I'm not sure how to generate the API Key and Secret
>>>> Key for
>>>> >> >> >> an
>>>> >> >> >>>>>>> account.
>>>> >> >> >>>>>>>>>> Can someone point me to instructions for this?
>>>> >> >> >>>>>>>>>>
>>>> >> >> >>>>>>>>>> Thanks!
>>>> >> >> >>>>>>>>>>
>>>> >> >> >>>>>>>>>
>>>> >> >> >>>>>>>>>
>>>> >> >> >>>>>>>>>
>>>> >> >> >>>>>>>>
>>>> >> >> >>>>>>>
>>>> >> >> >>>>>
>>>> >> >> >>>>
>>>> >> >> >>>
>>>> >> >> >>
>>>> >> >>
>>>> >>
>>>> http://incubator.apache.org/cloudstack/docs/api/apidocs-4.0.0/root_admin/registerUserKeys.html
>>>> >> >> >>>>>>>>> Please file a bug for the DevGuide documentation not
>>>> being
>>>> >> >> >> clear
>>>> >> >> >>>> on
>>>> >> >> >>>>>>> this
>>>> >> >> >>>>>>>>> issue
>>>> >> >> >>>>>>>>>
>>>> >> >> >>>>>>>>> -David
>>>> >> >> >>>>>>>>>
>>>> >> >> >>>>>>>>
>>>> >> >> >>>>>>>>
>>>> >> >> >>>>>>>>
>>>> >> >> >>>>>>>> --
>>>> >> >> >>>>>>>> *Mike Tutkowski*
>>>> >> >> >>>>>>>> *Senior CloudStack Developer, SolidFire Inc.*
>>>> >> >> >>>>>>>> e: mike.tutkowski@solidfire.com
>>>> >> >> >>>>>>>> o: 303.746.7302
>>>> >> >> >>>>>>>> Advancing the way the world uses the
>>>> >> >> >>>>>>>> cloud<http://solidfire.com/solution/overview/?video=play
>>>> >
>>>> >> >> >>>>>>>> *™*
>>>> >> >> >>>>>>>>
>>>> >> >> >>>>>>>
>>>> >> >> >>>>>>
>>>> >> >> >>>>>>
>>>> >> >> >>>>>>
>>>> >> >> >>>>>> --
>>>> >> >> >>>>>> *Mike Tutkowski*
>>>> >> >> >>>>>> *Senior CloudStack Developer, SolidFire Inc.*
>>>> >> >> >>>>>> e: mike.tutkowski@solidfire.com
>>>> >> >> >>>>>> o: 303.746.7302
>>>> >> >> >>>>>> Advancing the way the world uses the cloud<
>>>> >> >> >>>>> http://solidfire.com/solution/overview/?video=play>
>>>> >> >> >>>>>> *™*
>>>> >> >> >>>>>>
>>>> >> >> >>>>>
>>>> >> >> >>>>>
>>>> >> >> >>>>>
>>>> >> >> >>>>> --
>>>> >> >> >>>>> *Mike Tutkowski*
>>>> >> >> >>>>> *Senior CloudStack Developer, SolidFire Inc.*
>>>> >> >> >>>>> e: mike.tutkowski@solidfire.com
>>>> >> >> >>>>> o: 303.746.7302
>>>> >> >> >>>>> Advancing the way the world uses the
>>>> >> >> >>>>> cloud<http://solidfire.com/solution/overview/?video=play>
>>>> >> >> >>>>> *™*
>>>> >> >> >>>>>
>>>> >> >> >>>>
>>>> >> >> >>>
>>>> >> >> >>>
>>>> >> >> >>>
>>>> >> >> >>> --
>>>> >> >> >>> *Mike Tutkowski*
>>>> >> >> >>> *Senior CloudStack Developer, SolidFire Inc.*
>>>> >> >> >>> e: mike.tutkowski@solidfire.com
>>>> >> >> >>> o: 303.746.7302
>>>> >> >> >>> Advancing the way the world uses the
>>>> >> >> >>> cloud<http://solidfire.com/solution/overview/?video=play>
>>>> >> >> >>> *™*
>>>> >> >> >>>
>>>> >> >> >>
>>>> >> >> >
>>>> >> >> >
>>>> >> >> >
>>>> >> >> > --
>>>> >> >> > *Mike Tutkowski*
>>>> >> >> > *Senior CloudStack Developer, SolidFire Inc.*
>>>> >> >> > e: mike.tutkowski@solidfire.com
>>>> >> >> > o: 303.746.7302
>>>> >> >> > Advancing the way the world uses the
>>>> >> >> > cloud<http://solidfire.com/solution/overview/?video=play>
>>>> >> >> > *™*
>>>> >> >>
>>>> >> >>
>>>> >> >
>>>> >> >
>>>> >> > --
>>>> >> > *Mike Tutkowski*
>>>> >> > *Senior CloudStack Developer, SolidFire Inc.*
>>>> >> > e: mike.tutkowski@solidfire.com
>>>> >> > o: 303.746.7302
>>>> >> > Advancing the way the world uses the cloud<
>>>> >> http://solidfire.com/solution/overview/?video=play>
>>>> >> > *™*
>>>> >> >
>>>> >>
>>>> >>
>>>> >>
>>>> >> --
>>>> >> *Mike Tutkowski*
>>>> >> *Senior CloudStack Developer, SolidFire Inc.*
>>>> >> e: mike.tutkowski@solidfire.com
>>>> >> o: 303.746.7302
>>>> >> Advancing the way the world uses the
>>>> >> cloud<http://solidfire.com/solution/overview/?video=play>
>>>> >> *™*
>>>> >>
>>>> >
>>>> >
>>>>
>>>
>>>
>>>
>>> --
>>> *Mike Tutkowski*
>>> *Senior CloudStack Developer, SolidFire Inc.*
>>> e: mike.tutkowski@solidfire.com
>>> o: 303.746.7302
>>> Advancing the way the world uses the cloud<http://solidfire.com/solution/overview/?video=play>
>>> *™*
>>>
>>
>>
>>
>> --
>> *Mike Tutkowski*
>> *Senior CloudStack Developer, SolidFire Inc.*
>> e: mike.tutkowski@solidfire.com
>> o: 303.746.7302
>> Advancing the way the world uses the cloud<http://solidfire.com/solution/overview/?video=play>
>> *™*
>>
>
>
>
> --
> *Mike Tutkowski*
> *Senior CloudStack Developer, SolidFire Inc.*
> e: mike.tutkowski@solidfire.com
> o: 303.746.7302
> Advancing the way the world uses the cloud<http://solidfire.com/solution/overview/?video=play>
> *™*
>



-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkowski@solidfire.com
o: 303.746.7302
Advancing the way the world uses the
cloud<http://solidfire.com/solution/overview/?video=play>
*™*

Re: CloudStack API Question

Posted by Mike Tutkowski <mi...@solidfire.com>.
Actually, when I do a copy/paste of the URL into Chrome, this is what I get
back:

<deployvirtualmachineresponse cloud-stack-version="4.1.0-SNAPSHOT">
<errorcode>431</errorcode>
<cserrorcode>4350</cserrorcode>
<errortext>
Unable to use system template 1 to deploy a user vm
</errortext>
</deployvirtualmachineresponse>


On Thu, Feb 14, 2013 at 1:08 PM, Mike Tutkowski <
mike.tutkowski@solidfire.com> wrote:

> I think I fixed the signature issue because now I get a new error code:
>  431
>
> 431 Request Header Fields Too Large (RFC 6585<http://tools.ietf.org/html/rfc6585>
> ) The server is unwilling to process the request because either an
> individual header field, or all the header fields collectively, are too
> large.[18]<http://en.wikipedia.org/wiki/List_of_HTTP_status_codes#cite_note-rfc6585-18>
>
> I'm using a GET request.  Maybe I have to do this as a POST request?
>
>
> On Thu, Feb 14, 2013 at 12:46 PM, Mike Tutkowski <
> mike.tutkowski@solidfire.com> wrote:
>
>> Cool...thanks, Will.
>>
>> It sounds like if I get the signature right, then I should be good.
>>
>> Looking into it now.
>>
>>
>> On Thu, Feb 14, 2013 at 12:45 PM, Will Stevens <ws...@cloudops.com>wrote:
>>
>>> Looking at what you pasted in.  I think you forgot to add the api key to
>>> the request parameters before you sorted them and then generated your
>>> signature.  In short, your signature is wrong...
>>>
>>>
>>> On Thu, Feb 14, 2013 at 2:40 PM, Will Stevens <ws...@cloudops.com>
>>> wrote:
>>>
>>> > When you generated your signature, did you first sort the parameters
>>> being
>>> > passed alphabetically?  If you didn't then the signature which you
>>> > generated is wrong.
>>> >
>>> > Something to check anyway...
>>> >
>>> >
>>> > On Thu, Feb 14, 2013 at 2:35 PM, Mike Tutkowski <
>>> > mike.tutkowski@solidfire.com> wrote:
>>> >
>>> >> So, my next API question.  :)
>>> >>
>>> >> I am getting a 401 with the following Java code.  A 401 is
>>> authentication
>>> >> related, but I'm not sure if I need to provide a username and password
>>> >> because I didn't see that in the example on the web that I'm
>>> following.
>>> >>
>>> >> Any thoughts?
>>> >>
>>> >> Thanks!
>>> >>
>>> >>   final String strHost = "127.0.0.1:8080/";
>>> >>
>>> >>    final String strFinalUrl = "http://" + strHost + strApiUrl +
>>> >> "&apiKey="+ strApiKey +
>>> >> "&signature=" + strEncodedSignature;
>>> >>
>>> >>    System.out.println(strFinalUrl);
>>> >>
>>> >>    final HttpClient client = new DefaultHttpClient();
>>> >>
>>> >>  final HttpResponse response = client.execute(new
>>> HttpGet(strFinalUrl));
>>> >>
>>> >>    if (response.getStatusLine().getStatusCode() != 200)
>>> >>
>>> >>  {
>>> >>
>>> >>   throw new RuntimeException("Failed on CloudStack
>>> deployVirtualMachine
>>> >> API
>>> >> call : HTTP error code : " +
>>> response.getStatusLine().getStatusCode());
>>> >>
>>> >>  }
>>> >>
>>> >> The URL I'm printing looks like this:
>>> >>
>>> >>
>>> >>
>>> >>
>>> http://127.0.0.1:8080/client/api?command=deployVirtualMachine&serviceOfferingId=1&diskOfferingId=1&templateId=1&zoneId=1&apiKey=X0U60K_Qgodb6nL5csNcAzRiz2cKiwx-tjBj1dTMLSVxkdmD0QtUhFzDf3MCmwGnC3z2dQPo0j3x_XJYmoEBmg&signature=CJvLoJ%2ByvUM12OUNb9hxyD1Gsjw%3D
>>> >>
>>> >>
>>> >>
>>> >> On Wed, Feb 13, 2013 at 12:06 PM, Mike Tutkowski <
>>> >> mike.tutkowski@solidfire.com> wrote:
>>> >>
>>> >> > Thanks, David - that was very useful info. :)
>>> >> >
>>> >> > I'm not completely up to speed yet on what CloudStack considers a
>>> domain
>>> >> > versus an account versus a user, but I found this page and am going
>>> >> through
>>> >> > it now:
>>> >> >
>>> >> > http://wiki.cloudstack.org/pages/viewpage.action?pageId=8224884
>>> >> >
>>> >> >
>>> >> > On Wed, Feb 13, 2013 at 11:21 AM, David Grizzanti <
>>> >> > david.grizzanti@sungard.com> wrote:
>>> >> >
>>> >> >> Mike,
>>> >> >>
>>> >> >> In the UI if you go to "Accounts" in the left hand sidebar ->
>>> click the
>>> >> >> name of an account (i.e. "admin") -> under Details click "View
>>> Users"
>>> >> ->
>>> >> >> click the Username of the user in question (i.e. "admin") and the
>>> API
>>> >> and
>>> >> >> Secrety Key should be listed under the Details there.
>>> >> >>
>>> >> >> Hope that helps!
>>> >> >>
>>> >> >> --
>>> >> >> David Grizzanti
>>> >> >> Software Engineer - SunGard Availability Services
>>> >> >> 401 N. Broad Street, Philadelphia, PA 19108
>>> >> >> o: 215-446-1431 - e: david.grizzanti@sungard.com
>>> >> >>
>>> >> >> On Feb 13, 2013, at 12:44 PM, Mike Tutkowski wrote:
>>> >> >>
>>> >> >> > OK, just getting around to doing this now.
>>> >> >> >
>>> >> >> > It looks like the Generate Keys command worked (I didn't get an
>>> error
>>> >> >> > message), but I'm not sure where to look in the GUI to find these
>>> >> keys.
>>> >> >> >
>>> >> >> > Would you mind pointing that out for me?
>>> >> >> >
>>> >> >> > Thanks!!
>>> >> >> >
>>> >> >> >
>>> >> >> > On Tue, Feb 12, 2013 at 9:07 PM, Will Stevens <
>>> wstevens@cloudops.com
>>> >> >
>>> >> >> wrote:
>>> >> >> >
>>> >> >> >> If its a fresh install, you will access the client at:
>>> >> >> >> the.machines.ip:8080/client/
>>> >> >> >> Login with username/password of: admin/password
>>> >> >> >> Click: Accounts -> admin -> View Users -> admin -> (in the main
>>> >> window
>>> >> >> >> there are 3 buttons at the top left of the screen, mouse over
>>> the
>>> >> right
>>> >> >> >> most one of the 3 and it should say 'Generate Keys', click that)
>>> >> >> >>
>>> >> >> >> You can follow that same process for any user who has an
>>> account.
>>> >> >> >>
>>> >> >> >>
>>> >> >> >>
>>> >> >> >>
>>> >> >> >>
>>> >> >> >> On Tue, Feb 12, 2013 at 10:26 PM, Mike Tutkowski <
>>> >> >> >> mike.tutkowski@solidfire.com> wrote:
>>> >> >> >>
>>> >> >> >>> Can you point me to the location in the GUI where I can
>>> generate
>>> >> keys?
>>> >> >> >>>
>>> >> >> >>> Thanks!
>>> >> >> >>>
>>> >> >> >>>
>>> >> >> >>> On Tue, Feb 12, 2013 at 4:17 PM, Will Stevens <
>>> >> wstevens@cloudops.com>
>>> >> >> >>> wrote:
>>> >> >> >>>
>>> >> >> >>>> They do not expire, but in the UI you can regenerate the
>>> keys, so
>>> >> in
>>> >> >> >> that
>>> >> >> >>>> case they would change.
>>> >> >> >>>>
>>> >> >> >>>>
>>> >> >> >>>> On Tue, Feb 12, 2013 at 6:13 PM, Mike Tutkowski <
>>> >> >> >>>> mike.tutkowski@solidfire.com> wrote:
>>> >> >> >>>>
>>> >> >> >>>>> to "say" (I mean) :)
>>> >> >> >>>>>
>>> >> >> >>>>>
>>> >> >> >>>>> On Tue, Feb 12, 2013 at 4:13 PM, Mike Tutkowski <
>>> >> >> >>>>> mike.tutkowski@solidfire.com> wrote:
>>> >> >> >>>>>
>>> >> >> >>>>>> Sounds good...and these do not expire?  Is that accurate to
>>> day?
>>> >> >> >>>>>>
>>> >> >> >>>>>>
>>> >> >> >>>>>> On Tue, Feb 12, 2013 at 4:03 PM, Will Stevens <
>>> >> >> >> wstevens@cloudops.com
>>> >> >> >>>>>> wrote:
>>> >> >> >>>>>>
>>> >> >> >>>>>>> Every role uses the same procedure.  They all need an api
>>> key
>>> >> and
>>> >> >> >>>> secret
>>> >> >> >>>>>>> key.
>>> >> >> >>>>>>>
>>> >> >> >>>>>>>
>>> >> >> >>>>>>> On Tue, Feb 12, 2013 at 5:54 PM, Mike Tutkowski <
>>> >> >> >>>>>>> mike.tutkowski@solidfire.com> wrote:
>>> >> >> >>>>>>>
>>> >> >> >>>>>>>> Thanks for the info.
>>> >> >> >>>>>>>>
>>> >> >> >>>>>>>> So, I see we have three roles in CloudStack:  Root Admin,
>>> >> Domain
>>> >> >> >>>>> Admin,
>>> >> >> >>>>>>> and
>>> >> >> >>>>>>>> User.
>>> >> >> >>>>>>>>
>>> >> >> >>>>>>>> When submitting API commands, does the submitter -
>>> regardless
>>> >> of
>>> >> >> >>>> role
>>> >> >> >>>>> -
>>> >> >> >>>>>>>> have to provide an API Key and Secret Key (or is that
>>> >> something,
>>> >> >> >>>> say,
>>> >> >> >>>>>>> the
>>> >> >> >>>>>>>> Root Admin doesn't have to do)?
>>> >> >> >>>>>>>>
>>> >> >> >>>>>>>> Thanks!
>>> >> >> >>>>>>>>
>>> >> >> >>>>>>>>
>>> >> >> >>>>>>>> On Tue, Feb 12, 2013 at 3:33 PM, David Nalley <
>>> david@gnsa.us>
>>> >> >> >>>> wrote:
>>> >> >> >>>>>>>>
>>> >> >> >>>>>>>>> On Tue, Feb 12, 2013 at 5:27 PM, Mike Tutkowski
>>> >> >> >>>>>>>>> <mi...@solidfire.com> wrote:
>>> >> >> >>>>>>>>>> So, I'm looking at these comments now:
>>> >> >> >>>>>>>>>>
>>> >> >> >>>>>>>>>> 2.3. Getting Started
>>> >> >> >>>>>>>>>> To get started using the CloudStack API, you should
>>> have the
>>> >> >> >>>>>>> following:
>>> >> >> >>>>>>>>>>
>>> >> >> >>>>>>>>>>   - URL of the CloudStack server you wish to integrate
>>> >> >> >> with.
>>> >> >> >>>>>>>>>>   - Both the API Key and Secret Key for an account. This
>>> >> >> >>> should
>>> >> >> >>>>>>> have
>>> >> >> >>>>>>>>> been
>>> >> >> >>>>>>>>>>   generated by the administrator of the cloud instance
>>> and
>>> >> >> >>>> given
>>> >> >> >>>>> to
>>> >> >> >>>>>>>> you.
>>> >> >> >>>>>>>>>>   - Familiarity with HTTP GET/POST and query strings.
>>> >> >> >>>>>>>>>>   - Knowledge of either XML or JSON.
>>> >> >> >>>>>>>>>>   - Knowledge of a programming language that can
>>> generate
>>> >> >> >>> HTTP
>>> >> >> >>>>>>>> requests;
>>> >> >> >>>>>>>>>>   for example, Java or PHP.
>>> >> >> >>>>>>>>>>
>>> >> >> >>>>>>>>>>
>>> >> >> >>>>>>>>>> I'm not sure how to generate the API Key and Secret Key
>>> for
>>> >> >> >> an
>>> >> >> >>>>>>> account.
>>> >> >> >>>>>>>>>> Can someone point me to instructions for this?
>>> >> >> >>>>>>>>>>
>>> >> >> >>>>>>>>>> Thanks!
>>> >> >> >>>>>>>>>>
>>> >> >> >>>>>>>>>
>>> >> >> >>>>>>>>>
>>> >> >> >>>>>>>>>
>>> >> >> >>>>>>>>
>>> >> >> >>>>>>>
>>> >> >> >>>>>
>>> >> >> >>>>
>>> >> >> >>>
>>> >> >> >>
>>> >> >>
>>> >>
>>> http://incubator.apache.org/cloudstack/docs/api/apidocs-4.0.0/root_admin/registerUserKeys.html
>>> >> >> >>>>>>>>> Please file a bug for the DevGuide documentation not
>>> being
>>> >> >> >> clear
>>> >> >> >>>> on
>>> >> >> >>>>>>> this
>>> >> >> >>>>>>>>> issue
>>> >> >> >>>>>>>>>
>>> >> >> >>>>>>>>> -David
>>> >> >> >>>>>>>>>
>>> >> >> >>>>>>>>
>>> >> >> >>>>>>>>
>>> >> >> >>>>>>>>
>>> >> >> >>>>>>>> --
>>> >> >> >>>>>>>> *Mike Tutkowski*
>>> >> >> >>>>>>>> *Senior CloudStack Developer, SolidFire Inc.*
>>> >> >> >>>>>>>> e: mike.tutkowski@solidfire.com
>>> >> >> >>>>>>>> o: 303.746.7302
>>> >> >> >>>>>>>> Advancing the way the world uses the
>>> >> >> >>>>>>>> cloud<http://solidfire.com/solution/overview/?video=play>
>>> >> >> >>>>>>>> *™*
>>> >> >> >>>>>>>>
>>> >> >> >>>>>>>
>>> >> >> >>>>>>
>>> >> >> >>>>>>
>>> >> >> >>>>>>
>>> >> >> >>>>>> --
>>> >> >> >>>>>> *Mike Tutkowski*
>>> >> >> >>>>>> *Senior CloudStack Developer, SolidFire Inc.*
>>> >> >> >>>>>> e: mike.tutkowski@solidfire.com
>>> >> >> >>>>>> o: 303.746.7302
>>> >> >> >>>>>> Advancing the way the world uses the cloud<
>>> >> >> >>>>> http://solidfire.com/solution/overview/?video=play>
>>> >> >> >>>>>> *™*
>>> >> >> >>>>>>
>>> >> >> >>>>>
>>> >> >> >>>>>
>>> >> >> >>>>>
>>> >> >> >>>>> --
>>> >> >> >>>>> *Mike Tutkowski*
>>> >> >> >>>>> *Senior CloudStack Developer, SolidFire Inc.*
>>> >> >> >>>>> e: mike.tutkowski@solidfire.com
>>> >> >> >>>>> o: 303.746.7302
>>> >> >> >>>>> Advancing the way the world uses the
>>> >> >> >>>>> cloud<http://solidfire.com/solution/overview/?video=play>
>>> >> >> >>>>> *™*
>>> >> >> >>>>>
>>> >> >> >>>>
>>> >> >> >>>
>>> >> >> >>>
>>> >> >> >>>
>>> >> >> >>> --
>>> >> >> >>> *Mike Tutkowski*
>>> >> >> >>> *Senior CloudStack Developer, SolidFire Inc.*
>>> >> >> >>> e: mike.tutkowski@solidfire.com
>>> >> >> >>> o: 303.746.7302
>>> >> >> >>> Advancing the way the world uses the
>>> >> >> >>> cloud<http://solidfire.com/solution/overview/?video=play>
>>> >> >> >>> *™*
>>> >> >> >>>
>>> >> >> >>
>>> >> >> >
>>> >> >> >
>>> >> >> >
>>> >> >> > --
>>> >> >> > *Mike Tutkowski*
>>> >> >> > *Senior CloudStack Developer, SolidFire Inc.*
>>> >> >> > e: mike.tutkowski@solidfire.com
>>> >> >> > o: 303.746.7302
>>> >> >> > Advancing the way the world uses the
>>> >> >> > cloud<http://solidfire.com/solution/overview/?video=play>
>>> >> >> > *™*
>>> >> >>
>>> >> >>
>>> >> >
>>> >> >
>>> >> > --
>>> >> > *Mike Tutkowski*
>>> >> > *Senior CloudStack Developer, SolidFire Inc.*
>>> >> > e: mike.tutkowski@solidfire.com
>>> >> > o: 303.746.7302
>>> >> > Advancing the way the world uses the cloud<
>>> >> http://solidfire.com/solution/overview/?video=play>
>>> >> > *™*
>>> >> >
>>> >>
>>> >>
>>> >>
>>> >> --
>>> >> *Mike Tutkowski*
>>> >> *Senior CloudStack Developer, SolidFire Inc.*
>>> >> e: mike.tutkowski@solidfire.com
>>> >> o: 303.746.7302
>>> >> Advancing the way the world uses the
>>> >> cloud<http://solidfire.com/solution/overview/?video=play>
>>> >> *™*
>>> >>
>>> >
>>> >
>>>
>>
>>
>>
>> --
>> *Mike Tutkowski*
>> *Senior CloudStack Developer, SolidFire Inc.*
>> e: mike.tutkowski@solidfire.com
>> o: 303.746.7302
>> Advancing the way the world uses the cloud<http://solidfire.com/solution/overview/?video=play>
>> *™*
>>
>
>
>
> --
> *Mike Tutkowski*
> *Senior CloudStack Developer, SolidFire Inc.*
> e: mike.tutkowski@solidfire.com
> o: 303.746.7302
> Advancing the way the world uses the cloud<http://solidfire.com/solution/overview/?video=play>
> *™*
>



-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkowski@solidfire.com
o: 303.746.7302
Advancing the way the world uses the
cloud<http://solidfire.com/solution/overview/?video=play>
*™*

Re: CloudStack API Question

Posted by Mike Tutkowski <mi...@solidfire.com>.
I think I fixed the signature issue because now I get a new error code:  431

431 Request Header Fields Too Large (RFC
6585<http://tools.ietf.org/html/rfc6585>
)The server is unwilling to process the request because either an
individual header field, or all the header fields collectively, are too
large.[18]<http://en.wikipedia.org/wiki/List_of_HTTP_status_codes#cite_note-rfc6585-18>

I'm using a GET request.  Maybe I have to do this as a POST request?


On Thu, Feb 14, 2013 at 12:46 PM, Mike Tutkowski <
mike.tutkowski@solidfire.com> wrote:

> Cool...thanks, Will.
>
> It sounds like if I get the signature right, then I should be good.
>
> Looking into it now.
>
>
> On Thu, Feb 14, 2013 at 12:45 PM, Will Stevens <ws...@cloudops.com>wrote:
>
>> Looking at what you pasted in.  I think you forgot to add the api key to
>> the request parameters before you sorted them and then generated your
>> signature.  In short, your signature is wrong...
>>
>>
>> On Thu, Feb 14, 2013 at 2:40 PM, Will Stevens <ws...@cloudops.com>
>> wrote:
>>
>> > When you generated your signature, did you first sort the parameters
>> being
>> > passed alphabetically?  If you didn't then the signature which you
>> > generated is wrong.
>> >
>> > Something to check anyway...
>> >
>> >
>> > On Thu, Feb 14, 2013 at 2:35 PM, Mike Tutkowski <
>> > mike.tutkowski@solidfire.com> wrote:
>> >
>> >> So, my next API question.  :)
>> >>
>> >> I am getting a 401 with the following Java code.  A 401 is
>> authentication
>> >> related, but I'm not sure if I need to provide a username and password
>> >> because I didn't see that in the example on the web that I'm following.
>> >>
>> >> Any thoughts?
>> >>
>> >> Thanks!
>> >>
>> >>   final String strHost = "127.0.0.1:8080/";
>> >>
>> >>    final String strFinalUrl = "http://" + strHost + strApiUrl +
>> >> "&apiKey="+ strApiKey +
>> >> "&signature=" + strEncodedSignature;
>> >>
>> >>    System.out.println(strFinalUrl);
>> >>
>> >>    final HttpClient client = new DefaultHttpClient();
>> >>
>> >>  final HttpResponse response = client.execute(new
>> HttpGet(strFinalUrl));
>> >>
>> >>    if (response.getStatusLine().getStatusCode() != 200)
>> >>
>> >>  {
>> >>
>> >>   throw new RuntimeException("Failed on CloudStack deployVirtualMachine
>> >> API
>> >> call : HTTP error code : " + response.getStatusLine().getStatusCode());
>> >>
>> >>  }
>> >>
>> >> The URL I'm printing looks like this:
>> >>
>> >>
>> >>
>> >>
>> http://127.0.0.1:8080/client/api?command=deployVirtualMachine&serviceOfferingId=1&diskOfferingId=1&templateId=1&zoneId=1&apiKey=X0U60K_Qgodb6nL5csNcAzRiz2cKiwx-tjBj1dTMLSVxkdmD0QtUhFzDf3MCmwGnC3z2dQPo0j3x_XJYmoEBmg&signature=CJvLoJ%2ByvUM12OUNb9hxyD1Gsjw%3D
>> >>
>> >>
>> >>
>> >> On Wed, Feb 13, 2013 at 12:06 PM, Mike Tutkowski <
>> >> mike.tutkowski@solidfire.com> wrote:
>> >>
>> >> > Thanks, David - that was very useful info. :)
>> >> >
>> >> > I'm not completely up to speed yet on what CloudStack considers a
>> domain
>> >> > versus an account versus a user, but I found this page and am going
>> >> through
>> >> > it now:
>> >> >
>> >> > http://wiki.cloudstack.org/pages/viewpage.action?pageId=8224884
>> >> >
>> >> >
>> >> > On Wed, Feb 13, 2013 at 11:21 AM, David Grizzanti <
>> >> > david.grizzanti@sungard.com> wrote:
>> >> >
>> >> >> Mike,
>> >> >>
>> >> >> In the UI if you go to "Accounts" in the left hand sidebar -> click
>> the
>> >> >> name of an account (i.e. "admin") -> under Details click "View
>> Users"
>> >> ->
>> >> >> click the Username of the user in question (i.e. "admin") and the
>> API
>> >> and
>> >> >> Secrety Key should be listed under the Details there.
>> >> >>
>> >> >> Hope that helps!
>> >> >>
>> >> >> --
>> >> >> David Grizzanti
>> >> >> Software Engineer - SunGard Availability Services
>> >> >> 401 N. Broad Street, Philadelphia, PA 19108
>> >> >> o: 215-446-1431 - e: david.grizzanti@sungard.com
>> >> >>
>> >> >> On Feb 13, 2013, at 12:44 PM, Mike Tutkowski wrote:
>> >> >>
>> >> >> > OK, just getting around to doing this now.
>> >> >> >
>> >> >> > It looks like the Generate Keys command worked (I didn't get an
>> error
>> >> >> > message), but I'm not sure where to look in the GUI to find these
>> >> keys.
>> >> >> >
>> >> >> > Would you mind pointing that out for me?
>> >> >> >
>> >> >> > Thanks!!
>> >> >> >
>> >> >> >
>> >> >> > On Tue, Feb 12, 2013 at 9:07 PM, Will Stevens <
>> wstevens@cloudops.com
>> >> >
>> >> >> wrote:
>> >> >> >
>> >> >> >> If its a fresh install, you will access the client at:
>> >> >> >> the.machines.ip:8080/client/
>> >> >> >> Login with username/password of: admin/password
>> >> >> >> Click: Accounts -> admin -> View Users -> admin -> (in the main
>> >> window
>> >> >> >> there are 3 buttons at the top left of the screen, mouse over the
>> >> right
>> >> >> >> most one of the 3 and it should say 'Generate Keys', click that)
>> >> >> >>
>> >> >> >> You can follow that same process for any user who has an account.
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >> >> On Tue, Feb 12, 2013 at 10:26 PM, Mike Tutkowski <
>> >> >> >> mike.tutkowski@solidfire.com> wrote:
>> >> >> >>
>> >> >> >>> Can you point me to the location in the GUI where I can generate
>> >> keys?
>> >> >> >>>
>> >> >> >>> Thanks!
>> >> >> >>>
>> >> >> >>>
>> >> >> >>> On Tue, Feb 12, 2013 at 4:17 PM, Will Stevens <
>> >> wstevens@cloudops.com>
>> >> >> >>> wrote:
>> >> >> >>>
>> >> >> >>>> They do not expire, but in the UI you can regenerate the keys,
>> so
>> >> in
>> >> >> >> that
>> >> >> >>>> case they would change.
>> >> >> >>>>
>> >> >> >>>>
>> >> >> >>>> On Tue, Feb 12, 2013 at 6:13 PM, Mike Tutkowski <
>> >> >> >>>> mike.tutkowski@solidfire.com> wrote:
>> >> >> >>>>
>> >> >> >>>>> to "say" (I mean) :)
>> >> >> >>>>>
>> >> >> >>>>>
>> >> >> >>>>> On Tue, Feb 12, 2013 at 4:13 PM, Mike Tutkowski <
>> >> >> >>>>> mike.tutkowski@solidfire.com> wrote:
>> >> >> >>>>>
>> >> >> >>>>>> Sounds good...and these do not expire?  Is that accurate to
>> day?
>> >> >> >>>>>>
>> >> >> >>>>>>
>> >> >> >>>>>> On Tue, Feb 12, 2013 at 4:03 PM, Will Stevens <
>> >> >> >> wstevens@cloudops.com
>> >> >> >>>>>> wrote:
>> >> >> >>>>>>
>> >> >> >>>>>>> Every role uses the same procedure.  They all need an api
>> key
>> >> and
>> >> >> >>>> secret
>> >> >> >>>>>>> key.
>> >> >> >>>>>>>
>> >> >> >>>>>>>
>> >> >> >>>>>>> On Tue, Feb 12, 2013 at 5:54 PM, Mike Tutkowski <
>> >> >> >>>>>>> mike.tutkowski@solidfire.com> wrote:
>> >> >> >>>>>>>
>> >> >> >>>>>>>> Thanks for the info.
>> >> >> >>>>>>>>
>> >> >> >>>>>>>> So, I see we have three roles in CloudStack:  Root Admin,
>> >> Domain
>> >> >> >>>>> Admin,
>> >> >> >>>>>>> and
>> >> >> >>>>>>>> User.
>> >> >> >>>>>>>>
>> >> >> >>>>>>>> When submitting API commands, does the submitter -
>> regardless
>> >> of
>> >> >> >>>> role
>> >> >> >>>>> -
>> >> >> >>>>>>>> have to provide an API Key and Secret Key (or is that
>> >> something,
>> >> >> >>>> say,
>> >> >> >>>>>>> the
>> >> >> >>>>>>>> Root Admin doesn't have to do)?
>> >> >> >>>>>>>>
>> >> >> >>>>>>>> Thanks!
>> >> >> >>>>>>>>
>> >> >> >>>>>>>>
>> >> >> >>>>>>>> On Tue, Feb 12, 2013 at 3:33 PM, David Nalley <
>> david@gnsa.us>
>> >> >> >>>> wrote:
>> >> >> >>>>>>>>
>> >> >> >>>>>>>>> On Tue, Feb 12, 2013 at 5:27 PM, Mike Tutkowski
>> >> >> >>>>>>>>> <mi...@solidfire.com> wrote:
>> >> >> >>>>>>>>>> So, I'm looking at these comments now:
>> >> >> >>>>>>>>>>
>> >> >> >>>>>>>>>> 2.3. Getting Started
>> >> >> >>>>>>>>>> To get started using the CloudStack API, you should have
>> the
>> >> >> >>>>>>> following:
>> >> >> >>>>>>>>>>
>> >> >> >>>>>>>>>>   - URL of the CloudStack server you wish to integrate
>> >> >> >> with.
>> >> >> >>>>>>>>>>   - Both the API Key and Secret Key for an account. This
>> >> >> >>> should
>> >> >> >>>>>>> have
>> >> >> >>>>>>>>> been
>> >> >> >>>>>>>>>>   generated by the administrator of the cloud instance
>> and
>> >> >> >>>> given
>> >> >> >>>>> to
>> >> >> >>>>>>>> you.
>> >> >> >>>>>>>>>>   - Familiarity with HTTP GET/POST and query strings.
>> >> >> >>>>>>>>>>   - Knowledge of either XML or JSON.
>> >> >> >>>>>>>>>>   - Knowledge of a programming language that can generate
>> >> >> >>> HTTP
>> >> >> >>>>>>>> requests;
>> >> >> >>>>>>>>>>   for example, Java or PHP.
>> >> >> >>>>>>>>>>
>> >> >> >>>>>>>>>>
>> >> >> >>>>>>>>>> I'm not sure how to generate the API Key and Secret Key
>> for
>> >> >> >> an
>> >> >> >>>>>>> account.
>> >> >> >>>>>>>>>> Can someone point me to instructions for this?
>> >> >> >>>>>>>>>>
>> >> >> >>>>>>>>>> Thanks!
>> >> >> >>>>>>>>>>
>> >> >> >>>>>>>>>
>> >> >> >>>>>>>>>
>> >> >> >>>>>>>>>
>> >> >> >>>>>>>>
>> >> >> >>>>>>>
>> >> >> >>>>>
>> >> >> >>>>
>> >> >> >>>
>> >> >> >>
>> >> >>
>> >>
>> http://incubator.apache.org/cloudstack/docs/api/apidocs-4.0.0/root_admin/registerUserKeys.html
>> >> >> >>>>>>>>> Please file a bug for the DevGuide documentation not being
>> >> >> >> clear
>> >> >> >>>> on
>> >> >> >>>>>>> this
>> >> >> >>>>>>>>> issue
>> >> >> >>>>>>>>>
>> >> >> >>>>>>>>> -David
>> >> >> >>>>>>>>>
>> >> >> >>>>>>>>
>> >> >> >>>>>>>>
>> >> >> >>>>>>>>
>> >> >> >>>>>>>> --
>> >> >> >>>>>>>> *Mike Tutkowski*
>> >> >> >>>>>>>> *Senior CloudStack Developer, SolidFire Inc.*
>> >> >> >>>>>>>> e: mike.tutkowski@solidfire.com
>> >> >> >>>>>>>> o: 303.746.7302
>> >> >> >>>>>>>> Advancing the way the world uses the
>> >> >> >>>>>>>> cloud<http://solidfire.com/solution/overview/?video=play>
>> >> >> >>>>>>>> *™*
>> >> >> >>>>>>>>
>> >> >> >>>>>>>
>> >> >> >>>>>>
>> >> >> >>>>>>
>> >> >> >>>>>>
>> >> >> >>>>>> --
>> >> >> >>>>>> *Mike Tutkowski*
>> >> >> >>>>>> *Senior CloudStack Developer, SolidFire Inc.*
>> >> >> >>>>>> e: mike.tutkowski@solidfire.com
>> >> >> >>>>>> o: 303.746.7302
>> >> >> >>>>>> Advancing the way the world uses the cloud<
>> >> >> >>>>> http://solidfire.com/solution/overview/?video=play>
>> >> >> >>>>>> *™*
>> >> >> >>>>>>
>> >> >> >>>>>
>> >> >> >>>>>
>> >> >> >>>>>
>> >> >> >>>>> --
>> >> >> >>>>> *Mike Tutkowski*
>> >> >> >>>>> *Senior CloudStack Developer, SolidFire Inc.*
>> >> >> >>>>> e: mike.tutkowski@solidfire.com
>> >> >> >>>>> o: 303.746.7302
>> >> >> >>>>> Advancing the way the world uses the
>> >> >> >>>>> cloud<http://solidfire.com/solution/overview/?video=play>
>> >> >> >>>>> *™*
>> >> >> >>>>>
>> >> >> >>>>
>> >> >> >>>
>> >> >> >>>
>> >> >> >>>
>> >> >> >>> --
>> >> >> >>> *Mike Tutkowski*
>> >> >> >>> *Senior CloudStack Developer, SolidFire Inc.*
>> >> >> >>> e: mike.tutkowski@solidfire.com
>> >> >> >>> o: 303.746.7302
>> >> >> >>> Advancing the way the world uses the
>> >> >> >>> cloud<http://solidfire.com/solution/overview/?video=play>
>> >> >> >>> *™*
>> >> >> >>>
>> >> >> >>
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > --
>> >> >> > *Mike Tutkowski*
>> >> >> > *Senior CloudStack Developer, SolidFire Inc.*
>> >> >> > e: mike.tutkowski@solidfire.com
>> >> >> > o: 303.746.7302
>> >> >> > Advancing the way the world uses the
>> >> >> > cloud<http://solidfire.com/solution/overview/?video=play>
>> >> >> > *™*
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >> > --
>> >> > *Mike Tutkowski*
>> >> > *Senior CloudStack Developer, SolidFire Inc.*
>> >> > e: mike.tutkowski@solidfire.com
>> >> > o: 303.746.7302
>> >> > Advancing the way the world uses the cloud<
>> >> http://solidfire.com/solution/overview/?video=play>
>> >> > *™*
>> >> >
>> >>
>> >>
>> >>
>> >> --
>> >> *Mike Tutkowski*
>> >> *Senior CloudStack Developer, SolidFire Inc.*
>> >> e: mike.tutkowski@solidfire.com
>> >> o: 303.746.7302
>> >> Advancing the way the world uses the
>> >> cloud<http://solidfire.com/solution/overview/?video=play>
>> >> *™*
>> >>
>> >
>> >
>>
>
>
>
> --
> *Mike Tutkowski*
> *Senior CloudStack Developer, SolidFire Inc.*
> e: mike.tutkowski@solidfire.com
> o: 303.746.7302
> Advancing the way the world uses the cloud<http://solidfire.com/solution/overview/?video=play>
> *™*
>



-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkowski@solidfire.com
o: 303.746.7302
Advancing the way the world uses the
cloud<http://solidfire.com/solution/overview/?video=play>
*™*

Re: CloudStack API Question

Posted by Mike Tutkowski <mi...@solidfire.com>.
Cool...thanks, Will.

It sounds like if I get the signature right, then I should be good.

Looking into it now.


On Thu, Feb 14, 2013 at 12:45 PM, Will Stevens <ws...@cloudops.com>wrote:

> Looking at what you pasted in.  I think you forgot to add the api key to
> the request parameters before you sorted them and then generated your
> signature.  In short, your signature is wrong...
>
>
> On Thu, Feb 14, 2013 at 2:40 PM, Will Stevens <ws...@cloudops.com>
> wrote:
>
> > When you generated your signature, did you first sort the parameters
> being
> > passed alphabetically?  If you didn't then the signature which you
> > generated is wrong.
> >
> > Something to check anyway...
> >
> >
> > On Thu, Feb 14, 2013 at 2:35 PM, Mike Tutkowski <
> > mike.tutkowski@solidfire.com> wrote:
> >
> >> So, my next API question.  :)
> >>
> >> I am getting a 401 with the following Java code.  A 401 is
> authentication
> >> related, but I'm not sure if I need to provide a username and password
> >> because I didn't see that in the example on the web that I'm following.
> >>
> >> Any thoughts?
> >>
> >> Thanks!
> >>
> >>   final String strHost = "127.0.0.1:8080/";
> >>
> >>    final String strFinalUrl = "http://" + strHost + strApiUrl +
> >> "&apiKey="+ strApiKey +
> >> "&signature=" + strEncodedSignature;
> >>
> >>    System.out.println(strFinalUrl);
> >>
> >>    final HttpClient client = new DefaultHttpClient();
> >>
> >>  final HttpResponse response = client.execute(new HttpGet(strFinalUrl));
> >>
> >>    if (response.getStatusLine().getStatusCode() != 200)
> >>
> >>  {
> >>
> >>   throw new RuntimeException("Failed on CloudStack deployVirtualMachine
> >> API
> >> call : HTTP error code : " + response.getStatusLine().getStatusCode());
> >>
> >>  }
> >>
> >> The URL I'm printing looks like this:
> >>
> >>
> >>
> >>
> http://127.0.0.1:8080/client/api?command=deployVirtualMachine&serviceOfferingId=1&diskOfferingId=1&templateId=1&zoneId=1&apiKey=X0U60K_Qgodb6nL5csNcAzRiz2cKiwx-tjBj1dTMLSVxkdmD0QtUhFzDf3MCmwGnC3z2dQPo0j3x_XJYmoEBmg&signature=CJvLoJ%2ByvUM12OUNb9hxyD1Gsjw%3D
> >>
> >>
> >>
> >> On Wed, Feb 13, 2013 at 12:06 PM, Mike Tutkowski <
> >> mike.tutkowski@solidfire.com> wrote:
> >>
> >> > Thanks, David - that was very useful info. :)
> >> >
> >> > I'm not completely up to speed yet on what CloudStack considers a
> domain
> >> > versus an account versus a user, but I found this page and am going
> >> through
> >> > it now:
> >> >
> >> > http://wiki.cloudstack.org/pages/viewpage.action?pageId=8224884
> >> >
> >> >
> >> > On Wed, Feb 13, 2013 at 11:21 AM, David Grizzanti <
> >> > david.grizzanti@sungard.com> wrote:
> >> >
> >> >> Mike,
> >> >>
> >> >> In the UI if you go to "Accounts" in the left hand sidebar -> click
> the
> >> >> name of an account (i.e. "admin") -> under Details click "View Users"
> >> ->
> >> >> click the Username of the user in question (i.e. "admin") and the API
> >> and
> >> >> Secrety Key should be listed under the Details there.
> >> >>
> >> >> Hope that helps!
> >> >>
> >> >> --
> >> >> David Grizzanti
> >> >> Software Engineer - SunGard Availability Services
> >> >> 401 N. Broad Street, Philadelphia, PA 19108
> >> >> o: 215-446-1431 - e: david.grizzanti@sungard.com
> >> >>
> >> >> On Feb 13, 2013, at 12:44 PM, Mike Tutkowski wrote:
> >> >>
> >> >> > OK, just getting around to doing this now.
> >> >> >
> >> >> > It looks like the Generate Keys command worked (I didn't get an
> error
> >> >> > message), but I'm not sure where to look in the GUI to find these
> >> keys.
> >> >> >
> >> >> > Would you mind pointing that out for me?
> >> >> >
> >> >> > Thanks!!
> >> >> >
> >> >> >
> >> >> > On Tue, Feb 12, 2013 at 9:07 PM, Will Stevens <
> wstevens@cloudops.com
> >> >
> >> >> wrote:
> >> >> >
> >> >> >> If its a fresh install, you will access the client at:
> >> >> >> the.machines.ip:8080/client/
> >> >> >> Login with username/password of: admin/password
> >> >> >> Click: Accounts -> admin -> View Users -> admin -> (in the main
> >> window
> >> >> >> there are 3 buttons at the top left of the screen, mouse over the
> >> right
> >> >> >> most one of the 3 and it should say 'Generate Keys', click that)
> >> >> >>
> >> >> >> You can follow that same process for any user who has an account.
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >> On Tue, Feb 12, 2013 at 10:26 PM, Mike Tutkowski <
> >> >> >> mike.tutkowski@solidfire.com> wrote:
> >> >> >>
> >> >> >>> Can you point me to the location in the GUI where I can generate
> >> keys?
> >> >> >>>
> >> >> >>> Thanks!
> >> >> >>>
> >> >> >>>
> >> >> >>> On Tue, Feb 12, 2013 at 4:17 PM, Will Stevens <
> >> wstevens@cloudops.com>
> >> >> >>> wrote:
> >> >> >>>
> >> >> >>>> They do not expire, but in the UI you can regenerate the keys,
> so
> >> in
> >> >> >> that
> >> >> >>>> case they would change.
> >> >> >>>>
> >> >> >>>>
> >> >> >>>> On Tue, Feb 12, 2013 at 6:13 PM, Mike Tutkowski <
> >> >> >>>> mike.tutkowski@solidfire.com> wrote:
> >> >> >>>>
> >> >> >>>>> to "say" (I mean) :)
> >> >> >>>>>
> >> >> >>>>>
> >> >> >>>>> On Tue, Feb 12, 2013 at 4:13 PM, Mike Tutkowski <
> >> >> >>>>> mike.tutkowski@solidfire.com> wrote:
> >> >> >>>>>
> >> >> >>>>>> Sounds good...and these do not expire?  Is that accurate to
> day?
> >> >> >>>>>>
> >> >> >>>>>>
> >> >> >>>>>> On Tue, Feb 12, 2013 at 4:03 PM, Will Stevens <
> >> >> >> wstevens@cloudops.com
> >> >> >>>>>> wrote:
> >> >> >>>>>>
> >> >> >>>>>>> Every role uses the same procedure.  They all need an api key
> >> and
> >> >> >>>> secret
> >> >> >>>>>>> key.
> >> >> >>>>>>>
> >> >> >>>>>>>
> >> >> >>>>>>> On Tue, Feb 12, 2013 at 5:54 PM, Mike Tutkowski <
> >> >> >>>>>>> mike.tutkowski@solidfire.com> wrote:
> >> >> >>>>>>>
> >> >> >>>>>>>> Thanks for the info.
> >> >> >>>>>>>>
> >> >> >>>>>>>> So, I see we have three roles in CloudStack:  Root Admin,
> >> Domain
> >> >> >>>>> Admin,
> >> >> >>>>>>> and
> >> >> >>>>>>>> User.
> >> >> >>>>>>>>
> >> >> >>>>>>>> When submitting API commands, does the submitter -
> regardless
> >> of
> >> >> >>>> role
> >> >> >>>>> -
> >> >> >>>>>>>> have to provide an API Key and Secret Key (or is that
> >> something,
> >> >> >>>> say,
> >> >> >>>>>>> the
> >> >> >>>>>>>> Root Admin doesn't have to do)?
> >> >> >>>>>>>>
> >> >> >>>>>>>> Thanks!
> >> >> >>>>>>>>
> >> >> >>>>>>>>
> >> >> >>>>>>>> On Tue, Feb 12, 2013 at 3:33 PM, David Nalley <
> david@gnsa.us>
> >> >> >>>> wrote:
> >> >> >>>>>>>>
> >> >> >>>>>>>>> On Tue, Feb 12, 2013 at 5:27 PM, Mike Tutkowski
> >> >> >>>>>>>>> <mi...@solidfire.com> wrote:
> >> >> >>>>>>>>>> So, I'm looking at these comments now:
> >> >> >>>>>>>>>>
> >> >> >>>>>>>>>> 2.3. Getting Started
> >> >> >>>>>>>>>> To get started using the CloudStack API, you should have
> the
> >> >> >>>>>>> following:
> >> >> >>>>>>>>>>
> >> >> >>>>>>>>>>   - URL of the CloudStack server you wish to integrate
> >> >> >> with.
> >> >> >>>>>>>>>>   - Both the API Key and Secret Key for an account. This
> >> >> >>> should
> >> >> >>>>>>> have
> >> >> >>>>>>>>> been
> >> >> >>>>>>>>>>   generated by the administrator of the cloud instance and
> >> >> >>>> given
> >> >> >>>>> to
> >> >> >>>>>>>> you.
> >> >> >>>>>>>>>>   - Familiarity with HTTP GET/POST and query strings.
> >> >> >>>>>>>>>>   - Knowledge of either XML or JSON.
> >> >> >>>>>>>>>>   - Knowledge of a programming language that can generate
> >> >> >>> HTTP
> >> >> >>>>>>>> requests;
> >> >> >>>>>>>>>>   for example, Java or PHP.
> >> >> >>>>>>>>>>
> >> >> >>>>>>>>>>
> >> >> >>>>>>>>>> I'm not sure how to generate the API Key and Secret Key
> for
> >> >> >> an
> >> >> >>>>>>> account.
> >> >> >>>>>>>>>> Can someone point me to instructions for this?
> >> >> >>>>>>>>>>
> >> >> >>>>>>>>>> Thanks!
> >> >> >>>>>>>>>>
> >> >> >>>>>>>>>
> >> >> >>>>>>>>>
> >> >> >>>>>>>>>
> >> >> >>>>>>>>
> >> >> >>>>>>>
> >> >> >>>>>
> >> >> >>>>
> >> >> >>>
> >> >> >>
> >> >>
> >>
> http://incubator.apache.org/cloudstack/docs/api/apidocs-4.0.0/root_admin/registerUserKeys.html
> >> >> >>>>>>>>> Please file a bug for the DevGuide documentation not being
> >> >> >> clear
> >> >> >>>> on
> >> >> >>>>>>> this
> >> >> >>>>>>>>> issue
> >> >> >>>>>>>>>
> >> >> >>>>>>>>> -David
> >> >> >>>>>>>>>
> >> >> >>>>>>>>
> >> >> >>>>>>>>
> >> >> >>>>>>>>
> >> >> >>>>>>>> --
> >> >> >>>>>>>> *Mike Tutkowski*
> >> >> >>>>>>>> *Senior CloudStack Developer, SolidFire Inc.*
> >> >> >>>>>>>> e: mike.tutkowski@solidfire.com
> >> >> >>>>>>>> o: 303.746.7302
> >> >> >>>>>>>> Advancing the way the world uses the
> >> >> >>>>>>>> cloud<http://solidfire.com/solution/overview/?video=play>
> >> >> >>>>>>>> *™*
> >> >> >>>>>>>>
> >> >> >>>>>>>
> >> >> >>>>>>
> >> >> >>>>>>
> >> >> >>>>>>
> >> >> >>>>>> --
> >> >> >>>>>> *Mike Tutkowski*
> >> >> >>>>>> *Senior CloudStack Developer, SolidFire Inc.*
> >> >> >>>>>> e: mike.tutkowski@solidfire.com
> >> >> >>>>>> o: 303.746.7302
> >> >> >>>>>> Advancing the way the world uses the cloud<
> >> >> >>>>> http://solidfire.com/solution/overview/?video=play>
> >> >> >>>>>> *™*
> >> >> >>>>>>
> >> >> >>>>>
> >> >> >>>>>
> >> >> >>>>>
> >> >> >>>>> --
> >> >> >>>>> *Mike Tutkowski*
> >> >> >>>>> *Senior CloudStack Developer, SolidFire Inc.*
> >> >> >>>>> e: mike.tutkowski@solidfire.com
> >> >> >>>>> o: 303.746.7302
> >> >> >>>>> Advancing the way the world uses the
> >> >> >>>>> cloud<http://solidfire.com/solution/overview/?video=play>
> >> >> >>>>> *™*
> >> >> >>>>>
> >> >> >>>>
> >> >> >>>
> >> >> >>>
> >> >> >>>
> >> >> >>> --
> >> >> >>> *Mike Tutkowski*
> >> >> >>> *Senior CloudStack Developer, SolidFire Inc.*
> >> >> >>> e: mike.tutkowski@solidfire.com
> >> >> >>> o: 303.746.7302
> >> >> >>> Advancing the way the world uses the
> >> >> >>> cloud<http://solidfire.com/solution/overview/?video=play>
> >> >> >>> *™*
> >> >> >>>
> >> >> >>
> >> >> >
> >> >> >
> >> >> >
> >> >> > --
> >> >> > *Mike Tutkowski*
> >> >> > *Senior CloudStack Developer, SolidFire Inc.*
> >> >> > e: mike.tutkowski@solidfire.com
> >> >> > o: 303.746.7302
> >> >> > Advancing the way the world uses the
> >> >> > cloud<http://solidfire.com/solution/overview/?video=play>
> >> >> > *™*
> >> >>
> >> >>
> >> >
> >> >
> >> > --
> >> > *Mike Tutkowski*
> >> > *Senior CloudStack Developer, SolidFire Inc.*
> >> > e: mike.tutkowski@solidfire.com
> >> > o: 303.746.7302
> >> > Advancing the way the world uses the cloud<
> >> http://solidfire.com/solution/overview/?video=play>
> >> > *™*
> >> >
> >>
> >>
> >>
> >> --
> >> *Mike Tutkowski*
> >> *Senior CloudStack Developer, SolidFire Inc.*
> >> e: mike.tutkowski@solidfire.com
> >> o: 303.746.7302
> >> Advancing the way the world uses the
> >> cloud<http://solidfire.com/solution/overview/?video=play>
> >> *™*
> >>
> >
> >
>



-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkowski@solidfire.com
o: 303.746.7302
Advancing the way the world uses the
cloud<http://solidfire.com/solution/overview/?video=play>
*™*

Re: CloudStack API Question

Posted by Will Stevens <ws...@cloudops.com>.
Looking at what you pasted in.  I think you forgot to add the api key to
the request parameters before you sorted them and then generated your
signature.  In short, your signature is wrong...


On Thu, Feb 14, 2013 at 2:40 PM, Will Stevens <ws...@cloudops.com> wrote:

> When you generated your signature, did you first sort the parameters being
> passed alphabetically?  If you didn't then the signature which you
> generated is wrong.
>
> Something to check anyway...
>
>
> On Thu, Feb 14, 2013 at 2:35 PM, Mike Tutkowski <
> mike.tutkowski@solidfire.com> wrote:
>
>> So, my next API question.  :)
>>
>> I am getting a 401 with the following Java code.  A 401 is authentication
>> related, but I'm not sure if I need to provide a username and password
>> because I didn't see that in the example on the web that I'm following.
>>
>> Any thoughts?
>>
>> Thanks!
>>
>>   final String strHost = "127.0.0.1:8080/";
>>
>>    final String strFinalUrl = "http://" + strHost + strApiUrl +
>> "&apiKey="+ strApiKey +
>> "&signature=" + strEncodedSignature;
>>
>>    System.out.println(strFinalUrl);
>>
>>    final HttpClient client = new DefaultHttpClient();
>>
>>  final HttpResponse response = client.execute(new HttpGet(strFinalUrl));
>>
>>    if (response.getStatusLine().getStatusCode() != 200)
>>
>>  {
>>
>>   throw new RuntimeException("Failed on CloudStack deployVirtualMachine
>> API
>> call : HTTP error code : " + response.getStatusLine().getStatusCode());
>>
>>  }
>>
>> The URL I'm printing looks like this:
>>
>>
>>
>> http://127.0.0.1:8080/client/api?command=deployVirtualMachine&serviceOfferingId=1&diskOfferingId=1&templateId=1&zoneId=1&apiKey=X0U60K_Qgodb6nL5csNcAzRiz2cKiwx-tjBj1dTMLSVxkdmD0QtUhFzDf3MCmwGnC3z2dQPo0j3x_XJYmoEBmg&signature=CJvLoJ%2ByvUM12OUNb9hxyD1Gsjw%3D
>>
>>
>>
>> On Wed, Feb 13, 2013 at 12:06 PM, Mike Tutkowski <
>> mike.tutkowski@solidfire.com> wrote:
>>
>> > Thanks, David - that was very useful info. :)
>> >
>> > I'm not completely up to speed yet on what CloudStack considers a domain
>> > versus an account versus a user, but I found this page and am going
>> through
>> > it now:
>> >
>> > http://wiki.cloudstack.org/pages/viewpage.action?pageId=8224884
>> >
>> >
>> > On Wed, Feb 13, 2013 at 11:21 AM, David Grizzanti <
>> > david.grizzanti@sungard.com> wrote:
>> >
>> >> Mike,
>> >>
>> >> In the UI if you go to "Accounts" in the left hand sidebar -> click the
>> >> name of an account (i.e. "admin") -> under Details click "View Users"
>> ->
>> >> click the Username of the user in question (i.e. "admin") and the API
>> and
>> >> Secrety Key should be listed under the Details there.
>> >>
>> >> Hope that helps!
>> >>
>> >> --
>> >> David Grizzanti
>> >> Software Engineer - SunGard Availability Services
>> >> 401 N. Broad Street, Philadelphia, PA 19108
>> >> o: 215-446-1431 - e: david.grizzanti@sungard.com
>> >>
>> >> On Feb 13, 2013, at 12:44 PM, Mike Tutkowski wrote:
>> >>
>> >> > OK, just getting around to doing this now.
>> >> >
>> >> > It looks like the Generate Keys command worked (I didn't get an error
>> >> > message), but I'm not sure where to look in the GUI to find these
>> keys.
>> >> >
>> >> > Would you mind pointing that out for me?
>> >> >
>> >> > Thanks!!
>> >> >
>> >> >
>> >> > On Tue, Feb 12, 2013 at 9:07 PM, Will Stevens <wstevens@cloudops.com
>> >
>> >> wrote:
>> >> >
>> >> >> If its a fresh install, you will access the client at:
>> >> >> the.machines.ip:8080/client/
>> >> >> Login with username/password of: admin/password
>> >> >> Click: Accounts -> admin -> View Users -> admin -> (in the main
>> window
>> >> >> there are 3 buttons at the top left of the screen, mouse over the
>> right
>> >> >> most one of the 3 and it should say 'Generate Keys', click that)
>> >> >>
>> >> >> You can follow that same process for any user who has an account.
>> >> >>
>> >> >>
>> >> >>
>> >> >>
>> >> >>
>> >> >> On Tue, Feb 12, 2013 at 10:26 PM, Mike Tutkowski <
>> >> >> mike.tutkowski@solidfire.com> wrote:
>> >> >>
>> >> >>> Can you point me to the location in the GUI where I can generate
>> keys?
>> >> >>>
>> >> >>> Thanks!
>> >> >>>
>> >> >>>
>> >> >>> On Tue, Feb 12, 2013 at 4:17 PM, Will Stevens <
>> wstevens@cloudops.com>
>> >> >>> wrote:
>> >> >>>
>> >> >>>> They do not expire, but in the UI you can regenerate the keys, so
>> in
>> >> >> that
>> >> >>>> case they would change.
>> >> >>>>
>> >> >>>>
>> >> >>>> On Tue, Feb 12, 2013 at 6:13 PM, Mike Tutkowski <
>> >> >>>> mike.tutkowski@solidfire.com> wrote:
>> >> >>>>
>> >> >>>>> to "say" (I mean) :)
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> On Tue, Feb 12, 2013 at 4:13 PM, Mike Tutkowski <
>> >> >>>>> mike.tutkowski@solidfire.com> wrote:
>> >> >>>>>
>> >> >>>>>> Sounds good...and these do not expire?  Is that accurate to day?
>> >> >>>>>>
>> >> >>>>>>
>> >> >>>>>> On Tue, Feb 12, 2013 at 4:03 PM, Will Stevens <
>> >> >> wstevens@cloudops.com
>> >> >>>>>> wrote:
>> >> >>>>>>
>> >> >>>>>>> Every role uses the same procedure.  They all need an api key
>> and
>> >> >>>> secret
>> >> >>>>>>> key.
>> >> >>>>>>>
>> >> >>>>>>>
>> >> >>>>>>> On Tue, Feb 12, 2013 at 5:54 PM, Mike Tutkowski <
>> >> >>>>>>> mike.tutkowski@solidfire.com> wrote:
>> >> >>>>>>>
>> >> >>>>>>>> Thanks for the info.
>> >> >>>>>>>>
>> >> >>>>>>>> So, I see we have three roles in CloudStack:  Root Admin,
>> Domain
>> >> >>>>> Admin,
>> >> >>>>>>> and
>> >> >>>>>>>> User.
>> >> >>>>>>>>
>> >> >>>>>>>> When submitting API commands, does the submitter - regardless
>> of
>> >> >>>> role
>> >> >>>>> -
>> >> >>>>>>>> have to provide an API Key and Secret Key (or is that
>> something,
>> >> >>>> say,
>> >> >>>>>>> the
>> >> >>>>>>>> Root Admin doesn't have to do)?
>> >> >>>>>>>>
>> >> >>>>>>>> Thanks!
>> >> >>>>>>>>
>> >> >>>>>>>>
>> >> >>>>>>>> On Tue, Feb 12, 2013 at 3:33 PM, David Nalley <da...@gnsa.us>
>> >> >>>> wrote:
>> >> >>>>>>>>
>> >> >>>>>>>>> On Tue, Feb 12, 2013 at 5:27 PM, Mike Tutkowski
>> >> >>>>>>>>> <mi...@solidfire.com> wrote:
>> >> >>>>>>>>>> So, I'm looking at these comments now:
>> >> >>>>>>>>>>
>> >> >>>>>>>>>> 2.3. Getting Started
>> >> >>>>>>>>>> To get started using the CloudStack API, you should have the
>> >> >>>>>>> following:
>> >> >>>>>>>>>>
>> >> >>>>>>>>>>   - URL of the CloudStack server you wish to integrate
>> >> >> with.
>> >> >>>>>>>>>>   - Both the API Key and Secret Key for an account. This
>> >> >>> should
>> >> >>>>>>> have
>> >> >>>>>>>>> been
>> >> >>>>>>>>>>   generated by the administrator of the cloud instance and
>> >> >>>> given
>> >> >>>>> to
>> >> >>>>>>>> you.
>> >> >>>>>>>>>>   - Familiarity with HTTP GET/POST and query strings.
>> >> >>>>>>>>>>   - Knowledge of either XML or JSON.
>> >> >>>>>>>>>>   - Knowledge of a programming language that can generate
>> >> >>> HTTP
>> >> >>>>>>>> requests;
>> >> >>>>>>>>>>   for example, Java or PHP.
>> >> >>>>>>>>>>
>> >> >>>>>>>>>>
>> >> >>>>>>>>>> I'm not sure how to generate the API Key and Secret Key for
>> >> >> an
>> >> >>>>>>> account.
>> >> >>>>>>>>>> Can someone point me to instructions for this?
>> >> >>>>>>>>>>
>> >> >>>>>>>>>> Thanks!
>> >> >>>>>>>>>>
>> >> >>>>>>>>>
>> >> >>>>>>>>>
>> >> >>>>>>>>>
>> >> >>>>>>>>
>> >> >>>>>>>
>> >> >>>>>
>> >> >>>>
>> >> >>>
>> >> >>
>> >>
>> http://incubator.apache.org/cloudstack/docs/api/apidocs-4.0.0/root_admin/registerUserKeys.html
>> >> >>>>>>>>> Please file a bug for the DevGuide documentation not being
>> >> >> clear
>> >> >>>> on
>> >> >>>>>>> this
>> >> >>>>>>>>> issue
>> >> >>>>>>>>>
>> >> >>>>>>>>> -David
>> >> >>>>>>>>>
>> >> >>>>>>>>
>> >> >>>>>>>>
>> >> >>>>>>>>
>> >> >>>>>>>> --
>> >> >>>>>>>> *Mike Tutkowski*
>> >> >>>>>>>> *Senior CloudStack Developer, SolidFire Inc.*
>> >> >>>>>>>> e: mike.tutkowski@solidfire.com
>> >> >>>>>>>> o: 303.746.7302
>> >> >>>>>>>> Advancing the way the world uses the
>> >> >>>>>>>> cloud<http://solidfire.com/solution/overview/?video=play>
>> >> >>>>>>>> *™*
>> >> >>>>>>>>
>> >> >>>>>>>
>> >> >>>>>>
>> >> >>>>>>
>> >> >>>>>>
>> >> >>>>>> --
>> >> >>>>>> *Mike Tutkowski*
>> >> >>>>>> *Senior CloudStack Developer, SolidFire Inc.*
>> >> >>>>>> e: mike.tutkowski@solidfire.com
>> >> >>>>>> o: 303.746.7302
>> >> >>>>>> Advancing the way the world uses the cloud<
>> >> >>>>> http://solidfire.com/solution/overview/?video=play>
>> >> >>>>>> *™*
>> >> >>>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> --
>> >> >>>>> *Mike Tutkowski*
>> >> >>>>> *Senior CloudStack Developer, SolidFire Inc.*
>> >> >>>>> e: mike.tutkowski@solidfire.com
>> >> >>>>> o: 303.746.7302
>> >> >>>>> Advancing the way the world uses the
>> >> >>>>> cloud<http://solidfire.com/solution/overview/?video=play>
>> >> >>>>> *™*
>> >> >>>>>
>> >> >>>>
>> >> >>>
>> >> >>>
>> >> >>>
>> >> >>> --
>> >> >>> *Mike Tutkowski*
>> >> >>> *Senior CloudStack Developer, SolidFire Inc.*
>> >> >>> e: mike.tutkowski@solidfire.com
>> >> >>> o: 303.746.7302
>> >> >>> Advancing the way the world uses the
>> >> >>> cloud<http://solidfire.com/solution/overview/?video=play>
>> >> >>> *™*
>> >> >>>
>> >> >>
>> >> >
>> >> >
>> >> >
>> >> > --
>> >> > *Mike Tutkowski*
>> >> > *Senior CloudStack Developer, SolidFire Inc.*
>> >> > e: mike.tutkowski@solidfire.com
>> >> > o: 303.746.7302
>> >> > Advancing the way the world uses the
>> >> > cloud<http://solidfire.com/solution/overview/?video=play>
>> >> > *™*
>> >>
>> >>
>> >
>> >
>> > --
>> > *Mike Tutkowski*
>> > *Senior CloudStack Developer, SolidFire Inc.*
>> > e: mike.tutkowski@solidfire.com
>> > o: 303.746.7302
>> > Advancing the way the world uses the cloud<
>> http://solidfire.com/solution/overview/?video=play>
>> > *™*
>> >
>>
>>
>>
>> --
>> *Mike Tutkowski*
>> *Senior CloudStack Developer, SolidFire Inc.*
>> e: mike.tutkowski@solidfire.com
>> o: 303.746.7302
>> Advancing the way the world uses the
>> cloud<http://solidfire.com/solution/overview/?video=play>
>> *™*
>>
>
>

Re: CloudStack API Question

Posted by Will Stevens <ws...@cloudops.com>.
When you generated your signature, did you first sort the parameters being
passed alphabetically?  If you didn't then the signature which you
generated is wrong.

Something to check anyway...


On Thu, Feb 14, 2013 at 2:35 PM, Mike Tutkowski <
mike.tutkowski@solidfire.com> wrote:

> So, my next API question.  :)
>
> I am getting a 401 with the following Java code.  A 401 is authentication
> related, but I'm not sure if I need to provide a username and password
> because I didn't see that in the example on the web that I'm following.
>
> Any thoughts?
>
> Thanks!
>
>   final String strHost = "127.0.0.1:8080/";
>
>    final String strFinalUrl = "http://" + strHost + strApiUrl +
> "&apiKey="+ strApiKey +
> "&signature=" + strEncodedSignature;
>
>    System.out.println(strFinalUrl);
>
>    final HttpClient client = new DefaultHttpClient();
>
>  final HttpResponse response = client.execute(new HttpGet(strFinalUrl));
>
>    if (response.getStatusLine().getStatusCode() != 200)
>
>  {
>
>   throw new RuntimeException("Failed on CloudStack deployVirtualMachine API
> call : HTTP error code : " + response.getStatusLine().getStatusCode());
>
>  }
>
> The URL I'm printing looks like this:
>
>
>
> http://127.0.0.1:8080/client/api?command=deployVirtualMachine&serviceOfferingId=1&diskOfferingId=1&templateId=1&zoneId=1&apiKey=X0U60K_Qgodb6nL5csNcAzRiz2cKiwx-tjBj1dTMLSVxkdmD0QtUhFzDf3MCmwGnC3z2dQPo0j3x_XJYmoEBmg&signature=CJvLoJ%2ByvUM12OUNb9hxyD1Gsjw%3D
>
>
>
> On Wed, Feb 13, 2013 at 12:06 PM, Mike Tutkowski <
> mike.tutkowski@solidfire.com> wrote:
>
> > Thanks, David - that was very useful info. :)
> >
> > I'm not completely up to speed yet on what CloudStack considers a domain
> > versus an account versus a user, but I found this page and am going
> through
> > it now:
> >
> > http://wiki.cloudstack.org/pages/viewpage.action?pageId=8224884
> >
> >
> > On Wed, Feb 13, 2013 at 11:21 AM, David Grizzanti <
> > david.grizzanti@sungard.com> wrote:
> >
> >> Mike,
> >>
> >> In the UI if you go to "Accounts" in the left hand sidebar -> click the
> >> name of an account (i.e. "admin") -> under Details click "View Users" ->
> >> click the Username of the user in question (i.e. "admin") and the API
> and
> >> Secrety Key should be listed under the Details there.
> >>
> >> Hope that helps!
> >>
> >> --
> >> David Grizzanti
> >> Software Engineer - SunGard Availability Services
> >> 401 N. Broad Street, Philadelphia, PA 19108
> >> o: 215-446-1431 - e: david.grizzanti@sungard.com
> >>
> >> On Feb 13, 2013, at 12:44 PM, Mike Tutkowski wrote:
> >>
> >> > OK, just getting around to doing this now.
> >> >
> >> > It looks like the Generate Keys command worked (I didn't get an error
> >> > message), but I'm not sure where to look in the GUI to find these
> keys.
> >> >
> >> > Would you mind pointing that out for me?
> >> >
> >> > Thanks!!
> >> >
> >> >
> >> > On Tue, Feb 12, 2013 at 9:07 PM, Will Stevens <ws...@cloudops.com>
> >> wrote:
> >> >
> >> >> If its a fresh install, you will access the client at:
> >> >> the.machines.ip:8080/client/
> >> >> Login with username/password of: admin/password
> >> >> Click: Accounts -> admin -> View Users -> admin -> (in the main
> window
> >> >> there are 3 buttons at the top left of the screen, mouse over the
> right
> >> >> most one of the 3 and it should say 'Generate Keys', click that)
> >> >>
> >> >> You can follow that same process for any user who has an account.
> >> >>
> >> >>
> >> >>
> >> >>
> >> >>
> >> >> On Tue, Feb 12, 2013 at 10:26 PM, Mike Tutkowski <
> >> >> mike.tutkowski@solidfire.com> wrote:
> >> >>
> >> >>> Can you point me to the location in the GUI where I can generate
> keys?
> >> >>>
> >> >>> Thanks!
> >> >>>
> >> >>>
> >> >>> On Tue, Feb 12, 2013 at 4:17 PM, Will Stevens <
> wstevens@cloudops.com>
> >> >>> wrote:
> >> >>>
> >> >>>> They do not expire, but in the UI you can regenerate the keys, so
> in
> >> >> that
> >> >>>> case they would change.
> >> >>>>
> >> >>>>
> >> >>>> On Tue, Feb 12, 2013 at 6:13 PM, Mike Tutkowski <
> >> >>>> mike.tutkowski@solidfire.com> wrote:
> >> >>>>
> >> >>>>> to "say" (I mean) :)
> >> >>>>>
> >> >>>>>
> >> >>>>> On Tue, Feb 12, 2013 at 4:13 PM, Mike Tutkowski <
> >> >>>>> mike.tutkowski@solidfire.com> wrote:
> >> >>>>>
> >> >>>>>> Sounds good...and these do not expire?  Is that accurate to day?
> >> >>>>>>
> >> >>>>>>
> >> >>>>>> On Tue, Feb 12, 2013 at 4:03 PM, Will Stevens <
> >> >> wstevens@cloudops.com
> >> >>>>>> wrote:
> >> >>>>>>
> >> >>>>>>> Every role uses the same procedure.  They all need an api key
> and
> >> >>>> secret
> >> >>>>>>> key.
> >> >>>>>>>
> >> >>>>>>>
> >> >>>>>>> On Tue, Feb 12, 2013 at 5:54 PM, Mike Tutkowski <
> >> >>>>>>> mike.tutkowski@solidfire.com> wrote:
> >> >>>>>>>
> >> >>>>>>>> Thanks for the info.
> >> >>>>>>>>
> >> >>>>>>>> So, I see we have three roles in CloudStack:  Root Admin,
> Domain
> >> >>>>> Admin,
> >> >>>>>>> and
> >> >>>>>>>> User.
> >> >>>>>>>>
> >> >>>>>>>> When submitting API commands, does the submitter - regardless
> of
> >> >>>> role
> >> >>>>> -
> >> >>>>>>>> have to provide an API Key and Secret Key (or is that
> something,
> >> >>>> say,
> >> >>>>>>> the
> >> >>>>>>>> Root Admin doesn't have to do)?
> >> >>>>>>>>
> >> >>>>>>>> Thanks!
> >> >>>>>>>>
> >> >>>>>>>>
> >> >>>>>>>> On Tue, Feb 12, 2013 at 3:33 PM, David Nalley <da...@gnsa.us>
> >> >>>> wrote:
> >> >>>>>>>>
> >> >>>>>>>>> On Tue, Feb 12, 2013 at 5:27 PM, Mike Tutkowski
> >> >>>>>>>>> <mi...@solidfire.com> wrote:
> >> >>>>>>>>>> So, I'm looking at these comments now:
> >> >>>>>>>>>>
> >> >>>>>>>>>> 2.3. Getting Started
> >> >>>>>>>>>> To get started using the CloudStack API, you should have the
> >> >>>>>>> following:
> >> >>>>>>>>>>
> >> >>>>>>>>>>   - URL of the CloudStack server you wish to integrate
> >> >> with.
> >> >>>>>>>>>>   - Both the API Key and Secret Key for an account. This
> >> >>> should
> >> >>>>>>> have
> >> >>>>>>>>> been
> >> >>>>>>>>>>   generated by the administrator of the cloud instance and
> >> >>>> given
> >> >>>>> to
> >> >>>>>>>> you.
> >> >>>>>>>>>>   - Familiarity with HTTP GET/POST and query strings.
> >> >>>>>>>>>>   - Knowledge of either XML or JSON.
> >> >>>>>>>>>>   - Knowledge of a programming language that can generate
> >> >>> HTTP
> >> >>>>>>>> requests;
> >> >>>>>>>>>>   for example, Java or PHP.
> >> >>>>>>>>>>
> >> >>>>>>>>>>
> >> >>>>>>>>>> I'm not sure how to generate the API Key and Secret Key for
> >> >> an
> >> >>>>>>> account.
> >> >>>>>>>>>> Can someone point me to instructions for this?
> >> >>>>>>>>>>
> >> >>>>>>>>>> Thanks!
> >> >>>>>>>>>>
> >> >>>>>>>>>
> >> >>>>>>>>>
> >> >>>>>>>>>
> >> >>>>>>>>
> >> >>>>>>>
> >> >>>>>
> >> >>>>
> >> >>>
> >> >>
> >>
> http://incubator.apache.org/cloudstack/docs/api/apidocs-4.0.0/root_admin/registerUserKeys.html
> >> >>>>>>>>> Please file a bug for the DevGuide documentation not being
> >> >> clear
> >> >>>> on
> >> >>>>>>> this
> >> >>>>>>>>> issue
> >> >>>>>>>>>
> >> >>>>>>>>> -David
> >> >>>>>>>>>
> >> >>>>>>>>
> >> >>>>>>>>
> >> >>>>>>>>
> >> >>>>>>>> --
> >> >>>>>>>> *Mike Tutkowski*
> >> >>>>>>>> *Senior CloudStack Developer, SolidFire Inc.*
> >> >>>>>>>> e: mike.tutkowski@solidfire.com
> >> >>>>>>>> o: 303.746.7302
> >> >>>>>>>> Advancing the way the world uses the
> >> >>>>>>>> cloud<http://solidfire.com/solution/overview/?video=play>
> >> >>>>>>>> *™*
> >> >>>>>>>>
> >> >>>>>>>
> >> >>>>>>
> >> >>>>>>
> >> >>>>>>
> >> >>>>>> --
> >> >>>>>> *Mike Tutkowski*
> >> >>>>>> *Senior CloudStack Developer, SolidFire Inc.*
> >> >>>>>> e: mike.tutkowski@solidfire.com
> >> >>>>>> o: 303.746.7302
> >> >>>>>> Advancing the way the world uses the cloud<
> >> >>>>> http://solidfire.com/solution/overview/?video=play>
> >> >>>>>> *™*
> >> >>>>>>
> >> >>>>>
> >> >>>>>
> >> >>>>>
> >> >>>>> --
> >> >>>>> *Mike Tutkowski*
> >> >>>>> *Senior CloudStack Developer, SolidFire Inc.*
> >> >>>>> e: mike.tutkowski@solidfire.com
> >> >>>>> o: 303.746.7302
> >> >>>>> Advancing the way the world uses the
> >> >>>>> cloud<http://solidfire.com/solution/overview/?video=play>
> >> >>>>> *™*
> >> >>>>>
> >> >>>>
> >> >>>
> >> >>>
> >> >>>
> >> >>> --
> >> >>> *Mike Tutkowski*
> >> >>> *Senior CloudStack Developer, SolidFire Inc.*
> >> >>> e: mike.tutkowski@solidfire.com
> >> >>> o: 303.746.7302
> >> >>> Advancing the way the world uses the
> >> >>> cloud<http://solidfire.com/solution/overview/?video=play>
> >> >>> *™*
> >> >>>
> >> >>
> >> >
> >> >
> >> >
> >> > --
> >> > *Mike Tutkowski*
> >> > *Senior CloudStack Developer, SolidFire Inc.*
> >> > e: mike.tutkowski@solidfire.com
> >> > o: 303.746.7302
> >> > Advancing the way the world uses the
> >> > cloud<http://solidfire.com/solution/overview/?video=play>
> >> > *™*
> >>
> >>
> >
> >
> > --
> > *Mike Tutkowski*
> > *Senior CloudStack Developer, SolidFire Inc.*
> > e: mike.tutkowski@solidfire.com
> > o: 303.746.7302
> > Advancing the way the world uses the cloud<
> http://solidfire.com/solution/overview/?video=play>
> > *™*
> >
>
>
>
> --
> *Mike Tutkowski*
> *Senior CloudStack Developer, SolidFire Inc.*
> e: mike.tutkowski@solidfire.com
> o: 303.746.7302
> Advancing the way the world uses the
> cloud<http://solidfire.com/solution/overview/?video=play>
> *™*
>

Re: CloudStack API Question

Posted by George Reese <ge...@enstratus.com>.
Dasein Cloud has examples of doing just about everything with the CloudStack API in Java at https://github.com/greese/dasein-cloud-cloudstack.

-George

On Feb 14, 2013, at 1:35 PM, Mike Tutkowski <mi...@solidfire.com> wrote:

> So, my next API question.  :)
> 
> I am getting a 401 with the following Java code.  A 401 is authentication
> related, but I'm not sure if I need to provide a username and password
> because I didn't see that in the example on the web that I'm following.
> 
> Any thoughts?
> 
> Thanks!
> 
>  final String strHost = "127.0.0.1:8080/";
> 
>   final String strFinalUrl = "http://" + strHost + strApiUrl +
> "&apiKey="+ strApiKey +
> "&signature=" + strEncodedSignature;
> 
>   System.out.println(strFinalUrl);
> 
>   final HttpClient client = new DefaultHttpClient();
> 
> final HttpResponse response = client.execute(new HttpGet(strFinalUrl));
> 
>   if (response.getStatusLine().getStatusCode() != 200)
> 
> {
> 
>  throw new RuntimeException("Failed on CloudStack deployVirtualMachine API
> call : HTTP error code : " + response.getStatusLine().getStatusCode());
> 
> }
> 
> The URL I'm printing looks like this:
> 
> 
> http://127.0.0.1:8080/client/api?command=deployVirtualMachine&serviceOfferingId=1&diskOfferingId=1&templateId=1&zoneId=1&apiKey=X0U60K_Qgodb6nL5csNcAzRiz2cKiwx-tjBj1dTMLSVxkdmD0QtUhFzDf3MCmwGnC3z2dQPo0j3x_XJYmoEBmg&signature=CJvLoJ%2ByvUM12OUNb9hxyD1Gsjw%3D
> 
> 
> 
> On Wed, Feb 13, 2013 at 12:06 PM, Mike Tutkowski <
> mike.tutkowski@solidfire.com> wrote:
> 
>> Thanks, David - that was very useful info. :)
>> 
>> I'm not completely up to speed yet on what CloudStack considers a domain
>> versus an account versus a user, but I found this page and am going through
>> it now:
>> 
>> http://wiki.cloudstack.org/pages/viewpage.action?pageId=8224884
>> 
>> 
>> On Wed, Feb 13, 2013 at 11:21 AM, David Grizzanti <
>> david.grizzanti@sungard.com> wrote:
>> 
>>> Mike,
>>> 
>>> In the UI if you go to "Accounts" in the left hand sidebar -> click the
>>> name of an account (i.e. "admin") -> under Details click "View Users" ->
>>> click the Username of the user in question (i.e. "admin") and the API and
>>> Secrety Key should be listed under the Details there.
>>> 
>>> Hope that helps!
>>> 
>>> --
>>> David Grizzanti
>>> Software Engineer - SunGard Availability Services
>>> 401 N. Broad Street, Philadelphia, PA 19108
>>> o: 215-446-1431 - e: david.grizzanti@sungard.com
>>> 
>>> On Feb 13, 2013, at 12:44 PM, Mike Tutkowski wrote:
>>> 
>>>> OK, just getting around to doing this now.
>>>> 
>>>> It looks like the Generate Keys command worked (I didn't get an error
>>>> message), but I'm not sure where to look in the GUI to find these keys.
>>>> 
>>>> Would you mind pointing that out for me?
>>>> 
>>>> Thanks!!
>>>> 
>>>> 
>>>> On Tue, Feb 12, 2013 at 9:07 PM, Will Stevens <ws...@cloudops.com>
>>> wrote:
>>>> 
>>>>> If its a fresh install, you will access the client at:
>>>>> the.machines.ip:8080/client/
>>>>> Login with username/password of: admin/password
>>>>> Click: Accounts -> admin -> View Users -> admin -> (in the main window
>>>>> there are 3 buttons at the top left of the screen, mouse over the right
>>>>> most one of the 3 and it should say 'Generate Keys', click that)
>>>>> 
>>>>> You can follow that same process for any user who has an account.
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> On Tue, Feb 12, 2013 at 10:26 PM, Mike Tutkowski <
>>>>> mike.tutkowski@solidfire.com> wrote:
>>>>> 
>>>>>> Can you point me to the location in the GUI where I can generate keys?
>>>>>> 
>>>>>> Thanks!
>>>>>> 
>>>>>> 
>>>>>> On Tue, Feb 12, 2013 at 4:17 PM, Will Stevens <ws...@cloudops.com>
>>>>>> wrote:
>>>>>> 
>>>>>>> They do not expire, but in the UI you can regenerate the keys, so in
>>>>> that
>>>>>>> case they would change.
>>>>>>> 
>>>>>>> 
>>>>>>> On Tue, Feb 12, 2013 at 6:13 PM, Mike Tutkowski <
>>>>>>> mike.tutkowski@solidfire.com> wrote:
>>>>>>> 
>>>>>>>> to "say" (I mean) :)
>>>>>>>> 
>>>>>>>> 
>>>>>>>> On Tue, Feb 12, 2013 at 4:13 PM, Mike Tutkowski <
>>>>>>>> mike.tutkowski@solidfire.com> wrote:
>>>>>>>> 
>>>>>>>>> Sounds good...and these do not expire?  Is that accurate to day?
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> On Tue, Feb 12, 2013 at 4:03 PM, Will Stevens <
>>>>> wstevens@cloudops.com
>>>>>>>>> wrote:
>>>>>>>>> 
>>>>>>>>>> Every role uses the same procedure.  They all need an api key and
>>>>>>> secret
>>>>>>>>>> key.
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> On Tue, Feb 12, 2013 at 5:54 PM, Mike Tutkowski <
>>>>>>>>>> mike.tutkowski@solidfire.com> wrote:
>>>>>>>>>> 
>>>>>>>>>>> Thanks for the info.
>>>>>>>>>>> 
>>>>>>>>>>> So, I see we have three roles in CloudStack:  Root Admin, Domain
>>>>>>>> Admin,
>>>>>>>>>> and
>>>>>>>>>>> User.
>>>>>>>>>>> 
>>>>>>>>>>> When submitting API commands, does the submitter - regardless of
>>>>>>> role
>>>>>>>> -
>>>>>>>>>>> have to provide an API Key and Secret Key (or is that something,
>>>>>>> say,
>>>>>>>>>> the
>>>>>>>>>>> Root Admin doesn't have to do)?
>>>>>>>>>>> 
>>>>>>>>>>> Thanks!
>>>>>>>>>>> 
>>>>>>>>>>> 
>>>>>>>>>>> On Tue, Feb 12, 2013 at 3:33 PM, David Nalley <da...@gnsa.us>
>>>>>>> wrote:
>>>>>>>>>>> 
>>>>>>>>>>>> On Tue, Feb 12, 2013 at 5:27 PM, Mike Tutkowski
>>>>>>>>>>>> <mi...@solidfire.com> wrote:
>>>>>>>>>>>>> So, I'm looking at these comments now:
>>>>>>>>>>>>> 
>>>>>>>>>>>>> 2.3. Getting Started
>>>>>>>>>>>>> To get started using the CloudStack API, you should have the
>>>>>>>>>> following:
>>>>>>>>>>>>> 
>>>>>>>>>>>>>  - URL of the CloudStack server you wish to integrate
>>>>> with.
>>>>>>>>>>>>>  - Both the API Key and Secret Key for an account. This
>>>>>> should
>>>>>>>>>> have
>>>>>>>>>>>> been
>>>>>>>>>>>>>  generated by the administrator of the cloud instance and
>>>>>>> given
>>>>>>>> to
>>>>>>>>>>> you.
>>>>>>>>>>>>>  - Familiarity with HTTP GET/POST and query strings.
>>>>>>>>>>>>>  - Knowledge of either XML or JSON.
>>>>>>>>>>>>>  - Knowledge of a programming language that can generate
>>>>>> HTTP
>>>>>>>>>>> requests;
>>>>>>>>>>>>>  for example, Java or PHP.
>>>>>>>>>>>>> 
>>>>>>>>>>>>> 
>>>>>>>>>>>>> I'm not sure how to generate the API Key and Secret Key for
>>>>> an
>>>>>>>>>> account.
>>>>>>>>>>>>> Can someone point me to instructions for this?
>>>>>>>>>>>>> 
>>>>>>>>>>>>> Thanks!
>>>>>>>>>>>>> 
>>>>>>>>>>>> 
>>>>>>>>>>>> 
>>>>>>>>>>>> 
>>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>> 
>>>>>>> 
>>>>>> 
>>>>> 
>>> http://incubator.apache.org/cloudstack/docs/api/apidocs-4.0.0/root_admin/registerUserKeys.html
>>>>>>>>>>>> Please file a bug for the DevGuide documentation not being
>>>>> clear
>>>>>>> on
>>>>>>>>>> this
>>>>>>>>>>>> issue
>>>>>>>>>>>> 
>>>>>>>>>>>> -David
>>>>>>>>>>>> 
>>>>>>>>>>> 
>>>>>>>>>>> 
>>>>>>>>>>> 
>>>>>>>>>>> --
>>>>>>>>>>> *Mike Tutkowski*
>>>>>>>>>>> *Senior CloudStack Developer, SolidFire Inc.*
>>>>>>>>>>> e: mike.tutkowski@solidfire.com
>>>>>>>>>>> o: 303.746.7302
>>>>>>>>>>> Advancing the way the world uses the
>>>>>>>>>>> cloud<http://solidfire.com/solution/overview/?video=play>
>>>>>>>>>>> *™*
>>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> --
>>>>>>>>> *Mike Tutkowski*
>>>>>>>>> *Senior CloudStack Developer, SolidFire Inc.*
>>>>>>>>> e: mike.tutkowski@solidfire.com
>>>>>>>>> o: 303.746.7302
>>>>>>>>> Advancing the way the world uses the cloud<
>>>>>>>> http://solidfire.com/solution/overview/?video=play>
>>>>>>>>> *™*
>>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> --
>>>>>>>> *Mike Tutkowski*
>>>>>>>> *Senior CloudStack Developer, SolidFire Inc.*
>>>>>>>> e: mike.tutkowski@solidfire.com
>>>>>>>> o: 303.746.7302
>>>>>>>> Advancing the way the world uses the
>>>>>>>> cloud<http://solidfire.com/solution/overview/?video=play>
>>>>>>>> *™*
>>>>>>>> 
>>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> --
>>>>>> *Mike Tutkowski*
>>>>>> *Senior CloudStack Developer, SolidFire Inc.*
>>>>>> e: mike.tutkowski@solidfire.com
>>>>>> o: 303.746.7302
>>>>>> Advancing the way the world uses the
>>>>>> cloud<http://solidfire.com/solution/overview/?video=play>
>>>>>> *™*
>>>>>> 
>>>>> 
>>>> 
>>>> 
>>>> 
>>>> --
>>>> *Mike Tutkowski*
>>>> *Senior CloudStack Developer, SolidFire Inc.*
>>>> e: mike.tutkowski@solidfire.com
>>>> o: 303.746.7302
>>>> Advancing the way the world uses the
>>>> cloud<http://solidfire.com/solution/overview/?video=play>
>>>> *™*
>>> 
>>> 
>> 
>> 
>> --
>> *Mike Tutkowski*
>> *Senior CloudStack Developer, SolidFire Inc.*
>> e: mike.tutkowski@solidfire.com
>> o: 303.746.7302
>> Advancing the way the world uses the cloud<http://solidfire.com/solution/overview/?video=play>
>> *™*
>> 
> 
> 
> 
> -- 
> *Mike Tutkowski*
> *Senior CloudStack Developer, SolidFire Inc.*
> e: mike.tutkowski@solidfire.com
> o: 303.746.7302
> Advancing the way the world uses the
> cloud<http://solidfire.com/solution/overview/?video=play>
> *™*

--
George Reese - Chief Technology Officer, enStratus
e: george.reese@enstratus.com    Skype: nspollution    t: @GeorgeReese    p: +1.207.956.0217
enStratus: Enterprise Cloud Management - @enStratus - http://www.enstratus.com



Re: CloudStack API Question

Posted by Mike Tutkowski <mi...@solidfire.com>.
So, my next API question.  :)

I am getting a 401 with the following Java code.  A 401 is authentication
related, but I'm not sure if I need to provide a username and password
because I didn't see that in the example on the web that I'm following.

Any thoughts?

Thanks!

  final String strHost = "127.0.0.1:8080/";

   final String strFinalUrl = "http://" + strHost + strApiUrl +
"&apiKey="+ strApiKey +
"&signature=" + strEncodedSignature;

   System.out.println(strFinalUrl);

   final HttpClient client = new DefaultHttpClient();

 final HttpResponse response = client.execute(new HttpGet(strFinalUrl));

   if (response.getStatusLine().getStatusCode() != 200)

 {

  throw new RuntimeException("Failed on CloudStack deployVirtualMachine API
call : HTTP error code : " + response.getStatusLine().getStatusCode());

 }

The URL I'm printing looks like this:


http://127.0.0.1:8080/client/api?command=deployVirtualMachine&serviceOfferingId=1&diskOfferingId=1&templateId=1&zoneId=1&apiKey=X0U60K_Qgodb6nL5csNcAzRiz2cKiwx-tjBj1dTMLSVxkdmD0QtUhFzDf3MCmwGnC3z2dQPo0j3x_XJYmoEBmg&signature=CJvLoJ%2ByvUM12OUNb9hxyD1Gsjw%3D



On Wed, Feb 13, 2013 at 12:06 PM, Mike Tutkowski <
mike.tutkowski@solidfire.com> wrote:

> Thanks, David - that was very useful info. :)
>
> I'm not completely up to speed yet on what CloudStack considers a domain
> versus an account versus a user, but I found this page and am going through
> it now:
>
> http://wiki.cloudstack.org/pages/viewpage.action?pageId=8224884
>
>
> On Wed, Feb 13, 2013 at 11:21 AM, David Grizzanti <
> david.grizzanti@sungard.com> wrote:
>
>> Mike,
>>
>> In the UI if you go to "Accounts" in the left hand sidebar -> click the
>> name of an account (i.e. "admin") -> under Details click "View Users" ->
>> click the Username of the user in question (i.e. "admin") and the API and
>> Secrety Key should be listed under the Details there.
>>
>> Hope that helps!
>>
>> --
>> David Grizzanti
>> Software Engineer - SunGard Availability Services
>> 401 N. Broad Street, Philadelphia, PA 19108
>> o: 215-446-1431 - e: david.grizzanti@sungard.com
>>
>> On Feb 13, 2013, at 12:44 PM, Mike Tutkowski wrote:
>>
>> > OK, just getting around to doing this now.
>> >
>> > It looks like the Generate Keys command worked (I didn't get an error
>> > message), but I'm not sure where to look in the GUI to find these keys.
>> >
>> > Would you mind pointing that out for me?
>> >
>> > Thanks!!
>> >
>> >
>> > On Tue, Feb 12, 2013 at 9:07 PM, Will Stevens <ws...@cloudops.com>
>> wrote:
>> >
>> >> If its a fresh install, you will access the client at:
>> >> the.machines.ip:8080/client/
>> >> Login with username/password of: admin/password
>> >> Click: Accounts -> admin -> View Users -> admin -> (in the main window
>> >> there are 3 buttons at the top left of the screen, mouse over the right
>> >> most one of the 3 and it should say 'Generate Keys', click that)
>> >>
>> >> You can follow that same process for any user who has an account.
>> >>
>> >>
>> >>
>> >>
>> >>
>> >> On Tue, Feb 12, 2013 at 10:26 PM, Mike Tutkowski <
>> >> mike.tutkowski@solidfire.com> wrote:
>> >>
>> >>> Can you point me to the location in the GUI where I can generate keys?
>> >>>
>> >>> Thanks!
>> >>>
>> >>>
>> >>> On Tue, Feb 12, 2013 at 4:17 PM, Will Stevens <ws...@cloudops.com>
>> >>> wrote:
>> >>>
>> >>>> They do not expire, but in the UI you can regenerate the keys, so in
>> >> that
>> >>>> case they would change.
>> >>>>
>> >>>>
>> >>>> On Tue, Feb 12, 2013 at 6:13 PM, Mike Tutkowski <
>> >>>> mike.tutkowski@solidfire.com> wrote:
>> >>>>
>> >>>>> to "say" (I mean) :)
>> >>>>>
>> >>>>>
>> >>>>> On Tue, Feb 12, 2013 at 4:13 PM, Mike Tutkowski <
>> >>>>> mike.tutkowski@solidfire.com> wrote:
>> >>>>>
>> >>>>>> Sounds good...and these do not expire?  Is that accurate to day?
>> >>>>>>
>> >>>>>>
>> >>>>>> On Tue, Feb 12, 2013 at 4:03 PM, Will Stevens <
>> >> wstevens@cloudops.com
>> >>>>>> wrote:
>> >>>>>>
>> >>>>>>> Every role uses the same procedure.  They all need an api key and
>> >>>> secret
>> >>>>>>> key.
>> >>>>>>>
>> >>>>>>>
>> >>>>>>> On Tue, Feb 12, 2013 at 5:54 PM, Mike Tutkowski <
>> >>>>>>> mike.tutkowski@solidfire.com> wrote:
>> >>>>>>>
>> >>>>>>>> Thanks for the info.
>> >>>>>>>>
>> >>>>>>>> So, I see we have three roles in CloudStack:  Root Admin, Domain
>> >>>>> Admin,
>> >>>>>>> and
>> >>>>>>>> User.
>> >>>>>>>>
>> >>>>>>>> When submitting API commands, does the submitter - regardless of
>> >>>> role
>> >>>>> -
>> >>>>>>>> have to provide an API Key and Secret Key (or is that something,
>> >>>> say,
>> >>>>>>> the
>> >>>>>>>> Root Admin doesn't have to do)?
>> >>>>>>>>
>> >>>>>>>> Thanks!
>> >>>>>>>>
>> >>>>>>>>
>> >>>>>>>> On Tue, Feb 12, 2013 at 3:33 PM, David Nalley <da...@gnsa.us>
>> >>>> wrote:
>> >>>>>>>>
>> >>>>>>>>> On Tue, Feb 12, 2013 at 5:27 PM, Mike Tutkowski
>> >>>>>>>>> <mi...@solidfire.com> wrote:
>> >>>>>>>>>> So, I'm looking at these comments now:
>> >>>>>>>>>>
>> >>>>>>>>>> 2.3. Getting Started
>> >>>>>>>>>> To get started using the CloudStack API, you should have the
>> >>>>>>> following:
>> >>>>>>>>>>
>> >>>>>>>>>>   - URL of the CloudStack server you wish to integrate
>> >> with.
>> >>>>>>>>>>   - Both the API Key and Secret Key for an account. This
>> >>> should
>> >>>>>>> have
>> >>>>>>>>> been
>> >>>>>>>>>>   generated by the administrator of the cloud instance and
>> >>>> given
>> >>>>> to
>> >>>>>>>> you.
>> >>>>>>>>>>   - Familiarity with HTTP GET/POST and query strings.
>> >>>>>>>>>>   - Knowledge of either XML or JSON.
>> >>>>>>>>>>   - Knowledge of a programming language that can generate
>> >>> HTTP
>> >>>>>>>> requests;
>> >>>>>>>>>>   for example, Java or PHP.
>> >>>>>>>>>>
>> >>>>>>>>>>
>> >>>>>>>>>> I'm not sure how to generate the API Key and Secret Key for
>> >> an
>> >>>>>>> account.
>> >>>>>>>>>> Can someone point me to instructions for this?
>> >>>>>>>>>>
>> >>>>>>>>>> Thanks!
>> >>>>>>>>>>
>> >>>>>>>>>
>> >>>>>>>>>
>> >>>>>>>>>
>> >>>>>>>>
>> >>>>>>>
>> >>>>>
>> >>>>
>> >>>
>> >>
>> http://incubator.apache.org/cloudstack/docs/api/apidocs-4.0.0/root_admin/registerUserKeys.html
>> >>>>>>>>> Please file a bug for the DevGuide documentation not being
>> >> clear
>> >>>> on
>> >>>>>>> this
>> >>>>>>>>> issue
>> >>>>>>>>>
>> >>>>>>>>> -David
>> >>>>>>>>>
>> >>>>>>>>
>> >>>>>>>>
>> >>>>>>>>
>> >>>>>>>> --
>> >>>>>>>> *Mike Tutkowski*
>> >>>>>>>> *Senior CloudStack Developer, SolidFire Inc.*
>> >>>>>>>> e: mike.tutkowski@solidfire.com
>> >>>>>>>> o: 303.746.7302
>> >>>>>>>> Advancing the way the world uses the
>> >>>>>>>> cloud<http://solidfire.com/solution/overview/?video=play>
>> >>>>>>>> *™*
>> >>>>>>>>
>> >>>>>>>
>> >>>>>>
>> >>>>>>
>> >>>>>>
>> >>>>>> --
>> >>>>>> *Mike Tutkowski*
>> >>>>>> *Senior CloudStack Developer, SolidFire Inc.*
>> >>>>>> e: mike.tutkowski@solidfire.com
>> >>>>>> o: 303.746.7302
>> >>>>>> Advancing the way the world uses the cloud<
>> >>>>> http://solidfire.com/solution/overview/?video=play>
>> >>>>>> *™*
>> >>>>>>
>> >>>>>
>> >>>>>
>> >>>>>
>> >>>>> --
>> >>>>> *Mike Tutkowski*
>> >>>>> *Senior CloudStack Developer, SolidFire Inc.*
>> >>>>> e: mike.tutkowski@solidfire.com
>> >>>>> o: 303.746.7302
>> >>>>> Advancing the way the world uses the
>> >>>>> cloud<http://solidfire.com/solution/overview/?video=play>
>> >>>>> *™*
>> >>>>>
>> >>>>
>> >>>
>> >>>
>> >>>
>> >>> --
>> >>> *Mike Tutkowski*
>> >>> *Senior CloudStack Developer, SolidFire Inc.*
>> >>> e: mike.tutkowski@solidfire.com
>> >>> o: 303.746.7302
>> >>> Advancing the way the world uses the
>> >>> cloud<http://solidfire.com/solution/overview/?video=play>
>> >>> *™*
>> >>>
>> >>
>> >
>> >
>> >
>> > --
>> > *Mike Tutkowski*
>> > *Senior CloudStack Developer, SolidFire Inc.*
>> > e: mike.tutkowski@solidfire.com
>> > o: 303.746.7302
>> > Advancing the way the world uses the
>> > cloud<http://solidfire.com/solution/overview/?video=play>
>> > *™*
>>
>>
>
>
> --
> *Mike Tutkowski*
> *Senior CloudStack Developer, SolidFire Inc.*
> e: mike.tutkowski@solidfire.com
> o: 303.746.7302
> Advancing the way the world uses the cloud<http://solidfire.com/solution/overview/?video=play>
> *™*
>



-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkowski@solidfire.com
o: 303.746.7302
Advancing the way the world uses the
cloud<http://solidfire.com/solution/overview/?video=play>
*™*

Re: CloudStack API Question

Posted by Mike Tutkowski <mi...@solidfire.com>.
Thanks, David - that was very useful info. :)

I'm not completely up to speed yet on what CloudStack considers a domain
versus an account versus a user, but I found this page and am going through
it now:

http://wiki.cloudstack.org/pages/viewpage.action?pageId=8224884


On Wed, Feb 13, 2013 at 11:21 AM, David Grizzanti <
david.grizzanti@sungard.com> wrote:

> Mike,
>
> In the UI if you go to "Accounts" in the left hand sidebar -> click the
> name of an account (i.e. "admin") -> under Details click "View Users" ->
> click the Username of the user in question (i.e. "admin") and the API and
> Secrety Key should be listed under the Details there.
>
> Hope that helps!
>
> --
> David Grizzanti
> Software Engineer - SunGard Availability Services
> 401 N. Broad Street, Philadelphia, PA 19108
> o: 215-446-1431 - e: david.grizzanti@sungard.com
>
> On Feb 13, 2013, at 12:44 PM, Mike Tutkowski wrote:
>
> > OK, just getting around to doing this now.
> >
> > It looks like the Generate Keys command worked (I didn't get an error
> > message), but I'm not sure where to look in the GUI to find these keys.
> >
> > Would you mind pointing that out for me?
> >
> > Thanks!!
> >
> >
> > On Tue, Feb 12, 2013 at 9:07 PM, Will Stevens <ws...@cloudops.com>
> wrote:
> >
> >> If its a fresh install, you will access the client at:
> >> the.machines.ip:8080/client/
> >> Login with username/password of: admin/password
> >> Click: Accounts -> admin -> View Users -> admin -> (in the main window
> >> there are 3 buttons at the top left of the screen, mouse over the right
> >> most one of the 3 and it should say 'Generate Keys', click that)
> >>
> >> You can follow that same process for any user who has an account.
> >>
> >>
> >>
> >>
> >>
> >> On Tue, Feb 12, 2013 at 10:26 PM, Mike Tutkowski <
> >> mike.tutkowski@solidfire.com> wrote:
> >>
> >>> Can you point me to the location in the GUI where I can generate keys?
> >>>
> >>> Thanks!
> >>>
> >>>
> >>> On Tue, Feb 12, 2013 at 4:17 PM, Will Stevens <ws...@cloudops.com>
> >>> wrote:
> >>>
> >>>> They do not expire, but in the UI you can regenerate the keys, so in
> >> that
> >>>> case they would change.
> >>>>
> >>>>
> >>>> On Tue, Feb 12, 2013 at 6:13 PM, Mike Tutkowski <
> >>>> mike.tutkowski@solidfire.com> wrote:
> >>>>
> >>>>> to "say" (I mean) :)
> >>>>>
> >>>>>
> >>>>> On Tue, Feb 12, 2013 at 4:13 PM, Mike Tutkowski <
> >>>>> mike.tutkowski@solidfire.com> wrote:
> >>>>>
> >>>>>> Sounds good...and these do not expire?  Is that accurate to day?
> >>>>>>
> >>>>>>
> >>>>>> On Tue, Feb 12, 2013 at 4:03 PM, Will Stevens <
> >> wstevens@cloudops.com
> >>>>>> wrote:
> >>>>>>
> >>>>>>> Every role uses the same procedure.  They all need an api key and
> >>>> secret
> >>>>>>> key.
> >>>>>>>
> >>>>>>>
> >>>>>>> On Tue, Feb 12, 2013 at 5:54 PM, Mike Tutkowski <
> >>>>>>> mike.tutkowski@solidfire.com> wrote:
> >>>>>>>
> >>>>>>>> Thanks for the info.
> >>>>>>>>
> >>>>>>>> So, I see we have three roles in CloudStack:  Root Admin, Domain
> >>>>> Admin,
> >>>>>>> and
> >>>>>>>> User.
> >>>>>>>>
> >>>>>>>> When submitting API commands, does the submitter - regardless of
> >>>> role
> >>>>> -
> >>>>>>>> have to provide an API Key and Secret Key (or is that something,
> >>>> say,
> >>>>>>> the
> >>>>>>>> Root Admin doesn't have to do)?
> >>>>>>>>
> >>>>>>>> Thanks!
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> On Tue, Feb 12, 2013 at 3:33 PM, David Nalley <da...@gnsa.us>
> >>>> wrote:
> >>>>>>>>
> >>>>>>>>> On Tue, Feb 12, 2013 at 5:27 PM, Mike Tutkowski
> >>>>>>>>> <mi...@solidfire.com> wrote:
> >>>>>>>>>> So, I'm looking at these comments now:
> >>>>>>>>>>
> >>>>>>>>>> 2.3. Getting Started
> >>>>>>>>>> To get started using the CloudStack API, you should have the
> >>>>>>> following:
> >>>>>>>>>>
> >>>>>>>>>>   - URL of the CloudStack server you wish to integrate
> >> with.
> >>>>>>>>>>   - Both the API Key and Secret Key for an account. This
> >>> should
> >>>>>>> have
> >>>>>>>>> been
> >>>>>>>>>>   generated by the administrator of the cloud instance and
> >>>> given
> >>>>> to
> >>>>>>>> you.
> >>>>>>>>>>   - Familiarity with HTTP GET/POST and query strings.
> >>>>>>>>>>   - Knowledge of either XML or JSON.
> >>>>>>>>>>   - Knowledge of a programming language that can generate
> >>> HTTP
> >>>>>>>> requests;
> >>>>>>>>>>   for example, Java or PHP.
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>> I'm not sure how to generate the API Key and Secret Key for
> >> an
> >>>>>>> account.
> >>>>>>>>>> Can someone point me to instructions for this?
> >>>>>>>>>>
> >>>>>>>>>> Thanks!
> >>>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>
> >>>>>>>
> >>>>>
> >>>>
> >>>
> >>
> http://incubator.apache.org/cloudstack/docs/api/apidocs-4.0.0/root_admin/registerUserKeys.html
> >>>>>>>>> Please file a bug for the DevGuide documentation not being
> >> clear
> >>>> on
> >>>>>>> this
> >>>>>>>>> issue
> >>>>>>>>>
> >>>>>>>>> -David
> >>>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> --
> >>>>>>>> *Mike Tutkowski*
> >>>>>>>> *Senior CloudStack Developer, SolidFire Inc.*
> >>>>>>>> e: mike.tutkowski@solidfire.com
> >>>>>>>> o: 303.746.7302
> >>>>>>>> Advancing the way the world uses the
> >>>>>>>> cloud<http://solidfire.com/solution/overview/?video=play>
> >>>>>>>> *™*
> >>>>>>>>
> >>>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>> --
> >>>>>> *Mike Tutkowski*
> >>>>>> *Senior CloudStack Developer, SolidFire Inc.*
> >>>>>> e: mike.tutkowski@solidfire.com
> >>>>>> o: 303.746.7302
> >>>>>> Advancing the way the world uses the cloud<
> >>>>> http://solidfire.com/solution/overview/?video=play>
> >>>>>> *™*
> >>>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>> --
> >>>>> *Mike Tutkowski*
> >>>>> *Senior CloudStack Developer, SolidFire Inc.*
> >>>>> e: mike.tutkowski@solidfire.com
> >>>>> o: 303.746.7302
> >>>>> Advancing the way the world uses the
> >>>>> cloud<http://solidfire.com/solution/overview/?video=play>
> >>>>> *™*
> >>>>>
> >>>>
> >>>
> >>>
> >>>
> >>> --
> >>> *Mike Tutkowski*
> >>> *Senior CloudStack Developer, SolidFire Inc.*
> >>> e: mike.tutkowski@solidfire.com
> >>> o: 303.746.7302
> >>> Advancing the way the world uses the
> >>> cloud<http://solidfire.com/solution/overview/?video=play>
> >>> *™*
> >>>
> >>
> >
> >
> >
> > --
> > *Mike Tutkowski*
> > *Senior CloudStack Developer, SolidFire Inc.*
> > e: mike.tutkowski@solidfire.com
> > o: 303.746.7302
> > Advancing the way the world uses the
> > cloud<http://solidfire.com/solution/overview/?video=play>
> > *™*
>
>


-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkowski@solidfire.com
o: 303.746.7302
Advancing the way the world uses the
cloud<http://solidfire.com/solution/overview/?video=play>
*™*

Re: CloudStack API Question

Posted by David Grizzanti <da...@sungard.com>.
Mike,

In the UI if you go to "Accounts" in the left hand sidebar -> click the name of an account (i.e. "admin") -> under Details click "View Users" -> click the Username of the user in question (i.e. "admin") and the API and Secrety Key should be listed under the Details there.

Hope that helps!

-- 
David Grizzanti
Software Engineer - SunGard Availability Services
401 N. Broad Street, Philadelphia, PA 19108
o: 215-446-1431 - e: david.grizzanti@sungard.com

On Feb 13, 2013, at 12:44 PM, Mike Tutkowski wrote:

> OK, just getting around to doing this now.
> 
> It looks like the Generate Keys command worked (I didn't get an error
> message), but I'm not sure where to look in the GUI to find these keys.
> 
> Would you mind pointing that out for me?
> 
> Thanks!!
> 
> 
> On Tue, Feb 12, 2013 at 9:07 PM, Will Stevens <ws...@cloudops.com> wrote:
> 
>> If its a fresh install, you will access the client at:
>> the.machines.ip:8080/client/
>> Login with username/password of: admin/password
>> Click: Accounts -> admin -> View Users -> admin -> (in the main window
>> there are 3 buttons at the top left of the screen, mouse over the right
>> most one of the 3 and it should say 'Generate Keys', click that)
>> 
>> You can follow that same process for any user who has an account.
>> 
>> 
>> 
>> 
>> 
>> On Tue, Feb 12, 2013 at 10:26 PM, Mike Tutkowski <
>> mike.tutkowski@solidfire.com> wrote:
>> 
>>> Can you point me to the location in the GUI where I can generate keys?
>>> 
>>> Thanks!
>>> 
>>> 
>>> On Tue, Feb 12, 2013 at 4:17 PM, Will Stevens <ws...@cloudops.com>
>>> wrote:
>>> 
>>>> They do not expire, but in the UI you can regenerate the keys, so in
>> that
>>>> case they would change.
>>>> 
>>>> 
>>>> On Tue, Feb 12, 2013 at 6:13 PM, Mike Tutkowski <
>>>> mike.tutkowski@solidfire.com> wrote:
>>>> 
>>>>> to "say" (I mean) :)
>>>>> 
>>>>> 
>>>>> On Tue, Feb 12, 2013 at 4:13 PM, Mike Tutkowski <
>>>>> mike.tutkowski@solidfire.com> wrote:
>>>>> 
>>>>>> Sounds good...and these do not expire?  Is that accurate to day?
>>>>>> 
>>>>>> 
>>>>>> On Tue, Feb 12, 2013 at 4:03 PM, Will Stevens <
>> wstevens@cloudops.com
>>>>>> wrote:
>>>>>> 
>>>>>>> Every role uses the same procedure.  They all need an api key and
>>>> secret
>>>>>>> key.
>>>>>>> 
>>>>>>> 
>>>>>>> On Tue, Feb 12, 2013 at 5:54 PM, Mike Tutkowski <
>>>>>>> mike.tutkowski@solidfire.com> wrote:
>>>>>>> 
>>>>>>>> Thanks for the info.
>>>>>>>> 
>>>>>>>> So, I see we have three roles in CloudStack:  Root Admin, Domain
>>>>> Admin,
>>>>>>> and
>>>>>>>> User.
>>>>>>>> 
>>>>>>>> When submitting API commands, does the submitter - regardless of
>>>> role
>>>>> -
>>>>>>>> have to provide an API Key and Secret Key (or is that something,
>>>> say,
>>>>>>> the
>>>>>>>> Root Admin doesn't have to do)?
>>>>>>>> 
>>>>>>>> Thanks!
>>>>>>>> 
>>>>>>>> 
>>>>>>>> On Tue, Feb 12, 2013 at 3:33 PM, David Nalley <da...@gnsa.us>
>>>> wrote:
>>>>>>>> 
>>>>>>>>> On Tue, Feb 12, 2013 at 5:27 PM, Mike Tutkowski
>>>>>>>>> <mi...@solidfire.com> wrote:
>>>>>>>>>> So, I'm looking at these comments now:
>>>>>>>>>> 
>>>>>>>>>> 2.3. Getting Started
>>>>>>>>>> To get started using the CloudStack API, you should have the
>>>>>>> following:
>>>>>>>>>> 
>>>>>>>>>>   - URL of the CloudStack server you wish to integrate
>> with.
>>>>>>>>>>   - Both the API Key and Secret Key for an account. This
>>> should
>>>>>>> have
>>>>>>>>> been
>>>>>>>>>>   generated by the administrator of the cloud instance and
>>>> given
>>>>> to
>>>>>>>> you.
>>>>>>>>>>   - Familiarity with HTTP GET/POST and query strings.
>>>>>>>>>>   - Knowledge of either XML or JSON.
>>>>>>>>>>   - Knowledge of a programming language that can generate
>>> HTTP
>>>>>>>> requests;
>>>>>>>>>>   for example, Java or PHP.
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> I'm not sure how to generate the API Key and Secret Key for
>> an
>>>>>>> account.
>>>>>>>>>> Can someone point me to instructions for this?
>>>>>>>>>> 
>>>>>>>>>> Thanks!
>>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>> 
>>>>>>> 
>>>>> 
>>>> 
>>> 
>> http://incubator.apache.org/cloudstack/docs/api/apidocs-4.0.0/root_admin/registerUserKeys.html
>>>>>>>>> Please file a bug for the DevGuide documentation not being
>> clear
>>>> on
>>>>>>> this
>>>>>>>>> issue
>>>>>>>>> 
>>>>>>>>> -David
>>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> --
>>>>>>>> *Mike Tutkowski*
>>>>>>>> *Senior CloudStack Developer, SolidFire Inc.*
>>>>>>>> e: mike.tutkowski@solidfire.com
>>>>>>>> o: 303.746.7302
>>>>>>>> Advancing the way the world uses the
>>>>>>>> cloud<http://solidfire.com/solution/overview/?video=play>
>>>>>>>> *™*
>>>>>>>> 
>>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> --
>>>>>> *Mike Tutkowski*
>>>>>> *Senior CloudStack Developer, SolidFire Inc.*
>>>>>> e: mike.tutkowski@solidfire.com
>>>>>> o: 303.746.7302
>>>>>> Advancing the way the world uses the cloud<
>>>>> http://solidfire.com/solution/overview/?video=play>
>>>>>> *™*
>>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> --
>>>>> *Mike Tutkowski*
>>>>> *Senior CloudStack Developer, SolidFire Inc.*
>>>>> e: mike.tutkowski@solidfire.com
>>>>> o: 303.746.7302
>>>>> Advancing the way the world uses the
>>>>> cloud<http://solidfire.com/solution/overview/?video=play>
>>>>> *™*
>>>>> 
>>>> 
>>> 
>>> 
>>> 
>>> --
>>> *Mike Tutkowski*
>>> *Senior CloudStack Developer, SolidFire Inc.*
>>> e: mike.tutkowski@solidfire.com
>>> o: 303.746.7302
>>> Advancing the way the world uses the
>>> cloud<http://solidfire.com/solution/overview/?video=play>
>>> *™*
>>> 
>> 
> 
> 
> 
> -- 
> *Mike Tutkowski*
> *Senior CloudStack Developer, SolidFire Inc.*
> e: mike.tutkowski@solidfire.com
> o: 303.746.7302
> Advancing the way the world uses the
> cloud<http://solidfire.com/solution/overview/?video=play>
> *™*


Re: CloudStack API Question

Posted by Mike Tutkowski <mi...@solidfire.com>.
OK, just getting around to doing this now.

It looks like the Generate Keys command worked (I didn't get an error
message), but I'm not sure where to look in the GUI to find these keys.

Would you mind pointing that out for me?

Thanks!!


On Tue, Feb 12, 2013 at 9:07 PM, Will Stevens <ws...@cloudops.com> wrote:

> If its a fresh install, you will access the client at:
> the.machines.ip:8080/client/
> Login with username/password of: admin/password
> Click: Accounts -> admin -> View Users -> admin -> (in the main window
> there are 3 buttons at the top left of the screen, mouse over the right
> most one of the 3 and it should say 'Generate Keys', click that)
>
> You can follow that same process for any user who has an account.
>
>
>
>
>
> On Tue, Feb 12, 2013 at 10:26 PM, Mike Tutkowski <
> mike.tutkowski@solidfire.com> wrote:
>
> > Can you point me to the location in the GUI where I can generate keys?
> >
> > Thanks!
> >
> >
> > On Tue, Feb 12, 2013 at 4:17 PM, Will Stevens <ws...@cloudops.com>
> > wrote:
> >
> > > They do not expire, but in the UI you can regenerate the keys, so in
> that
> > > case they would change.
> > >
> > >
> > > On Tue, Feb 12, 2013 at 6:13 PM, Mike Tutkowski <
> > > mike.tutkowski@solidfire.com> wrote:
> > >
> > > > to "say" (I mean) :)
> > > >
> > > >
> > > > On Tue, Feb 12, 2013 at 4:13 PM, Mike Tutkowski <
> > > > mike.tutkowski@solidfire.com> wrote:
> > > >
> > > > > Sounds good...and these do not expire?  Is that accurate to day?
> > > > >
> > > > >
> > > > > On Tue, Feb 12, 2013 at 4:03 PM, Will Stevens <
> wstevens@cloudops.com
> > > > >wrote:
> > > > >
> > > > >> Every role uses the same procedure.  They all need an api key and
> > > secret
> > > > >> key.
> > > > >>
> > > > >>
> > > > >> On Tue, Feb 12, 2013 at 5:54 PM, Mike Tutkowski <
> > > > >> mike.tutkowski@solidfire.com> wrote:
> > > > >>
> > > > >> > Thanks for the info.
> > > > >> >
> > > > >> > So, I see we have three roles in CloudStack:  Root Admin, Domain
> > > > Admin,
> > > > >> and
> > > > >> > User.
> > > > >> >
> > > > >> > When submitting API commands, does the submitter - regardless of
> > > role
> > > > -
> > > > >> > have to provide an API Key and Secret Key (or is that something,
> > > say,
> > > > >> the
> > > > >> > Root Admin doesn't have to do)?
> > > > >> >
> > > > >> > Thanks!
> > > > >> >
> > > > >> >
> > > > >> > On Tue, Feb 12, 2013 at 3:33 PM, David Nalley <da...@gnsa.us>
> > > wrote:
> > > > >> >
> > > > >> > > On Tue, Feb 12, 2013 at 5:27 PM, Mike Tutkowski
> > > > >> > > <mi...@solidfire.com> wrote:
> > > > >> > > > So, I'm looking at these comments now:
> > > > >> > > >
> > > > >> > > > 2.3. Getting Started
> > > > >> > > > To get started using the CloudStack API, you should have the
> > > > >> following:
> > > > >> > > >
> > > > >> > > >    - URL of the CloudStack server you wish to integrate
> with.
> > > > >> > > >    - Both the API Key and Secret Key for an account. This
> > should
> > > > >> have
> > > > >> > > been
> > > > >> > > >    generated by the administrator of the cloud instance and
> > > given
> > > > to
> > > > >> > you.
> > > > >> > > >    - Familiarity with HTTP GET/POST and query strings.
> > > > >> > > >    - Knowledge of either XML or JSON.
> > > > >> > > >    - Knowledge of a programming language that can generate
> > HTTP
> > > > >> > requests;
> > > > >> > > >    for example, Java or PHP.
> > > > >> > > >
> > > > >> > > >
> > > > >> > > > I'm not sure how to generate the API Key and Secret Key for
> an
> > > > >> account.
> > > > >> > > >  Can someone point me to instructions for this?
> > > > >> > > >
> > > > >> > > > Thanks!
> > > > >> > > >
> > > > >> > >
> > > > >> > >
> > > > >> > >
> > > > >> >
> > > > >>
> > > >
> > >
> >
> http://incubator.apache.org/cloudstack/docs/api/apidocs-4.0.0/root_admin/registerUserKeys.html
> > > > >> > > Please file a bug for the DevGuide documentation not being
> clear
> > > on
> > > > >> this
> > > > >> > > issue
> > > > >> > >
> > > > >> > > -David
> > > > >> > >
> > > > >> >
> > > > >> >
> > > > >> >
> > > > >> > --
> > > > >> > *Mike Tutkowski*
> > > > >> > *Senior CloudStack Developer, SolidFire Inc.*
> > > > >> > e: mike.tutkowski@solidfire.com
> > > > >> > o: 303.746.7302
> > > > >> > Advancing the way the world uses the
> > > > >> > cloud<http://solidfire.com/solution/overview/?video=play>
> > > > >> > *™*
> > > > >> >
> > > > >>
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > *Mike Tutkowski*
> > > > > *Senior CloudStack Developer, SolidFire Inc.*
> > > > > e: mike.tutkowski@solidfire.com
> > > > > o: 303.746.7302
> > > > > Advancing the way the world uses the cloud<
> > > > http://solidfire.com/solution/overview/?video=play>
> > > > > *™*
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > *Mike Tutkowski*
> > > > *Senior CloudStack Developer, SolidFire Inc.*
> > > > e: mike.tutkowski@solidfire.com
> > > > o: 303.746.7302
> > > > Advancing the way the world uses the
> > > > cloud<http://solidfire.com/solution/overview/?video=play>
> > > > *™*
> > > >
> > >
> >
> >
> >
> > --
> > *Mike Tutkowski*
> > *Senior CloudStack Developer, SolidFire Inc.*
> > e: mike.tutkowski@solidfire.com
> > o: 303.746.7302
> > Advancing the way the world uses the
> > cloud<http://solidfire.com/solution/overview/?video=play>
> > *™*
> >
>



-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkowski@solidfire.com
o: 303.746.7302
Advancing the way the world uses the
cloud<http://solidfire.com/solution/overview/?video=play>
*™*

Re: CloudStack API Question

Posted by Will Stevens <ws...@cloudops.com>.
If its a fresh install, you will access the client at:
the.machines.ip:8080/client/
Login with username/password of: admin/password
Click: Accounts -> admin -> View Users -> admin -> (in the main window
there are 3 buttons at the top left of the screen, mouse over the right
most one of the 3 and it should say 'Generate Keys', click that)

You can follow that same process for any user who has an account.





On Tue, Feb 12, 2013 at 10:26 PM, Mike Tutkowski <
mike.tutkowski@solidfire.com> wrote:

> Can you point me to the location in the GUI where I can generate keys?
>
> Thanks!
>
>
> On Tue, Feb 12, 2013 at 4:17 PM, Will Stevens <ws...@cloudops.com>
> wrote:
>
> > They do not expire, but in the UI you can regenerate the keys, so in that
> > case they would change.
> >
> >
> > On Tue, Feb 12, 2013 at 6:13 PM, Mike Tutkowski <
> > mike.tutkowski@solidfire.com> wrote:
> >
> > > to "say" (I mean) :)
> > >
> > >
> > > On Tue, Feb 12, 2013 at 4:13 PM, Mike Tutkowski <
> > > mike.tutkowski@solidfire.com> wrote:
> > >
> > > > Sounds good...and these do not expire?  Is that accurate to day?
> > > >
> > > >
> > > > On Tue, Feb 12, 2013 at 4:03 PM, Will Stevens <wstevens@cloudops.com
> > > >wrote:
> > > >
> > > >> Every role uses the same procedure.  They all need an api key and
> > secret
> > > >> key.
> > > >>
> > > >>
> > > >> On Tue, Feb 12, 2013 at 5:54 PM, Mike Tutkowski <
> > > >> mike.tutkowski@solidfire.com> wrote:
> > > >>
> > > >> > Thanks for the info.
> > > >> >
> > > >> > So, I see we have three roles in CloudStack:  Root Admin, Domain
> > > Admin,
> > > >> and
> > > >> > User.
> > > >> >
> > > >> > When submitting API commands, does the submitter - regardless of
> > role
> > > -
> > > >> > have to provide an API Key and Secret Key (or is that something,
> > say,
> > > >> the
> > > >> > Root Admin doesn't have to do)?
> > > >> >
> > > >> > Thanks!
> > > >> >
> > > >> >
> > > >> > On Tue, Feb 12, 2013 at 3:33 PM, David Nalley <da...@gnsa.us>
> > wrote:
> > > >> >
> > > >> > > On Tue, Feb 12, 2013 at 5:27 PM, Mike Tutkowski
> > > >> > > <mi...@solidfire.com> wrote:
> > > >> > > > So, I'm looking at these comments now:
> > > >> > > >
> > > >> > > > 2.3. Getting Started
> > > >> > > > To get started using the CloudStack API, you should have the
> > > >> following:
> > > >> > > >
> > > >> > > >    - URL of the CloudStack server you wish to integrate with.
> > > >> > > >    - Both the API Key and Secret Key for an account. This
> should
> > > >> have
> > > >> > > been
> > > >> > > >    generated by the administrator of the cloud instance and
> > given
> > > to
> > > >> > you.
> > > >> > > >    - Familiarity with HTTP GET/POST and query strings.
> > > >> > > >    - Knowledge of either XML or JSON.
> > > >> > > >    - Knowledge of a programming language that can generate
> HTTP
> > > >> > requests;
> > > >> > > >    for example, Java or PHP.
> > > >> > > >
> > > >> > > >
> > > >> > > > I'm not sure how to generate the API Key and Secret Key for an
> > > >> account.
> > > >> > > >  Can someone point me to instructions for this?
> > > >> > > >
> > > >> > > > Thanks!
> > > >> > > >
> > > >> > >
> > > >> > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> http://incubator.apache.org/cloudstack/docs/api/apidocs-4.0.0/root_admin/registerUserKeys.html
> > > >> > > Please file a bug for the DevGuide documentation not being clear
> > on
> > > >> this
> > > >> > > issue
> > > >> > >
> > > >> > > -David
> > > >> > >
> > > >> >
> > > >> >
> > > >> >
> > > >> > --
> > > >> > *Mike Tutkowski*
> > > >> > *Senior CloudStack Developer, SolidFire Inc.*
> > > >> > e: mike.tutkowski@solidfire.com
> > > >> > o: 303.746.7302
> > > >> > Advancing the way the world uses the
> > > >> > cloud<http://solidfire.com/solution/overview/?video=play>
> > > >> > *™*
> > > >> >
> > > >>
> > > >
> > > >
> > > >
> > > > --
> > > > *Mike Tutkowski*
> > > > *Senior CloudStack Developer, SolidFire Inc.*
> > > > e: mike.tutkowski@solidfire.com
> > > > o: 303.746.7302
> > > > Advancing the way the world uses the cloud<
> > > http://solidfire.com/solution/overview/?video=play>
> > > > *™*
> > > >
> > >
> > >
> > >
> > > --
> > > *Mike Tutkowski*
> > > *Senior CloudStack Developer, SolidFire Inc.*
> > > e: mike.tutkowski@solidfire.com
> > > o: 303.746.7302
> > > Advancing the way the world uses the
> > > cloud<http://solidfire.com/solution/overview/?video=play>
> > > *™*
> > >
> >
>
>
>
> --
> *Mike Tutkowski*
> *Senior CloudStack Developer, SolidFire Inc.*
> e: mike.tutkowski@solidfire.com
> o: 303.746.7302
> Advancing the way the world uses the
> cloud<http://solidfire.com/solution/overview/?video=play>
> *™*
>

Re: CloudStack API Question

Posted by Mike Tutkowski <mi...@solidfire.com>.
Hey everyone,

Thanks for the help!  I was able to successfully make my first CS API call
and deploy a VM.  :)


On Thu, Feb 14, 2013 at 1:54 PM, Mike Tutkowski <
mike.tutkowski@solidfire.com> wrote:

> I think I may know the problem here:
>
> I only have one template and it is a system template.  So, even when I
> walk through the wizard to kick off a VM, I can't do so because there are
> no ISOs or templates to choose from.
>
> I'm using DevCloud2.  I thought it provided at least one template for you?
>
>
> On Thu, Feb 14, 2013 at 1:37 PM, Mike Tutkowski <
> mike.tutkowski@solidfire.com> wrote:
>
>> As an example of all of this hard-coded goodness, this is what I have
>> presently:
>>
>>   final String strCommand = "command=deployVirtualMachine&" +
>>
>>   "serviceOfferingId=e91f2471-f26d-4376-889f-cc123963a921&" +
>>
>>   "diskOfferingId=cef6404a-99f4-44f9-a818-79b8db9a4144&" +
>>
>>   "templateId=53fa881c-758b-11e2-a253-63be90943755" +
>>
>>   "&zoneId=93e5759e-f65b-4d0a-baa6-70cdd046a805";
>>
>> Perhaps those ID are not what the API call is looking for, though?
>>
>>
>> On Thu, Feb 14, 2013 at 1:35 PM, Mike Tutkowski <
>> mike.tutkowski@solidfire.com> wrote:
>>
>>> Thanks, everyone
>>>
>>> What I'm building at the moment is just a little Java app to deploy a VM
>>> through CloudStack.  I'm expecting in the end that when someone invokes it,
>>> they will provide the serviceofferingid, templateid, and zoneid, etc.
>>>
>>> So, during development, I just wanted to hard code these values.
>>>
>>> I was looking in the GUI to see if I could locate, for example, the
>>> serviceofferingid.  Under the Compute Offering I wanted, I saw an ID field
>>> (that looked like a UUID).  I was assuming this ID is what is being asked
>>> for by serviceofferingid?
>>>
>>>
>>> On Thu, Feb 14, 2013 at 1:30 PM, Mike Tutkowski <
>>> mike.tutkowski@solidfire.com> wrote:
>>>
>>>> Nah, the docs are fine on this point.  I was looking at the actual API
>>>> calls and didn't know where the docs were on how to format API commands at
>>>> the time.
>>>>
>>>>
>>>> On Thu, Feb 14, 2013 at 1:19 PM, Joe Brockmeier <jz...@zonker.net> wrote:
>>>>
>>>>> On Tue, Feb 12, 2013, at 09:26 PM, Mike Tutkowski wrote:
>>>>> > Can you point me to the location in the GUI where I can generate
>>>>> keys?
>>>>>
>>>>> Is the documentation unclear on how to work with keys? If we need to
>>>>> fix
>>>>> something there, we should probably file a bug on the issue.
>>>>>
>>>>> Best,
>>>>>
>>>>> jzb
>>>>> --
>>>>> Joe Brockmeier
>>>>> jzb@zonker.net
>>>>> Twitter: @jzb
>>>>> http://www.dissociatedpress.net/
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> *Mike Tutkowski*
>>>> *Senior CloudStack Developer, SolidFire Inc.*
>>>> e: mike.tutkowski@solidfire.com
>>>> o: 303.746.7302
>>>> Advancing the way the world uses the cloud<http://solidfire.com/solution/overview/?video=play>
>>>> *™*
>>>>
>>>
>>>
>>>
>>> --
>>> *Mike Tutkowski*
>>> *Senior CloudStack Developer, SolidFire Inc.*
>>> e: mike.tutkowski@solidfire.com
>>> o: 303.746.7302
>>> Advancing the way the world uses the cloud<http://solidfire.com/solution/overview/?video=play>
>>> *™*
>>>
>>
>>
>>
>> --
>> *Mike Tutkowski*
>> *Senior CloudStack Developer, SolidFire Inc.*
>> e: mike.tutkowski@solidfire.com
>> o: 303.746.7302
>> Advancing the way the world uses the cloud<http://solidfire.com/solution/overview/?video=play>
>> *™*
>>
>
>
>
> --
> *Mike Tutkowski*
> *Senior CloudStack Developer, SolidFire Inc.*
> e: mike.tutkowski@solidfire.com
> o: 303.746.7302
> Advancing the way the world uses the cloud<http://solidfire.com/solution/overview/?video=play>
> *™*
>



-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkowski@solidfire.com
o: 303.746.7302
Advancing the way the world uses the
cloud<http://solidfire.com/solution/overview/?video=play>
*™*

Re: CloudStack API Question

Posted by Mike Tutkowski <mi...@solidfire.com>.
I think I may know the problem here:

I only have one template and it is a system template.  So, even when I walk
through the wizard to kick off a VM, I can't do so because there are no
ISOs or templates to choose from.

I'm using DevCloud2.  I thought it provided at least one template for you?


On Thu, Feb 14, 2013 at 1:37 PM, Mike Tutkowski <
mike.tutkowski@solidfire.com> wrote:

> As an example of all of this hard-coded goodness, this is what I have
> presently:
>
>   final String strCommand = "command=deployVirtualMachine&" +
>
>   "serviceOfferingId=e91f2471-f26d-4376-889f-cc123963a921&" +
>
>   "diskOfferingId=cef6404a-99f4-44f9-a818-79b8db9a4144&" +
>
>   "templateId=53fa881c-758b-11e2-a253-63be90943755" +
>
>   "&zoneId=93e5759e-f65b-4d0a-baa6-70cdd046a805";
>
> Perhaps those ID are not what the API call is looking for, though?
>
>
> On Thu, Feb 14, 2013 at 1:35 PM, Mike Tutkowski <
> mike.tutkowski@solidfire.com> wrote:
>
>> Thanks, everyone
>>
>> What I'm building at the moment is just a little Java app to deploy a VM
>> through CloudStack.  I'm expecting in the end that when someone invokes it,
>> they will provide the serviceofferingid, templateid, and zoneid, etc.
>>
>> So, during development, I just wanted to hard code these values.
>>
>> I was looking in the GUI to see if I could locate, for example, the
>> serviceofferingid.  Under the Compute Offering I wanted, I saw an ID field
>> (that looked like a UUID).  I was assuming this ID is what is being asked
>> for by serviceofferingid?
>>
>>
>> On Thu, Feb 14, 2013 at 1:30 PM, Mike Tutkowski <
>> mike.tutkowski@solidfire.com> wrote:
>>
>>> Nah, the docs are fine on this point.  I was looking at the actual API
>>> calls and didn't know where the docs were on how to format API commands at
>>> the time.
>>>
>>>
>>> On Thu, Feb 14, 2013 at 1:19 PM, Joe Brockmeier <jz...@zonker.net> wrote:
>>>
>>>> On Tue, Feb 12, 2013, at 09:26 PM, Mike Tutkowski wrote:
>>>> > Can you point me to the location in the GUI where I can generate keys?
>>>>
>>>> Is the documentation unclear on how to work with keys? If we need to fix
>>>> something there, we should probably file a bug on the issue.
>>>>
>>>> Best,
>>>>
>>>> jzb
>>>> --
>>>> Joe Brockmeier
>>>> jzb@zonker.net
>>>> Twitter: @jzb
>>>> http://www.dissociatedpress.net/
>>>>
>>>
>>>
>>>
>>> --
>>> *Mike Tutkowski*
>>> *Senior CloudStack Developer, SolidFire Inc.*
>>> e: mike.tutkowski@solidfire.com
>>> o: 303.746.7302
>>> Advancing the way the world uses the cloud<http://solidfire.com/solution/overview/?video=play>
>>> *™*
>>>
>>
>>
>>
>> --
>> *Mike Tutkowski*
>> *Senior CloudStack Developer, SolidFire Inc.*
>> e: mike.tutkowski@solidfire.com
>> o: 303.746.7302
>> Advancing the way the world uses the cloud<http://solidfire.com/solution/overview/?video=play>
>> *™*
>>
>
>
>
> --
> *Mike Tutkowski*
> *Senior CloudStack Developer, SolidFire Inc.*
> e: mike.tutkowski@solidfire.com
> o: 303.746.7302
> Advancing the way the world uses the cloud<http://solidfire.com/solution/overview/?video=play>
> *™*
>



-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkowski@solidfire.com
o: 303.746.7302
Advancing the way the world uses the
cloud<http://solidfire.com/solution/overview/?video=play>
*™*

Re: CloudStack API Question

Posted by Mike Tutkowski <mi...@solidfire.com>.
As an example of all of this hard-coded goodness, this is what I have
presently:

  final String strCommand = "command=deployVirtualMachine&" +

  "serviceOfferingId=e91f2471-f26d-4376-889f-cc123963a921&" +

  "diskOfferingId=cef6404a-99f4-44f9-a818-79b8db9a4144&" +

  "templateId=53fa881c-758b-11e2-a253-63be90943755" +

  "&zoneId=93e5759e-f65b-4d0a-baa6-70cdd046a805";

Perhaps those ID are not what the API call is looking for, though?


On Thu, Feb 14, 2013 at 1:35 PM, Mike Tutkowski <
mike.tutkowski@solidfire.com> wrote:

> Thanks, everyone
>
> What I'm building at the moment is just a little Java app to deploy a VM
> through CloudStack.  I'm expecting in the end that when someone invokes it,
> they will provide the serviceofferingid, templateid, and zoneid, etc.
>
> So, during development, I just wanted to hard code these values.
>
> I was looking in the GUI to see if I could locate, for example, the
> serviceofferingid.  Under the Compute Offering I wanted, I saw an ID field
> (that looked like a UUID).  I was assuming this ID is what is being asked
> for by serviceofferingid?
>
>
> On Thu, Feb 14, 2013 at 1:30 PM, Mike Tutkowski <
> mike.tutkowski@solidfire.com> wrote:
>
>> Nah, the docs are fine on this point.  I was looking at the actual API
>> calls and didn't know where the docs were on how to format API commands at
>> the time.
>>
>>
>> On Thu, Feb 14, 2013 at 1:19 PM, Joe Brockmeier <jz...@zonker.net> wrote:
>>
>>> On Tue, Feb 12, 2013, at 09:26 PM, Mike Tutkowski wrote:
>>> > Can you point me to the location in the GUI where I can generate keys?
>>>
>>> Is the documentation unclear on how to work with keys? If we need to fix
>>> something there, we should probably file a bug on the issue.
>>>
>>> Best,
>>>
>>> jzb
>>> --
>>> Joe Brockmeier
>>> jzb@zonker.net
>>> Twitter: @jzb
>>> http://www.dissociatedpress.net/
>>>
>>
>>
>>
>> --
>> *Mike Tutkowski*
>> *Senior CloudStack Developer, SolidFire Inc.*
>> e: mike.tutkowski@solidfire.com
>> o: 303.746.7302
>> Advancing the way the world uses the cloud<http://solidfire.com/solution/overview/?video=play>
>> *™*
>>
>
>
>
> --
> *Mike Tutkowski*
> *Senior CloudStack Developer, SolidFire Inc.*
> e: mike.tutkowski@solidfire.com
> o: 303.746.7302
> Advancing the way the world uses the cloud<http://solidfire.com/solution/overview/?video=play>
> *™*
>



-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkowski@solidfire.com
o: 303.746.7302
Advancing the way the world uses the
cloud<http://solidfire.com/solution/overview/?video=play>
*™*

Re: CloudStack API Question

Posted by Mike Tutkowski <mi...@solidfire.com>.
Thanks, everyone

What I'm building at the moment is just a little Java app to deploy a VM
through CloudStack.  I'm expecting in the end that when someone invokes it,
they will provide the serviceofferingid, templateid, and zoneid, etc.

So, during development, I just wanted to hard code these values.

I was looking in the GUI to see if I could locate, for example, the
serviceofferingid.  Under the Compute Offering I wanted, I saw an ID field
(that looked like a UUID).  I was assuming this ID is what is being asked
for by serviceofferingid?


On Thu, Feb 14, 2013 at 1:30 PM, Mike Tutkowski <
mike.tutkowski@solidfire.com> wrote:

> Nah, the docs are fine on this point.  I was looking at the actual API
> calls and didn't know where the docs were on how to format API commands at
> the time.
>
>
> On Thu, Feb 14, 2013 at 1:19 PM, Joe Brockmeier <jz...@zonker.net> wrote:
>
>> On Tue, Feb 12, 2013, at 09:26 PM, Mike Tutkowski wrote:
>> > Can you point me to the location in the GUI where I can generate keys?
>>
>> Is the documentation unclear on how to work with keys? If we need to fix
>> something there, we should probably file a bug on the issue.
>>
>> Best,
>>
>> jzb
>> --
>> Joe Brockmeier
>> jzb@zonker.net
>> Twitter: @jzb
>> http://www.dissociatedpress.net/
>>
>
>
>
> --
> *Mike Tutkowski*
> *Senior CloudStack Developer, SolidFire Inc.*
> e: mike.tutkowski@solidfire.com
> o: 303.746.7302
> Advancing the way the world uses the cloud<http://solidfire.com/solution/overview/?video=play>
> *™*
>



-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkowski@solidfire.com
o: 303.746.7302
Advancing the way the world uses the
cloud<http://solidfire.com/solution/overview/?video=play>
*™*

Re: CloudStack API Question

Posted by David Nalley <da...@gnsa.us>.
On Thu, Feb 21, 2013 at 12:12 AM, Mike Tutkowski
<mi...@solidfire.com> wrote:
> That would probably be useful, Jessica.
>
> Another thing that would have been even more useful is to know, for
> example, what the format of the url field of the createStoragePool command
> should be.  It is a string, but it doesn't say what format it should be in.
>  In my case (because I was setting up access to an iSCSI target), it needed
> to be iscsi://<ip address or host name>/iqn/LUN, but I had to shoot an
> e-mail off to the community to see if anyone could tell me.
>
> Thanks!
>


When you see deficiencies like this, please file a bug. This should be
something that we are fixing overtime in the API documentation, but it
will get lost here in the flood of emails.

--David

Re: CloudStack API Question

Posted by Mike Tutkowski <mi...@solidfire.com>.
That would probably be useful, Jessica.

Another thing that would have been even more useful is to know, for
example, what the format of the url field of the createStoragePool command
should be.  It is a string, but it doesn't say what format it should be in.
 In my case (because I was setting up access to an iSCSI target), it needed
to be iscsi://<ip address or host name>/iqn/LUN, but I had to shoot an
e-mail off to the community to see if anyone could tell me.

Thanks!


On Wed, Feb 20, 2013 at 5:53 PM, Jessica Tomechak <
jessica.tomechak@gmail.com> wrote:

> Not knowing where the docs were is a docs issue. Maybe we need to add a
> link to the Developer's Guide as part of the header on every API command
> man page? Mike, would that have helped give you a hint as to where to get
> more info?
>
> Jessica T.
>
> On Thu, Feb 14, 2013 at 12:30 PM, Mike Tutkowski <
> mike.tutkowski@solidfire.com> wrote:
>
> > Nah, the docs are fine on this point.  I was looking at the actual API
> > calls and didn't know where the docs were on how to format API commands
> at
> > the time.
> >
> >
> > On Thu, Feb 14, 2013 at 1:19 PM, Joe Brockmeier <jz...@zonker.net> wrote:
> >
> > > On Tue, Feb 12, 2013, at 09:26 PM, Mike Tutkowski wrote:
> > > > Can you point me to the location in the GUI where I can generate
> keys?
> > >
> > > Is the documentation unclear on how to work with keys? If we need to
> fix
> > > something there, we should probably file a bug on the issue.
> > >
> > > Best,
> > >
> > > jzb
> > > --
> > > Joe Brockmeier
> > > jzb@zonker.net
> > > Twitter: @jzb
> > > http://www.dissociatedpress.net/
> > >
> >
> >
> >
> > --
> > *Mike Tutkowski*
> > *Senior CloudStack Developer, SolidFire Inc.*
> > e: mike.tutkowski@solidfire.com
> > o: 303.746.7302
> > Advancing the way the world uses the
> > cloud<http://solidfire.com/solution/overview/?video=play>
> > *™*
> >
>



-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkowski@solidfire.com
o: 303.746.7302
Advancing the way the world uses the
cloud<http://solidfire.com/solution/overview/?video=play>
*™*

Re: CloudStack API Question

Posted by Jessica Tomechak <je...@gmail.com>.
Not knowing where the docs were is a docs issue. Maybe we need to add a
link to the Developer's Guide as part of the header on every API command
man page? Mike, would that have helped give you a hint as to where to get
more info?

Jessica T.

On Thu, Feb 14, 2013 at 12:30 PM, Mike Tutkowski <
mike.tutkowski@solidfire.com> wrote:

> Nah, the docs are fine on this point.  I was looking at the actual API
> calls and didn't know where the docs were on how to format API commands at
> the time.
>
>
> On Thu, Feb 14, 2013 at 1:19 PM, Joe Brockmeier <jz...@zonker.net> wrote:
>
> > On Tue, Feb 12, 2013, at 09:26 PM, Mike Tutkowski wrote:
> > > Can you point me to the location in the GUI where I can generate keys?
> >
> > Is the documentation unclear on how to work with keys? If we need to fix
> > something there, we should probably file a bug on the issue.
> >
> > Best,
> >
> > jzb
> > --
> > Joe Brockmeier
> > jzb@zonker.net
> > Twitter: @jzb
> > http://www.dissociatedpress.net/
> >
>
>
>
> --
> *Mike Tutkowski*
> *Senior CloudStack Developer, SolidFire Inc.*
> e: mike.tutkowski@solidfire.com
> o: 303.746.7302
> Advancing the way the world uses the
> cloud<http://solidfire.com/solution/overview/?video=play>
> *™*
>

Re: CloudStack API Question

Posted by Mike Tutkowski <mi...@solidfire.com>.
Nah, the docs are fine on this point.  I was looking at the actual API
calls and didn't know where the docs were on how to format API commands at
the time.


On Thu, Feb 14, 2013 at 1:19 PM, Joe Brockmeier <jz...@zonker.net> wrote:

> On Tue, Feb 12, 2013, at 09:26 PM, Mike Tutkowski wrote:
> > Can you point me to the location in the GUI where I can generate keys?
>
> Is the documentation unclear on how to work with keys? If we need to fix
> something there, we should probably file a bug on the issue.
>
> Best,
>
> jzb
> --
> Joe Brockmeier
> jzb@zonker.net
> Twitter: @jzb
> http://www.dissociatedpress.net/
>



-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkowski@solidfire.com
o: 303.746.7302
Advancing the way the world uses the
cloud<http://solidfire.com/solution/overview/?video=play>
*™*

Re: CloudStack API Question

Posted by Will Stevens <ws...@cloudops.com>.
Here is an example of a deployVirtualMachine call:
http://172.30.32.15:8080/client/api?apiKey=b_hjynLKcgugL6Q_SkT1BH_9Gmd_mDE0d4ZKVsLFFl8vKPl-X0QMaLsT5Uyn2moJFCosAHlwRYPvPMCYFW239A&serviceofferingid=c72843e9-538a-4e74-bae1-ed9cf159c74a&command=deployVirtualMachine&templateid=5&zoneid=17aafe8a-22f2-4f35-abcf-d501b1d5ef6a&response=json&signature=CbVdF3aSm5sHN%2BWWUeJRLqsTIdE%3D


On Thu, Feb 14, 2013 at 3:19 PM, Joe Brockmeier <jz...@zonker.net> wrote:

> On Tue, Feb 12, 2013, at 09:26 PM, Mike Tutkowski wrote:
> > Can you point me to the location in the GUI where I can generate keys?
>
> Is the documentation unclear on how to work with keys? If we need to fix
> something there, we should probably file a bug on the issue.
>
> Best,
>
> jzb
> --
> Joe Brockmeier
> jzb@zonker.net
> Twitter: @jzb
> http://www.dissociatedpress.net/
>

Re: CloudStack API Question

Posted by Joe Brockmeier <jz...@zonker.net>.
On Tue, Feb 12, 2013, at 09:26 PM, Mike Tutkowski wrote:
> Can you point me to the location in the GUI where I can generate keys?

Is the documentation unclear on how to work with keys? If we need to fix
something there, we should probably file a bug on the issue. 

Best,

jzb
-- 
Joe Brockmeier
jzb@zonker.net
Twitter: @jzb
http://www.dissociatedpress.net/

Re: CloudStack API Question

Posted by Rohit Yadav <bh...@apache.org>.
You may use marvin or cloudmonkey for automation as well.

A trick is to use the integration port 8096 to create users and
register user keys (api for creating user api and secret keys) and use
them on port 8080 for authentication.

Regards.

On Wed, Feb 13, 2013 at 8:56 AM, Mike Tutkowski
<mi...@solidfire.com> wrote:
> Can you point me to the location in the GUI where I can generate keys?
>
> Thanks!
>
>
> On Tue, Feb 12, 2013 at 4:17 PM, Will Stevens <ws...@cloudops.com> wrote:
>
>> They do not expire, but in the UI you can regenerate the keys, so in that
>> case they would change.
>>
>>
>> On Tue, Feb 12, 2013 at 6:13 PM, Mike Tutkowski <
>> mike.tutkowski@solidfire.com> wrote:
>>
>> > to "say" (I mean) :)
>> >
>> >
>> > On Tue, Feb 12, 2013 at 4:13 PM, Mike Tutkowski <
>> > mike.tutkowski@solidfire.com> wrote:
>> >
>> > > Sounds good...and these do not expire?  Is that accurate to day?
>> > >
>> > >
>> > > On Tue, Feb 12, 2013 at 4:03 PM, Will Stevens <wstevens@cloudops.com
>> > >wrote:
>> > >
>> > >> Every role uses the same procedure.  They all need an api key and
>> secret
>> > >> key.
>> > >>
>> > >>
>> > >> On Tue, Feb 12, 2013 at 5:54 PM, Mike Tutkowski <
>> > >> mike.tutkowski@solidfire.com> wrote:
>> > >>
>> > >> > Thanks for the info.
>> > >> >
>> > >> > So, I see we have three roles in CloudStack:  Root Admin, Domain
>> > Admin,
>> > >> and
>> > >> > User.
>> > >> >
>> > >> > When submitting API commands, does the submitter - regardless of
>> role
>> > -
>> > >> > have to provide an API Key and Secret Key (or is that something,
>> say,
>> > >> the
>> > >> > Root Admin doesn't have to do)?
>> > >> >
>> > >> > Thanks!
>> > >> >
>> > >> >
>> > >> > On Tue, Feb 12, 2013 at 3:33 PM, David Nalley <da...@gnsa.us>
>> wrote:
>> > >> >
>> > >> > > On Tue, Feb 12, 2013 at 5:27 PM, Mike Tutkowski
>> > >> > > <mi...@solidfire.com> wrote:
>> > >> > > > So, I'm looking at these comments now:
>> > >> > > >
>> > >> > > > 2.3. Getting Started
>> > >> > > > To get started using the CloudStack API, you should have the
>> > >> following:
>> > >> > > >
>> > >> > > >    - URL of the CloudStack server you wish to integrate with.
>> > >> > > >    - Both the API Key and Secret Key for an account. This should
>> > >> have
>> > >> > > been
>> > >> > > >    generated by the administrator of the cloud instance and
>> given
>> > to
>> > >> > you.
>> > >> > > >    - Familiarity with HTTP GET/POST and query strings.
>> > >> > > >    - Knowledge of either XML or JSON.
>> > >> > > >    - Knowledge of a programming language that can generate HTTP
>> > >> > requests;
>> > >> > > >    for example, Java or PHP.
>> > >> > > >
>> > >> > > >
>> > >> > > > I'm not sure how to generate the API Key and Secret Key for an
>> > >> account.
>> > >> > > >  Can someone point me to instructions for this?
>> > >> > > >
>> > >> > > > Thanks!
>> > >> > > >
>> > >> > >
>> > >> > >
>> > >> > >
>> > >> >
>> > >>
>> >
>> http://incubator.apache.org/cloudstack/docs/api/apidocs-4.0.0/root_admin/registerUserKeys.html
>> > >> > > Please file a bug for the DevGuide documentation not being clear
>> on
>> > >> this
>> > >> > > issue
>> > >> > >
>> > >> > > -David
>> > >> > >
>> > >> >
>> > >> >
>> > >> >
>> > >> > --
>> > >> > *Mike Tutkowski*
>> > >> > *Senior CloudStack Developer, SolidFire Inc.*
>> > >> > e: mike.tutkowski@solidfire.com
>> > >> > o: 303.746.7302
>> > >> > Advancing the way the world uses the
>> > >> > cloud<http://solidfire.com/solution/overview/?video=play>
>> > >> > *™*
>> > >> >
>> > >>
>> > >
>> > >
>> > >
>> > > --
>> > > *Mike Tutkowski*
>> > > *Senior CloudStack Developer, SolidFire Inc.*
>> > > e: mike.tutkowski@solidfire.com
>> > > o: 303.746.7302
>> > > Advancing the way the world uses the cloud<
>> > http://solidfire.com/solution/overview/?video=play>
>> > > *™*
>> > >
>> >
>> >
>> >
>> > --
>> > *Mike Tutkowski*
>> > *Senior CloudStack Developer, SolidFire Inc.*
>> > e: mike.tutkowski@solidfire.com
>> > o: 303.746.7302
>> > Advancing the way the world uses the
>> > cloud<http://solidfire.com/solution/overview/?video=play>
>> > *™*
>> >
>>
>
>
>
> --
> *Mike Tutkowski*
> *Senior CloudStack Developer, SolidFire Inc.*
> e: mike.tutkowski@solidfire.com
> o: 303.746.7302
> Advancing the way the world uses the
> cloud<http://solidfire.com/solution/overview/?video=play>
> *™*

Re: CloudStack API Question

Posted by Mike Tutkowski <mi...@solidfire.com>.
Can you point me to the location in the GUI where I can generate keys?

Thanks!


On Tue, Feb 12, 2013 at 4:17 PM, Will Stevens <ws...@cloudops.com> wrote:

> They do not expire, but in the UI you can regenerate the keys, so in that
> case they would change.
>
>
> On Tue, Feb 12, 2013 at 6:13 PM, Mike Tutkowski <
> mike.tutkowski@solidfire.com> wrote:
>
> > to "say" (I mean) :)
> >
> >
> > On Tue, Feb 12, 2013 at 4:13 PM, Mike Tutkowski <
> > mike.tutkowski@solidfire.com> wrote:
> >
> > > Sounds good...and these do not expire?  Is that accurate to day?
> > >
> > >
> > > On Tue, Feb 12, 2013 at 4:03 PM, Will Stevens <wstevens@cloudops.com
> > >wrote:
> > >
> > >> Every role uses the same procedure.  They all need an api key and
> secret
> > >> key.
> > >>
> > >>
> > >> On Tue, Feb 12, 2013 at 5:54 PM, Mike Tutkowski <
> > >> mike.tutkowski@solidfire.com> wrote:
> > >>
> > >> > Thanks for the info.
> > >> >
> > >> > So, I see we have three roles in CloudStack:  Root Admin, Domain
> > Admin,
> > >> and
> > >> > User.
> > >> >
> > >> > When submitting API commands, does the submitter - regardless of
> role
> > -
> > >> > have to provide an API Key and Secret Key (or is that something,
> say,
> > >> the
> > >> > Root Admin doesn't have to do)?
> > >> >
> > >> > Thanks!
> > >> >
> > >> >
> > >> > On Tue, Feb 12, 2013 at 3:33 PM, David Nalley <da...@gnsa.us>
> wrote:
> > >> >
> > >> > > On Tue, Feb 12, 2013 at 5:27 PM, Mike Tutkowski
> > >> > > <mi...@solidfire.com> wrote:
> > >> > > > So, I'm looking at these comments now:
> > >> > > >
> > >> > > > 2.3. Getting Started
> > >> > > > To get started using the CloudStack API, you should have the
> > >> following:
> > >> > > >
> > >> > > >    - URL of the CloudStack server you wish to integrate with.
> > >> > > >    - Both the API Key and Secret Key for an account. This should
> > >> have
> > >> > > been
> > >> > > >    generated by the administrator of the cloud instance and
> given
> > to
> > >> > you.
> > >> > > >    - Familiarity with HTTP GET/POST and query strings.
> > >> > > >    - Knowledge of either XML or JSON.
> > >> > > >    - Knowledge of a programming language that can generate HTTP
> > >> > requests;
> > >> > > >    for example, Java or PHP.
> > >> > > >
> > >> > > >
> > >> > > > I'm not sure how to generate the API Key and Secret Key for an
> > >> account.
> > >> > > >  Can someone point me to instructions for this?
> > >> > > >
> > >> > > > Thanks!
> > >> > > >
> > >> > >
> > >> > >
> > >> > >
> > >> >
> > >>
> >
> http://incubator.apache.org/cloudstack/docs/api/apidocs-4.0.0/root_admin/registerUserKeys.html
> > >> > > Please file a bug for the DevGuide documentation not being clear
> on
> > >> this
> > >> > > issue
> > >> > >
> > >> > > -David
> > >> > >
> > >> >
> > >> >
> > >> >
> > >> > --
> > >> > *Mike Tutkowski*
> > >> > *Senior CloudStack Developer, SolidFire Inc.*
> > >> > e: mike.tutkowski@solidfire.com
> > >> > o: 303.746.7302
> > >> > Advancing the way the world uses the
> > >> > cloud<http://solidfire.com/solution/overview/?video=play>
> > >> > *™*
> > >> >
> > >>
> > >
> > >
> > >
> > > --
> > > *Mike Tutkowski*
> > > *Senior CloudStack Developer, SolidFire Inc.*
> > > e: mike.tutkowski@solidfire.com
> > > o: 303.746.7302
> > > Advancing the way the world uses the cloud<
> > http://solidfire.com/solution/overview/?video=play>
> > > *™*
> > >
> >
> >
> >
> > --
> > *Mike Tutkowski*
> > *Senior CloudStack Developer, SolidFire Inc.*
> > e: mike.tutkowski@solidfire.com
> > o: 303.746.7302
> > Advancing the way the world uses the
> > cloud<http://solidfire.com/solution/overview/?video=play>
> > *™*
> >
>



-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkowski@solidfire.com
o: 303.746.7302
Advancing the way the world uses the
cloud<http://solidfire.com/solution/overview/?video=play>
*™*

Re: CloudStack API Question

Posted by Will Stevens <ws...@cloudops.com>.
They do not expire, but in the UI you can regenerate the keys, so in that
case they would change.


On Tue, Feb 12, 2013 at 6:13 PM, Mike Tutkowski <
mike.tutkowski@solidfire.com> wrote:

> to "say" (I mean) :)
>
>
> On Tue, Feb 12, 2013 at 4:13 PM, Mike Tutkowski <
> mike.tutkowski@solidfire.com> wrote:
>
> > Sounds good...and these do not expire?  Is that accurate to day?
> >
> >
> > On Tue, Feb 12, 2013 at 4:03 PM, Will Stevens <wstevens@cloudops.com
> >wrote:
> >
> >> Every role uses the same procedure.  They all need an api key and secret
> >> key.
> >>
> >>
> >> On Tue, Feb 12, 2013 at 5:54 PM, Mike Tutkowski <
> >> mike.tutkowski@solidfire.com> wrote:
> >>
> >> > Thanks for the info.
> >> >
> >> > So, I see we have three roles in CloudStack:  Root Admin, Domain
> Admin,
> >> and
> >> > User.
> >> >
> >> > When submitting API commands, does the submitter - regardless of role
> -
> >> > have to provide an API Key and Secret Key (or is that something, say,
> >> the
> >> > Root Admin doesn't have to do)?
> >> >
> >> > Thanks!
> >> >
> >> >
> >> > On Tue, Feb 12, 2013 at 3:33 PM, David Nalley <da...@gnsa.us> wrote:
> >> >
> >> > > On Tue, Feb 12, 2013 at 5:27 PM, Mike Tutkowski
> >> > > <mi...@solidfire.com> wrote:
> >> > > > So, I'm looking at these comments now:
> >> > > >
> >> > > > 2.3. Getting Started
> >> > > > To get started using the CloudStack API, you should have the
> >> following:
> >> > > >
> >> > > >    - URL of the CloudStack server you wish to integrate with.
> >> > > >    - Both the API Key and Secret Key for an account. This should
> >> have
> >> > > been
> >> > > >    generated by the administrator of the cloud instance and given
> to
> >> > you.
> >> > > >    - Familiarity with HTTP GET/POST and query strings.
> >> > > >    - Knowledge of either XML or JSON.
> >> > > >    - Knowledge of a programming language that can generate HTTP
> >> > requests;
> >> > > >    for example, Java or PHP.
> >> > > >
> >> > > >
> >> > > > I'm not sure how to generate the API Key and Secret Key for an
> >> account.
> >> > > >  Can someone point me to instructions for this?
> >> > > >
> >> > > > Thanks!
> >> > > >
> >> > >
> >> > >
> >> > >
> >> >
> >>
> http://incubator.apache.org/cloudstack/docs/api/apidocs-4.0.0/root_admin/registerUserKeys.html
> >> > > Please file a bug for the DevGuide documentation not being clear on
> >> this
> >> > > issue
> >> > >
> >> > > -David
> >> > >
> >> >
> >> >
> >> >
> >> > --
> >> > *Mike Tutkowski*
> >> > *Senior CloudStack Developer, SolidFire Inc.*
> >> > e: mike.tutkowski@solidfire.com
> >> > o: 303.746.7302
> >> > Advancing the way the world uses the
> >> > cloud<http://solidfire.com/solution/overview/?video=play>
> >> > *™*
> >> >
> >>
> >
> >
> >
> > --
> > *Mike Tutkowski*
> > *Senior CloudStack Developer, SolidFire Inc.*
> > e: mike.tutkowski@solidfire.com
> > o: 303.746.7302
> > Advancing the way the world uses the cloud<
> http://solidfire.com/solution/overview/?video=play>
> > *™*
> >
>
>
>
> --
> *Mike Tutkowski*
> *Senior CloudStack Developer, SolidFire Inc.*
> e: mike.tutkowski@solidfire.com
> o: 303.746.7302
> Advancing the way the world uses the
> cloud<http://solidfire.com/solution/overview/?video=play>
> *™*
>

Re: CloudStack API Question

Posted by Mike Tutkowski <mi...@solidfire.com>.
to "say" (I mean) :)


On Tue, Feb 12, 2013 at 4:13 PM, Mike Tutkowski <
mike.tutkowski@solidfire.com> wrote:

> Sounds good...and these do not expire?  Is that accurate to day?
>
>
> On Tue, Feb 12, 2013 at 4:03 PM, Will Stevens <ws...@cloudops.com>wrote:
>
>> Every role uses the same procedure.  They all need an api key and secret
>> key.
>>
>>
>> On Tue, Feb 12, 2013 at 5:54 PM, Mike Tutkowski <
>> mike.tutkowski@solidfire.com> wrote:
>>
>> > Thanks for the info.
>> >
>> > So, I see we have three roles in CloudStack:  Root Admin, Domain Admin,
>> and
>> > User.
>> >
>> > When submitting API commands, does the submitter - regardless of role -
>> > have to provide an API Key and Secret Key (or is that something, say,
>> the
>> > Root Admin doesn't have to do)?
>> >
>> > Thanks!
>> >
>> >
>> > On Tue, Feb 12, 2013 at 3:33 PM, David Nalley <da...@gnsa.us> wrote:
>> >
>> > > On Tue, Feb 12, 2013 at 5:27 PM, Mike Tutkowski
>> > > <mi...@solidfire.com> wrote:
>> > > > So, I'm looking at these comments now:
>> > > >
>> > > > 2.3. Getting Started
>> > > > To get started using the CloudStack API, you should have the
>> following:
>> > > >
>> > > >    - URL of the CloudStack server you wish to integrate with.
>> > > >    - Both the API Key and Secret Key for an account. This should
>> have
>> > > been
>> > > >    generated by the administrator of the cloud instance and given to
>> > you.
>> > > >    - Familiarity with HTTP GET/POST and query strings.
>> > > >    - Knowledge of either XML or JSON.
>> > > >    - Knowledge of a programming language that can generate HTTP
>> > requests;
>> > > >    for example, Java or PHP.
>> > > >
>> > > >
>> > > > I'm not sure how to generate the API Key and Secret Key for an
>> account.
>> > > >  Can someone point me to instructions for this?
>> > > >
>> > > > Thanks!
>> > > >
>> > >
>> > >
>> > >
>> >
>> http://incubator.apache.org/cloudstack/docs/api/apidocs-4.0.0/root_admin/registerUserKeys.html
>> > > Please file a bug for the DevGuide documentation not being clear on
>> this
>> > > issue
>> > >
>> > > -David
>> > >
>> >
>> >
>> >
>> > --
>> > *Mike Tutkowski*
>> > *Senior CloudStack Developer, SolidFire Inc.*
>> > e: mike.tutkowski@solidfire.com
>> > o: 303.746.7302
>> > Advancing the way the world uses the
>> > cloud<http://solidfire.com/solution/overview/?video=play>
>> > *™*
>> >
>>
>
>
>
> --
> *Mike Tutkowski*
> *Senior CloudStack Developer, SolidFire Inc.*
> e: mike.tutkowski@solidfire.com
> o: 303.746.7302
> Advancing the way the world uses the cloud<http://solidfire.com/solution/overview/?video=play>
> *™*
>



-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkowski@solidfire.com
o: 303.746.7302
Advancing the way the world uses the
cloud<http://solidfire.com/solution/overview/?video=play>
*™*

Re: CloudStack API Question

Posted by Mike Tutkowski <mi...@solidfire.com>.
Sounds good...and these do not expire?  Is that accurate to day?


On Tue, Feb 12, 2013 at 4:03 PM, Will Stevens <ws...@cloudops.com> wrote:

> Every role uses the same procedure.  They all need an api key and secret
> key.
>
>
> On Tue, Feb 12, 2013 at 5:54 PM, Mike Tutkowski <
> mike.tutkowski@solidfire.com> wrote:
>
> > Thanks for the info.
> >
> > So, I see we have three roles in CloudStack:  Root Admin, Domain Admin,
> and
> > User.
> >
> > When submitting API commands, does the submitter - regardless of role -
> > have to provide an API Key and Secret Key (or is that something, say, the
> > Root Admin doesn't have to do)?
> >
> > Thanks!
> >
> >
> > On Tue, Feb 12, 2013 at 3:33 PM, David Nalley <da...@gnsa.us> wrote:
> >
> > > On Tue, Feb 12, 2013 at 5:27 PM, Mike Tutkowski
> > > <mi...@solidfire.com> wrote:
> > > > So, I'm looking at these comments now:
> > > >
> > > > 2.3. Getting Started
> > > > To get started using the CloudStack API, you should have the
> following:
> > > >
> > > >    - URL of the CloudStack server you wish to integrate with.
> > > >    - Both the API Key and Secret Key for an account. This should have
> > > been
> > > >    generated by the administrator of the cloud instance and given to
> > you.
> > > >    - Familiarity with HTTP GET/POST and query strings.
> > > >    - Knowledge of either XML or JSON.
> > > >    - Knowledge of a programming language that can generate HTTP
> > requests;
> > > >    for example, Java or PHP.
> > > >
> > > >
> > > > I'm not sure how to generate the API Key and Secret Key for an
> account.
> > > >  Can someone point me to instructions for this?
> > > >
> > > > Thanks!
> > > >
> > >
> > >
> > >
> >
> http://incubator.apache.org/cloudstack/docs/api/apidocs-4.0.0/root_admin/registerUserKeys.html
> > > Please file a bug for the DevGuide documentation not being clear on
> this
> > > issue
> > >
> > > -David
> > >
> >
> >
> >
> > --
> > *Mike Tutkowski*
> > *Senior CloudStack Developer, SolidFire Inc.*
> > e: mike.tutkowski@solidfire.com
> > o: 303.746.7302
> > Advancing the way the world uses the
> > cloud<http://solidfire.com/solution/overview/?video=play>
> > *™*
> >
>



-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkowski@solidfire.com
o: 303.746.7302
Advancing the way the world uses the
cloud<http://solidfire.com/solution/overview/?video=play>
*™*

Re: CloudStack API Question

Posted by Will Stevens <ws...@cloudops.com>.
Every role uses the same procedure.  They all need an api key and secret
key.


On Tue, Feb 12, 2013 at 5:54 PM, Mike Tutkowski <
mike.tutkowski@solidfire.com> wrote:

> Thanks for the info.
>
> So, I see we have three roles in CloudStack:  Root Admin, Domain Admin, and
> User.
>
> When submitting API commands, does the submitter - regardless of role -
> have to provide an API Key and Secret Key (or is that something, say, the
> Root Admin doesn't have to do)?
>
> Thanks!
>
>
> On Tue, Feb 12, 2013 at 3:33 PM, David Nalley <da...@gnsa.us> wrote:
>
> > On Tue, Feb 12, 2013 at 5:27 PM, Mike Tutkowski
> > <mi...@solidfire.com> wrote:
> > > So, I'm looking at these comments now:
> > >
> > > 2.3. Getting Started
> > > To get started using the CloudStack API, you should have the following:
> > >
> > >    - URL of the CloudStack server you wish to integrate with.
> > >    - Both the API Key and Secret Key for an account. This should have
> > been
> > >    generated by the administrator of the cloud instance and given to
> you.
> > >    - Familiarity with HTTP GET/POST and query strings.
> > >    - Knowledge of either XML or JSON.
> > >    - Knowledge of a programming language that can generate HTTP
> requests;
> > >    for example, Java or PHP.
> > >
> > >
> > > I'm not sure how to generate the API Key and Secret Key for an account.
> > >  Can someone point me to instructions for this?
> > >
> > > Thanks!
> > >
> >
> >
> >
> http://incubator.apache.org/cloudstack/docs/api/apidocs-4.0.0/root_admin/registerUserKeys.html
> > Please file a bug for the DevGuide documentation not being clear on this
> > issue
> >
> > -David
> >
>
>
>
> --
> *Mike Tutkowski*
> *Senior CloudStack Developer, SolidFire Inc.*
> e: mike.tutkowski@solidfire.com
> o: 303.746.7302
> Advancing the way the world uses the
> cloud<http://solidfire.com/solution/overview/?video=play>
> *™*
>

Re: CloudStack API Question

Posted by Mike Tutkowski <mi...@solidfire.com>.
Thanks for the info.

So, I see we have three roles in CloudStack:  Root Admin, Domain Admin, and
User.

When submitting API commands, does the submitter - regardless of role -
have to provide an API Key and Secret Key (or is that something, say, the
Root Admin doesn't have to do)?

Thanks!


On Tue, Feb 12, 2013 at 3:33 PM, David Nalley <da...@gnsa.us> wrote:

> On Tue, Feb 12, 2013 at 5:27 PM, Mike Tutkowski
> <mi...@solidfire.com> wrote:
> > So, I'm looking at these comments now:
> >
> > 2.3. Getting Started
> > To get started using the CloudStack API, you should have the following:
> >
> >    - URL of the CloudStack server you wish to integrate with.
> >    - Both the API Key and Secret Key for an account. This should have
> been
> >    generated by the administrator of the cloud instance and given to you.
> >    - Familiarity with HTTP GET/POST and query strings.
> >    - Knowledge of either XML or JSON.
> >    - Knowledge of a programming language that can generate HTTP requests;
> >    for example, Java or PHP.
> >
> >
> > I'm not sure how to generate the API Key and Secret Key for an account.
> >  Can someone point me to instructions for this?
> >
> > Thanks!
> >
>
>
> http://incubator.apache.org/cloudstack/docs/api/apidocs-4.0.0/root_admin/registerUserKeys.html
> Please file a bug for the DevGuide documentation not being clear on this
> issue
>
> -David
>



-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkowski@solidfire.com
o: 303.746.7302
Advancing the way the world uses the
cloud<http://solidfire.com/solution/overview/?video=play>
*™*

Re: CloudStack API Question

Posted by David Nalley <da...@gnsa.us>.
On Tue, Feb 12, 2013 at 5:27 PM, Mike Tutkowski
<mi...@solidfire.com> wrote:
> So, I'm looking at these comments now:
>
> 2.3. Getting Started
> To get started using the CloudStack API, you should have the following:
>
>    - URL of the CloudStack server you wish to integrate with.
>    - Both the API Key and Secret Key for an account. This should have been
>    generated by the administrator of the cloud instance and given to you.
>    - Familiarity with HTTP GET/POST and query strings.
>    - Knowledge of either XML or JSON.
>    - Knowledge of a programming language that can generate HTTP requests;
>    for example, Java or PHP.
>
>
> I'm not sure how to generate the API Key and Secret Key for an account.
>  Can someone point me to instructions for this?
>
> Thanks!
>

http://incubator.apache.org/cloudstack/docs/api/apidocs-4.0.0/root_admin/registerUserKeys.html
Please file a bug for the DevGuide documentation not being clear on this issue

-David

Re: CloudStack API Question

Posted by Mike Tutkowski <mi...@solidfire.com>.
So, I'm looking at these comments now:

2.3. Getting Started
To get started using the CloudStack API, you should have the following:

   - URL of the CloudStack server you wish to integrate with.
   - Both the API Key and Secret Key for an account. This should have been
   generated by the administrator of the cloud instance and given to you.
   - Familiarity with HTTP GET/POST and query strings.
   - Knowledge of either XML or JSON.
   - Knowledge of a programming language that can generate HTTP requests;
   for example, Java or PHP.


I'm not sure how to generate the API Key and Secret Key for an account.
 Can someone point me to instructions for this?

Thanks!


On Tue, Feb 12, 2013 at 3:12 PM, Mike Tutkowski <
mike.tutkowski@solidfire.com> wrote:

> Thanks, Will!
>
>
> On Tue, Feb 12, 2013 at 3:00 PM, Will Stevens <ws...@cloudops.com>wrote:
>
>> You may find this blog post helpful as well:
>> http://www.cloudops.com/2013/01/working-with-the-cloudstack-api/
>> At the bottom of the post I have provided two small python files which
>> will
>> get you working with the API really quickly.  The code explains the steps
>> needed to create api calls pretty clearly and gives you something to play
>> with right away.
>>
>>
>> On Tue, Feb 12, 2013 at 2:50 PM, Mike Tutkowski <
>> mike.tutkowski@solidfire.com> wrote:
>>
>> > Thanks, Chip!  This is just what I was looking for.
>> >
>> >
>> > On Tue, Feb 12, 2013 at 12:37 PM, Chip Childers
>> > <ch...@sungard.com>wrote:
>> >
>> > > On Tue, Feb 12, 2013 at 11:06:16AM -0700, Mike Tutkowski wrote:
>> > > > Hi everyone,
>> > > >
>> > > > I have not yet made use of the CS API and was looking at this URL:
>> > > >
>> > > >
>> > >
>> >
>> http://incubator.apache.org/cloudstack/docs/api/apidocs-4.0.0/TOC_Root_Admin.html
>> > > >
>> > > > I was wondering where we specify what the protocol is?  Does CS use
>> > JSON
>> > > > over HTTP?
>> > > >
>> > > > Can someone point me to these specifics?
>> > > >
>> > > > Thanks!
>> > > >
>> > > > --
>> > > > *Mike Tutkowski*
>> > > > *Senior CloudStack Developer, SolidFire Inc.*
>> > > > e: mike.tutkowski@solidfire.com
>> > > > o: 303.746.7302
>> > > > Advancing the way the world uses the
>> > > > cloud<http://solidfire.com/solution/overview/?video=play>
>> > > > *™*
>> > >
>> > > Take a look at the API developer guide [1].  It explains how to use
>> the
>> > > API (not the specific API commands).
>> > >
>> > > Also, depending on the language you are using, there are lots of
>> options
>> > > already out there for language-specific bindings (if you don't want to
>> > > roll your own).
>> > >
>> > > [1]
>> > >
>> > >
>> >
>> http://incubator.apache.org/cloudstack/docs/en-US/Apache_CloudStack/4.0.0-incubating/html/API_Developers_Guide/index.html
>> > >
>> >
>> >
>> >
>> > --
>> > *Mike Tutkowski*
>> > *Senior CloudStack Developer, SolidFire Inc.*
>> > e: mike.tutkowski@solidfire.com
>> > o: 303.746.7302
>> > Advancing the way the world uses the
>> > cloud<http://solidfire.com/solution/overview/?video=play>
>> > *™*
>> >
>>
>
>
>
> --
> *Mike Tutkowski*
> *Senior CloudStack Developer, SolidFire Inc.*
> e: mike.tutkowski@solidfire.com
> o: 303.746.7302
> Advancing the way the world uses the cloud<http://solidfire.com/solution/overview/?video=play>
> *™*
>



-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkowski@solidfire.com
o: 303.746.7302
Advancing the way the world uses the
cloud<http://solidfire.com/solution/overview/?video=play>
*™*

Re: CloudStack API Question

Posted by Mike Tutkowski <mi...@solidfire.com>.
Thanks, Will!


On Tue, Feb 12, 2013 at 3:00 PM, Will Stevens <ws...@cloudops.com> wrote:

> You may find this blog post helpful as well:
> http://www.cloudops.com/2013/01/working-with-the-cloudstack-api/
> At the bottom of the post I have provided two small python files which will
> get you working with the API really quickly.  The code explains the steps
> needed to create api calls pretty clearly and gives you something to play
> with right away.
>
>
> On Tue, Feb 12, 2013 at 2:50 PM, Mike Tutkowski <
> mike.tutkowski@solidfire.com> wrote:
>
> > Thanks, Chip!  This is just what I was looking for.
> >
> >
> > On Tue, Feb 12, 2013 at 12:37 PM, Chip Childers
> > <ch...@sungard.com>wrote:
> >
> > > On Tue, Feb 12, 2013 at 11:06:16AM -0700, Mike Tutkowski wrote:
> > > > Hi everyone,
> > > >
> > > > I have not yet made use of the CS API and was looking at this URL:
> > > >
> > > >
> > >
> >
> http://incubator.apache.org/cloudstack/docs/api/apidocs-4.0.0/TOC_Root_Admin.html
> > > >
> > > > I was wondering where we specify what the protocol is?  Does CS use
> > JSON
> > > > over HTTP?
> > > >
> > > > Can someone point me to these specifics?
> > > >
> > > > Thanks!
> > > >
> > > > --
> > > > *Mike Tutkowski*
> > > > *Senior CloudStack Developer, SolidFire Inc.*
> > > > e: mike.tutkowski@solidfire.com
> > > > o: 303.746.7302
> > > > Advancing the way the world uses the
> > > > cloud<http://solidfire.com/solution/overview/?video=play>
> > > > *™*
> > >
> > > Take a look at the API developer guide [1].  It explains how to use the
> > > API (not the specific API commands).
> > >
> > > Also, depending on the language you are using, there are lots of
> options
> > > already out there for language-specific bindings (if you don't want to
> > > roll your own).
> > >
> > > [1]
> > >
> > >
> >
> http://incubator.apache.org/cloudstack/docs/en-US/Apache_CloudStack/4.0.0-incubating/html/API_Developers_Guide/index.html
> > >
> >
> >
> >
> > --
> > *Mike Tutkowski*
> > *Senior CloudStack Developer, SolidFire Inc.*
> > e: mike.tutkowski@solidfire.com
> > o: 303.746.7302
> > Advancing the way the world uses the
> > cloud<http://solidfire.com/solution/overview/?video=play>
> > *™*
> >
>



-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkowski@solidfire.com
o: 303.746.7302
Advancing the way the world uses the
cloud<http://solidfire.com/solution/overview/?video=play>
*™*

Re: CloudStack API Question

Posted by Will Stevens <ws...@cloudops.com>.
You may find this blog post helpful as well:
http://www.cloudops.com/2013/01/working-with-the-cloudstack-api/
At the bottom of the post I have provided two small python files which will
get you working with the API really quickly.  The code explains the steps
needed to create api calls pretty clearly and gives you something to play
with right away.


On Tue, Feb 12, 2013 at 2:50 PM, Mike Tutkowski <
mike.tutkowski@solidfire.com> wrote:

> Thanks, Chip!  This is just what I was looking for.
>
>
> On Tue, Feb 12, 2013 at 12:37 PM, Chip Childers
> <ch...@sungard.com>wrote:
>
> > On Tue, Feb 12, 2013 at 11:06:16AM -0700, Mike Tutkowski wrote:
> > > Hi everyone,
> > >
> > > I have not yet made use of the CS API and was looking at this URL:
> > >
> > >
> >
> http://incubator.apache.org/cloudstack/docs/api/apidocs-4.0.0/TOC_Root_Admin.html
> > >
> > > I was wondering where we specify what the protocol is?  Does CS use
> JSON
> > > over HTTP?
> > >
> > > Can someone point me to these specifics?
> > >
> > > Thanks!
> > >
> > > --
> > > *Mike Tutkowski*
> > > *Senior CloudStack Developer, SolidFire Inc.*
> > > e: mike.tutkowski@solidfire.com
> > > o: 303.746.7302
> > > Advancing the way the world uses the
> > > cloud<http://solidfire.com/solution/overview/?video=play>
> > > *™*
> >
> > Take a look at the API developer guide [1].  It explains how to use the
> > API (not the specific API commands).
> >
> > Also, depending on the language you are using, there are lots of options
> > already out there for language-specific bindings (if you don't want to
> > roll your own).
> >
> > [1]
> >
> >
> http://incubator.apache.org/cloudstack/docs/en-US/Apache_CloudStack/4.0.0-incubating/html/API_Developers_Guide/index.html
> >
>
>
>
> --
> *Mike Tutkowski*
> *Senior CloudStack Developer, SolidFire Inc.*
> e: mike.tutkowski@solidfire.com
> o: 303.746.7302
> Advancing the way the world uses the
> cloud<http://solidfire.com/solution/overview/?video=play>
> *™*
>

Re: CloudStack API Question

Posted by Mike Tutkowski <mi...@solidfire.com>.
Thanks, Chip!  This is just what I was looking for.


On Tue, Feb 12, 2013 at 12:37 PM, Chip Childers
<ch...@sungard.com>wrote:

> On Tue, Feb 12, 2013 at 11:06:16AM -0700, Mike Tutkowski wrote:
> > Hi everyone,
> >
> > I have not yet made use of the CS API and was looking at this URL:
> >
> >
> http://incubator.apache.org/cloudstack/docs/api/apidocs-4.0.0/TOC_Root_Admin.html
> >
> > I was wondering where we specify what the protocol is?  Does CS use JSON
> > over HTTP?
> >
> > Can someone point me to these specifics?
> >
> > Thanks!
> >
> > --
> > *Mike Tutkowski*
> > *Senior CloudStack Developer, SolidFire Inc.*
> > e: mike.tutkowski@solidfire.com
> > o: 303.746.7302
> > Advancing the way the world uses the
> > cloud<http://solidfire.com/solution/overview/?video=play>
> > *™*
>
> Take a look at the API developer guide [1].  It explains how to use the
> API (not the specific API commands).
>
> Also, depending on the language you are using, there are lots of options
> already out there for language-specific bindings (if you don't want to
> roll your own).
>
> [1]
>
> http://incubator.apache.org/cloudstack/docs/en-US/Apache_CloudStack/4.0.0-incubating/html/API_Developers_Guide/index.html
>



-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkowski@solidfire.com
o: 303.746.7302
Advancing the way the world uses the
cloud<http://solidfire.com/solution/overview/?video=play>
*™*

Re: CloudStack API Question

Posted by Chip Childers <ch...@sungard.com>.
On Tue, Feb 12, 2013 at 11:06:16AM -0700, Mike Tutkowski wrote:
> Hi everyone,
> 
> I have not yet made use of the CS API and was looking at this URL:
> 
> http://incubator.apache.org/cloudstack/docs/api/apidocs-4.0.0/TOC_Root_Admin.html
> 
> I was wondering where we specify what the protocol is?  Does CS use JSON
> over HTTP?
> 
> Can someone point me to these specifics?
> 
> Thanks!
> 
> -- 
> *Mike Tutkowski*
> *Senior CloudStack Developer, SolidFire Inc.*
> e: mike.tutkowski@solidfire.com
> o: 303.746.7302
> Advancing the way the world uses the
> cloud<http://solidfire.com/solution/overview/?video=play>
> *™*

Take a look at the API developer guide [1].  It explains how to use the
API (not the specific API commands).

Also, depending on the language you are using, there are lots of options
already out there for language-specific bindings (if you don't want to
roll your own).

[1]
http://incubator.apache.org/cloudstack/docs/en-US/Apache_CloudStack/4.0.0-incubating/html/API_Developers_Guide/index.html