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:25 UTC

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

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