Skip to content
This repository has been archived by the owner on Nov 29, 2021. It is now read-only.

Scripts for IBM Cloud using the Classic (SoftLayer) API

Notifications You must be signed in to change notification settings

jonghall/IBM_Cloud_Classic_API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IBM Cloud Classic Infrastructure API Scripts

Folder Description
Billing Scripts associated with IBM Cloud classic billing data
Misc Miscelaneous Scripts
Network Scripts associated with manipulating IBM Cloud Classic Network
Storage Scripts used to report on or manipulate Storage Services
Provisioning Provisioning Scripts
Ticketing Scripts associated with accessing and creating IBM Cloud Classic Tickets
VirtualServers Scripts associated with managing IBM Cloud Classic Virtual Servers

Installation of SL API

Install via pip:

$ pip install softlayer

Or you can install from source. Download source and run:

$ python setup.py install

The most up to date version of this library can be found on the SoftLayer GitHub public repositories: hhttps://github.com/softlayer/softlayer-python. Please post to the SoftLayer forums http://forums.softlayer.com/ or open a support ticket in the SoftLayer customer portal if you have any questions regarding use of this library.

Installation of Jon-SL-scripts

Download scripts into directory.

Configuration of Jon-SL-scripts There are two methods to configure the USERNAME and API key to use with these scripts.

Create a config.ini file with your username and API key. If you have not already generated a SoftLayer APIKEY log into http://control.softlayer.com, select Account - Users, click on Generate, then click View to view the API Key. This value along with your username should be included in the config.ini file. By default the script will read the config.ini file in the same directory as the script. You can specify and alternate file or location with the -c argument.

[api]
username=  <== SoftLayer Username goes here.
apikey=   <== Softlayer APIKEY goes here.

Pass your username and APIKEY via command line argument

usage: script.py [-h] [-u USERNAME] [-k APIKEY] [-c CONFIG]

optional arguments:
  -h, --help            show this help message and exit
  -u USERNAME, --username USERNAME
                        SoftLayer API Username
  -k APIKEY, --apikey APIKEY
                        SoftLayer APIKEY
  -c CONFIG, --config CONFIG
                        config.ini file to load

About

Scripts for IBM Cloud using the Classic (SoftLayer) API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages