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

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

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