Get a details of the role whose role id has been provided
Get a details of the role whose role id has been provided
Path Parameters
- roleId int32 required
Role Id
Query Parameters
- showInheritedAssociation boolean
Shows inherited security associations
Responses
- 200
- 404
Success
- application/json
- Schema
- Example (from schema)
Schema
- id int32
id of the role.
- name string
name of the role.
permissions object[]
- visibleToAll boolean
Returns if the role is visible to all.
- status string
Possible values: [
ENABLED
,DISABLED
]Specifies whether the role has been enabled or disabled.
security object[]
{
"id": 0,
"name": "string",
"permissions": [
{
"permission": {
"id": 0,
"name": "string"
},
"category": {
"id": 0,
"name": "string"
}
}
],
"visibleToAll": true,
"status": "ENABLED",
"security": [
{
"user": {
"id": 0,
"name": "string"
},
"userGroup": {
"id": 0,
"name": "string"
},
"externalUserGroup": {
"id": 0,
"name": "string",
"providerId": 0,
"providerName": "string"
},
"isCreatorAssociation": true,
"role": {
"id": 0,
"name": "string"
},
"permissionList": [
{
"permissionId": 0,
"permissionName": "string",
"categoryId": 0,
"categoryName": "string",
"type": "ALL_CATEGORIES",
"exclude": true
}
]
}
]
}
Requested Details not found
GET /v4/role/:roleid
Authorization
type: apiKeyname: Authtokenin: header
Request
Request
curl -L -X GET 'https://localhost/webconsole/api/V4/Role/:roleId' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>'
curl -L -X GET 'https://localhost/webconsole/api/V4/Role/:roleId' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>'
curl -L -X GET 'https://localhost/webconsole/api/V4/Role/:roleId' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>'
curl -L -X GET 'https://localhost/webconsole/api/V4/Role/:roleId' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>'
curl -L -X GET 'https://localhost/webconsole/api/V4/Role/:roleId' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>'
curl -L -X GET 'https://localhost/webconsole/api/V4/Role/:roleId' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>'
curl -L -X GET 'https://localhost/webconsole/api/V4/Role/:roleId' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>'