{ "swagger": "2.0", "info": { "version": "1.0.0", "title": "PX-Backup Roles", "contact": {} }, "host": ":", "basePath": "/", "securityDefinitions": {}, "schemes": [ "http" ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "paths": { "/backend/api/pxBackup/rbac/roles/create": { "post": { "description": "Create Role", "summary": "Create Role", "tags": [ "General" ], "operationId": "CreateRole", "deprecated": false, "produces": [ "application/json" ], "consumes": [ "application/json" ], "parameters": [ { "name": "Content-Type", "in": "header", "required": false, "enum": [ "application/json" ], "type": "string", "description": "" }, { "name": "body", "in": "body", "required": true, "description": "", "schema": { "example": { "id": 0, "org_id": "default", "description": "test", "rules": [ { "apis": [ "inspect*", "enumerate*" ], "services": [ "schedulepolicy", "rules", "role" ] }, { "apis": [ "*" ], "services": [ "cloudcredential", "backuplocation" ] } ], "name": "test" }, "type": "object" } } ], "responses": { "200": { "description": "Successful response", "headers": {} } } } }, "/backend/api/pxBackup/rbac/roles/update": { "put": { "description": "Update Role", "summary": "Update Role", "tags": [ "General" ], "operationId": "UpdateRole", "deprecated": false, "produces": [ "application/json" ], "consumes": [ "application/json" ], "parameters": [ { "name": "Content-Type", "in": "header", "required": false, "enum": [ "application/json" ], "type": "string", "description": "" }, { "name": "body", "in": "body", "required": false, "description": "", "schema": { "example": { "id": 0, "org_id": "default", "description": "test", "rules": [ { "apis": [ "inspect*", "enumerate*" ], "services": [ "rules", "role" ] }, { "apis": [ "*" ], "services": [ "cloudcredential", "schedulepolicy", "backuplocation" ] } ], "name": "test", "uid": "8969c259-c1b5-4eb0-af26-04ea556076bf", "role_id": "7936e937-2fd2-422b-b9da-820f52ea5d89" }, "type": "object" } } ], "responses": { "200": { "description": "Successful response", "headers": {} } } } }, "/backend/api/pxBackup/rbac/roles/list": { "get": { "description": "List Roles", "summary": "List Roles", "tags": [ "General" ], "operationId": "ListRoles", "deprecated": false, "produces": [ "application/json" ], "parameters": [ { "name": "searchString", "in": "query", "required": false, "type": "string", "description": "" }, { "name": "page", "in": "query", "required": false, "type": "integer", "format": "int32", "description": "" }, { "name": "per_page", "in": "query", "required": false, "type": "integer", "format": "int32", "description": "" } ], "responses": { "200": { "description": "Successful response", "headers": {} } } } }, "/backend/api/pxBackup/rbac/roles/delete": { "delete": { "description": "Delete Role", "summary": "Delete Role", "tags": [ "General" ], "operationId": "DeleteRole", "deprecated": false, "produces": [ "application/json" ], "parameters": [ { "name": "org_id", "in": "query", "required": false, "type": "string", "description": "" }, { "name": "name", "in": "query", "required": false, "type": "string", "description": "" }, { "name": "role_id", "in": "query", "required": false, "type": "string", "description": "" } ], "responses": { "200": { "description": "Successful response", "headers": {} } } } }, "/backend/api/pxBackup/rbac/users/mapRoles/apply": { "post": { "description": "Map role to user", "summary": "Map role to user", "tags": [ "General" ], "operationId": "Maproletouser", "deprecated": false, "produces": [ "application/json" ], "consumes": [ "application/json" ], "parameters": [ { "name": "Content-Type", "in": "header", "required": false, "enum": [ "application/json" ], "type": "string", "description": "" }, { "name": "user_id", "in": "query", "required": false, "type": "string", "description": "" }, { "name": "body", "in": "body", "required": false, "description": "", "schema": { "example": { "roles": [ { "id": "41ba5fb0-66b2-48ac-a986-9714b4a4498f", "name": "test" } ] }, "type": "object" } } ], "responses": { "200": { "description": "Successful response", "headers": {} } } } }, "/backend/api/pxBackup/rbac/users/mapRoles/delete": { "delete": { "description": "unmap role from user", "summary": "unmap role from user", "tags": [ "General" ], "operationId": "unmaprolefromuser", "deprecated": false, "produces": [ "application/json" ], "parameters": [ { "name": "user_id", "in": "query", "required": false, "type": "string", "description": "" }, { "name": "role_id", "in": "query", "required": false, "type": "string", "description": "" }, { "name": "role_name", "in": "query", "required": false, "type": "string", "description": "" } ], "responses": { "200": { "description": "Successful response", "headers": {} } } } } }, "tags": [ { "name": "General", "description": "" } ] }