Skip to content

Latest commit

 

History

History
37 lines (23 loc) · 911 Bytes

commands.rst

File metadata and controls

37 lines (23 loc) · 911 Bytes

Call API

This function allows you to easily call any API. The format is

slcli call-api SoftLayer_Service method param1 param2 --id=1234 --mask="mask[id,name]"

Parameters should be in the order they are presented on sldn.softlayer.com. Any complex parameters (those that link to other datatypes) should be presented as JSON strings. They need to be enclosed in single quotes ('), and variables and strings enclosed in double quotes (").

For example: {"hostname":"test",ssh_keys:[{"id":1234}]}

SoftLayer.CLI.call_api:cli

Shell

SoftLayer.shell.core:cli

MetaData

Used to retrieve information about the server making the API call. Can be called with an un-authenticated API call.

SoftLayer.CLI.metadata:cli