Skip to content
Kevin Landreth edited this page Jan 31, 2013 · 1 revision

Command line interface

The SoftLayer command line interface is available via the sl command available in your PATH. The sl command is a reference implementation of SoftLayer API bindings for python and how to efficiently make API calls.

Username and API Key

The API username and key can be retrieved via a few methods

  • Enviorment variables (SL_USERNAME, SL_API_KEY)
  • Config file (~/.softlayer)
  • Or argument (-C/path/to/config or --config=/path/to/config)

The config file

The configuration file INI based and requires the softlayer section to be present. The only required fields are username and api_key. You can optionally also/exclusively supply the endpoint_url as well to the API. By exclusively prov

Full config

[softlayer]
username = SL00000000
api_key = 05ac94d4d2047c2189f94a8a6ab6905905ac94d4d2047c2189f94a8a6ab69059
endpoint_url = http://api.service.softlayer.com/xmlrpc/v3/

exclusive url

[softlayer]
endpoint_url = http://api.service.softlayer.com/xmlrpc/v3/

Clone this wiki locally