You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by ma...@gmail.com on 2013/03/20 11:12:23 UTC

[PATCH 1/8] Edited site - CIMI cURL examles for creating a volumeImage. Added :bootable. It's required to create volumeImage.

From: NjeriChelimo <ma...@gmail.com>

---
 site/content/cimi-curl/cimi-curl-volumes.md  |    4 +--
 site/output/cimi-curl/cimi-curl-volumes.html |    4 +--
 site/output/contact.html                     |   48 ++++++++------------------
 3 files changed, 19 insertions(+), 37 deletions(-)

diff --git a/site/content/cimi-curl/cimi-curl-volumes.md b/site/content/cimi-curl/cimi-curl-volumes.md
index 8692d60..a2c67ea 100644
--- a/site/content/cimi-curl/cimi-curl-volumes.md
+++ b/site/content/cimi-curl/cimi-curl-volumes.md
@@ -98,12 +98,12 @@ title: CIMI cURL Examples - Volume Resources
 
     <p>Create a Volume Image from an existing Volume, XML body:</p>
 
-    <pre>curl -v --user "mockuser:mockpassword" -H "Content-Type: application/xml" -H "Accept: application/xml" -X POST -d '&lt;VolumeImage xmlns="http://schemas.dmtf.org/cimi/1"&gt;&lt;name&gt; my_vol_image &lt;/name&gt;&lt;description&gt; marios first volume image &lt;/description&gt;&lt;imageLocation href="http://localhost:3001/cimi/volumes/vol1"/&gt;&lt;/VolumeImage&gt;' http://localhost:3001/cimi/volume_images
+    <pre>curl -v --user "mockuser:mockpassword" -H "Content-Type: application/xml" -H "Accept: application/xml" -X POST -d '&lt;VolumeImage xmlns="http://schemas.dmtf.org/cimi/1"&gt;&lt;name&gt; my_vol_image &lt;/name&gt;&lt;description&gt; marios first volume image &lt;/description&gt;&lt;bootable&gt; True &lt;/bootable&gt;&lt;imageLocation href="http://localhost:3001/cimi/volumes/vol1"/&gt;&lt;/VolumeImage&gt;' http://localhost:3001/cimi/volume_images
     </pre>
 
     <p>Create a Volume Image from an existing Volume, JSON body:</p>
 
-    <pre>curl -v --user "mockuser:mockpassword" -H "Content-Type: application/json" -H "Accept: application/xml" -X POST -d  '{ "resourceURI": "http://schemas.dmtf.org/cimi/1/VolumeImage","name": "some_name", "description": "marios first volume image", "imageLocation": { "href": "http://localhost:3001/cimi/volumes/vol1"}}' http://localhost:3001/cimi/volume_images</pre>
+    <pre>curl -v --user "mockuser:mockpassword" -H "Content-Type: application/json" -H "Accept: application/xml" -X POST -d  '{ "resourceURI": "http://schemas.dmtf.org/cimi/1/VolumeImage","name": "some_name", "description": "marios first volume image", "bootable": true, "imageLocation": { "href": "http://localhost:3001/cimi/volumes/vol1"}}' http://localhost:3001/cimi/volume_images</pre>
 
     <p>Delete a Volume Image:</p>
 
diff --git a/site/output/cimi-curl/cimi-curl-volumes.html b/site/output/cimi-curl/cimi-curl-volumes.html
index aa95be7..b6a6d7d 100644
--- a/site/output/cimi-curl/cimi-curl-volumes.html
+++ b/site/output/cimi-curl/cimi-curl-volumes.html
@@ -190,12 +190,12 @@
 
     <p>Create a Volume Image from an existing Volume, XML body:</p>
 
-    <pre>curl -v --user "mockuser:mockpassword" -H "Content-Type: application/xml" -H "Accept: application/xml" -X POST -d '&lt;VolumeImage xmlns="http://schemas.dmtf.org/cimi/1"&gt;&lt;name&gt; my_vol_image &lt;/name&gt;&lt;description&gt; marios first volume image &lt;/description&gt;&lt;imageLocation href="http://localhost:3001/cimi/volumes/vol1"/&gt;&lt;/VolumeImage&gt;' http://localhost:3001/cimi/volume_images
+    <pre>curl -v --user "mockuser:mockpassword" -H "Content-Type: application/xml" -H "Accept: application/xml" -X POST -d '&lt;VolumeImage xmlns="http://schemas.dmtf.org/cimi/1"&gt;&lt;name&gt; my_vol_image &lt;/name&gt;&lt;description&gt; marios first volume image &lt;/description&gt;&lt;bootable&gt; True &lt;/bootable&gt;&lt;imageLocation href="http://localhost:3001/cimi/volumes/vol1"/&gt;&lt;/VolumeImage&gt;' http://localhost:3001/cimi/volume_images
     </pre>
 
     <p>Create a Volume Image from an existing Volume, JSON body:</p>
 
-    <pre>curl -v --user "mockuser:mockpassword" -H "Content-Type: application/json" -H "Accept: application/xml" -X POST -d  '{ "resourceURI": "http://schemas.dmtf.org/cimi/1/VolumeImage","name": "some_name", "description": "marios first volume image", "imageLocation": { "href": "http://localhost:3001/cimi/volumes/vol1"}}' http://localhost:3001/cimi/volume_images</pre>
+    <pre>curl -v --user "mockuser:mockpassword" -H "Content-Type: application/json" -H "Accept: application/xml" -X POST -d  '{ "resourceURI": "http://schemas.dmtf.org/cimi/1/VolumeImage","name": "some_name", "description": "marios first volume image", "bootable": true, "imageLocation": { "href": "http://localhost:3001/cimi/volumes/vol1"}}' http://localhost:3001/cimi/volume_images</pre>
 
     <p>Delete a Volume Image:</p>
 
diff --git a/site/output/contact.html b/site/output/contact.html
index c41c18c..f56e3d4 100644
--- a/site/output/contact.html
+++ b/site/output/contact.html
@@ -106,13 +106,9 @@
   </li>
   <li>The <a href="http://webchat.freenode.net/">#deltacloud</a> irc channel on Freenode is a place where the developers hang out and where you can usually get the fastest answers to your questions.
   </li>
-</ul>
-
-<p>Please don't hesitate to get in touch if you have any questions about the project, if you've had any issues with installing or using Deltacloud or even just to tell us how great you think Deltacloud is!</p>
+</ul><p>Please don't hesitate to get in touch if you have any questions about the project, if you've had any issues with installing or using Deltacloud or even just to tell us how great you think Deltacloud is!</p>
 
-<hr>
-
-<h2>Deltacloud Community Calls</h2>
+<hr><h2>Deltacloud Community Calls</h2>
 
 <p>We have weekly community calls that are open to anyone that is interested in Deltacloud - please contact us if you’d like to join the next call.</p>
 
@@ -122,74 +118,60 @@
 
 <h3>Past Calls:</h3>
 
-<p><br>
-<a href="http://youtu.be/89bu_Rf_t9Y">Deltacloud Community Call #14</a></p>
+<p><br><a href="http://youtu.be/89bu_Rf_t9Y">Deltacloud Community Call #14</a></p>
 
 <p>Using the Create models in CIMI, Split CIMI models to Model/Service, deltacloud-client revamp <br>
 Notes@http://openetherpad.org/DeltacloudCall</p>
 
-<p><br>
-<a href="http://youtu.be/74KvoLUOmYw">Deltacloud Community Call #13</a></p>
+<p><br><a href="http://youtu.be/74KvoLUOmYw">Deltacloud Community Call #13</a></p>
 
 <p>Regions support in the Deltacloud Openstack driver.</p>
 
-<p><br>
-<a href="http://youtu.be/zTCGRDO_3dU">Deltacloud Community Call #12</a></p>
+<p><br><a href="http://youtu.be/zTCGRDO_3dU">Deltacloud Community Call #12</a></p>
 
 <p>Working with patches revisited - basics of rebasing and how to contribute via patch review.
 The ‘white box’ unit tests revisited - updating vcr fixtures</p>
 
-<p><br>
-<a href="http://youtu.be/HQ5aPdRSLHo">Deltacloud Community Call #11</a></p>
+<p><br><a href="http://youtu.be/HQ5aPdRSLHo">Deltacloud Community Call #11</a></p>
 
 <p>An introduction/overview of sinatra-rabbit</p>
 
-<p><br>
-<a href="http://www.youtube.com/watch?v=HzRbBA8BJ-Q">Deltacloud Community Call #10</a></p>
+<p><br><a href="http://www.youtube.com/watch?v=HzRbBA8BJ-Q">Deltacloud Community Call #10</a></p>
 
 <p>How to use Deltacloud driver “features”</p>
 
-<p><br>
-<a href="http://youtu.be/XWSG2knVvZI">Deltacloud Community Call #9</a></p>
+<p><br><a href="http://youtu.be/XWSG2knVvZI">Deltacloud Community Call #9</a></p>
 
 <p>Demo of how to use CIMI $select and $expand parameters - Introduction/overview of a deltacloud driver</p>
 
-<p><br>
-<a href="http://youtu.be/KvN0xEVc_N0">Deltacloud Community Call #8</a></p>
+<p><br><a href="http://youtu.be/KvN0xEVc_N0">Deltacloud Community Call #8</a></p>
 
 <p>Deep dive into a Deltacloud API call, a look at the Deltacloud server gemspec - gems used as clients to cloud providers</p>
 
-<p><br>
-<a href="http://www.youtube.com/watch?v=YbAsWrj6UEY">Deltacloud Community Call #7</a></p>
+<p><br><a href="http://www.youtube.com/watch?v=YbAsWrj6UEY">Deltacloud Community Call #7</a></p>
 
 <p>The Deltacloud website - how it works, how to submit changes etc  -  Deltacloud exceptions and error handling introduction, how to catch provider errors and raise specific HTTP response codes.</p>
 
-<p><br>
-<a href="http://www.youtube.com/watch?v=oP__wuCqFxQ">Deltacloud Community Call #5</a></p>
+<p><br><a href="http://www.youtube.com/watch?v=oP__wuCqFxQ">Deltacloud Community Call #5</a></p>
 
 <p>How to file bug reports for Deltacloud - process, what to report, following up and CIMI resourceMetadata (implementation, why it is important?) - testing scenarios.</p>
 
-<p><br>
-<a href="http://www.youtube.com/watch?v=TGYTrVRxcGE">Deltacloud Community Call #4</a></p>
+<p><br><a href="http://www.youtube.com/watch?v=TGYTrVRxcGE">Deltacloud Community Call #4</a></p>
 
 <p>Debugging deltacloud - how to chase a bug - common steps, debugging tools. Mailing list questions: i) ovirt and the User Level API, ii) Plans for CIMI back-end driver?</p>
 
-<p><br>
-<a href="http://www.youtube.com/watch?v=YOMK8jrhGoo">Deltacloud Community Call #3</a></p>
+<p><br><a href="http://www.youtube.com/watch?v=YOMK8jrhGoo">Deltacloud Community Call #3</a></p>
 
 <p>Adding state to Deltacloud for the CIMI frontend - Datamapper</p>
 
-<p><br>
-<a href="http://www.youtube.com/watch?v=CMf73mtsIfs">Deltacloud Community Call #2</a></p>
+<p><br><a href="http://www.youtube.com/watch?v=CMf73mtsIfs">Deltacloud Community Call #2</a></p>
 
 <p>Networking API discussion, Writing Deltacloud API tests</p>
 
-<p><br>
-<a href="http://www.youtube.com/watch?v=cUC96SdQjaE">Deltacloud Community Call #1</a></p>
+<p><br><a href="http://www.youtube.com/watch?v=cUC96SdQjaE">Deltacloud Community Call #1</a></p>
 
 <p>Working with Deltacloud API clients, Contributing patches, review process, etc</p>
 
-
       <footer class="footer">
         <p class="pull-right"><span class='icon-circle-arrow-up'>&nbsp;</span><a href="#">Back to top</a></p>
         <div class='row'>
-- 
1.7.9.5


[PATCH 8/8] Site (CIMI cURL examples) - fixed typos in working with volume templates

Posted by ma...@gmail.com.
From: NjeriChelimo <ma...@gmail.com>

---
 site/output/cimi-curl/cimi-curl-volumes.html |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/site/output/cimi-curl/cimi-curl-volumes.html b/site/output/cimi-curl/cimi-curl-volumes.html
index 8fc2482..d70e5d5 100644
--- a/site/output/cimi-curl/cimi-curl-volumes.html
+++ b/site/output/cimi-curl/cimi-curl-volumes.html
@@ -250,7 +250,7 @@
 
     <p>Create a Volume Template with XML body:</p>
 
-    <pre>curl --user "mockuser:mockpassword" -H "Content-Type: application/xml" -H "Accept: application/xml" -X POST -d '&lt;VolumeTemplate xmlns="http://schemas.dmtf.org/cimi/1"&gt; &lt;name&gt; marios_vol_template &lt;/name&gt; &lt;description&gt; my first volume template &lt;/description&gt; &lt;volumeConfig href="http://localhost:3001/cimi/volume_configurations/1"&gt; &lt;/volumeConfig&gt; &lt;volumeImage href="http://localhost:3001/cimi/volume_images/snap1"&gt; &lt;/volumeImage&gt; &lt;/VolumeTemplate&gt;' http://localhost:3001/cimi/volume_templates</pre>
+    <pre>curl -v --user "mockuser:mockpassword" -H "Content-Type: application/xml" -H "Accept: application/xml" -X POST -d '&lt;VolumeTemplate xmlns="http://schemas.dmtf.org/cimi/1"&gt; &lt;name&gt; marios_vol_template &lt;/name&gt; &lt;description&gt; my first volume template &lt;/description&gt; &lt;volumeConfig href="http://localhost:3001/cimi/volume_configurations/1"&gt; &lt;/volumeConfig&gt; &lt;volumeImage href="http://localhost:3001/cimi/volume_images/snap1"&gt; &lt;/volumeImage&gt; &lt;/VolumeTemplate&gt;' http://localhost:3001/cimi/volume_templates</pre>
 
     <p>Create a Volume Template with JSON body:</p>
 
-- 
1.7.9.5


[PATCH 4/8] Site (CIMI cURL examples)- fixed typos in working with machines Templates

Posted by ma...@gmail.com.
From: NjeriChelimo <ma...@gmail.com>

---
 site/content/cimi-curl/cimi-curl-machines.md  |    2 +-
 site/output/cimi-curl/cimi-curl-machines.html |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/site/content/cimi-curl/cimi-curl-machines.md b/site/content/cimi-curl/cimi-curl-machines.md
index 770d8fa..3fe52d6 100644
--- a/site/content/cimi-curl/cimi-curl-machines.md
+++ b/site/content/cimi-curl/cimi-curl-machines.md
@@ -143,7 +143,7 @@ curl --user "user:pass" -H "Accept: application/json" http://localhost:3001/cimi
 <p>Retrieve a specific Machine Template:</p>
 
 <pre>
-curl --user "user:pass" -H "Accept: application/json" http://localhost:3001/cimi/machine_templates/m1-large
+curl --user "user:pass" -H "Accept: application/json" http://localhost:3001/cimi/machine_templates/1
 </pre>
 
 <p> Create a Machine Template with XML body: </p>
diff --git a/site/output/cimi-curl/cimi-curl-machines.html b/site/output/cimi-curl/cimi-curl-machines.html
index 473ae47..0e554f8 100644
--- a/site/output/cimi-curl/cimi-curl-machines.html
+++ b/site/output/cimi-curl/cimi-curl-machines.html
@@ -235,7 +235,7 @@ curl --user "user:pass" -H "Accept: application/json" http://localhost:3001/cimi
 <p>Retrieve a specific Machine Template:</p>
 
 <pre>
-curl --user "user:pass" -H "Accept: application/json" http://localhost:3001/cimi/machine_templates/m1-large
+curl --user "user:pass" -H "Accept: application/json" http://localhost:3001/cimi/machine_templates/1
 </pre>
 
 <p> Create a Machine Template with XML body: </p>
-- 
1.7.9.5


[PATCH 7/8] Site (CIMI cURL examles) - Creating volumeTemplate: added volumeImage, it is required

Posted by ma...@gmail.com.
From: NjeriChelimo <ma...@gmail.com>

---
 site/content/cimi-curl/cimi-curl-volumes.md  |    4 ++--
 site/output/cimi-curl/cimi-curl-volumes.html |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/site/content/cimi-curl/cimi-curl-volumes.md b/site/content/cimi-curl/cimi-curl-volumes.md
index 1de48a5..e897258 100644
--- a/site/content/cimi-curl/cimi-curl-volumes.md
+++ b/site/content/cimi-curl/cimi-curl-volumes.md
@@ -158,11 +158,11 @@ title: CIMI cURL Examples - Volume Resources
 
     <p>Create a Volume Template with XML body:</p>
 
-    <pre>curl --user "mockuser:mockpassword" -H "Content-Type: application/xml" -H "Accept: application/xml" -X POST -d '&lt;VolumeTemplate xmlns="http://schemas.dmtf.org/cimi/1"&gt; &lt;name&gt; marios_vol_template &lt;/name&gt; &lt;description&gt; my first volume template &lt;/description&gt; &lt;volumeConfig href="http://localhost:3001/cimi/volume_configs/1"&gt; &lt;/volumeConfig&gt; &lt;/VolumeTemplate&gt;' http://localhost:3001/cimi/volume_templates</pre>
+    <pre>curl -v --user "mockuser:mockpassword" -H "Content-Type: application/xml" -H "Accept: application/xml" -X POST -d '&lt;VolumeTemplate xmlns="http://schemas.dmtf.org/cimi/1"&gt; &lt;name&gt; marios_vol_template &lt;/name&gt; &lt;description&gt; my first volume template &lt;/description&gt; &lt;volumeConfig href="http://localhost:3001/cimi/volume_configurations/1"&gt; &lt;/volumeConfig&gt; &lt;volumeImage href="http://localhost:3001/cimi/volume_images/snap1"&gt; &lt;/volumeImage&gt; &lt;/VolumeTemplate&gt;' http://localhost:3001/cimi/volume_templates</pre>
 
     <p>Create a Volume Template with JSON body:</p>
 
-    <pre>curl -v --user "mockuser:mockpassword" -H "Content-Type: application/json" -H "Accept: application/xml" -X POST -d '{ "resourceURI": "http://schemas.dmtf.org/cimi/1/VolumeTemplate","name": "marios_vol_template", "description": "my first volume template", "volumeConfig": { "href": "http://localhost:3001/cimi/volume_configs/1"} }' http://localhost:3001/cimi/volume_templates </pre>
+    <pre>curl -v --user "mockuser:mockpassword" -H "Content-Type: application/json" -H "Accept: application/xml" -X POST -d '{ "resourceURI": "http://schemas.dmtf.org/cimi/1/VolumeTemplate","name": "marios_vol_template", "description": "my first volume template", "volumeConfig": { "href": "http://localhost:3001/cimi/volume_configurations/1"}, "volumeImage": { "href": "http://localhost:3001/cimi/volume_images/snap1"} }' http://localhost:3001/cimi/volume_templates </pre>
 
     <p>Delete a Volume Template:</p>
 
diff --git a/site/output/cimi-curl/cimi-curl-volumes.html b/site/output/cimi-curl/cimi-curl-volumes.html
index fa21a0e..8fc2482 100644
--- a/site/output/cimi-curl/cimi-curl-volumes.html
+++ b/site/output/cimi-curl/cimi-curl-volumes.html
@@ -250,11 +250,11 @@
 
     <p>Create a Volume Template with XML body:</p>
 
-    <pre>curl --user "mockuser:mockpassword" -H "Content-Type: application/xml" -H "Accept: application/xml" -X POST -d '&lt;VolumeTemplate xmlns="http://schemas.dmtf.org/cimi/1"&gt; &lt;name&gt; marios_vol_template &lt;/name&gt; &lt;description&gt; my first volume template &lt;/description&gt; &lt;volumeConfig href="http://localhost:3001/cimi/volume_configs/1"&gt; &lt;/volumeConfig&gt; &lt;/VolumeTemplate&gt;' http://localhost:3001/cimi/volume_templates</pre>
+    <pre>curl --user "mockuser:mockpassword" -H "Content-Type: application/xml" -H "Accept: application/xml" -X POST -d '&lt;VolumeTemplate xmlns="http://schemas.dmtf.org/cimi/1"&gt; &lt;name&gt; marios_vol_template &lt;/name&gt; &lt;description&gt; my first volume template &lt;/description&gt; &lt;volumeConfig href="http://localhost:3001/cimi/volume_configurations/1"&gt; &lt;/volumeConfig&gt; &lt;volumeImage href="http://localhost:3001/cimi/volume_images/snap1"&gt; &lt;/volumeImage&gt; &lt;/VolumeTemplate&gt;' http://localhost:3001/cimi/volume_templates</pre>
 
     <p>Create a Volume Template with JSON body:</p>
 
-    <pre>curl -v --user "mockuser:mockpassword" -H "Content-Type: application/json" -H "Accept: application/xml" -X POST -d '{ "resourceURI": "http://schemas.dmtf.org/cimi/1/VolumeTemplate","name": "marios_vol_template", "description": "my first volume template", "volumeConfig": { "href": "http://localhost:3001/cimi/volume_configs/1"} }' http://localhost:3001/cimi/volume_templates </pre>
+    <pre>curl -v --user "mockuser:mockpassword" -H "Content-Type: application/json" -H "Accept: application/xml" -X POST -d '{ "resourceURI": "http://schemas.dmtf.org/cimi/1/VolumeTemplate","name": "marios_vol_template", "description": "my first volume template", "volumeConfig": { "href": "http://localhost:3001/cimi/volume_configurations/1"}, "volumeImage": { "href": "http://localhost:3001/cimi/volume_images/snap1"} }' http://localhost:3001/cimi/volume_templates </pre>
 
     <p>Delete a Volume Template:</p>
 
-- 
1.7.9.5


[PATCH 3/8] Site (CIMI cURL examples)- fixed typos in working with machinesImages

Posted by ma...@gmail.com.
From: NjeriChelimo <ma...@gmail.com>

---
 site/content/cimi-curl/cimi-curl-machines.md  |    4 ++--
 site/output/cimi-curl/cimi-curl-machines.html |    8 ++++----
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/site/content/cimi-curl/cimi-curl-machines.md b/site/content/cimi-curl/cimi-curl-machines.md
index 7f892b9..770d8fa 100644
--- a/site/content/cimi-curl/cimi-curl-machines.md
+++ b/site/content/cimi-curl/cimi-curl-machines.md
@@ -87,7 +87,7 @@ curl -v -X POST --user "mockuser:mockpassword" -H "Content-Type: application/xml
 <p>Retrieve the Machine Image Collection:</p>
 
 <pre>
-curl --user "user:pass" -H "Accept: application/json" http://localhost:3001/cimi/machine_images
+curl --user "mockuser:mockpassword" -H "Accept: application/json" http://localhost:3001/cimi/machine_images
 </pre>
 
 <p>Create a new Machine Image from an existing Machine, with message body in JSON:</p>
@@ -105,7 +105,7 @@ curl -v --user "mockuser:mockpassword" -H "Content-Type: application/xml" -H "Ac
 
 <p>Delete a Machine Image:</p>
 
-<pre>curl -X DELETE --user "user:pass" http://localhost:3001/cimi/machine_images/my_image </pre>
+<pre>curl -X DELETE --user "mockuser:mockpassword" http://localhost:3001/cimi/machine_images/my_image </pre>
 
 <br/>
 
diff --git a/site/output/cimi-curl/cimi-curl-machines.html b/site/output/cimi-curl/cimi-curl-machines.html
index d938e63..473ae47 100644
--- a/site/output/cimi-curl/cimi-curl-machines.html
+++ b/site/output/cimi-curl/cimi-curl-machines.html
@@ -152,7 +152,7 @@ curl -v --user "mockuser:mockpassword" -X POST -H "Content-Type: application/xml
 
 <p>Alternatively, specifying the message body in JSON:</p>
 <pre>
- curl -v --user "user:password" -X POST -H "Content-Type: application/json" -H "Accept: application/xml" -d '{ "resourceURI": "http://schemas.dmtf.org/cimi/1/MachineCreate", "name": "myMachine3", "description": "My very first json machine", "machineTemplate": { "machineConfig": { "href": "http://localhost:3001/cimi/machine_configurations/m1.small" }, "machineImage": { "href": "http://localhost:3001/cimi/machine_images/ami-48aa4921" } } }' http://localhost:3001/cimi/machines
+ curl -v --user "mockuser:mockpassword" -X POST -H "Content-Type: application/json" -H "Accept: application/xml" -d '{ "resourceURI": "http://schemas.dmtf.org/cimi/1/MachineCreate", "name": "myMachine3", "description": "My very first json 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
 </pre>
 
 <p>Perform a Machine operation - stop - with the message body in XML format:</p>
@@ -163,7 +163,7 @@ curl -v -X POST --user "mockuser:mockpassword" -H "Content-Type: application/xml
 
 <p>Alternatively, specifying the message body in JSON:</p>
 <pre>
- curl -v -X POST --user "user:password" -H "Accept: application/json" -H "Content-Type: application/json" -d '{"resourceURI": "http://www.dmtf.org/cimi/1/Action", "action":"http://www.dmtf.org/cimi/action/stop"}' http://localhost:3001/cimi/machines/i-5feb7c20/stop
+ curl -v -X POST --user "mockuser:mockpassword" -H "Accept: application/json" -H "Content-Type: application/json" -d '{"resourceURI": "http://www.dmtf.org/cimi/1/Action", "action":"http://www.dmtf.org/cimi/action/stop"}' http://localhost:3001/cimi/machines/inst3/stop
 </pre>
 
 <br>
@@ -179,7 +179,7 @@ curl -v -X POST --user "mockuser:mockpassword" -H "Content-Type: application/xml
 <p>Retrieve the Machine Image Collection:</p>
 
 <pre>
-curl --user "user:pass" -H "Accept: application/json" http://localhost:3001/cimi/machine_images
+curl --user "mockuser:mockpassword" -H "Accept: application/json" http://localhost:3001/cimi/machine_images
 </pre>
 
 <p>Create a new Machine Image from an existing Machine, with message body in JSON:</p>
@@ -197,7 +197,7 @@ curl -v --user "mockuser:mockpassword" -H "Content-Type: application/xml" -H "Ac
 
 <p>Delete a Machine Image:</p>
 
-<pre>curl -X DELETE --user "user:pass" http://localhost:3001/cimi/machine_images/my_image </pre>
+<pre>curl -X DELETE --user "mockuser:mockpassword" http://localhost:3001/cimi/machine_images/my_image </pre>
 
 <br>
 
-- 
1.7.9.5


[PATCH 6/8] Site (cimi cURL examples) fixed typos on Volume Images

Posted by ma...@gmail.com.
From: NjeriChelimo <ma...@gmail.com>

---
 site/content/cimi-curl/cimi-curl-volumes.md  |    4 ++--
 site/output/cimi-curl/cimi-curl-volumes.html |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/site/content/cimi-curl/cimi-curl-volumes.md b/site/content/cimi-curl/cimi-curl-volumes.md
index e2f00c2..1de48a5 100644
--- a/site/content/cimi-curl/cimi-curl-volumes.md
+++ b/site/content/cimi-curl/cimi-curl-volumes.md
@@ -90,11 +90,11 @@ title: CIMI cURL Examples - Volume Resources
 
     <p>Retrieve the Volume Image Collection in xml format:</p>
 
-    <pre> curl --user "user:pass" -H "Accept: application/xml" http://localhost:3001/cimi/volume_images</pre>
+    <pre> curl --user "mockuser:mockpassword" -H "Accept: application/xml" http://localhost:3001/cimi/volume_images</pre>
 
     <p>Retrieve a specific Volume Image in json format:</p>
 
-    <pre> curl --user "user:pass" -H "Accept: application/json" http://localhost:3001/cimi/volume_images/vol_image1 </pre>
+    <pre> curl --user "mockuser:mockpassword" -H "Accept: application/json" http://localhost:3001/cimi/volume_images/vol_image1 </pre>
 
     <p>Create a Volume Image from an existing Volume, XML body:</p>
 
diff --git a/site/output/cimi-curl/cimi-curl-volumes.html b/site/output/cimi-curl/cimi-curl-volumes.html
index 6b07965..fa21a0e 100644
--- a/site/output/cimi-curl/cimi-curl-volumes.html
+++ b/site/output/cimi-curl/cimi-curl-volumes.html
@@ -182,11 +182,11 @@
 
     <p>Retrieve the Volume Image Collection in xml format:</p>
 
-    <pre> curl --user "user:pass" -H "Accept: application/xml" http://localhost:3001/cimi/volume_images</pre>
+    <pre> curl --user "mockuser:mockpassword" -H "Accept: application/xml" http://localhost:3001/cimi/volume_images</pre>
 
     <p>Retrieve a specific Volume Image in json format:</p>
 
-    <pre> curl --user "user:pass" -H "Accept: application/json" http://localhost:3001/cimi/volume_images/vol_image1 </pre>
+    <pre> curl --user "mockuser:mockpassword" -H "Accept: application/json" http://localhost:3001/cimi/volume_images/vol_image1 </pre>
 
     <p>Create a Volume Image from an existing Volume, XML body:</p>
 
-- 
1.7.9.5


[PATCH 5/8] Site (cimi cURL examles) - fixed typos in working with Volume resources

Posted by ma...@gmail.com.
From: NjeriChelimo <ma...@gmail.com>

---
 site/content/cimi-curl/cimi-curl-volumes.md  |   12 ++++++------
 site/output/cimi-curl/cimi-curl-volumes.html |   12 ++++++------
 2 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/site/content/cimi-curl/cimi-curl-volumes.md b/site/content/cimi-curl/cimi-curl-volumes.md
index a2c67ea..e2f00c2 100644
--- a/site/content/cimi-curl/cimi-curl-volumes.md
+++ b/site/content/cimi-curl/cimi-curl-volumes.md
@@ -49,30 +49,30 @@ title: CIMI cURL Examples - Volume Resources
 
     <p>Retrieve the Volume Collection in json format:</p>
 
-    <pre> curl --user "user:pass" -H "Accept: application/json" http://localhost:3001/cimi/volumes </pre>
+    <pre> curl --user "mockuser:mockpassword" -H "Accept: application/json" http://localhost:3001/cimi/volumes </pre>
 
     <p>Retrieve a specific Volume in xml format: </p>
 
-    <pre> curl --user "user:pass" -H "Accept: application/xml" http://localhost:3001/cimi/volumes/volume1 </pre>
+    <pre> curl --user "mockuser:mockpassword" -H "Accept: application/xml" http://localhost:3001/cimi/volumes/volume1 </pre>
 
     <p>Create Volume - with VolumeConfiguration by reference, XML body:</p>
 
-    <pre>curl -v --user "mockuser:mockpassword" -H "Accept:application/xml" -X POST -d '&lt;VolumeCreate&gt;&lt;name&gt; marios_new_volume &lt;/name&gt; &lt;description&gt; a new volume &lt;/description&gt;&lt;volumeTemplate&gt;&lt;volumeConfig href="http://localhost:3001/cimi/volume_configurations/2"&gt; &lt;/volumeConfig&gt;&lt;/volumeTemplate&gt;&lt;/VolumeCreate&gt;' http://localhost:3001//cimi/volumes
+    <pre>curl -v --user "mockuser:mockpassword" -H "Content-Type: application/xml" -H "Accept:application/xml" -X POST -d '&lt;VolumeCreate&gt;&lt;name&gt; marios_new_volume &lt;/name&gt; &lt;description&gt; a new volume &lt;/description&gt;&lt;volumeTemplate&gt;&lt;volumeConfig href="http://localhost:3001/cimi/volume_configurations/8"&gt; &lt;/volumeConfig&gt;&lt;/volumeTemplate&gt;&lt;/VolumeCreate&gt;' http://localhost:3001/cimi/volumes
      </pre>
 
     <p>Create Volume - with VolumeConfiguration by reference, JSON body:</p>
 
-    <pre>curl -v --user "mockuser:mockpassword" -H "Accept:application/xml" -X POST -d '{"name": "marios_new_volume", "description": "a new volume", "volumeTemplate": { "volumeConfig": {"href":"http://localhost:3001/cimi/volume_configurations/2" }}}' http://localhost:3001//cimi/volumes
+    <pre>curl -v --user "mockuser:mockpassword" -H "Content-Type: application/json" -H "Accept:application/json" -X POST -d '{"resourceURI": "http://schemas.dmtf.org/cimi/1/VolumeCreate", "name": "marios_new_volume", "description": "a new volume", "volumeTemplate": { "volumeConfig": {"href":"http://localhost:3001/cimi/volume_configurations/8" }}}' http://localhost:3001/cimi/volumes
     </pre>
 
     <p>Create Volume - with VolumeConfiguration by value, XML body:</p>
 
-    <pre>curl -v --user "mockuser:mockpassword" -H "Accept:application/xml" -X POST -d '&lt;VolumeCreate&gt;&lt;name&gt; marios_volume &lt;/name&gt;&lt;description&gt; a new volume &lt;/description&gt; &lt;volumeTemplate&gt;&lt;volumeConfig&gt;&lt;type&gt;http://schemas.dmtf.org/cimi/1/mapped&lt;/type&gt;&lt;capacity&gt; 1024 &lt;/capacity&gt;&lt;/volumeConfig&gt;&lt;/volumeTemplate&gt; &lt;/VolumeCreate&gt;' http://localhost:3001//cimi/volumes
+    <pre>curl -v --user "mockuser:mockpassword" -H "Content-Type: application/xml" -H "Accept:application/xml" -X POST -d '&lt;VolumeCreate&gt;&lt;name&gt; marios_volume &lt;/name&gt;&lt;description&gt; a new volume &lt;/description&gt; &lt;volumeTemplate&gt;&lt;volumeConfig&gt;&lt;type&gt;http://schemas.dmtf.org/cimi/1/mapped&lt;/type&gt;&lt;capacity&gt; 1024 &lt;/capacity&gt;&lt;/volumeConfig&gt;&lt;/volumeTemplate&gt; &lt;/VolumeCreate&gt;' http://localhost:3001/cimi/volumes
     </pre>
 
     <p>Create Volume - with VolumeConfiguration by value, JSON body:</p>
 
-    <pre>curl -v --user "mockuser:mockpassword" -H "Accept:application/xml"  -X POST -d '{"name": "marios_new_volume", "description": "a new volume", "volumeTemplate": { "volumeConfig": {"type":"http://schemas.dmtf.org/cimi/1/mapped", "capacity": 1024 }}}'   http://localhost:3001/cimi/volumes
+    <pre>curl -v --user "mockuser:mockpassword" -H "Content-Type: application/json" -H "Accept:application/json"  -X POST -d '{"resourceURI": "http://schemas.dmtf.org/cimi/1/VolumeCreate", "name": "marios_new_volume", "description": "a new volume", "volumeTemplate": { "volumeConfig": {"type":"http://schemas.dmtf.org/cimi/1/mapped", "capacity": 1024 }}}'   http://localhost:3001/cimi/volumes
     </pre>
 
     <p>Delete a Volume</p>
diff --git a/site/output/cimi-curl/cimi-curl-volumes.html b/site/output/cimi-curl/cimi-curl-volumes.html
index b6a6d7d..6b07965 100644
--- a/site/output/cimi-curl/cimi-curl-volumes.html
+++ b/site/output/cimi-curl/cimi-curl-volumes.html
@@ -141,30 +141,30 @@
 
     <p>Retrieve the Volume Collection in json format:</p>
 
-    <pre> curl --user "user:pass" -H "Accept: application/json" http://localhost:3001/cimi/volumes </pre>
+    <pre> curl --user "mockuser:mockpassword" -H "Accept: application/json" http://localhost:3001/cimi/volumes </pre>
 
     <p>Retrieve a specific Volume in xml format: </p>
 
-    <pre> curl --user "user:pass" -H "Accept: application/xml" http://localhost:3001/cimi/volumes/volume1 </pre>
+    <pre> curl --user "mockuser:mockpassword" -H "Accept: application/xml" http://localhost:3001/cimi/volumes/volume1 </pre>
 
     <p>Create Volume - with VolumeConfiguration by reference, XML body:</p>
 
-    <pre>curl -v --user "mockuser:mockpassword" -H "Accept:application/xml" -X POST -d '&lt;VolumeCreate&gt;&lt;name&gt; marios_new_volume &lt;/name&gt; &lt;description&gt; a new volume &lt;/description&gt;&lt;volumeTemplate&gt;&lt;volumeConfig href="http://localhost:3001/cimi/volume_configurations/2"&gt; &lt;/volumeConfig&gt;&lt;/volumeTemplate&gt;&lt;/VolumeCreate&gt;' http://localhost:3001//cimi/volumes
+    <pre>curl -v --user "mockuser:mockpassword" -H "Content-Type: application/xml" -H "Accept:application/xml" -X POST -d '&lt;VolumeCreate&gt;&lt;name&gt; marios_new_volume &lt;/name&gt; &lt;description&gt; a new volume &lt;/description&gt;&lt;volumeTemplate&gt;&lt;volumeConfig href="http://localhost:3001/cimi/volume_configurations/8"&gt; &lt;/volumeConfig&gt;&lt;/volumeTemplate&gt;&lt;/VolumeCreate&gt;' http://localhost:3001/cimi/volumes
      </pre>
 
     <p>Create Volume - with VolumeConfiguration by reference, JSON body:</p>
 
-    <pre>curl -v --user "mockuser:mockpassword" -H "Accept:application/xml" -X POST -d '{"name": "marios_new_volume", "description": "a new volume", "volumeTemplate": { "volumeConfig": {"href":"http://localhost:3001/cimi/volume_configurations/2" }}}' http://localhost:3001//cimi/volumes
+    <pre>curl -v --user "mockuser:mockpassword" -H "Content-Type: application/json" -H "Accept:application/json" -X POST -d '{"resourceURI": "http://schemas.dmtf.org/cimi/1/VolumeCreate", "name": "marios_new_volume", "description": "a new volume", "volumeTemplate": { "volumeConfig": {"href":"http://localhost:3001/cimi/volume_configurations/8" }}}' http://localhost:3001/cimi/volumes
     </pre>
 
     <p>Create Volume - with VolumeConfiguration by value, XML body:</p>
 
-    <pre>curl -v --user "mockuser:mockpassword" -H "Accept:application/xml" -X POST -d '&lt;VolumeCreate&gt;&lt;name&gt; marios_volume &lt;/name&gt;&lt;description&gt; a new volume &lt;/description&gt; &lt;volumeTemplate&gt;&lt;volumeConfig&gt;&lt;type&gt;http://schemas.dmtf.org/cimi/1/mapped&lt;/type&gt;&lt;capacity&gt; 1024 &lt;/capacity&gt;&lt;/volumeConfig&gt;&lt;/volumeTemplate&gt; &lt;/VolumeCreate&gt;' http://localhost:3001//cimi/volumes
+    <pre>curl -v --user "mockuser:mockpassword" -H "Content-Type: application/xml" -H "Accept:application/xml" -X POST -d '&lt;VolumeCreate&gt;&lt;name&gt; marios_volume &lt;/name&gt;&lt;description&gt; a new volume &lt;/description&gt; &lt;volumeTemplate&gt;&lt;volumeConfig&gt;&lt;type&gt;http://schemas.dmtf.org/cimi/1/mapped&lt;/type&gt;&lt;capacity&gt; 1024 &lt;/capacity&gt;&lt;/volumeConfig&gt;&lt;/volumeTemplate&gt; &lt;/VolumeCreate&gt;' http://localhost:3001/cimi/volumes
     </pre>
 
     <p>Create Volume - with VolumeConfiguration by value, JSON body:</p>
 
-    <pre>curl -v --user "mockuser:mockpassword" -H "Accept:application/xml"  -X POST -d '{"name": "marios_new_volume", "description": "a new volume", "volumeTemplate": { "volumeConfig": {"type":"http://schemas.dmtf.org/cimi/1/mapped", "capacity": 1024 }}}'   http://localhost:3001/cimi/volumes
+    <pre>curl -v --user "mockuser:mockpassword" -H "Content-Type: application/json" -H "Accept:application/json"  -X POST -d '{"resourceURI": "http://schemas.dmtf.org/cimi/1/VolumeCreate", "name": "marios_new_volume", "description": "a new volume", "volumeTemplate": { "volumeConfig": {"type":"http://schemas.dmtf.org/cimi/1/mapped", "capacity": 1024 }}}'   http://localhost:3001/cimi/volumes
     </pre>
 
     <p>Delete a Volume</p>
-- 
1.7.9.5


[PATCH 2/8] Site (CIMI cURL examples)- fixed typos in working with machines

Posted by ma...@gmail.com.
From: NjeriChelimo <ma...@gmail.com>

---
 site/content/cimi-curl/cimi-curl-machines.md  |    6 +++---
 site/output/cimi-curl/cimi-curl-machines.html |    2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/site/content/cimi-curl/cimi-curl-machines.md b/site/content/cimi-curl/cimi-curl-machines.md
index 07bfcaf..7f892b9 100644
--- a/site/content/cimi-curl/cimi-curl-machines.md
+++ b/site/content/cimi-curl/cimi-curl-machines.md
@@ -50,7 +50,7 @@ title: CIMI cURL Examples - Machine Resources
 
 <p>Retrieve the Machine Collection in json format:</p>
 
-<pre> curl --user "user:pass" -H "Accept: application/json" http://localhost:3001/cimi/machines </pre>
+<pre> curl --user "mockuser:mockpassword" -H "Accept: application/json" http://localhost:3001/cimi/machines </pre>
 
 <p>Create a new Machine with the message body in XML format:</p>
 
@@ -60,7 +60,7 @@ curl -v --user "mockuser:mockpassword" -X POST -H "Content-Type: application/xml
 
 <p>Alternatively, specifying the message body in JSON:</p>
 <pre>
- curl -v --user "user:password" -X POST -H "Content-Type: application/json" -H "Accept: application/xml" -d '{ "resourceURI": "http://schemas.dmtf.org/cimi/1/MachineCreate", "name": "myMachine3", "description": "My very first json machine", "machineTemplate": { "machineConfig": { "href": "http://localhost:3001/cimi/machine_configurations/m1.small" }, "machineImage": { "href": "http://localhost:3001/cimi/machine_images/ami-48aa4921" } } }' http://localhost:3001/cimi/machines
+ curl -v --user "mockuser:mockpassword" -X POST -H "Content-Type: application/json" -H "Accept: application/xml" -d '{ "resourceURI": "http://schemas.dmtf.org/cimi/1/MachineCreate", "name": "myMachine3", "description": "My very first json 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
 </pre>
 
 <p>Perform a Machine operation - stop - with the message body in XML format:</p>
@@ -71,7 +71,7 @@ curl -v -X POST --user "mockuser:mockpassword" -H "Content-Type: application/xml
 
 <p>Alternatively, specifying the message body in JSON:</p>
 <pre>
- curl -v -X POST --user "user:password" -H "Accept: application/json" -H "Content-Type: application/json" -d '{"resourceURI": "http://www.dmtf.org/cimi/1/Action", "action":"http://www.dmtf.org/cimi/action/stop"}' http://localhost:3001/cimi/machines/i-5feb7c20/stop
+ curl -v -X POST --user "mockuser:mockpassword" -H "Accept: application/json" -H "Content-Type: application/json" -d '{"resourceURI": "http://www.dmtf.org/cimi/1/Action", "action":"http://www.dmtf.org/cimi/action/stop"}' http://localhost:3001/cimi/machines/inst3/stop
 </pre>
 
 <br/>
diff --git a/site/output/cimi-curl/cimi-curl-machines.html b/site/output/cimi-curl/cimi-curl-machines.html
index 58eecd8..d938e63 100644
--- a/site/output/cimi-curl/cimi-curl-machines.html
+++ b/site/output/cimi-curl/cimi-curl-machines.html
@@ -142,7 +142,7 @@
 
 <p>Retrieve the Machine Collection in json format:</p>
 
-<pre> curl --user "user:pass" -H "Accept: application/json" http://localhost:3001/cimi/machines </pre>
+<pre> curl --user "mockuser:mockpassword" -H "Accept: application/json" http://localhost:3001/cimi/machines </pre>
 
 <p>Create a new Machine with the message body in XML format:</p>
 
-- 
1.7.9.5