Re: CloudStack API Question

2013-02-21 Thread David Nalley
On Thu, Feb 21, 2013 at 12:12 AM, Mike Tutkowski 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 wh

Re: CloudStack API Question

2013-02-20 Thread Mike Tutkowski
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 a

Re: CloudStack API Question

2013-02-20 Thread Jessica Tomechak
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.

Re: CloudStack API Question

2013-02-14 Thread Mike Tutkowski
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.tutkow...@solidfire.com> wrote: > I think I may know the problem here: > > I only have one template and it is a system template.

Re: CloudStack API Question

2013-02-14 Thread Mike Tutkowski
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? O

Re: CloudStack API Question

2013-02-14 Thread Mike Tutkowski
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-11e

Re: CloudStack API Question

2013-02-14 Thread Mike Tutkowski
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 valu

Re: CloudStack API Question

2013-02-14 Thread Mike Tutkowski
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 wrote: > On Tue, Feb 12, 2013, at 09:26 PM, Mike Tutkowski wrote: > > Can you point me to t

Re: CloudStack API Question

2013-02-14 Thread Will Stevens
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-

Re: CloudStack API Question

2013-02-14 Thread Joe Brockmeier
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 j.

Re: CloudStack API Question

2013-02-14 Thread Will Stevens
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.tutkow...@solidfire.com> wrote: > At th

Re: CloudStack API Question

2013-02-14 Thread Mike Tutkowski
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.tutkow...@solidfire.com> wrote: > At the moment, I only have a couple Compute Off

Re: CloudStack API Question

2013-02-14 Thread Mike Tutkowski
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.tutkow...@solidfire.com> wrote: > Which leads me to my next question, do I have to run a query to

Re: CloudStack API Question

2013-02-14 Thread Mike Tutkowski
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.tutkow...@solidfire.com> wrote: > Ac

Re: CloudStack API Question

2013-02-14 Thread Mike Tutkowski
Actually, when I do a copy/paste of the URL into Chrome, this is what I get back: 431 4350 Unable to use system template 1 to deploy a user vm On Thu, Feb 14, 2013 at 1:08 PM, Mike Tutkowski < mike.tutkow...@solidfire.com> wrote: > I think I fixed the signature issue because now I get a new

Re: CloudStack API Question

2013-02-14 Thread Mike Tutkowski
I think I fixed the signature issue because now I get a new error code: 431 431 Request Header Fields Too Large (RFC 6585 )The server is unwilling to process the request because either an individual header field, or all the header fields collectively, are too l

Re: CloudStack API Question

2013-02-14 Thread Mike Tutkowski
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 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 the

Re: CloudStack API Question

2013-02-14 Thread Mike Tutkowski
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 wrote: > When you generated your signature, did you first sort the parameters being > passed alphabetically? If you didn't

Re: CloudStack API Question

2013-02-14 Thread Will Stevens
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 wrote: > When you generated your signature, did you first

Re: CloudStack API Question

2013-02-14 Thread Will Stevens
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.tutkow...@solidfire.com> wrote: > So, my next API

Re: CloudStack API Question

2013-02-14 Thread George Reese
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 wrote: > So, my next API question. :) > > I am getting a 401 with the following Java code. A 40

Re: CloudStack API Question

2013-02-14 Thread Mike Tutkowski
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 = "

Re: CloudStack API Question

2013-02-13 Thread Mike Tutkowski
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:2

Re: CloudStack API Question

2013-02-13 Thread David Grizzanti
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

Re: CloudStack API Question

2013-02-13 Thread Mike Tutkowski
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 wrote: > If

Re: CloudStack API Question

2013-02-12 Thread Rohit Yadav
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 wrote:

Re: CloudStack API Question

2013-02-12 Thread Mike Tutkowski
Great - thanks, Will! On Tue, Feb 12, 2013 at 9:07 PM, Will Stevens 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 a

Re: CloudStack API Question

2013-02-12 Thread Will Stevens
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

Re: CloudStack API Question

2013-02-12 Thread Mike Tutkowski
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 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 < > mi

Re: CloudStack API Question

2013-02-12 Thread Will Stevens
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.tutkow...@solidfire.com> wrote: > to "say" (I mean) :) > > > On Tue, Feb 12, 2013 at 4:13 PM, Mike Tutkowski < > mike.tutkow...@solidfire.com>

Re: CloudStack API Question

2013-02-12 Thread Mike Tutkowski
to "say" (I mean) :) On Tue, Feb 12, 2013 at 4:13 PM, Mike Tutkowski < mike.tutkow...@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 wrote: > >> Every role uses the same procedure. They all need an api

Re: CloudStack API Question

2013-02-12 Thread Mike Tutkowski
Sounds good...and these do not expire? Is that accurate to day? On Tue, Feb 12, 2013 at 4:03 PM, Will Stevens 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.tutkow...@solidfire.com> wrote:

Re: CloudStack API Question

2013-02-12 Thread Will Stevens
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.tutkow...@solidfire.com> wrote: > Thanks for the info. > > So, I see we have three roles in CloudStack: Root Admin, Domain Admin, and > User. > > When submitting

Re: CloudStack API Question

2013-02-12 Thread Mike Tutkowski
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 Tu

Re: CloudStack API Question

2013-02-12 Thread David Nalley
On Tue, Feb 12, 2013 at 5:27 PM, Mike Tutkowski 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 Ke

Re: CloudStack API Question

2013-02-12 Thread Mike Tutkowski
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 administ

Re: CloudStack API Question

2013-02-12 Thread Mike Tutkowski
Thanks, Will! On Tue, Feb 12, 2013 at 3:00 PM, Will Stevens 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 reall

Re: CloudStack API Question

2013-02-12 Thread Will Stevens
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 clear

Re: CloudStack API Question

2013-02-12 Thread Mike Tutkowski
Thanks, Chip! This is just what I was looking for. On Tue, Feb 12, 2013 at 12:37 PM, Chip Childers 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.apac

Re: CloudStack API Question

2013-02-12 Thread Chip Childers
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?

How to Contribute to API Documentation (was RE: CloudStack API question)

2012-06-27 Thread Jessica Tomechak
, 2012 4:54 PM > To: cloudstack-dev@incubator.apache.org > Cc: Radhika Nair > Subject: Re: CloudStack API question > > Here is the doc explaining @ usage in API commands / API responses: > > http://wiki.cloudstack.org/display/dev/Annotations+use+in+API > > -Alena. > &g

Re: CloudStack API question

2012-06-26 Thread Alena Prokharchyk
e. > >-Alena. > > >On 6/25/12 4:23 AM, "Deepak Garg" wrote: > >> >> >>-Original Message- >>From: Prasanna Santhanam [mailto:prasanna.santha...@citrix.com] >>Sent: Monday, June 25, 2012 1:45 PM >>To: cloudstack-dev@incubator.apac

Re: CloudStack API question

2012-06-25 Thread Alena Prokharchyk
5, 2012 1:45 PM >To: cloudstack-dev@incubator.apache.org >Cc: Radhika Nair >Subject: Re: CloudStack API question > >On Fri, Jun 22, 2012 at 05:20:45PM -0400, Jessica Tomechak wrote: >> Thanks to Amit for raising these API questions. I have noted the >>answers in >> in the

RE: CloudStack API question

2012-06-25 Thread Deepak Garg
-Original Message- From: Prasanna Santhanam [mailto:prasanna.santha...@citrix.com] Sent: Monday, June 25, 2012 1:45 PM To: cloudstack-dev@incubator.apache.org Cc: Radhika Nair Subject: Re: CloudStack API question On Fri, Jun 22, 2012 at 05:20:45PM -0400, Jessica Tomechak wrote

Re: CloudStack API question

2012-06-25 Thread Prasanna Santhanam
On Fri, Jun 22, 2012 at 05:20:45PM -0400, Jessica Tomechak wrote: > Thanks to Amit for raising these API questions. I have noted the answers in > in the documentation bug http://bugs.cloudstack.org/browse/CS-12742, "API > docs: Better describe parameters." I filed this bug myself last January. > I'

Re: CloudStack API question

2012-06-22 Thread Jessica Tomechak
ssica T. CloudStack Tech Pubs > > > -Original Message- > From: Alena Prokharchyk [mailto:alena.prokharc...@citrix.com] > Sent: Friday, June 22, 2012 9:52 AM > To: cloudstack-dev@incubator.apache.org > Cc: Amit Shah > Subject: Re: CloudStack API question > > On

Re: CloudStack API question

2012-06-22 Thread Alena Prokharchyk
On 6/22/12 5:50 AM, "Prasanna Santhanam" wrote: >Hi Amit, > >Posting this to the asf-dev list. There are more eyes here to correct me >if I am wrong. > >Answers Inline: > >> Where can I find more information on specific parameters passed to a >> CLoudStack API. The API reference guide only prov

Re: CloudStack API question

2012-06-22 Thread Prasanna Santhanam
Hi Amit, Posting this to the asf-dev list. There are more eyes here to correct me if I am wrong. Answers Inline: > Where can I find more information on specific parameters passed to a > CLoudStack API. The API reference guide only provides a one line > description > I think that the API refe