Created
January 30, 2011 11:19
-
-
Save davidbrewer/802791 to your computer and use it in GitHub Desktop.
Sample usage of dewpoint
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# find out what sizes and types of nodes are available from your provider | |
# (these lists are truncated to just three items for clarity) | |
$ dewpoint list-sizes | |
----- | |
name: 256 server | |
price: None | |
ram: 256 | |
bandwidth: None | |
disk: 10 | |
id: 1 | |
----- | |
name: 512 server | |
price: None | |
ram: 512 | |
bandwidth: None | |
disk: 20 | |
id: 2 | |
----- | |
name: 1GB server | |
price: None | |
ram: 1024 | |
bandwidth: None | |
disk: 40 | |
id: 3 | |
----- | |
$ dewpoint list-images | |
----- | |
id: 49 | |
name: Ubuntu 10.04 LTS (lucid) | |
----- | |
id: 10 | |
name: Ubuntu 8.04.2 LTS (hardy) | |
----- | |
id: 51 | |
name: CentOS 5.5 | |
----- | |
# create a new node using your default settings | |
$ dewpoint create-node my-new-node | |
Node "my-new-node" created! | |
----- | |
flavor_id: 1 | |
state_name: pending | |
name: my-new-node | |
public_ip: ['184.106.78.243'] | |
image_id: 49 | |
state: 3 | |
private_ip: ['10.180.166.56'] | |
password: my-new-nodeND7E4b1qj | |
uuid: 07135bb6e6954f497bec08ab8a4659212c3c7e23 | |
----- | |
# get a list of your nodes | |
$ dewpoint list-nodes | |
----- | |
flavor_id: 1 | |
state_name: running | |
name: my-new-node | |
public_ip: ['184.106.78.243'] | |
image_id: 49 | |
state: 0 | |
private_ip: ['10.180.166.56'] | |
password: None | |
uuid: 07135bb6e6954f497bec08ab8a4659212c3c7e23 | |
----- | |
# find the details of a specific node | |
$ dewpoint find-node my-new-node | |
----- | |
flavor_id: 1 | |
state_name: running | |
name: my-new-node | |
public_ip: ['184.106.78.243'] | |
image_id: 49 | |
state: 0 | |
private_ip: ['10.180.166.56'] | |
password: None | |
uuid: 07135bb6e6954f497bec08ab8a4659212c3c7e23 | |
----- | |
# how about we get that same information (or the output of any Dewpoint command) in json format? | |
$ dewpoint find-node my-new-node -j | |
{ | |
"data": [ | |
{ | |
"flavor_id": "1", | |
"image_id": "49", | |
"name": "my-new-node", | |
"password": null, | |
"private_ip": [ | |
"10.180.166.56" | |
], | |
"public_ip": [ | |
"184.106.78.243" | |
], | |
"state": 0, | |
"state_name": "running", | |
"uuid": "07135bb6e6954f497bec08ab8a4659212c3c7e23" | |
} | |
] | |
} | |
# we're done with that node -- let's delete it | |
$ dewpoint destroy-node my-new-node | |
Node "my-new-node" destroyed! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment