---
name: cli-cli_call_api
title: Calling arbitrary classic infrastructure API endpoints (ibmcloud sl call-api)
description: Use the following command from the IBM Cloud&reg; Command Line Interface to call the arbitrary classic infrastructure API endpoints.
last-updated: 2026-05-01
---

> ## Documentation Index
> The table of contents for this documentation set is at https://cloud.ibm.com/docs/cli?format=markdown
> The index for all IBM Cloud docs is at: https://cloud.ibm.com/docs/llms.txt
> Use these files to discover more information as needed.

# Calling arbitrary classic infrastructure API endpoints (ibmcloud sl call-api)
{: #sl-all-api}

Use the following command from the IBM Cloud&reg; Command Line Interface to call the arbitrary classic infrastructure API endpoints.
{: shortdesc}




## ibmcloud sl call-api
{: #sl__call_api}

Call arbitrary API endpoints

ibmcloud sl call-api SERVICE METHOD [OPTIONS]

**Examples**:
 
	ibmcloud sl call-api SoftLayer_Network_Storage editObject --init 57328245 --parameters '[{"notes":"Testing."}]'
	This command edit a volume notes.

	ibmcloud sl call-api SoftLayer_User_Customer getObject --init 7051629 --mask "id,firstName,lastName"
	This command show a user detail.

	ibmcloud sl call-api SoftLayer_Account getVirtualGuests --filter '{"virtualGuests":{"hostname":{"operation":"cli-test"}}}'
	This command list virtual guests.

```bash
ibmcloud sl call-api [flags]
```
{: codeblock}


**Command options**:

--filter
:    Object filters

--init
:    Init parameter

--limit
:    Result limit

--mask
:    Object mask: use to limit fields returned

--offset
:    Result offset

--parameters
:    Append parameters to web call