Skip to main content

Commandline utility to start and stop instances on the french IFB cloud

Project description

ifbcloud commandline utility

This is a commandline utility to

  • quickly get the status of instances launched

  • start new instances

  • stop instances

Installation

pip install ifbcloud

Useage:

To get the current status, do

ifbcoud status -u <your_ifb_username> -p <your_ifb_password>

To lauch a new instance, do

ifbcloud start -u <your_ifb_username> -p <your_ifb_password> -n <name_for_your_instance>

To see your currently defined disks, do

ifbcloud disks -u <your_ifb_username> -p <your_ifb_password>

To launch an instance and attach the disk named disk0, do

ifbcloud start -u <your_ifb_username> -p <your_ifb_password> -n <name_for_your_instance> -dn disk0

To stop an instance, do

ifbcloud stop -u <your_ifb_username> -p <your_ifb_password> -n <name_for_your_instance>

More options are available in the subcommands help section.

Shortcuts

If you don’t want to repetitively type your username and password (and have it stored in your shell’s history), you can export the environmental variables IFB_USERNAME and IFB_PASSWORD and omit the -u and -p options.

Limitations

We’re currently just launching the Docker appliance (number 206), which is what I’m using all the time. PR’s to improve this are welcome. You can extract the instance id’s from the dashboard’s html.

Similarly, you can attach permanent storage to your new instances, but you first need to manually create the disks in the IFB cloud storage interface.

This utility is not using any public API, just reverse-engineered from the browser’s post requests, so this may start failing at any time if the IFB upgrades their cloud service.

History

0.1.0 (2016-09-19)

  • Support specifying permanent disks to attach to instance

  • Support disk subcommand to show available disks

0.0.2 (2016-09-11)

  • Initial version

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ifbcloud-0.1.0.tar.gz (5.3 kB view details)

Uploaded Source

File details

Details for the file ifbcloud-0.1.0.tar.gz.

File metadata

  • Download URL: ifbcloud-0.1.0.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ifbcloud-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3811be271c930dfaa0019b6257b3d71d110d6ba302b6a90d280c5baa0258a94c
MD5 9120c807ccc284e69c4a012d83829457
BLAKE2b-256 c6b5342f654a33c3945b44899554b3f0b7bfef1b98c1e36d0772755ff3f0fef9

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page