---
title: "List Scripts"
method: GET
path: "/operation/automation/scripts/{tenant_id}"
tags: ["Automation"]
---

# List Scripts

`GET /operation/automation/scripts/{tenant_id}`

List all the scripts. Global Scripts - All user will have access to Corestack's Marketplace Scripts (Can view and execute). Account - All users under that account will have access (Can view and execute). Only Account admins can update/delete. Tenant - Users with access to the specific tenant will have access scripts (Can view and execute). Tenant admins can update/delete. Private - User who created will only have access.

## Path parameters

- `tenant_id` string, required

## Query parameters

- `types` 'chef' | 'ansible' | 'puppet' | 'shell'
- `category` 'Application' | 'Languages' | 'Database' | 'Security' | 'System' | 'Web Server' | 'Others'
- `limit` integer
- `page` integer

## Response `200`

Success

- ScriptListResponse
  - `total_scripts` string, required — Total number of scripts available
  - `total_pages` string, required — Total number of pages
  - `scripts` ScriptDataList, required
    - `script_id` string, required — Unique Id of the script
    - `script_name` string, required — Name of the script
    - `uri` string, required — Unique URI for script
    - `description` string, required — Description about script
    - `status` string, required — Status of the script
    - `category` string[], required — Category of the script
    - `platform` string[], required — Platforms supported by script.
    - `operating_system` string[], required — OS supported by script
    - `type` string, required — Config type of the script
    - `scope` string, required — Scope of the script (global/account/tenant/private)

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `500` — Internal Server Error

---

[API](https://skmtc.dev/corestack/apis/corestack-external-api.md) · [All operations](https://skmtc.dev/corestack/apis/corestack-external-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/corestack/corestack-external-api/revisions/bf2cdf20826d/schema)
