Calling arbitrary classic infrastructure API endpoints (ibmcloud sl call-api)
Use the following command from the IBM Cloud® Command Line Interface to call the arbitrary classic infrastructure API endpoints.
ibmcloud sl call-api
Call arbitrary API endpoints:
ibmcloud sl call-api SERVICE METHOD [OPTIONS]
Command options:
- --init
- Init parameter.
- --mask
- Object mask: use to limit fields returned.
- --parameters
- Append parameters to web call.
- --limit
- Result limit.
- --offset
- Result offset.
- --filter
- Object filters.
Examples:
ibmcloud sl call-api SoftLayer_Network_Storage editObject --init 57328245 --parameters '[{"notes":"Testing."}]'
This command edits volume notes.