---
title: "List IAM Roles"
method: GET
path: "/iam-role"
tags: ["role"]
---

# List IAM Roles

`GET /iam-role`

## Request

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

## Response `200`

200

- object
  - `iam-roles` IamRole[]
    - `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 `iam-roles/items/assume-role-policy/default-service-strategy` from the response with the `200` status
  - removed the required property `iam-roles/items/assume-role-policy/services` from the response with the `200` status
  - added the optional property `iam-roles/items/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 `iam-roles/items/assume-role-policy` to the response with the `200` status
  - added the optional property `iam-roles/items/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 `iam-roles/items/permissions/items/` response property for the response status `200`
- **2023-06-06** `cf7b08181585`: 1 info
  - added the optional property `iam-roles/items/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/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)
