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

# POST /list-sra-bastions

`POST /list-sra-bastions`

## Request body

- ListSRABastions
  - `allowed-urls-only` boolean — Filter the response to show only bastions allowed URLs
  - `json` boolean — Set output format to JSON
  - `token` string — Authentication token (see `/auth` and `/configure`)
  - `uid-token` string — The universal identity token, Required only for universal_identity authentication

## Response `200`

listSRABastionsResponse wraps response body.

- BastionsList
  - `clusters` BastionListEntry[]
    - `access_id` string
    - `allowed_access_ids` string[]
    - `allowed_urls` string[]
    - `allowed_urls_per_instance` object
    - `bastion_ssh_port` integer
    - `bastion_urls_per_type` object
    - `cluster_name` string
    - `display_name` string
    - `has_gateway_identity` boolean
    - `last_report` string, date-time

## 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/versions/0ceb25634501/schema)
