Skip to content

Instantly share code, notes, and snippets.

@etoews
Created August 15, 2012 15:30
Show Gist options
  • Save etoews/3361041 to your computer and use it in GitHub Desktop.
Save etoews/3361041 to your computer and use it in GitHub Desktop.
Getting started with jclouds
$ pwd
/Users/phymata/test/jclouds-test
$ ls
JCloudsTest.java lein.sh lib project.clj
$ javac -cp ".:lib/*" JCloudsTest.java
$ ls
JCloudsTest$1.class JCloudsTest.class JCloudsTest.java lein.sh lib project.clj
$ java -cp ".:lib/*" JCloudsTest
Calling listNodes...
Total Number of Nodes = 1
{id=DFW/45b23d7b-ec6a-49dc-a642-dadbba42af17, providerId=45b23d7b-ec6a-49dc-a642-dadbba42af17, name=test-1b, location={scope=HOST, id=44ae081dce76afa64907ffd3822debbe4c51644611e4399478bb8034, description=44ae081dce76afa64907ffd3822debbe4c51644611e4399478bb8034, parent=DFW}, group=test, imageId=DFW/5cebb13a-f783-4f8c-8058-c4182c724ccd, os={family=ubuntu, name=Ubuntu 12.04 LTS (Precise Pangolin), version=12.04, description=Ubuntu 12.04 LTS (Precise Pangolin), is64Bit=true}, status=RUNNING, loginPort=22, hostname=test-1b, privateAddresses=[123.123.123.123], publicAddresses=[123.123.123.123], hardware={id=DFW/3, providerId=3, name=1GB Standard Instance, location={scope=ZONE, id=DFW, description=DFW, parent=rackspace-cloudservers-us, iso3166Codes=[US-TX]}, processors=[{cores=1.0, speed=1.0}], ram=1024, volumes=[{type=LOCAL, size=40.0, bootDevice=true, durable=true}], supportsImage=ALWAYS_TRUE}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment