aboutsummaryrefslogtreecommitdiff
path: root/etc/describe-images.fln
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2013-02-15 17:20:53 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2013-02-15 17:25:58 +0200
commit9205135a977cacebb79df1309ef5eaab57127f06 (patch)
treefd9ed7ba7476d8d9c4272238119bcd644150463d /etc/describe-images.fln
parent62f22e19e0953022d68f220463104117a1a5b7e2 (diff)
downloadeclat-9205135a977cacebb79df1309ef5eaab57127f06.tar.gz
eclat-9205135a977cacebb79df1309ef5eaab57127f06.tar.bz2
Implement DescribeImages and RunInstances.
* TODO: Update. * etc/describe-images.fln: New file. * etc/run-instances.fln: New file. * etc/Makefile.am: Add new files. * lib/q2url.c (add_param): Accept NULL values. * lib/qaddparm.c (eclat_query_add_param): Likewise. * lib/qencode.c (encode_param): Likewise. * lib/reqsign.c (eclat_query_signature): Likewise. * src/dscrimgs-cl.opt: New file. * src/dscrimgs.c: New file. * src/runinsts-cl.opt: New file. * src/runinsts.c: New file. * src/Makefile.am: Add new files. * src/eclat.c (cmdtab): Register new commands. * src/eclat.h (eclat_run_instances) (eclat_describe_images): New protos.
Diffstat (limited to 'etc/describe-images.fln')
-rw-r--r--etc/describe-images.fln55
1 files changed, 55 insertions, 0 deletions
diff --git a/etc/describe-images.fln b/etc/describe-images.fln
new file mode 100644
index 0000000..55c7ae1
--- /dev/null
+++ b/etc/describe-images.fln
@@ -0,0 +1,55 @@
+/* This file is part of Eclat.
+ Copyright (C) 2013 Sergey Poznyakoff.
+
+ Eclat is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3, or (at your option)
+ any later version.
+
+ Eclat is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with Eclat. If not, see <http://www.gnu.org/licenses/>. */
+
+if (.DescribeImagesResponse.imagesSet) {
+ for (var in .DescribeImagesResponse.imagesSet.item) {
+ print("\nImage ID: ", var.imageId, "\n");
+ print("\tName: ", var.name, "\n");
+ print("\tDescription: ", var.description, "\n");
+ print("\tOwner: ", var.imageOwnerId, "\n");
+ print("\tState: ", var.imageState, "\n");
+ print("\tPublic: ", var.isPublic, "\n");
+ print("\tType: ", var.imageType, "\n");
+ print("\tArchitecture: ", var.architecture, "\n");
+ if (var.kernel)
+ print("\tKernel: ", var.kernelId, "\n");
+ if (var.ramdiskId)
+ print("\tRamdisk: ", var.ramdiskId, "\n");
+ if (var.platform)
+ print("\tPlatform: ", var.platform, "\n");
+ print("\tVirtualization: ", var.virtualizationType, "\n");
+ print("\tHypervisor: ", var.hypervisor, "\n");
+
+ print("\tRoot Device Type: ", var.rootDeviceType, "\n");
+ print("\tRoot Device Name: ", var.rootDeviceName, "\n");
+ print("\tDevice mapping:\n");
+ for (dev in var.blockDeviceMapping.item) {
+ print("\t\t", dev.deviceName, " ");
+ if (dev.virtualName)
+ print(dev.virtualName);
+ else
+ print(dev.ebs.SnapshotId, " ",
+ dev.ebs.volumeSize, " ", dev.ebs.volumeType, " ",
+ dev.ebs.deleteOnTermination);
+ print("\n");
+ }
+
+ print("\tTag Set:\n");
+ for (tag in var.tagSet.item) {
+ print("\t\t", tag.key, "=", tag.value, "\n");
+ }
+ }
+}

Return to:

Send suggestions and report system problems to the System administrator.