Ed Tanous | 683f727 | 2018-07-26 12:47:19 -0700 | [diff] [blame] | 1 | { |
| 2 | "$ref": "#/definitions/SecureBoot", |
| 3 | "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema.v1_3_0.json", |
| 4 | "copyright": "Copyright 2014-2017 Distributed Management Task Force, Inc. (DMTF). For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright", |
| 5 | "definitions": { |
| 6 | "Actions": { |
| 7 | "additionalProperties": false, |
| 8 | "description": "The available actions for this resource.", |
| 9 | "longDescription": "This type shall contain the available actions for this resource.", |
| 10 | "patternProperties": { |
| 11 | "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message|Privileges)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": { |
| 12 | "description": "This property shall specify a valid odata or Redfish property.", |
| 13 | "type": [ |
| 14 | "array", |
| 15 | "boolean", |
| 16 | "number", |
| 17 | "null", |
| 18 | "object", |
| 19 | "string" |
| 20 | ] |
| 21 | } |
| 22 | }, |
| 23 | "properties": { |
| 24 | "#SecureBoot.ResetKeys": { |
| 25 | "$ref": "#/definitions/ResetKeys" |
| 26 | }, |
| 27 | "Oem": { |
| 28 | "$ref": "#/definitions/OemActions" |
| 29 | } |
| 30 | }, |
| 31 | "type": "object" |
| 32 | }, |
| 33 | "OemActions": { |
| 34 | "additionalProperties": true, |
| 35 | "description": "The available OEM specific actions for this resource.", |
| 36 | "longDescription": "This type shall contain any additional OEM actions for this resource.", |
| 37 | "patternProperties": { |
| 38 | "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message|Privileges)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": { |
| 39 | "description": "This property shall specify a valid odata or Redfish property.", |
| 40 | "type": [ |
| 41 | "array", |
| 42 | "boolean", |
| 43 | "number", |
| 44 | "null", |
| 45 | "object", |
| 46 | "string" |
| 47 | ] |
| 48 | } |
| 49 | }, |
| 50 | "properties": {}, |
| 51 | "type": "object" |
| 52 | }, |
| 53 | "ResetKeys": { |
| 54 | "additionalProperties": false, |
| 55 | "description": "This action is used to reset the Secure Boot keys.", |
| 56 | "longDescription": "This action shall perform a reset of the Secure Boot key databases. The ResetAllKeysToDefault value shall reset the UEFI Secure Boot key databases to their default values. The DeleteAllKeys value shall delete the content of the UEFI Secure Boot key databases. The DeletePK value shall delete the content of the PK Secure boot key.", |
| 57 | "parameters": { |
| 58 | "ResetKeysType": { |
| 59 | "$ref": "#/definitions/ResetKeysType", |
| 60 | "description": "The type of keys to reset or delete.", |
| 61 | "longDescription": "This parameter shall specify the type of keys to reset or delete.", |
| 62 | "requiredParameter": true |
| 63 | } |
| 64 | }, |
| 65 | "patternProperties": { |
| 66 | "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message|Privileges)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": { |
| 67 | "description": "This property shall specify a valid odata or Redfish property.", |
| 68 | "type": [ |
| 69 | "array", |
| 70 | "boolean", |
| 71 | "number", |
| 72 | "null", |
| 73 | "object", |
| 74 | "string" |
| 75 | ] |
| 76 | } |
| 77 | }, |
| 78 | "properties": { |
| 79 | "target": { |
| 80 | "description": "Link to invoke action", |
| 81 | "format": "uri", |
| 82 | "type": "string" |
| 83 | }, |
| 84 | "title": { |
| 85 | "description": "Friendly action name", |
| 86 | "type": "string" |
| 87 | } |
| 88 | }, |
| 89 | "type": "object" |
| 90 | }, |
| 91 | "ResetKeysType": { |
| 92 | "enum": [ |
| 93 | "ResetAllKeysToDefault", |
| 94 | "DeleteAllKeys", |
| 95 | "DeletePK" |
| 96 | ], |
| 97 | "enumDescriptions": { |
| 98 | "DeleteAllKeys": "Delete the content of all UEFI Secure Boot key databases (PK, KEK, DB, DBX). This puts the system in Setup Mode.", |
| 99 | "DeletePK": "Delete the content of the PK UEFI Secure Boot database. This puts the system in Setup Mode.", |
| 100 | "ResetAllKeysToDefault": "Reset the content of all UEFI Secure Boot key databases (PK, KEK, DB, DBX) to their default values." |
| 101 | }, |
| 102 | "type": "string" |
| 103 | }, |
| 104 | "SecureBoot": { |
| 105 | "additionalProperties": false, |
| 106 | "description": "This resource contains UEFI Secure Boot information. It represents properties for managing the UEFI Secure Boot functionality of a system.", |
| 107 | "longDescription": "This resource shall be used to represent a UEFI Secure Boot resource for a Redfish implementation.", |
| 108 | "patternProperties": { |
| 109 | "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message|Privileges)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": { |
| 110 | "description": "This property shall specify a valid odata or Redfish property.", |
| 111 | "type": [ |
| 112 | "array", |
| 113 | "boolean", |
| 114 | "number", |
| 115 | "null", |
| 116 | "object", |
| 117 | "string" |
| 118 | ] |
| 119 | } |
| 120 | }, |
| 121 | "properties": { |
| 122 | "@odata.context": { |
| 123 | "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_1.json#/definitions/context" |
| 124 | }, |
| 125 | "@odata.id": { |
| 126 | "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_1.json#/definitions/id" |
| 127 | }, |
| 128 | "@odata.type": { |
| 129 | "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_1.json#/definitions/type" |
| 130 | }, |
| 131 | "Actions": { |
| 132 | "$ref": "#/definitions/Actions", |
| 133 | "description": "The available actions for this resource.", |
| 134 | "longDescription": "The Actions property shall contain the available actions for this resource." |
| 135 | }, |
| 136 | "Description": { |
| 137 | "anyOf": [ |
| 138 | { |
| 139 | "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Description" |
| 140 | }, |
| 141 | { |
| 142 | "type": "null" |
| 143 | } |
| 144 | ], |
| 145 | "readonly": true |
| 146 | }, |
| 147 | "Id": { |
| 148 | "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Id", |
| 149 | "readonly": true |
| 150 | }, |
| 151 | "Name": { |
| 152 | "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Name", |
| 153 | "readonly": true |
| 154 | }, |
| 155 | "Oem": { |
| 156 | "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem", |
| 157 | "description": "This is the manufacturer/provider specific extension moniker used to divide the Oem object into sections.", |
| 158 | "longDescription": "The value of this string shall be of the format for the reserved word *Oem*." |
| 159 | }, |
| 160 | "SecureBootCurrentBoot": { |
| 161 | "anyOf": [ |
| 162 | { |
| 163 | "$ref": "#/definitions/SecureBootCurrentBootType" |
| 164 | }, |
| 165 | { |
| 166 | "type": "null" |
| 167 | } |
| 168 | ], |
| 169 | "description": "Secure Boot state during the current boot cycle.", |
| 170 | "longDescription": "The value of this property shall indicate the UEFI Secure Boot state during the current boot cycle.", |
| 171 | "readonly": true |
| 172 | }, |
| 173 | "SecureBootEnable": { |
| 174 | "description": "Enable or disable UEFI Secure Boot (takes effect on next boot).", |
| 175 | "longDescription": "Setting this property to true enables UEFI Secure Boot, and setting it to false disables it. This property can be enabled only in UEFI boot mode.", |
| 176 | "readonly": false, |
| 177 | "type": [ |
| 178 | "boolean", |
| 179 | "null" |
| 180 | ] |
| 181 | }, |
| 182 | "SecureBootMode": { |
| 183 | "anyOf": [ |
| 184 | { |
| 185 | "$ref": "#/definitions/SecureBootModeType" |
| 186 | }, |
| 187 | { |
| 188 | "type": "null" |
| 189 | } |
| 190 | ], |
| 191 | "description": "Current Secure Boot Mode.", |
| 192 | "longDescription": "This property shall contain the current Secure Boot mode, as defined in the UEFI Specification.", |
| 193 | "readonly": true |
| 194 | } |
| 195 | }, |
| 196 | "required": [ |
| 197 | "Id", |
| 198 | "Name" |
| 199 | ], |
| 200 | "type": "object" |
| 201 | }, |
| 202 | "SecureBootCurrentBootType": { |
| 203 | "enum": [ |
| 204 | "Enabled", |
| 205 | "Disabled" |
| 206 | ], |
| 207 | "enumDescriptions": { |
| 208 | "Disabled": "Secure Boot is currently disabled.", |
| 209 | "Enabled": "Secure Boot is currently enabled." |
| 210 | }, |
| 211 | "type": "string" |
| 212 | }, |
| 213 | "SecureBootModeType": { |
| 214 | "enum": [ |
| 215 | "SetupMode", |
| 216 | "UserMode", |
| 217 | "AuditMode", |
| 218 | "DeployedMode" |
| 219 | ], |
| 220 | "enumDescriptions": { |
| 221 | "AuditMode": "Secure Boot is currently in Audit Mode.", |
| 222 | "DeployedMode": "Secure Boot is currently in Deployed Mode.", |
| 223 | "SetupMode": "Secure Boot is currently in Setup Mode.", |
| 224 | "UserMode": "Secure Boot is currently in User Mode." |
| 225 | }, |
| 226 | "type": "string" |
| 227 | } |
| 228 | }, |
| 229 | "title": "#SecureBoot.v1_0_3.SecureBoot" |
| 230 | } |