Lists all roles
GEThttps://apis.<domain>/iam/roles
Lists all compiuta-managed and custom roles.
Authorization Action:
iam:roles:list
Request
Responses
- 200
- default
A successful response.
- application/json
- Schema
- Example (from schema)
Schema
roles object[]
{
"roles": [
{
"id": "custom-role",
"name": "My Custom Application Manager Role",
"actions": [
"applications:*",
"iam:tenants:list"
]
},
{
"id": "custom-role-2",
"name": "My Custom Application Role 2",
"actions": [
"infra:*"
]
}
]
}
An unexpected error response.
- application/json
- Schema
- Example (from schema)
Schema
code int32
message string
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X GET 'https://apis.<domain>/iam/roles' \
-H 'Accept: application/json'