Skip to main content

Posts

Showing posts from 2018

Introduction to SoftLayer/IBM's Cloud Load Balancer.

IBM Cloud Load Balancer(CLB) Introduction. They have couple of other LBaaS services but here we are going talk to about the Cloud Load Balancers. IBM introduced a new Cloud Load Balancer, which is equal to Amazons AWS (elasticity, ssl termination and L7/Application load balancing, auto recovery etc etc). All these in one LBaaS unlike AWS. IBM CLB offers couple of variations which user can apply at the time of CLB creation. For e.g. Select which data center one wants to create the CLB in. User can select a private CLB or Public CLB. Public CLB can be reached from the public networks where as private CLB can only reached within ones private network.  For Public CLB one can select which public VLAN one can use. There is an option to use the IBMs public VLAN where customer doesn't have any control or user can select to get the public VAN from their own account, where customer have absolute control over it. Which private VLAN to use. Customize CIPHER for SSL HTTPS support

PART 1: How to use SoftLayer Python library.

Install the SoftLayer's Python library.  pip install softlayer or clone the source code from the github and install from source code. git clone https://github.com/softlayer/softlayer-python.git python setup.py install Once we have installed the SoftLayer Python library we are ready to use it as shown in the following example. You need your username and api key to run the below example. One can get both user name and api key at the following link once you login successfully. https://control.softlayer.com/account/user/profile Accounts username and API key E.g. showing how to use SoftLayer Python library. import SoftLayer from SoftLayer.managers.image import ImageManager client = SoftLayer.Client(username='', api_key='') image_manager = ImageManager(client) mask = "mask[id,name,note]" imageTemplates = image_manager.list_private_images(mask='id,name,note') print("ID - Name - Note") for template in imageTem