Giter Site home page Giter Site logo

pallav17 / rackspace-cloud-servers-api-python-script Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jmontemayor/rackspace-cloud-servers-api-python-script

0.0 2.0 0.0 104 KB

This script performs some simple actions on a cloud server using the Rackspace API v1.0 and v2.0

Python 100.00%

rackspace-cloud-servers-api-python-script's Introduction

Rackspace-Cloud-Servers-API-Python-Script

This script performs some simple actions on a cloud server using the Rackspace API v1.0 and v2.0

v1.0/cloudserveractions.py

SYNOPSIS

cloudserveractions create|resize|rebuild|reboot|delete|list username apikey

Optional [-s,--servername] [-i, --imagename] [-f, --flavorname] [-d,--serverid] [-r,--reboottype] [-h,--help] [-v,--verbose] [--version]

DESCRIPTION

This script does the following actions on an rackspace cloud server: This script does the following actions on an rackspace cloud server:

  • Create Server - Creates a new server if no options are entered will use defaults
  • Resize Server - Resizes a server requires a server id
  • Rebuild Server - Rebuilds a server requires a server id
  • Reboot Server - Reboots a server requires a server id
  • Delete Server - Deletes a server requires a server id
  • List Servers - Lists all servers usefull for getting server ids

EXAMPLES

>>python cloudserveractions.py create username 12312321312 --servername=test --imagename=imagename --flavorname=m1.tiny   
>>python cloudserveractions.py resize username 1231212312323423421312 --serverid=1234 --flavorname="512 server"  
>>python cloudserveractions.py reboot username 1231212312323423421312 --serverid=1234 --reboottype=hard
>>python cloudserveractions.py rebuild username 1231212312323423421312 --serverid=1234 --imagename='Ubuntu 11.10'
>>python cloudserveractions.py delete username 1231212312323423421312 --serverid=1234
>>python cloudserveractions.py list username 1231212312323423421312    

EXIT STATUS

TODO: List exit codes

TODO: Script assumes server is active.
If sever is not active or unavailable, will return api error response and code

AUTHOR

Juan Montemayor [email protected]

LICENSE

This script is in the public domain, free from copyrights or restrictions.

VERSION

1.0.1


v2.0/openstackactions.py

Same as 1.0. Sill a work in progress

TODO Combine both script into one master script to handle both versions of API

rackspace-cloud-servers-api-python-script's People

Contributors

jmontemayor avatar

Watchers

James Cloos avatar Pallav Shah avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.