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

Reply via email to