---
title: "Get RGW role"
method: GET
path: "/api/rgw/accounts/{account_id}/roles/{role_name}"
tags: ["RGW"]
---

# Get RGW role

`GET /api/rgw/accounts/{account_id}/roles/{role_name}`

## Request

- Base URL: `/` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/rgw/accounts/{account_id}/roles/{role_name}`
- Auth: HTTP bearer

## Path parameters

- `role_name` string, required
- `account_id` integer, required

## Response `200`

OK

- object

## Other responses

- `400`: Operation exception. Please check the response body for details.
- `401`: Unauthenticated access. Please login first.
- `403`: Unauthorized access. Please check your permissions.
- `500`: Unexpected error. Please check the response body for the stack trace.

## Changes

- **2026-06-22** `3e5f78fe94d3`: 1 info
  - endpoint added
- **2026-06-22** `1c8b90eca98f`: 1 breaking
  - api path removed without deprecation
- **2026-06-18** `e5801ec0e794`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/ceph/apis/ceph-rest-api/changes/api/rgw/accounts/:account_id/roles/:role_name/get.md)

---

[API](https://skmtc.dev/ceph/apis/ceph-rest-api.md) - [All operations](https://skmtc.dev/ceph/apis/ceph-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/ceph/apis/ceph-rest-api/revisions/56cc950e3e37?raw)
