Gets a role
GEThttps://apis.<domain>/iam/roles/:id
Returns the details for a role.
Authorization Action:
iam:roles:get
Request
Path Parameters
id stringrequired
ID of the role.
Responses
- 200
- default
A successful response.
- application/json
- Schema
- Example (from schema)
Schema
role object
{
"id": "custom-role",
"name": "My Custom Application Manager Role",
"actions": [
"applications:*",
"iam:tenants:list"
]
}
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/:id' \
-H 'Accept: application/json'