pronghorn-core Schemas

On this page:

roles-schema

{ "$schema": "http://json-schema.org/draft-07/schema", "$id": "roles-schema", "type": "object", "title": "Itential Role Schema", "description": "This is the schema for an IAP role stored in Mongo", "properties": { "provenance": { "type": "string", "examples": [ "Custom" ] }, "name": { "$ref": "#/definitions/name" }, "description": { "$ref": "#/definitions/description" }, "allowedMethods": { "$ref": "#/definitions/allowedMethods" }, "allowedViews": { "$ref": "#/definitions/allowedViews" }, "_meta": { "type": "object", "properties": { "created": { "type": "string", "examples": [ "2018-08-02T15:56:12.912Z" ] }, "updated": { "type": "string", "examples": [ "2018-08-02T15:56:12.912Z" ] } } } }, "additionalProperties": false, "required": [ "provenance", "name", "description", "allowedMethods", "allowedViews" ], "definitions": { "name": { "type": "string", "examples": [ "role_1" ] }, "description": { "type": "string", "examples": [ "description of role_1" ] }, "allowedMethods": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "examples": [ "methodName" ] }, "provenance": { "type": "string", "examples": [ "ApplicationName" ] } } } }, "allowedViews": { "type": "array", "items": { "type": "object", "properties": { "path": { "type": "string", "examples": [ "/manual/task/path" ] }, "provenance": { "type": "string", "examples": [ "ApplicationName" ] } } } } } }