GET – 证书服务属性
使用 GET 方法检索 Redfish 服务的 CertificateService 资源中的属性。
请求 URL
GET https://<BMC_IPADDR>/redfish/v1/CertificateService
请求正文
无
响应正文
字段 | 类型 | 描述 | ||
---|---|---|---|---|
Id | 字符串 | “CertificateService” | ||
Name | 字符串 | “Certificate Service” | ||
Description | 字符串 | “This resource is used to represent a certificate service for a Redfish implementation.” | ||
CertificateLocations | 链接 | 证书位置信息。 | ||
Actions | 对象 | 已展开。 | ||
#CertificateService.GenerateCSR | 对象 | 此操作会产生证书签名请求。 | ||
KeyUsage@Redfish.AllowableValues | 数组 | [“DigitalSignature”, “NonRepudiation”, “KeyEncipherment”] | ||
KeyCurveId@Redfish.AllowableValues | 数组 | [“TPM_ECC_NIST_P384”] | ||
KeyPairAlgorithm@Redfish.AllowableValues | 数组 | [“TPM_ALG_ECDH”] | ||
#CertificateService.ReplaceCertificate | 数组 | 此操作将替换证书。 | ||
CertificateType@Redfish.AllowableValues | 数组 | [“PEM”] |
状态代码
HTTP 状态代码 | 错误消息 ID |
---|---|
500 | InternalError |
示例
返回以下示例 JSON 响应:
{
"Actions": {
"#CertificateService.GenerateCSR": {
"KeyUsage@Redfish.AllowableValues": [
"DigitalSignature",
"NonRepudiation",
"KeyEncipherment"
],
"target": "/redfish/v1/CertificateService/Actions/CertificateService.GenerateCSR",
"title": "Generate a CSR file.",
"KeyCurveId@Redfish.AllowableValues": [
"TPM_ECC_NIST_P384"
],
"KeyPairAlgorithm@Redfish.AllowableValues": [
"TPM_ALG_ECDH"
]
},
"#CertificateService.ReplaceCertificate": {
"target": "/redfish/v1/CertificateService/Actions/CertificateService.ReplaceCertificate",
"title": "Replace an existing certificate.",
"CertificateType@Redfish.AllowableValues": [
"PEM"
]
}
},
"@odata.id": "/redfish/v1/CertificateService",
"@odata.type": "#CertificateService.v1_0_2.CertificateService",
"Id": "CertificateService",
"CertificateLocations": {
"@odata.id": "/redfish/v1/CertificateService/CertificateLocations"
},
"@odata.etag": "\"74957388648d2a308f8\"",
"Name": "Certificate Service",
"Description": "This resource is used to represent a certificate service for a Redfish implementation."
}
提供反馈