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 <sath...@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

Reply via email to