跳到主要内容

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

对象

此操作会产生证书签名请求。

  

KeyCurveId@Redfish.AllowableValues

数组

[“TPM_ECC_NIST_P256”, “TPM_ECC_NIST_P384”]

  

KeyPairAlgorithm@Redfish.AllowableValues

数组

[“TPM_ALG_ECDH”, “TPM_ALG_RSA”]

  

KeyBitLength@Redfish.AllowableValues

数字

[2048, 3072, 4096]

状态代码

HTTP 状态代码错误消息 ID
500InternalError

示例

返回以下示例 JSON 响应:

{
"@odata.context": "/redfish/v1/$metadata#CertificateService.CertificateService",
"@odata.etag": "\"C46ABFF4\"",
"@odata.id": "/redfish/v1/CertificateService",
"@odata.type": "#CertificateService.v1_0_4.CertificateService",
"Actions": {
"#CertificateService.GenerateCSR": {
"KeyUsage@Redfish.AllowableValues": [
"DigitalSignature",
"NonRepudiation",
"KeyEncipherment"
],
"keyBitLength@Redfish.AllowableValues": [
2048,
3072,
4096
],
"keyCurveId@Redfish.AllowableValues": [
"TPM_ECC_NIST_P256",
"TPM_ECC_NIST_P384"
],
"keyPairAlgorithm@Redfish.AllowableValues": [
"TPM_ALG_ECDH",
"TPM_ALG_RSA"
],
"target": "/redfish/v1/CertificateService/Actions/CertificateService.GenerateCSR",
"title": "GenerateCSR"
},
"#CertificateService.ReplaceCertificate": {
"CertificateType@Redfish.AllowableValues": [
"PEM"
],
"target": "/redfish/v1/CertificateService/Actions/CertificateService.ReplaceCertificate",
"title": "ReplaceCertificate"
}
},
"CertificateLocations": {
"@odata.id": "/redfish/v1/CertificateService/CertificateLocations"
},
"Description": "This resource is used to represent a certificate service for a Redfish implementation.",
"Id": "CertificateService",
"Name": "Certificate Service"
}