alexandria/alexandria/model/redfish/1.0/Role.1.0.0.json

79 lines
4.2 KiB
JSON
Executable File

{
"$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema.1.0.0.json",
"title": "#Role.1.0.0.Role",
"$ref": "#/definitions/Role",
"definitions": {
"Role": {
"type": "object",
"patternProperties": {
"^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message|Privileges)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": {
"type": [
"array",
"boolean",
"number",
"null",
"object",
"string"
],
"description": "This property shall specify a valid odata or Redfish property."
}
},
"additionalProperties": false,
"properties": {
"@odata.context": {
"$ref": "http://redfish.dmtf.org/schemas/v1/odata.4.0.0.json#/definitions/context"
},
"@odata.id": {
"$ref": "http://redfish.dmtf.org/schemas/v1/odata.4.0.0.json#/definitions/id"
},
"@odata.type": {
"$ref": "http://redfish.dmtf.org/schemas/v1/odata.4.0.0.json#/definitions/type"
},
"Oem": {
"$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem",
"description": "This is the manufacturer/provider specific extension moniker used to divide the Oem object into sections.",
"longDescription": "The value of this string shall be of the format for the reserved word *Oem*."
},
"Id": {
"$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Id"
},
"Description": {
"$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Description"
},
"Name": {
"$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Name"
},
"IsPredefined": {
"type": "boolean",
"readonly": true,
"description": "This property is used to indicate if the Role is one of the Redfish Predefined Roles vs a Custom role.",
"longDescription": "The value of this property shall indicate if the role is a predefined role. ."
},
"AssignedPrivileges": {
"type": "array",
"items": {
"$ref": "http://redfish.dmtf.org/schemas/v1/Privileges.1.0.0.json#/definitions/PrivilegeType"
},
"readonly": false,
"description": "The redfish privileges that this role includes.",
"longDescription": "The value of this property shall be the redfish privileges that the role includes. For pre-defined roles, this property shall be readOnly. For custom roles some implementations may not allow writing this property."
},
"OemPrivileges": {
"type": "array",
"items": {
"type": [
"string",
"null"
]
},
"readonly": false,
"description": "The OEM privileges that this role includes.",
"longDescription": "The value of this property shall be the OEM privileges that this role includes. For pre-defined roles, this property shall be readOnly. For custom roles some implementations may not allow writing this property."
}
},
"description": "This schema defines a user role to be used in conjunction with a manager account.",
"longDescription": "This resource shall be used to represent resources that represent the user role for the user account."
}
},
"copyright": "Copyright 2014-2015 Distributed Management Task Force, Inc. (DMTF). All rights reserved."
}