---
title: "List Secrets"
method: GET
path: "/compute/v2/thr4/workspaces/{workspaceUUID}/secrets"
tags: ["Compute"]
---

# List Secrets

`GET /compute/v2/thr4/workspaces/{workspaceUUID}/secrets`

Retrieves a list of all secrets available in the specified workspace.
Secrets are used to store sensitive information such as default password
of compute instances.

## Path parameters

- `workspaceUUID` string, required

## Response `200`

Successfully retrieved the list of secrets in the workspace.
The response includes metadata about each secret but not the actual secret values.

- EngineSecretList
  - `apiVersion` 'compute/v2', required — Version identifier of the API schema
  - `items` EngineSecret[], required — Collection of Secret resources
    - `apiVersion` 'compute/v2', required — Version identifier of the API schema
    - `data` object — Contains the secret data as base64 encoded strings
    - `immutable` boolean, nullable — If set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified)
    - `kind` 'Secret', required — The string value 'Secret' that identifies the schema
    - `metadata` EngineObjectMeta, required — Standard resource metadata fields
      - `annotations` object, required — Annotations are key-value pairs storing additional metadata about resources
      - `creationTimestamp` string, date-time, required
      - `deletionTimestamp` string, date-time, required
      - `labels` object, required — Labels are key-value pairs attached to resources for organization and categorization
      - `name` string, required — User-provided name that uniquely identifies the resource within its workspace and type
      - `ownerReferences` V1OwnerReference[], required — References to other resources that own or manage the resource
        - `apiVersion` string, required
        - `blockOwnerDeletion` boolean, nullable
        - `controller` boolean, nullable
        - `kind` string, required
        - `name` string, required
        - `uid` string, required
      - `resourceVersion` string — An opaque value representing the internal version of this object that can be used for optimistic concurrency and change detection
      - `uid` string, required — System-generated unique identifier for the resource
      - `workspace` string, required — Unique identifier of the workspace where the resource belongs
    - `stringData` object — Allows specifying non-binary secret data in string form, merged into the data field on write
    - `type` string — Used to facilitate programmatic handling of secret data
  - `kind` 'SecretList', required — The string value 'SecretList' that identifies the schema
  - `metadata` V1ListMeta, required — Standard resource metadata fields
    - `continue` string
    - `remainingItemCount` integer, nullable
    - `resourceVersion` string
    - `selfLink` string

## Other responses

- `400` — Bad request - invalid configuration provided
- `403` — Forbidden - insufficient permissions

---

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