> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cnap.tech/llms.txt
> Use this file to discover all available pages before exploring further.

# List suspended machines

> Lists all suspended machines for the workspace.



## OpenAPI

````yaml /openapi.json get /v1/compute/suspensions
openapi: 3.1.0
info:
  title: CNAP API
  version: 1.0.0
  description: >-
    Public API for managing CNAP workspaces, clusters, templates, products, and
    deployments.


    Authenticate with a Personal Access Token via the `Authorization: Bearer
    cnap_pat_...` header.


    Workspace-scoped endpoints require the `X-Workspace-Id` header.
servers:
  - url: https://api.cnap.tech
    description: Production
security: []
paths:
  /v1/compute/suspensions:
    get:
      tags:
        - Compute
      summary: List suspended machines
      description: Lists all suspended machines for the workspace.
      responses:
        '200':
          description: List of suspensions
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Suspension'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: X-Workspace-Id required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - BearerAuth: []
components:
  schemas:
    Suspension:
      type: object
      properties:
        id:
          type: string
        workspace_id:
          type: string
        cluster_id:
          type: string
        server_type:
          type: string
          example: cpx31
        location:
          type: string
          example: fsn1
        hostname:
          type: string
          example: cnap-xl8r2abc
        reason:
          type: string
          enum:
            - manual
            - downgrade
        provider_suspend_data:
          type: object
          properties:
            provider:
              type: string
            snapshot_id:
              type: number
            size_gb:
              type: number
          required:
            - provider
            - snapshot_id
            - size_gb
        monthly_cost_cents:
          type: number
        expires_at:
          type: number
        created_at:
          type: number
      required:
        - id
        - workspace_id
        - cluster_id
        - server_type
        - location
        - hostname
        - reason
        - provider_suspend_data
        - monthly_cost_cents
        - expires_at
        - created_at
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              example: not_found
            message:
              type: string
              example: Resource not found
            param:
              type: string
              description: The request field that caused the error
              example: name
            suggestion:
              type: string
              example: Run `cnap clusters list` to see available clusters
            details: {}
          required:
            - code
            - message
      required:
        - error
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        Personal Access Token (cnap_pat_...) or OAuth2 JWT. Create tokens at
        https://cnap.tech/account/tokens

````