You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by mf...@apache.org on 2012/11/30 09:48:24 UTC

[1/8] git commit: CIMI: Added sample JSON and XML files to support/cimi

Updated Branches:
  refs/heads/master f8cb26459 -> 1365d40c4


CIMI: Added sample JSON and XML files to support/cimi

These files could be used together with curl to create
CIMI entities.


Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/1365d40c
Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/1365d40c
Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/1365d40c

Branch: refs/heads/master
Commit: 1365d40c4a869b6ddb75a44cc3e70a9ea8228a7e
Parents: a9212ed
Author: Michal Fojtik <mf...@redhat.com>
Authored: Fri Nov 30 09:45:48 2012 +0100
Committer: Michal fojtik <mf...@redhat.com>
Committed: Fri Nov 30 09:46:50 2012 +0100

----------------------------------------------------------------------
 server/support/cimi/machine.json           |   13 +++++++++++++
 server/support/cimi/machine_from_temp.json |   10 ++++++++++
 server/support/cimi/machine_template.json  |   11 +++++++++++
 server/support/cimi/volume.xml             |   10 ++++++++++
 4 files changed, 44 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/1365d40c/server/support/cimi/machine.json
----------------------------------------------------------------------
diff --git a/server/support/cimi/machine.json b/server/support/cimi/machine.json
new file mode 100644
index 0000000..e2564d9
--- /dev/null
+++ b/server/support/cimi/machine.json
@@ -0,0 +1,13 @@
+{
+  "resourceURI": "http://schemas.dmtf.org/cimi/1/MachineCreate",
+  "name": "myDatabaseMachine",
+  "description": "This is a hangout demo stuff",
+  "properties": {
+    "foo": "bar",
+    "life": "is life"
+  },
+  "machineTemplate": {
+    "machineConfig": { "href": " http://localhost:3001/cimi/machine_configurations/m1-small" },
+    "machineImage": { "href": " http://localhost:3001/cimi/machine_images/img1" }
+  }
+}

http://git-wip-us.apache.org/repos/asf/deltacloud/blob/1365d40c/server/support/cimi/machine_from_temp.json
----------------------------------------------------------------------
diff --git a/server/support/cimi/machine_from_temp.json b/server/support/cimi/machine_from_temp.json
new file mode 100644
index 0000000..c7d7ab8
--- /dev/null
+++ b/server/support/cimi/machine_from_temp.json
@@ -0,0 +1,10 @@
+{
+  "resourceURI": "http://schemas.dmtf.org/cimi/1/MachineCreate",
+  "name": "myMachine1337",
+  "description": "My template machine",
+  "properties": {
+    "foo": "bar",
+    "life": "is life"
+  },
+  "machineTemplate": { "href": "http://localhost:3001/cimi/machine_templates/8" }
+}

http://git-wip-us.apache.org/repos/asf/deltacloud/blob/1365d40c/server/support/cimi/machine_template.json
----------------------------------------------------------------------
diff --git a/server/support/cimi/machine_template.json b/server/support/cimi/machine_template.json
new file mode 100644
index 0000000..a8e27ae
--- /dev/null
+++ b/server/support/cimi/machine_template.json
@@ -0,0 +1,11 @@
+{
+  "resourceURI": "http://schemas.dmtf.org/cimi/1/MachineTemplateCreate",
+  "name": "myMachineDemoTemplate",
+  "description": "My very loved machine template",
+  "machineConfig": { "href": " http://localhost:3001/cimi/machine_configurations/m1-xlarge" },
+  "machineImage": { "href": " http://localhost:3001/cimi/machine_images/img3" },
+  "properties": {
+    "foo": "bar",
+    "life": "is life"
+  }
+}

http://git-wip-us.apache.org/repos/asf/deltacloud/blob/1365d40c/server/support/cimi/volume.xml
----------------------------------------------------------------------
diff --git a/server/support/cimi/volume.xml b/server/support/cimi/volume.xml
new file mode 100644
index 0000000..030dcce
--- /dev/null
+++ b/server/support/cimi/volume.xml
@@ -0,0 +1,10 @@
+<VolumeCreate>
+  <name>myVolume1</name>
+  <description>Description of my new volume</description>
+  <type>http://schemas.dmtf.org/cimi/1/mapped</type>
+  <capacity>1048576</capacity>
+  <bootable>false</bootable>
+  <volumeTemplate>
+    <volumeConfig href="http://localhost:3001/cimi/volume_configurations/2"/>
+  </volumeTemplate>
+</VolumeCreate>