YouTrack InCloud 7.0 Help

GET Role

GET /admin/role/{role}

Get a role by its name.

GET /rest/admin/role/{role}

Request parameters:

Name Type Description
role roleByName Role name

Response parameters:

Name Description
name Role name.
description Role description.
permissionsUrl Url to get role permissions from.

Sample

Request

GET http://localhost:8081/rest/admin/role/Admin Cookie: $Version=0; JSESSIONID=vr190avr41j1jh2faa4gigh2; $Path=/; jetbrains.charisma.main.security.PRINCIPAL=NDgxMzQ5NGQxMzdlMTYzMWJiYTMwMWQ1YWNhYjZlN2JiN2FhNzRjZTExODVkNDU2NTY1ZWY1MWQ3Mzc2NzdiMjpyb290; $Path=/

Response

HTTP/1.1 200 OK Content-Type: application/xml;charset=UTF-8 Content-Length: 212 Server: Jetty(7.2.0.v20101020) <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <role name="Admin" description="Admin can do everything." permissionsUrl="http://unit-258.labs.intellij.net:8080/charisma/rest/admin/role/Admin/permission"/>

Request

GET http://localhost:8081/rest/admin/role/Adfds Cookie: $Version=0; JSESSIONID=vr190avr41j1jh2faa4gigh2; $Path=/; jetbrains.charisma.main.security.PRINCIPAL=NDgxMzQ5NGQxMzdlMTYzMWJiYTMwMWQ1YWNhYjZlN2JiN2FhNzRjZTExODVkNDU2NTY1ZWY1MWQ3Mzc2NzdiMjpyb290; $Path=/

Response

HTTP/1.1 404 Not Found Content-Type: application/xml;charset=UTF-8 Content-Length: 95 Server: Jetty(7.2.0.v20101020) <?xml version="1.0" encoding="UTF-8" standalone="yes"?><error>Role [ Adfds ] not found.</error>
Last modified: 29 September 2016