[one-ecosystem] [rOCCI server]: Authentication & Response format

John Samonakis samon at ucnet.uoc.gr
Wed Oct 31 02:24:14 PDT 2012


 

Hi!  

 

I need some help with rOCCI server.

 

In older version of occi server (Server: Ruby OCCI Framework/0.4 OCCI/1.1,
downloaded 

from  <http://dev.opennebula.org/projects/ogf-occi/>
http://dev.opennebula.org/projects/ogf-occi/ ) I use curl in order to get
the vms without

providing authentication credentials. For example  I submit:

 

curl  -v -X GET  http://mydomain:3000/compute/

 

I use the occi-server.conf to provide username/password. Specifically,
inside this file I write:

ONE_USER=myuser

ONE_PASSWORD=mypass

 

However, in rOCCI server, I use now, (Server: rOCCI/0.5.0 OCCI/1.1)  I can't
find where to place 

username/password and thus, I have to submit the requests with credentials
like this:

 

curl  -u myuser:mypass -v -X GET  http://mydomain:3000/compute/

 

Is it possible to place username/password in a file so as not to have to
provide credential

in my requests?  I use java to make request on occi server, and now, I have
to find out

how to provide username/password .

 

One more question: I notice that responses of rOCCI server (Server:
rOCCI/0.5.0 OCCI/1.1)  

are in XML format.  Are other formats supported? If not, I have to modify my
java code to handle this

format. The current version of my code handle http responses, like those I
receive

from older version of occi server (Server: Ruby OCCI Framework/0.4
OCCI/1.1.)

 

 

Many thanks!

John

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/ecosystem-opennebula.org/attachments/20121031/430b3d31/attachment.htm>


More information about the Ecosystem mailing list