{"type":"api","title":"Get task permissions","meta":{"id":"/apps/pubhub/media/crosswork-network-controller-7-1/f445c17e25a1120e8fbde4bd413083d0fd88b2b3/c92e7384-b2f4-3d3b-8e8e-03a9325b07bb","info":{"title":"Crosswork RBAC API - Version 1","contact":{"name":"Crosswork Team, Cisco","email":"support@cisco.com"},"description":"Crosswork Role-based Access Control APIs","license":{"name":"Cisco Software License Agreement","url":"http://www.cisco.com/public/sw-license-agreement.html"},"version":"1.0.0"},"security":[{"bearerAuth":[]}],"x-parser-conf":{"overview":{"markdownPath":"reference/INFRA/RBAC/rbac-v1-overview.md"}},"swagger":"2.0","basePath":"/crosswork/aaa/v1","schemes":["https"],"securityDefinitions":{"bearerAuth":{"type":"apiKey","name":"Authorization","in":"header","description":"Use a bearer token to authenticate requests. Include the token in the Authorization header with the prefix 'Bearer '."}}},"spec":{"summary":"Get task permissions.","description":"Get array of task permissions which are enabled for the role.","operationId":"GetUsertaskbyRole","responses":{"200":{"description":"OK. The request was successful. The result is contained in the response body.","schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The unique programmatic identifier for this RBAC task."},"name":{"type":"string","description":"A human-readable name for the task, typically displayed in a user interface."},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"A unique identifier for this specific task item."},"name":{"type":"string","description":"A human-readable name for the task item, suitable for display in a user interface."},"description":{"type":"string","description":"A detailed explanation of what functionality or access this task item provides."},"enabled":{"type":"boolean","description":"Indicates whether this specific task item is currently active or enabled within its context. Defaults to false if not specified."},"permission":{"type":"string","description":"The underlying permission string or key associated with this task item, often used internally for authorization checks."}},"$$ref":"#/definitions/rbacTaskItem"},"$$ref":"#/definitions/rbacTaskItems"}},"$$ref":"#/definitions/rbacTask"},"example":[{"id":"Chassis View","name":"Chassis View","items":[{"id":"chassis_view_read_id","name":"View Chassis View","description":"Allow user to view Chassis View","enabled":true},{"id":"chassis_view_read_write_id","name":"Edit Chassis View","description":"Allow user to view and modify in Chassis View","enabled":true}]},{"id":"QoS","name":"QoS","items":[{"id":"id_QosProfileConfigurationTask","name":"Qos Profile Configuration Task","enabled":true}]}],"$$ref":"#/definitions/rbacTasks"}},"403":{"description":"Forbidden. The server recognizes the authentication credentials, but the client is not authorized to perform this request."},"500":{"description":"Internal Server Error. The server could not fulfill the request."}},"parameters":[{"name":"role","description":"Unique role name","in":"path","required":true,"type":"string"}],"tags":["rbac"],"__originalOperationId":"GetUsertaskbyRole","consumes":["application/json"],"produces":["application/json"],"security":[{"bearerAuth":[]}],"method":"get","path":"/usertask/{role}"}}