Return-Path: X-Original-To: apmail-deltacloud-dev-archive@www.apache.org Delivered-To: apmail-deltacloud-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E10FFF004 for ; Wed, 20 Mar 2013 10:13:22 +0000 (UTC) Received: (qmail 65391 invoked by uid 500); 20 Mar 2013 10:13:22 -0000 Delivered-To: apmail-deltacloud-dev-archive@deltacloud.apache.org Received: (qmail 65363 invoked by uid 500); 20 Mar 2013 10:13:22 -0000 Mailing-List: contact dev-help@deltacloud.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@deltacloud.apache.org Delivered-To: mailing list dev@deltacloud.apache.org Received: (qmail 65349 invoked by uid 99); 20 Mar 2013 10:13:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Mar 2013 10:13:21 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of martha.c.chumo@gmail.com designates 209.85.212.180 as permitted sender) Received: from [209.85.212.180] (HELO mail-wi0-f180.google.com) (209.85.212.180) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Mar 2013 10:13:14 +0000 Received: by mail-wi0-f180.google.com with SMTP id hi8so1562126wib.13 for ; Wed, 20 Mar 2013 03:12:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:subject:date:message-id:x-mailer:in-reply-to :references; bh=6xT7K05JzK6KoqhvR7Ag3Acr/OJWY6xTEPZJ9dCqyPE=; b=N/L6Qv5sNOhua3YVeILd9czO/a3XM65ajvpmxhd9rhWZ0864CBgcYF/aBMxXN2FQ1z Nf3aBEDu5NPoGvexq3UvT/3PQ4gjvnnh/MK2rjNeB27rvpclbozLnCeeo/DVJvIYbJ/C XqqD27LRdTkKYN+F97Bthv2Do3iMIcUw0/Un8q4nLTVPtjBbMtfP8o/k1lQ9YVKtiqJE B50MIHOgQMmTTePGzRpP2KLMAI0051OGkA0NMYDb8TAkOnDLyefZwNjz/QGJaIfq3E9v TMdAgjfuCROBaTqC11gC5Fle5H/uLwn3g7Z74NvzeDsiasgATTH65X6a0UE7FxlWwavU N5XA== X-Received: by 10.194.21.233 with SMTP id y9mr9263760wje.47.1363774374729; Wed, 20 Mar 2013 03:12:54 -0700 (PDT) Received: from localhost.localdomain ([212.49.88.102]) by mx.google.com with ESMTPS id ej8sm5871410wib.9.2013.03.20.03.12.53 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 20 Mar 2013 03:12:54 -0700 (PDT) From: martha.c.chumo@gmail.com To: dev@deltacloud.apache.org Subject: [PATCH 3/8] Site (CIMI cURL examples)- fixed typos in working with machinesImages Date: Wed, 20 Mar 2013 13:12:25 +0300 Message-Id: <1363774350-16705-3-git-send-email-martha.c.chumo@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1363774350-16705-1-git-send-email-martha.c.chumo@gmail.com> References: <1363774350-16705-1-git-send-email-martha.c.chumo@gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org From: NjeriChelimo --- 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

Retrieve the Machine Image Collection:

-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
 

Create a new Machine Image from an existing Machine, with message body in JSON:

@@ -105,7 +105,7 @@ curl -v --user "mockuser:mockpassword" -H "Content-Type: application/xml" -H "Ac

Delete a Machine Image:

-
curl -X DELETE --user "user:pass" http://localhost:3001/cimi/machine_images/my_image 
+
curl -X DELETE --user "mockuser:mockpassword" http://localhost:3001/cimi/machine_images/my_image 

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

Alternatively, specifying the message body in JSON:

- 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
 

Perform a Machine operation - stop - with the message body in XML format:

@@ -163,7 +163,7 @@ curl -v -X POST --user "mockuser:mockpassword" -H "Content-Type: application/xml

Alternatively, specifying the message body in JSON:

- 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
 

@@ -179,7 +179,7 @@ curl -v -X POST --user "mockuser:mockpassword" -H "Content-Type: application/xml

Retrieve the Machine Image Collection:

-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
 

Create a new Machine Image from an existing Machine, with message body in JSON:

@@ -197,7 +197,7 @@ curl -v --user "mockuser:mockpassword" -H "Content-Type: application/xml" -H "Ac

Delete a Machine Image:

-
curl -X DELETE --user "user:pass" http://localhost:3001/cimi/machine_images/my_image 
+
curl -X DELETE --user "mockuser:mockpassword" http://localhost:3001/cimi/machine_images/my_image 

-- 1.7.9.5