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_P256”, “TPM_ECC_NIST_P384”] | ||
KeyBitLength@Redfish.AllowableValues | 字符串 | “2048”、“3072”、“4096” | ||
KeyPairAlgorithm@Redfish.AllowableValues | 数组 | [“TPM_ALG_ECDH”, “TPM_ALG_RSA”] | ||
#CertificateService.ReplaceCertificate | 数组 | 此操作将替换证书。 | ||
CertificateType@Redfish.AllowableValues | 数组 | [“PEM”] |
状态代码
HTTP 状态代码 | 错误消息 ID |
---|---|
500 | InternalError |
示例
返回以下示例 JSON 响应:
{
"Id": "CertificateService",
"Name": "Certificate Service",
"@odata.context": "/redfish/v1/$metadata#CertificateService.CertificateService",
"@odata.id": "/redfish/v1/CertificateService",
"@odata.etag": "\"83efd8c1e88e25b7467\"",
"CertificateLocations": {
"@odata.id": "/redfish/v1/CertificateService/CertificateLocations"
},
"Description": "This resource is used to represent a certificate service for a Redfish implementation.",
"@odata.type": "#CertificateService.v1_0_4.CertificateService",
"Actions": {
"#CertificateService.ReplaceCertificate": {
"target": "/redfish/v1/CertificateService/Actions/CertificateService.ReplaceCertificate",
"CertificateType@Redfish.AllowableValues": [
"PEM"
],
"title": "Replace an existing certificate."
},
"#CertificateService.GenerateCSR": {
"KeyCurveId@Redfish.AllowableValues": [
"TPM_ECC_NIST_P256",
"TPM_ECC_NIST_P384"
],
"title": "Generate a CSR file.",
"KeyBitLength@Redfish.AllowableValues": [
"2048",
"3072",
"4096"
],
"target": "/redfish/v1/CertificateService/Actions/CertificateService.GenerateCSR",
"KeyUsage@Redfish.AllowableValues": [
"DigitalSignature",
"NonRepudiation",
"KeyEncipherment"
],
"KeyPairAlgorithm@Redfish.AllowableValues": [
"TPM_ALG_ECDH",
"TPM_ALG_RSA"
]
}
}
}
提供反馈