Rackspace api-challenge summary
Update:
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 95.138.173.125 password JH6kFgUpBpzW Server # 1: ID 5d22f6f6-4b43-45ed-a40d-2f7076658168 IP 95.138.173.13 password Q5Ho8YJTqBQv Server # 2: ID 6d21f854-ad96-4735-8f94-6c9e40d74a37 IP 95.138.173.56 password mZJ9psBV5Crz [Finished in 263.0s]
References
- 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
No comments:
Post a Comment