Simple command-line API for Softlayer.
After the usual gem install softlayer-cli
, run sl help
.
Requires ArrayVPN installed at /usr/local/array_vpn/array_vpnc
and the Lastpass CLI lpass
available.
sl vpn start
launches the ArrayVPN clientsl vpn status
checks whether a tun interface existssl vpn stop
halts the ArrayVPN client
SOFTLAYER_API_USER
and SOFTLAYER_API_KEY
need to be set as environment variable.
sl servers list --tags "deployment:concourse"
shows all machines that are tagged withdeployment:concourse
sl server show 12345
prints details about a single machine with that idsl server show 1.2.3.4
prints details about a single machine with that IP address