deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From martha.c.ch...@gmail.com
Subject [PATCH 5/8] Site (cimi cURL examles) - fixed typos in working with Volume resources
Date Wed, 20 Mar 2013 10:12:27 GMT
From: NjeriChelimo <martha.c.chumo@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


Mime
View raw message