In addition to what Sebestian suggested use any of the flags as you see right. See if you get the desired results
featured, // returns templates that have been marked as featured and public self, // returns templates that have been registered or created by the calling user selfexecutable, // same as self, but only returns templates that are ready to be deployed with shared executable, // ready templates that have been granted to the calling user by another user executable, // templates that are owned by the calling user, or public templates, that can be used to deploy a new VM community, // returns templates that have been marked as public but not featured all // returns all templates (only usable by admins) On 19/04/13 11:19 PM, "Sebastien Goasguen" <[email protected]> wrote: > >On Apr 19, 2013, at 1:27 PM, Kirk Jantzer <[email protected]> wrote: > >> So, I ended up writing something, but it is only returning results for >> things I personally have created, even though I am a root admin. >>Thoughts? >> >> > >try to pass: templatefilter=all as arguments > >> On Wed, Apr 17, 2013 at 2:40 PM, Sebastien Goasguen >><[email protected]>wrote: >> >>> >>> On Apr 17, 2013, at 2:38 PM, Kirk Jantzer <[email protected]> >>>wrote: >>> >>>> thanks for the replies everyone - by chance, anything php based?? :-) >>>> looking to build a simple page to do mass deployments, but be able to >>>> select offerings based on serviceofferings available the creator's >>>>keysÅ >>> >>> If you search for 'cloudstack client' on github there are a few php >>> clients I believe. >>> >>>> >>>> >>>> On Wed, Apr 17, 2013 at 2:35 PM, Edward Valencia <[email protected]> >>> wrote: >>>> >>>>> >>>>> There are two ruby gems that Ive been using to interact with the API: >>>>> >>>>> cloudstack_helper and cloudstack_ruby_client >>>>> >>>>> >>>>> >>>>> On Wednesday, April 17, 2013 at 11:16 AM, Kirk Jantzer wrote: >>>>>> Does anyone have a script for creating signatures? >>>>>> >>>>>> >>>>>> On Wed, Apr 17, 2013 at 1:31 PM, Kirk Jantzer >>>>>><[email protected] >>> (mailto: >>>>> [email protected])>wrote: >>>>>> >>>>>>> gah. *facepalm* deployvirtualmachine works without a signature, so >>>>>>>i >>>>>>> didn't think of that.. thanks! >>>>>>> >>>>>>> >>>>>>> On Wed, Apr 17, 2013 at 1:23 PM, Edward Valencia >>>>>>><[email protected] >>> (mailto: >>>>> [email protected])>wrote: >>>>>>> >>>>>>>> The api call needs to have a signature created based on the API >>>>>>>>and >>>>>>>> secrete key, I think this is whats missing in your call: >>>>>>>> >>>>>>>> >>>>>>>> >>>>> >>> >>>http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.0.1-incubati >>>ng/html/API_Developers_Guide/signing-api-requests.html >>>>>>>> >>>>>>>> Also commands are case sensitive but the way and should be used >>>>>>>>as in >>>>>>>> they are in the API docs. Hope this help. >>>>>>>> >>>>>>>> >>>>>>>> On Wednesday, April 17, 2013 at 10:19 AM, Kirk Jantzer wrote: >>>>>>>>> ok, maybe it's not just 'listtemplates' - I've tried other >>>>> commands and >>>>>>>> >>>>>>>> get >>>>>>>>> the same 'unable to verify...' reply....thoughts?? >>>>>>>>> >>>>>>>>> >>>>>>>>> On Wed, Apr 17, 2013 at 1:13 PM, Kirk Jantzer < >>>>> [email protected] (mailto:[email protected])(mailto: >>>>>>>> [email protected] (mailto:[email protected]))>wrote: >>>>>>>>> >>>>>>>>>> When I do the following: >>>>>>>> >>>>> >>> >>>api?command=listTemplates&templatefilter=featured&apikey=******&response >>>=json >>>>>>>>>> >>>>>>>>>> The result is the following (I have tried the API key of a >>>>>>>>>>domain >>>>>>>> admin >>>>>>>>>> and root admin, as well as a cookie session after GUI login - >>>>>>>>>>all >>>>>>>>> >>>>>>>> >>>>>>>> yielded >>>>>>>>>> same result): >>>>>>>>>> >>>>>>>>>> { "listtemplatesresponse" : >>>>>>>> {"uuidList":[],"errorcode":401,"errortext":"unable to verify user >>>>>>>> credentials and/or request signature"} } >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> Per this forum post, there was a suggestion to change the case >>>>> of the >>>>>>>>>> commands - that changed the output, but still didn't work: >>>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> >>>>> >>> >>>api?command=listtemplates&templatefilter=featured&apikey=******&response >>>=json >>>>>>>>>> >>>>>>>>>> { "errorresponse" : >>>>> {"uuidList":[],"errorcode":432,"errortext":"The >>>>>>>> given command does not exist"} } >>>>>>>>> >>>>>>>>> >>>>>>>>> -- >>>>>>>>> Regards, >>>>>>>>> >>>>>>>>> Kirk Jantzer >>>>>>>>> c: (678) 561-5475 >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Regards, >>>>>>> >>>>>>> Kirk Jantzer >>>>>>> c: (678) 561-5475 >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Regards, >>>>>> >>>>>> Kirk Jantzer >>>>>> c: (678) 561-5475 >>>>>> >>>>>> >>>>> >>>>> >>>>> >>>> >>>> >>>> -- >>>> Regards, >>>> >>>> Kirk Jantzer >>>> c: (678) 561-5475 >>> >>> >> >> >> -- >> Regards, >> >> Kirk Jantzer >> c: (678) 561-5475 >
