deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@redhat.com
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.

https://issues.apache.org/jira/browse/DTACLOUD-357

cURL examples:


JSON body:

curl --user "mockuser:mockpassword" -X POST  -H "Content-Type: application/json" -d '{ "resourceURI":
"http://schemas.dmtf.org/cimi/1/MachineCreate", "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="http://schemas.dmtf.org/cimi/1"> <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


marios

Mime
View raw message