Repository navigation
Kevin Landreth edited this page Jan 31, 2013
·
1 revision
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.
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 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/