[one-users] OFG-OCCI usage example

Justin Cinkelj justin.cinkelj at xlab.si
Thu May 5 01:35:34 PDT 2011


I installed ogf-occi server from git://git.opennebula.org/ogf-occi.git
The server is running, but I don't know hot to use it.

Command:
curl -X GET -H 'Accept: text/plain' 'http://172.16.120.228:4568/-/'
returns listing:
Category: network; scheme="http://schemas.ogf.org/occi/infrastructure#";
class="kind";title="Network
Resource";rel="http://schemas.ogf.org/occi/core#resource";location=/network/;attributes="occi.network.label occi.network.vlan occi.network.state";actions="http://schemas.ogf.org/occi/infrastructure/network/action#down http://schemas.ogf.org/occi/infrastructure/network/action#up";
...

At http://dev.opennebula.org/projects/ogf-occi/wiki is exemplary
request, but I don't know hot to send it to the server.
Could someone add  a complete curl command to help getting started?

Thanks for help, Justin





More information about the Users mailing list