{"type":"api","title":"Retrieve task-to-API IDs permissions map","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":"Retrieve task-to-API IDs permissions map.","description":"Get map of task to list of API ids with its required permission for the task. ApiIds contains the map of apiId to permissions list.","operationId":"GetTaskAPIPermissioByRole","responses":{"200":{"description":"OK. The request was successful. The result is contained in the response body.","schema":{"type":"object","description":"Provides the task to api-id permission map","properties":{"rbacTaskAPIPermission":{"type":"object"}},"items":{"type":"string"},"example":{"id_dag_management":{"apiIds":{"cw-grouping-service":["R","W","D"]}},"id_view_audit_logs_access":{"apiIds":{"Alarms":["R"]}}},"$$ref":"#/definitions/rbacTaskAPIPermission"}},"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":"GetTaskAPIPermissioByRole","consumes":["application/json"],"produces":["application/json"],"security":[{"bearerAuth":[]}],"method":"get","path":"/taskAPIPermission/{role}"}}