Hi Ignasi, It works now!
Thanks indeed Igansi and Andrew. Rupinder On Mon, Mar 20, 2017 at 8:26 PM, Ignasi Barrera <n...@apache.org> wrote: > Hi, > > Your program is OK. You just need to change the identity and > credential lines to match your TryStack user. These lines: > > String identity = "demo:demo"; > String credential = "password"; > > Need to be changed to the right value. I've tried with my very-old > TryStack account that uses a Facebook login, changing it to something > like: > > String identity = "facebook1234567890:facebook1234567890"; > String credential = "generated api password"; > > In my case, the user and the tenant are the same (you can see its name > at the right top when you access the console), and the API password > can be generated by going to the top right menu, then to Settings > > API Password. > > > HTH! > > I. > > > > > On 20 March 2017 at 15:13, Rupinder Singh <rupi....@gmail.com> wrote: > > Hi Ignasi, > > > > Could you please look at my java file and suggest how to do it. I am > sorry, > > currently, I can't figure it out. I am attaching java file again here. > > > > Rupinder > > > > On Thu, Mar 16, 2017 at 9:06 PM, Ignasi Barrera <n...@apache.org> wrote: > >> > >> This is a different error: an Authorization one. > >> > >> Are you providing the right credentials? jclouds expects by default > >> the credentials in the following form: > >> > >> identity = "tenantName:userName" > >> credential = "password" > >> > >> Are you providing the credentials in that format? > >> > >> On 16 March 2017 at 16:21, Rupinder Singh <rupi....@gmail.com> wrote: > >> > Hi Andrew, > >> > > >> > I tried with "http" in place of "https". The output is here > >> > > >> > http://pastebin.com/5CEf24aa > >> > > >> > > >> > Not working. > >> > > >> > Rupinder > >> > > >> > On Thu, Mar 16, 2017 at 7:50 AM, Rupinder Singh <rupi....@gmail.com> > >> > wrote: > >> >> > >> >> Thanks Andrew. I'll try and get back in the evg(India time). I guess > >> >> missed marking my replies to all a couple of times. I'll be careful. > >> >> Rupinder. > >> >> > >> >> On 16 Mar 2017 07:30, "Andrew Phillips" <andr...@apache.org> wrote: > >> >>>> > >> >>>> I 'm attaching here the entire java code that I cobbled up from > the > >> >>>> following guide > >> >>> > >> >>> > >> >>> Thanks! In that file, could you try replacing > >> >>> > >> >>> .endpoint("https://8.43.86.2:5000/v2.0/") > >> >>> > >> >>> with > >> >>> > >> >>> .endpoint("http://8.43.86.2:5000/v2.0/") > >> >>> > >> >>> (i.e. "http" rather than "https") to see if that makes a difference? > >> >>> > >> >>> Also, please reply to user@jclouds.apache.org rather than to me > >> >>> directly > >> >>> - that way, there's a better chance that someone else will be able > to > >> >>> help > >> >>> if I'm not around. > >> >>> > >> >>> Regards > >> >>> > >> >>> ap > >> > > >> > > > > > >