GET – 证书位置属性
使用 GET 方法检索 Redfish 服务的 CertificateLocations 资源中的属性。
请求 URL
GET https://<BMC_IPADDR>/redfish/v1/CertificateService/CertificateLocations
请求正文
无
响应正文
字段 | 类型 | 描述 | ||
---|---|---|---|---|
Id | 字符串 | CertificateLocations | ||
Name | 字符串 | Certificate Locations | ||
Description | 字符串 | “This resource is used to represent the collection of certificate locations for a Redfish implementation.” | ||
Links | 对象 | 已展开。 | ||
Certificates | 数组 | 项:链接 项数:N | ||
Certificates[N] | 链接 | 此属性的值是对证书资源的 URI 引用。 |
状态代码
HTTP 状态代码 | 错误消息 ID |
---|---|
500 | InternalError |
示例
返回以下示例 JSON 响应:
{
"@odata.id": "/redfish/v1/CertificateService/CertificateLocations",
"@odata.type": "#CertificateLocations.v1_0_0.CertificateLocations",
"Description": "Defines a resource that an administrator can use in order to locate all certificates installed on a given service",
"Id": "CertificateLocations",
"Links": {
"Certificates": [
{
"@odata.id": "/redfish/v1/Managers/1/NetworkProtocol/HTTPS/Certificates/1"
}
],
"Certificates@odata.count": 1
},
"Name": "Certificate Locations",
"error": {
"@Message.ExtendedInfo": [
{
"@odata.type": "#Message.v1_1_1.Message",
"Message": "The request failed due to an internal service error. The service is still operational.",
"MessageArgs": [],
"MessageId": "Base.1.16.0.InternalError",
"MessageSeverity": "Critical",
"Resolution": "Resubmit the request. If the problem persists, consider resetting the service."
}
],
"code": "Base.1.16.0.InternalError",
"message": "The request failed due to an internal service error. The service is still operational."
}
}
提供反馈