Search This Blog

Sunday, April 7, 2013

Challenge 1 script

The full summary of all posts for API Rackspace challenge can be found here:
Rackspace api-challenge summary

Added the direct link to the branch with tested code.

Challenge 1 script

Below is an output from the script showing the results.
The script first creates 3 cloud servers with a name webX.
Next waits until they are built.
Once they are build we can find what public IP they got assigned.
And lastly we print this on stdout.
[16:49:53] Building 3 cloud server(s).
[16:49:53] building web0 cloud server
[16:49:53] building web1 cloud server
[16:49:54] building web2 cloud server
[16:49:54] Waiting for the servers to be built ...
[16:54:00] Cloud server details:
Server # 0:  ID  e5d8b1bc-b85f-462e-b4bc-00f1432a89d0 IP password JH6kFgUpBpzW
Server # 1:  ID  5d22f6f6-4b43-45ed-a40d-2f7076658168 IP password Q5Ho8YJTqBQv
Server # 2:  ID  6d21f854-ad96-4735-8f94-6c9e40d74a37 IP password mZJ9psBV5Crz
[Finished in 263.0s]

  1. The documented results of the script can be found under this branch at github
  2. The lates code and more examples are availabe here

No comments:

Post a Comment