Sorry for the late response!
It seems to be that the the git commit you have previously mentioned (https://github.com/dkoper/deltacloud-core/commit/69d7d6f70169af07a1b73) is not in the master branch. Although I patched the file manually, Sinatra gives me an 404 "Sinatra doesn’t know this ditty" when using "POST http://localhost:3001/cimi/systems/import";.
I started my deltacloud server via "deltacloudd -i ec2 -f cimi, deltacloud".
Am I missing something?

Best regards
David


On 18.08.2013 14:13, Koper, Dies wrote:
Hi David,

curl --user user:pwd http://localhost:3001/cimi/systems/import -X POST
-d @import.xml -H "Content-Type: application/xml" -H "Accept:
application/xml"

where import.xml is in your current directory with content:

<Action xmlns="http://schemas.dmtf.org/cimi/1";>
   <action>http://schemas.dmtf.org/cimi/1/action/import</action>
   <source>D:\ubuntu\ubuntu.ovf</source>
</Action>

There may be a requirement for vsphere (I'm not sure) to have the ovf
files in a subdirectory with the same name as the descriptor.

The format default to "application/ovf" so no need to specify it.

For export, query the CEP to find the url to list the system collection
(that's where you'll also find the import url I use above), then query
the system you want to export to find the export url to POST to. You'd
post an XML body similar to the above one with the right action value
and other elements.

Regards,
Dies Koper

Reply via email to