{"type":"api","title":"Get task permissions","meta":{"id":"/apps/pubhub/media/crosswork-network-controller-7-1/e1ae91f25de62367ac175351487a12de3ae46a25/c92e7384-b2f4-3d3b-8e8e-03a9325b07bb","info":{"title":"Crosswork RBAC API - Version 1","description":"Crosswork Role-based Access Control APIs","contact":{"name":"Crosswork Team, Cisco","email":"support@cisco.com"},"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"}},"openapi":"3.0.1","servers":[{"url":"https://{cw_ip}:30603/crosswork/aaa/v1"}],"securitySchemes":{"bearerAuth":{"type":"apiKey","description":"Use a bearer token to authenticate requests. Include the token in the Authorization header with the prefix 'Bearer '.","name":"Authorization","in":"header"}}},"spec":{"tags":["rbac"],"summary":"Get task permissions.","description":"Get array of task permissions which are enabled for the role.","operationId":"GetUsertaskbyRole","parameters":[{"name":"role","in":"path","description":"Unique role name","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK. The request was successful. The result is contained in the response body.","content":{"application/json":{"schema":{"type":"array","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}]}],"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":"#/components/schemas/rbacTaskItem"},"$$ref":"#/components/schemas/rbacTaskItems"}},"$$ref":"#/components/schemas/rbacTask"},"$$ref":"#/components/schemas/rbacTasks"}}}},"403":{"description":"Forbidden. The server recognizes the authentication credentials, but the client is not authorized to perform this request.","content":{}},"500":{"description":"Internal Server Error. The server could not fulfill the request.","content":{}}},"__originalOperationId":"GetUsertaskbyRole","security":[{"bearerAuth":[]}],"method":"get","path":"/usertask/{role}"}}