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.
python challange1.py [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 184.108.40.206 password JH6kFgUpBpzW Server # 1: ID 5d22f6f6-4b43-45ed-a40d-2f7076658168 IP 220.127.116.11 password Q5Ho8YJTqBQv Server # 2: ID 6d21f854-ad96-4735-8f94-6c9e40d74a37 IP 18.104.22.168 password mZJ9psBV5Crz [Finished in 263.0s]
- The documented results of the script can be found under this branch at github https://github.com/rtomaszewski/api-challenge/tree/challange1
- The lates code and more examples are availabe here https://github.com/rtomaszewski/api-challenge