Post by AMI_archerwen on Apr 26, 2021 3:18:53 GMT
I know the schema "CertificateService_v1_0_2" defined the required properties only are ""CertificateCollection" & "CSRString" in response.
"GenerateCSRResponse": {
"additionalProperties": false,
"description": "The response body for the GenerateCSR action.",
"longDescription": "This type shall contain the properties found in the response body for the GenerateCSR action.",
"patternProperties": {
"^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
"description": "This property shall specify a valid odata or Redfish property.",
"type": [
"array",
"boolean",
"integer",
"number",
"null",
"object",
"string"
]
}
},
"properties": {
"CSRString": {
"description": "The string for the certificate signing request.",
"longDescription": "This property shall contain the Privacy Enhanced Mail (PEM)-encoded string, which contains RFC2986-specified structures, of the certificate signing request. The private key should not be part of the string.",
"readonly": true,
"type": "string"
},
"CertificateCollection": {
"$ref": "http://redfish.dmtf.org/schemas/v1/CertificateCollection.json#/definitions/CertificateCollection",
"description": "The link to the Certificate Resource Collection where the certificate is installed.",
"longDescription": "This property shall contain the URI of the Certificate Resource Collection where the certificate is installed after the certificate authority (CA) has signed the certificate.",
"readonly": true
}
},
"required": [
"CertificateCollection",
"CSRString"
],
"type": "object"
}
But base on Spec, looks like also need "@odata.id", "@odata.type", "Id", "Name" in response when we doing GenerateCSR action.
Am I correct?
Thanks,
Archer.
"GenerateCSRResponse": {
"additionalProperties": false,
"description": "The response body for the GenerateCSR action.",
"longDescription": "This type shall contain the properties found in the response body for the GenerateCSR action.",
"patternProperties": {
"^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
"description": "This property shall specify a valid odata or Redfish property.",
"type": [
"array",
"boolean",
"integer",
"number",
"null",
"object",
"string"
]
}
},
"properties": {
"CSRString": {
"description": "The string for the certificate signing request.",
"longDescription": "This property shall contain the Privacy Enhanced Mail (PEM)-encoded string, which contains RFC2986-specified structures, of the certificate signing request. The private key should not be part of the string.",
"readonly": true,
"type": "string"
},
"CertificateCollection": {
"$ref": "http://redfish.dmtf.org/schemas/v1/CertificateCollection.json#/definitions/CertificateCollection",
"description": "The link to the Certificate Resource Collection where the certificate is installed.",
"longDescription": "This property shall contain the URI of the Certificate Resource Collection where the certificate is installed after the certificate authority (CA) has signed the certificate.",
"readonly": true
}
},
"required": [
"CertificateCollection",
"CSRString"
],
"type": "object"
}
But base on Spec, looks like also need "@odata.id", "@odata.type", "Id", "Name" in response when we doing GenerateCSR action.
Am I correct?
Thanks,
Archer.