---
title: "POST /list-sra-sessions"
method: POST
path: "/list-sra-sessions"
tags: ["v2"]
---

# POST /list-sra-sessions

`POST /list-sra-sessions`

## Request body

- ListSRASessions — listSRASessions is a command that returns sra sessions of the given user
  - `json` boolean — Set output format to JSON
  - `resource-type` string[] — session resource type. In case it is empty, all resources type will be returned. options: [mysql, k8s, ssh, mongodb, mssql, postgres, aws, eks, gke, rdp]
  - `status-type` string[] — session status type. In case it is empty, only active sessions will be returned. options: [connecting, connected, failed, completed, terminated]
  - `token` string — Authentication token (see `/auth` and `/configure`)
  - `uid-token` string — The universal identity token, Required only for universal_identity authentication

## Response `200`

listSRASessionsResponse wraps response body.

- ListSraSessionsOutput
  - `allowed_gateways` GatewayNameInfo[]
    - `cluster_display_name` string
    - `cluster_name` string
  - `next_page` string
  - `sessions` SraSessionEntryOut[]
    - `access_id` string
    - `client_type` string
    - `cluster_unique_id` integer
    - `connection_type` string
    - `end_time` string, date-time
    - `error_msg` string
    - `gateway_info` GatewayNameInfo
      - `cluster_display_name` string
      - `cluster_name` string
    - `instance_id` string
    - `secret_name` string
    - `session_id` string
    - `start_time` string, date-time
    - `status` string
    - `target_host` string
    - `ttl` string
    - `user_identifier` string

## Other responses

- `default` — errorResponse wraps any error to return it as a JSON object with one "error" field.

---

[API](https://skmtc.net/akeyless/apis/akeyless-api.md) · [All operations](https://skmtc.net/akeyless/apis/akeyless-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/akeyless/akeyless-api/revisions/0ceb25634501/schema)
