You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jclouds.apache.org by Sathish Kavikondala <sa...@kudupudi.com> on 2016/09/01 12:54:12 UTC

glance REST API access through jcloud project

While trying to explore openstack REST API's for glance service by using
jcloudes,
 I did not find any jcloud test examples.

If my understanding is not wrong, Appreciate your help by providing
thoughts or a way to continue further.

If the jcloude test examples are already available please let us know or
give us the feed back how to proceed.


-- 
Best Regards
sathish.k
+91-9618031159

Re: glance REST API access through jcloud project

Posted by Sathish Kavikondala <sa...@kudupudi.com>.
Hi Ignasi Barrera,

Thanks for your confirmation.
Appreciate your Quick Start guidelines about exactly what we are looking
for.

On Fri, Sep 2, 2016 at 1:59 PM, Ignasi Barrera <na...@apache.org> wrote:

> Hi Sathish,
>
> Unfortunately there are no examples for Glance, but getting started
> with it should be pretty straightforward.
>
> Add the glance dependency to your pom.xml:
>
> <dependency>
>    <groupId>org.apache.jclouds.labs</groupId>
>    <artifactId>openstack-glance</artifactId>
>    <version>1.9.2</version>
> </dependency>
>
> And then you can get an instance of the GlanceApi as follows:
>
> GlanceApi glance = ContextBuilder.newBuilder("openstack-glance")
>    .endpoint("the KEYSTONE endpoint")
>    .credentials("tenant:user", "password")
>    .buildApi(GlanceApi.class);
>
> That will give you the Glance API (Note that for the credentials you
> have to pass the tenant and user in the form "tenant:user").
>
> Also, right now we only support version 1.0, so keep that in mind too.
> http://jclouds-javadocs.elasticbeanstalk.com/org/
> jclouds/openstack/glance/v1_0/GlanceApi.html
>
>
> HTH!
>
> I.
>
> On 1 September 2016 at 14:54, Sathish Kavikondala <sa...@kudupudi.com>
> wrote:
> > While trying to explore openstack REST API's for glance service by using
> > jcloudes,
> >  I did not find any jcloud test examples.
> >
> > If my understanding is not wrong, Appreciate your help by providing
> > thoughts or a way to continue further.
> >
> > If the jcloude test examples are already available please let us know or
> > give us the feed back how to proceed.
> >
> >
> > --
> > Best Regards
> > sathish.k
> > +91-9618031159
>



-- 
Best Regards
sathish.k
+91-9618031159

Re: glance REST API access through jcloud project

Posted by Ignasi Barrera <na...@apache.org>.
Hi Sathish,

Unfortunately there are no examples for Glance, but getting started
with it should be pretty straightforward.

Add the glance dependency to your pom.xml:

<dependency>
   <groupId>org.apache.jclouds.labs</groupId>
   <artifactId>openstack-glance</artifactId>
   <version>1.9.2</version>
</dependency>

And then you can get an instance of the GlanceApi as follows:

GlanceApi glance = ContextBuilder.newBuilder("openstack-glance")
   .endpoint("the KEYSTONE endpoint")
   .credentials("tenant:user", "password")
   .buildApi(GlanceApi.class);

That will give you the Glance API (Note that for the credentials you
have to pass the tenant and user in the form "tenant:user").

Also, right now we only support version 1.0, so keep that in mind too.
http://jclouds-javadocs.elasticbeanstalk.com/org/jclouds/openstack/glance/v1_0/GlanceApi.html


HTH!

I.

On 1 September 2016 at 14:54, Sathish Kavikondala <sa...@kudupudi.com> wrote:
> While trying to explore openstack REST API's for glance service by using
> jcloudes,
>  I did not find any jcloud test examples.
>
> If my understanding is not wrong, Appreciate your help by providing
> thoughts or a way to continue further.
>
> If the jcloude test examples are already available please let us know or
> give us the feed back how to proceed.
>
>
> --
> Best Regards
> sathish.k
> +91-9618031159