# ScienceLogic Command API

**Canonical:** https://apis.io/apis/sciencelogic/sciencelogic-command-api/  
**Provider:** ScienceLogic — https://apis.io/providers/sciencelogic/  
**Base URL:** https://{appliance}/api/v2  
**Documentation:** https://sciencelogic.com

ScienceLogic Command API is one of 80 APIs that [ScienceLogic](https://apis.io/providers/sciencelogic/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. Tagged areas include Command. The published artifact set on APIs.io includes an OpenAPI specification, an API reference, and API documentation.

Skylar Compliance allows you to send a CLI command to a device or group of devices and capture the output of the command. This is a very convenient tool to perform a task concurrently on a group of devices, such as changing the administrator password. ### Using variables Commands can be parameterised for different devices, using the format `$parameter$`, where `$` is the Variable Delimiter you've set for your Command. For instance, to change the admin password for a number of ScreenOS devices, select the devices and enter the command: ``` set admin password $password$ ``` When running a parameterised command against devices, you have to pass a replacement value for each device. **Note:** A parameter can only consist of letters, numbers, and the underscore character `_`. If the replacement string contains escape sequences (such as `\n`), they must be double-escaped (`\\n`). ### Lua Functions Inputs Lua Functions commands support parameterized inputs that are passed to the function. Each input can have: - **Source: text** - Hardcoded value when creating the command - **Source: prompt** - User is prompted to enter value when running the command - **Source: csv** - Values are imported from a CSV file Inputs can be marked as `Secret` to hide values in outputs and transcripts.

## Operations (7)

| Method | Path | Summary |
|---|---|---|
| GET | `/commands` | List commands |
| POST | `/commands` | Create a command |
| POST | `/commands/perform` | Perform a command ad-hoc, without saving the command into the database |
| GET | `/commands/{id}` | Retrieve a command |
| PUT | `/commands/{id}` | Update a command |
| DELETE | `/commands/{id}` | Delete a command |
| POST | `/commands/{id}/perform` | Perform command |

## Machine-readable artifacts (5)

- **OpenAPI** — https://raw.githubusercontent.com/api-evangelist/sciencelogic/refs/heads/main/openapi/sciencelogic-command-api-openapi.yml
- **APIReference** — https://docs.sciencelogic.com/skylar_compliance/api/5-6/api.html
- **ErrorCatalog** — https://raw.githubusercontent.com/api-evangelist/sciencelogic/refs/heads/main/errors/sciencelogic-problem-types.yml
- **DataModel** — https://raw.githubusercontent.com/api-evangelist/sciencelogic/refs/heads/main/data-model/sciencelogic-data-model.yml
- **Documentation** — https://docs.sciencelogic.com/skylar_compliance/

## Other ScienceLogic APIs (12)

- [ScienceLogic](https://apis.io/apis/sciencelogic/sciencelogic/)
- [Skylar One GraphQL API](https://apis.io/apis/sciencelogic/skylar-one-graphql-api/)
- [Skylar One REST API](https://apis.io/apis/sciencelogic/skylar-one-rest-api/)
- [ScienceLogic MCP Server](https://apis.io/apis/sciencelogic/sciencelogic-mcp/)
- [ScienceLogic Agent API](https://apis.io/apis/sciencelogic/sciencelogic-agent-api/)
- [ScienceLogic Agent/Debug API](https://apis.io/apis/sciencelogic/sciencelogic-agent-debug-api/)
- [ScienceLogic Agent/Remote API](https://apis.io/apis/sciencelogic/sciencelogic-agent-remote-api/)
- [ScienceLogic Backup API](https://apis.io/apis/sciencelogic/sciencelogic-backup-api/)
- [ScienceLogic Command/Output API](https://apis.io/apis/sciencelogic/sciencelogic-command-output-api/)
- [ScienceLogic Command/Schedule API](https://apis.io/apis/sciencelogic/sciencelogic-command-schedule-api/)
- [ScienceLogic Command/Variables API](https://apis.io/apis/sciencelogic/sciencelogic-command-variables-api/)
- [ScienceLogic Credential API](https://apis.io/apis/sciencelogic/sciencelogic-credential-api/)

## Tags

Command

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/sciencelogic/sciencelogic-command-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/sciencelogic/.
