deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Patches related to DTACLOUD_357
Date Wed, 07 Nov 2012 08:22:10 GMT

Patches related to CIMI create Machine. Thanks to Dies Koper for reporting the issue.

cURL examples:

JSON body:

curl --user "mockuser:mockpassword" -X POST  -H "Content-Type: application/json" -d '{ "resourceURI":
"", "name": "myMachine1", "description": "My very
first machine", "machineTemplate": { "machineConfig": { "href": "http://localhost:3001/cimi/machine_configurations/m1-small"
}, "machineImage": { "href": "http://localhost:3001/cimi/machine_images/img1" } } }' http://localhost:3001/cimi/machines

XML body:

curl --user "mockuser:mockpassword" -X POST -H "Content-Type: application/xml" -d '<MachineCreate
xmlns=""> <name> myMachine1 </name> <description>
my machine </description> <machineTemplate> <machineConfig href="http://localhost:3001/cimi/machine_configurations/m1-small">
</machineConfig> <machineImage href="http://localhost:3001/cimi/machine_images/img1">
</machineImage> </machineTemplate> </MachineCreate>' http://localhost:3001/cimi/machines


View raw message