200 |
|
|
application/json
model |
example
{
"title": "Permissions",
"$schema": "http://json-schema.org/draft-04/schema#",
"javaType": "com.sos.joc.model.security.permissions.Permissions",
"type": "object",
"required": [
"identityServiceName",
"controllerId",
"roleName",
"permissions"
],
"properties": {
"identityServiceName": {
"type": "string",
"pattern": "^[^<>]*$",
"maxLength": 255,
"minLength": 1
},
"controllerId": {
"type": "string",
"pattern": "^[^/\\<>?:\"|*]*$",
"maxLength": 100
},
"roleName": {
"type": "string",
"pattern": "^[^<>]*$",
"maxLength": 255,
"minLength": 1
},
"permissions": {
"type": "array",
"items": {
"javaType": "com.sos.joc.model.security.permissions.Permission",
"type": "object",
"required": [
"permissionPath"
],
"properties": {
"permissionPath": {
"type": "string",
"pattern": "^[^<>]*$",
"maxLength": 255,
"minLength": 1
},
"excluded": {
"type": "boolean"
}
},
"additionalProperties": false
}
},
"auditLog": {
"javaType": "com.sos.joc.model.audit.AuditParams",
"type": "object",
"properties": {
"comment": {
"type": "string",
"pattern": "^[^<>]*$",
"maxLength": 255
},
"timeSpent": {
"type": "integer",
"minimum": 0
},
"ticketLink": {
"type": "string",
"pattern": "^[^<>]*$",
"maxLength": 255
}
}
}
},
"additionalProperties": false
}
{ "joc": { "administration": { "accounts": { "view": true, "manage": true }, "settings": { "view": true, "manage": true }, "controllers": { "view": true, "manage": true }, "certificates": { "view": true, "manage": true } }, "cluster": { "manage": true }, "inventory": { "view": true, "manage": true, "deploy": true }, "calendars": { "view": true }, "documentations": { "view": true, "manage": true }, "auditLog": { "view": true }, "dailyPlan": { "view": true, "manage": true }, "fileTransfer": { "view": true, "manage": true }, "notification": { "view": true, "manage": true }, "others": { "view": true, "manage": true } }, "controllerDefaults": { "view": true, "restart": true, "terminate": true, "switchOver": true, "deployments": { "view": true, "deploy": true }, "orders": { "view": true, "create": true, "cancel": true, "suspendResume": true, "modify": true }, "agents": { "view": true }, "locks": { "view": true }, "noticeBoards": { "view": true, "post": true, "delete": true }, "workflows": { "view": true } }, "controllers": { "standalone": { "view": false, "restart": false, "terminate": false, "switchOver": false, "deployments": { "view": false, "deploy": false }, "orders": { "view": false, "create": false, "cancel": false, "suspendResume": false, "modify": false }, "agents": { "view": false }, "locks": { "view": false }, "noticeBoards": { "view": false, "post": false, "delete": false }, "workflows": { "view": false } } } }
{
"joc": {
"administration": {
"accounts": {
"view": true,
"manage": true
},
"settings": {
"view": true,
"manage": true
},
"controllers": {
"view": true,
"manage": true
},
"certificates": {
"view": true,
"manage": true
}
},
"cluster": {
"manage": true
},
"inventory": {
"view": true,
"manage": true,
"deploy": true
},
"calendars": {
"view": true
},
"documentations": {
"view": true,
"manage": true
},
"auditLog": {
"view": true
},
"dailyPlan": {
"view": true,
"manage": true
},
"fileTransfer": {
"view": true,
"manage": true
},
"notification": {
"view": true,
"manage": true
},
"others": {
"view": true,
"manage": true
}
},
"controllerDefaults": {
"view": true,
"restart": true,
"terminate": true,
"switchOver": true,
"deployments": {
"view": true,
"deploy": true
},
"orders": {
"view": true,
"create": true,
"cancel": true,
"suspendResume": true,
"modify": true
},
"agents": {
"view": true
},
"locks": {
"view": true
},
"noticeBoards": {
"view": true,
"post": true,
"delete": true
},
"workflows": {
"view": true
}
},
"controllers": {
"standalone": {
"view": false,
"restart": false,
"terminate": false,
"switchOver": false,
"deployments": {
"view": false,
"deploy": false
},
"orders": {
"view": false,
"create": false,
"cancel": false,
"suspendResume": false,
"modify": false
},
"agents": {
"view": false
},
"locks": {
"view": false
},
"noticeBoards": {
"view": false,
"post": false,
"delete": false
},
"workflows": {
"view": false
}
}
}
}
|