Retrieve a Role
Returns a representation of the specified role.
Path Parameters
- role_id string required
Retrieves the role with the specified ID.
Responses
- 200
- default
Success
- application/api.clumio.roles=v1+json
- Schema
- Example (from schema)
Schema
- _etag string
ETag value
_links object
- description string
A description of the role.
- id string
The Clumio-assigned ID of the role.
- name string
Unique name assigned to the role.
permissions object[]
- user_count int64
Number of users to whom the role has been assigned.
{
"_etag": "string",
"_links": {
"_self": {
"href": "string",
"templated": true,
"type": "string"
}
},
"description": "string",
"id": "string",
"name": "string",
"permissions": [
{
"description": "string",
"id": "string",
"name": "string"
}
],
"user_count": 0
}
Error
- application/json
- Schema
- Example (from schema)
Schema
errors object[]
{
"errors": [
{
"error_code": 0,
"error_message": "string"
}
]
}
GET /roles/:role_id
Authorization
Request
Request
curl -L -X GET 'https://us-west-2.api.clumio.com/roles/:role_id' \
-H 'Accept: application/api.clumio.roles=v1+json' \
-H 'Authorization: Bearer <TOKEN>'
curl -L -X GET 'https://us-west-2.api.clumio.com/roles/:role_id' \
-H 'Accept: application/api.clumio.roles=v1+json' \
-H 'Authorization: Bearer <TOKEN>'
curl -L -X GET 'https://us-west-2.api.clumio.com/roles/:role_id' \
-H 'Accept: application/api.clumio.roles=v1+json' \
-H 'Authorization: Bearer <TOKEN>'
curl -L -X GET 'https://us-west-2.api.clumio.com/roles/:role_id' \
-H 'Accept: application/api.clumio.roles=v1+json' \
-H 'Authorization: Bearer <TOKEN>'
curl -L -X GET 'https://us-west-2.api.clumio.com/roles/:role_id' \
-H 'Accept: application/api.clumio.roles=v1+json' \
-H 'Authorization: Bearer <TOKEN>'
curl -L -X GET 'https://us-west-2.api.clumio.com/roles/:role_id' \
-H 'Accept: application/api.clumio.roles=v1+json' \
-H 'Authorization: Bearer <TOKEN>'
curl -L -X GET 'https://us-west-2.api.clumio.com/roles/:role_id' \
-H 'Accept: application/api.clumio.roles=v1+json' \
-H 'Authorization: Bearer <TOKEN>'