---
title: "Retrieve IAM Role"
method: GET
path: "/iam-role/{id}"
tags: ["role"]
---

# Retrieve IAM Role

`GET /iam-role/{id}`

## Request

- Base URL: `https://api-ch-gva-2.exoscale.com/v2`
- URL: `https://api-ch-gva-2.exoscale.com/v2/iam-role/{id}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/exoscale/apis/exoscale-api/docs/iam-role/:id/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `id` string, uuid, required

## Response `200`

200

- IamRole: IAM Role
  - `description` string: IAM Role description
  - `labels` Labels
  - `permissions` string[]: IAM Role permissions
  - `assume-role-policy` IamAssumeRolePolicy: Assume Role Policy
    - `rules` IamServicePolicyRule[]: IAM Assume Role Policy rules
      - `action` 'allow' | 'deny'
      - `expression` string
      - `resources` string[]
  - `editable` boolean: IAM Role mutability
  - `name` string: IAM Role name
  - `max-session-ttl` integer: Maximum TTL requester is allowed to ask for when assuming a role
  - `policy` IamPolicy: Policy
    - `default-service-strategy` 'allow' | 'deny', required: IAM default service strategy
    - `services` object, required: IAM services
  - `id` string, uuid: IAM Role ID

## Changes

- **2026-11-06** `63da6f74c845`: 2 breaking, 1 info
  - removed the required property `assume-role-policy/default-service-strategy` from the response with the `200` status
  - removed the required property `assume-role-policy/services` from the response with the `200` status
  - added the optional property `assume-role-policy/rules` to the response with the `200` status
- **2026-03-16** `e05707a7b346`: 4 info
  - api tag `role` added
  - api tag `iam` removed
  - added the optional property `assume-role-policy` to the response with the `200` status
  - added the optional property `max-session-ttl` to the response with the `200` status
- **2025-05-22** `37a05010e8b4`: 1 warning
  - added the new `reset-iam-organization-policy` enum value to the `permissions/items/` response property for the response status `200`
- **2023-06-06** `cf7b08181585`: 1 info
  - added the optional property `permissions` to the response with the `200` status
- **2023-02-03** `6e9809fd1444`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/exoscale/apis/exoscale-api/changes/iam-role/:id/get.md)

---

[API](https://skmtc.dev/exoscale/apis/exoscale-api.md) - [All operations](https://skmtc.dev/exoscale/apis/exoscale-api/llms.txt) - [OpenAPI document](https://skmtc.dev/exoscale/apis/exoscale-api/revisions/63da6f74c845?raw)
