Marri Devender Rao | d45d2d0 | 2019-01-21 10:11:34 -0600 | [diff] [blame] | 1 | { |
| 2 | "$id": "http://redfish.dmtf.org/schemas/v1/CertificateService.v1_0_0.json", |
| 3 | "$ref": "#/definitions/CertificateService", |
| 4 | "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema-v1.json", |
| 5 | "copyright": "Copyright 2014-2018 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright", |
| 6 | "definitions": { |
| 7 | "Actions": { |
| 8 | "additionalProperties": false, |
| 9 | "description": "The available actions for this resource.", |
| 10 | "longDescription": "This type shall contain the available actions for this resource.", |
| 11 | "patternProperties": { |
| 12 | "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": { |
| 13 | "description": "This property shall specify a valid odata or Redfish property.", |
| 14 | "type": [ |
| 15 | "array", |
| 16 | "boolean", |
| 17 | "integer", |
| 18 | "number", |
| 19 | "null", |
| 20 | "object", |
| 21 | "string" |
| 22 | ] |
| 23 | } |
| 24 | }, |
| 25 | "properties": { |
| 26 | "#CertificateService.GenerateCSR": { |
| 27 | "$ref": "#/definitions/GenerateCSR" |
| 28 | }, |
| 29 | "#CertificateService.ReplaceCertificate": { |
| 30 | "$ref": "#/definitions/ReplaceCertificate" |
| 31 | }, |
| 32 | "Oem": { |
| 33 | "$ref": "#/definitions/OemActions", |
| 34 | "description": "This property contains the available OEM specific actions for this resource.", |
| 35 | "longDescription": "This property shall contain any additional OEM actions for this resource." |
| 36 | } |
| 37 | }, |
| 38 | "type": "object" |
| 39 | }, |
| 40 | "CertificateService": { |
| 41 | "additionalProperties": false, |
| 42 | "description": "The CertificateService schema defines a Certificate Service which represents the actions available to manage certificates and links to where certificates are installed.", |
| 43 | "longDescription": "This resource shall be used to represent the Certificate Service Properties for a Redfish implementation.", |
| 44 | "patternProperties": { |
| 45 | "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": { |
| 46 | "description": "This property shall specify a valid odata or Redfish property.", |
| 47 | "type": [ |
| 48 | "array", |
| 49 | "boolean", |
| 50 | "integer", |
| 51 | "number", |
| 52 | "null", |
| 53 | "object", |
| 54 | "string" |
| 55 | ] |
| 56 | } |
| 57 | }, |
| 58 | "properties": { |
| 59 | "@odata.context": { |
| 60 | "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_3.json#/definitions/context" |
| 61 | }, |
| 62 | "@odata.etag": { |
| 63 | "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_3.json#/definitions/etag" |
| 64 | }, |
| 65 | "@odata.id": { |
| 66 | "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_3.json#/definitions/id" |
| 67 | }, |
| 68 | "@odata.type": { |
| 69 | "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_3.json#/definitions/type" |
| 70 | }, |
| 71 | "Actions": { |
| 72 | "$ref": "#/definitions/Actions", |
| 73 | "description": "The available actions for this resource.", |
| 74 | "longDescription": "The Actions property shall contain the available actions for this resource." |
| 75 | }, |
| 76 | "CertificateLocations": { |
| 77 | "$ref": "http://redfish.dmtf.org/schemas/v1/CertificateLocations.json#/definitions/CertificateLocations", |
| 78 | "description": "Information regarding the location of certificates.", |
| 79 | "longDescription": "This property shall contain the link to a resource of type CertificateLocations.", |
| 80 | "readonly": true |
| 81 | }, |
| 82 | "Description": { |
| 83 | "anyOf": [ |
| 84 | { |
| 85 | "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Description" |
| 86 | }, |
| 87 | { |
| 88 | "type": "null" |
| 89 | } |
| 90 | ], |
| 91 | "readonly": true |
| 92 | }, |
| 93 | "Id": { |
| 94 | "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Id", |
| 95 | "readonly": true |
| 96 | }, |
| 97 | "Name": { |
| 98 | "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Name", |
| 99 | "readonly": true |
| 100 | }, |
| 101 | "Oem": { |
| 102 | "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem", |
| 103 | "description": "This is the manufacturer/provider specific extension moniker used to divide the Oem object into sections.", |
| 104 | "longDescription": "The value of this string shall be of the format for the reserved word *Oem*." |
| 105 | } |
| 106 | }, |
| 107 | "required": [ |
| 108 | "@odata.id", |
| 109 | "@odata.type", |
| 110 | "Id", |
| 111 | "Name" |
| 112 | ], |
| 113 | "type": "object" |
| 114 | }, |
| 115 | "GenerateCSR": { |
| 116 | "actionResponse": { |
| 117 | "$ref": "#/definitions/GenerateCSRResponse" |
| 118 | }, |
| 119 | "additionalProperties": false, |
| 120 | "description": "This action is used to perform a certificate signing request.", |
| 121 | "longDescription": "This action shall perform a certificate signing request. The response shall contain a signing request that is used to be signed by a certificate authority (CA). The service should retain the private key used for the generation of this request for when the certificate is installed. The private key should not be part of the response.", |
| 122 | "parameters": { |
| 123 | "AlternativeNames": { |
| 124 | "description": "Additional hostnames of the component that is being secured.", |
| 125 | "items": { |
| 126 | "type": "string" |
| 127 | }, |
| 128 | "longDescription": "This parameter shall contain an array of additional hostnames of the component that is being secured as defined by the Subject Alternative Name extension in RFC5280.", |
| 129 | "type": "array" |
| 130 | }, |
| 131 | "CertificateCollection": { |
| 132 | "$ref": "http://redfish.dmtf.org/schemas/v1/CertificateCollection.json#/definitions/CertificateCollection", |
| 133 | "description": "A link to the certificate collection where the certificate will be installed.", |
| 134 | "longDescription": "This parameter shall contain the URI of the Certificate Collection where the certificate will be installed once the CA has signed the certificate.", |
| 135 | "requiredParameter": true |
| 136 | }, |
| 137 | "ChallengePassword": { |
| 138 | "description": "The challenge password to be applied to the certificate for revocation requests.", |
| 139 | "longDescription": "The value of this property shall contain the challenge password to be applied to the certificate for revocation requests as defined by the challengePassword attribute in RFC2985.", |
| 140 | "type": "string" |
| 141 | }, |
| 142 | "City": { |
| 143 | "description": "The city or locality of the organization making the request.", |
| 144 | "longDescription": "This parameter shall contain the city or locality of the organization making the request as defined by the localityName attribute in RFC5280.", |
| 145 | "requiredParameter": true, |
| 146 | "type": "string" |
| 147 | }, |
| 148 | "CommonName": { |
| 149 | "description": "The fully qualified domain name of the component that is being secured.", |
| 150 | "longDescription": "This parameter shall contain the fully qualified domain name of the component that is being secured as defined by the commonName attribute in RFC5280.", |
| 151 | "requiredParameter": true, |
| 152 | "type": "string" |
| 153 | }, |
| 154 | "ContactPerson": { |
| 155 | "description": "The name of the user making the request.", |
| 156 | "longDescription": "The value of this property shall contain the name of the user making the request as defined by the name attribute in RFC5280.", |
| 157 | "type": "string" |
| 158 | }, |
| 159 | "Country": { |
| 160 | "description": "The country of the organization making the request.", |
| 161 | "longDescription": "This parameter shall contain the two letter ISO code for the country of the organization making the request as defined by the countryName attribute in RFC5280.", |
| 162 | "requiredParameter": true, |
| 163 | "type": "string" |
| 164 | }, |
| 165 | "Email": { |
| 166 | "description": "The email address of the contact within the organization making the request.", |
| 167 | "longDescription": "This parameter shall contain the email address of the contact within the organization making the request as defined by the emailAddress attribute in RFC2985.", |
| 168 | "type": "string" |
| 169 | }, |
| 170 | "GivenName": { |
| 171 | "description": "The given name of the user making the request.", |
| 172 | "longDescription": "The value of this property shall contain the given name of the user making the request as defined by the givenName attribute in RFC5280.", |
| 173 | "type": "string" |
| 174 | }, |
| 175 | "Initials": { |
| 176 | "description": "The initials of the user making the request.", |
| 177 | "longDescription": "The value of this property shall contain the initials of the user making the request as defined by the initials attribute in RFC5280.", |
| 178 | "type": "string" |
| 179 | }, |
| 180 | "KeyBitLength": { |
| 181 | "description": "The length of the key in bits, if needed based on the value of the 'KeyPairAlgorithm' parameter.", |
| 182 | "longDescription": "The value of this property shall be the length of the key in bits, if needed based on the value of the 'KeyPairAlgorithm' parameter.", |
| 183 | "type": "integer" |
| 184 | }, |
| 185 | "KeyCurveId": { |
| 186 | "description": "The curve ID to be used with the key, if needed based on the value of the 'KeyPairAlgorithm' parameter.", |
| 187 | "longDescription": "The value of this property shall be the curve ID to be used with the key, if needed based on the value of the 'KeyPairAlgorithm' parameter. The allowable values for this parameter shall be the strings in the 'Name' field of the 'TPM_ECC_CURVE Constants' table within the 'Trusted Computing Group Algorithm Registry'.", |
| 188 | "type": "string" |
| 189 | }, |
| 190 | "KeyPairAlgorithm": { |
| 191 | "description": "The type of key pair for use with signing algorithms.", |
| 192 | "longDescription": "The value of this property shall be the type of key pair for use with signing algorithms. The allowable values for this parameter shall be the strings in the 'Algorithm Name' field of the 'TPM_ALG_ID Constants' table within the 'Trusted Computing Group Algorithm Registry'.", |
| 193 | "type": "string" |
| 194 | }, |
| 195 | "KeyUsage": { |
| 196 | "description": "The usage of the key contained in the certificate.", |
| 197 | "items": { |
| 198 | "$ref": "http://redfish.dmtf.org/schemas/v1/Certificate.json#/definitions/KeyUsage" |
| 199 | }, |
| 200 | "longDescription": "This parameter shall contain the usage of the key contained in the certificate. If not provided by the client, the service may determine the appropriate key usage settings in the certificate signing request.", |
| 201 | "type": "array" |
| 202 | }, |
| 203 | "Organization": { |
| 204 | "description": "The name of the organization making the request.", |
| 205 | "longDescription": "This parameter shall contain the name of the organization making the request as defined by the organizationName attribute in RFC5280.", |
| 206 | "requiredParameter": true, |
| 207 | "type": "string" |
| 208 | }, |
| 209 | "OrganizationalUnit": { |
| 210 | "description": "The name of the unit or division of the organization making the request.", |
| 211 | "longDescription": "This parameter shall contain the name of the unit or division of the organization making the request as defined by the organizationalUnitName attribute in RFC5280.", |
| 212 | "requiredParameter": true, |
| 213 | "type": "string" |
| 214 | }, |
| 215 | "State": { |
| 216 | "description": "The state, province, or region of the organization making the request.", |
| 217 | "longDescription": "This parameter shall contain the state, province, or region of the organization making the request as defined by the stateOrProvinceName attribute in RFC5280.", |
| 218 | "requiredParameter": true, |
| 219 | "type": "string" |
| 220 | }, |
| 221 | "Surname": { |
| 222 | "description": "The surname of the user making the request.", |
| 223 | "longDescription": "The value of this property shall contain the surname of the user making the request as defined by the surname attribute in RFC5280.", |
| 224 | "type": "string" |
| 225 | }, |
| 226 | "UnstructuredName": { |
| 227 | "description": "The unstructured name of the subject.", |
| 228 | "longDescription": "The value of this property shall contain the unstructured name of the subject as defined by the unstructuredName attribute in RFC2985.", |
| 229 | "type": "string" |
| 230 | } |
| 231 | }, |
| 232 | "patternProperties": { |
| 233 | "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": { |
| 234 | "description": "This property shall specify a valid odata or Redfish property.", |
| 235 | "type": [ |
| 236 | "array", |
| 237 | "boolean", |
| 238 | "integer", |
| 239 | "number", |
| 240 | "null", |
| 241 | "object", |
| 242 | "string" |
| 243 | ] |
| 244 | } |
| 245 | }, |
| 246 | "properties": { |
| 247 | "target": { |
| 248 | "description": "Link to invoke action", |
| 249 | "format": "uri", |
| 250 | "type": "string" |
| 251 | }, |
| 252 | "title": { |
| 253 | "description": "Friendly action name", |
| 254 | "type": "string" |
| 255 | } |
| 256 | }, |
| 257 | "type": "object" |
| 258 | }, |
| 259 | "GenerateCSRResponse": { |
| 260 | "additionalProperties": false, |
| 261 | "description": "The response body for the GenerateCSR action.", |
| 262 | "longDescription": "This type shall contain the properties found in the response body for the GenerateCSR action.", |
| 263 | "patternProperties": { |
| 264 | "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": { |
| 265 | "description": "This property shall specify a valid odata or Redfish property.", |
| 266 | "type": [ |
| 267 | "array", |
| 268 | "boolean", |
| 269 | "integer", |
| 270 | "number", |
| 271 | "null", |
| 272 | "object", |
| 273 | "string" |
| 274 | ] |
| 275 | } |
| 276 | }, |
| 277 | "properties": { |
| 278 | "CSRString": { |
| 279 | "description": "The string for the certificate signing request.", |
| 280 | "longDescription": "The value of this property shall be the string of the certificate signing request as a Privacy Enhanced Mail (PEM) encoded string, containing structures specified by RFC2986. The private key should not be part of the string.", |
| 281 | "readonly": true, |
| 282 | "type": "string" |
| 283 | }, |
| 284 | "CertificateCollection": { |
| 285 | "$ref": "http://redfish.dmtf.org/schemas/v1/CertificateCollection.json#/definitions/CertificateCollection", |
| 286 | "description": "A link to the certificate collection where the certificate will be installed.", |
| 287 | "longDescription": "This property shall contain the URI of the Certificate Collection where the certificate will be installed once the CA has signed the certificate.", |
| 288 | "readonly": true |
| 289 | } |
| 290 | }, |
| 291 | "required": [ |
| 292 | "CertificateCollection", |
| 293 | "CSRString" |
| 294 | ], |
| 295 | "type": "object" |
| 296 | }, |
| 297 | "OemActions": { |
| 298 | "additionalProperties": true, |
| 299 | "description": "The available OEM specific actions for this resource.", |
| 300 | "longDescription": "This type shall contain any additional OEM actions for this resource.", |
| 301 | "patternProperties": { |
| 302 | "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": { |
| 303 | "description": "This property shall specify a valid odata or Redfish property.", |
| 304 | "type": [ |
| 305 | "array", |
| 306 | "boolean", |
| 307 | "integer", |
| 308 | "number", |
| 309 | "null", |
| 310 | "object", |
| 311 | "string" |
| 312 | ] |
| 313 | } |
| 314 | }, |
| 315 | "properties": {}, |
| 316 | "type": "object" |
| 317 | }, |
| 318 | "ReplaceCertificate": { |
| 319 | "additionalProperties": false, |
| 320 | "description": "This action is used to replace an existing certificate.", |
| 321 | "longDescription": "This action shall replace an existing certificate. The Location header in the response shall contain the URI of the new Certificate resource.", |
| 322 | "parameters": { |
| 323 | "CertificateString": { |
| 324 | "description": "The string for the certificate.", |
| 325 | "longDescription": "The value of this property shall be the string of the certificate, and the format shall follow the requirements specified by the value of the CertificateType property. If the certificate contains any private keys, they shall be removed from the string on GET requests. If the private key for the certificate is not known by the service and is needed to use the certificate, the client shall provide the private key as part of the string in the POST request.", |
| 326 | "requiredParameter": true, |
| 327 | "type": "string" |
| 328 | }, |
| 329 | "CertificateType": { |
| 330 | "$ref": "http://redfish.dmtf.org/schemas/v1/Certificate.json#/definitions/CertificateType", |
| 331 | "description": "The format of the certificate.", |
| 332 | "longDescription": "The value of this parameter shall contain the format type for the certificate.", |
| 333 | "requiredParameter": true |
| 334 | }, |
| 335 | "CertificateUri": { |
| 336 | "$ref": "http://redfish.dmtf.org/schemas/v1/Certificate.json#/definitions/Certificate", |
| 337 | "description": "A link to the certificate that is being replaced.", |
| 338 | "longDescription": "This parameter shall contain the URI of the Certificate that is being replaced.", |
| 339 | "requiredParameter": true |
| 340 | } |
| 341 | }, |
| 342 | "patternProperties": { |
| 343 | "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": { |
| 344 | "description": "This property shall specify a valid odata or Redfish property.", |
| 345 | "type": [ |
| 346 | "array", |
| 347 | "boolean", |
| 348 | "integer", |
| 349 | "number", |
| 350 | "null", |
| 351 | "object", |
| 352 | "string" |
| 353 | ] |
| 354 | } |
| 355 | }, |
| 356 | "properties": { |
| 357 | "target": { |
| 358 | "description": "Link to invoke action", |
| 359 | "format": "uri", |
| 360 | "type": "string" |
| 361 | }, |
| 362 | "title": { |
| 363 | "description": "Friendly action name", |
| 364 | "type": "string" |
| 365 | } |
| 366 | }, |
| 367 | "type": "object" |
| 368 | } |
| 369 | }, |
| 370 | "owningEntity": "DMTF", |
| 371 | "release": "2018.3", |
| 372 | "title": "#CertificateService.v1_0_0.CertificateService" |
| 373 | } |