GET – 事件服务属性
使用 GET 方法检索 Redfish 服务的事件服务资源中的属性。
请求 URL
GET https://<BMC_IPADDR>/redfish/v1/EventService
请求正文
无
响应正文
字段 | 类型 | 描述 | ||||||
---|---|---|---|---|---|---|---|---|
Id | 字符串 | EventService | ||||||
Name | 字符串 | Event Service | ||||||
Description | 字符串 | “This resource represents an event service for a Redfish implementation.” | ||||||
DeliveryRetryAttempts | 整数 | 3 | ||||||
DeliveryRetryIntervalSeconds | 整数 | 60(单位:秒) | ||||||
EventFormatTypes | 数组 | 项:字符串 项数:2 | ||||||
EventFormatTypes[N] | 字符串 | 有效值:“Event”或“MetricReport” | ||||||
RegistryPrefixes | 数组 | 项:字符串 项数:映射到资源 /redfish/v1/Registries 下的成员 | ||||||
RegistryPrefixes[N] | 字符串 | 映射到资源 /redfish/v1/Registries 下的成员 | ||||||
ResourceTypes | 数组 | 可在订阅的 ResourceType 中指定的 @odata.type 值(架构名称)的列表。 | ||||||
ResourceTypes[N] | 字符串 | ResourceTypes 数组元素 注 无法按 ResourceType 筛选警报事件 | ||||||
IncludeOriginOfConditionSupported | 布尔 | True | ||||||
SubordinateResourcesSupported | 布尔 | 指示服务是否支持事件订阅的 SubordinateResource 属性。 | ||||||
SSEFilterPropertiesSupported | 对象 | 已展开。 | ||||||
EventFormatType | 布尔 | True | ||||||
MessageId | 布尔 | True | ||||||
MetricReportDefinition | 布尔 | True | ||||||
OriginResource | 布尔 | True | ||||||
RegistryPrefix | 布尔 | True | ||||||
ResourceType | 布尔 | True | ||||||
SubordinateResources | 布尔 | True | ||||||
ServerSentEventUri | 链接 | /redfish/v1/EventService/ServerSentEvent | ||||||
Subscriptions | 链接 | EventDestinationCollection 类型的事件订阅的引用。 | ||||||
ServiceEnabled | 布尔 | True | ||||||
Status | 对象 | 已展开。 | ||||||
State | 字符串 | “Enabled” | ||||||
Health | 字符串 | “OK” | ||||||
Actions | 对象 | 已展开。 | ||||||
#EventService.SubmitTestEvent | 对象 | 请参阅“Actions” | ||||||
title | 字符串 | SubmitTestEvent | ||||||
target | 链接 | /redfish/v1/EventService/Actions/EventService.SubmitTestEvent | ||||||
SMTP | 对象 | 已展开。 | ||||||
Authentication | 字符串 | SMTP 服务器的认证方法。 | ||||||
Authentication@Redfish.AllowableValues | 数组 | 项:字符串 项数:3 | ||||||
Authentication @Redfish.AllowableValues[N] | 字符串 | “None”、“Login”、“CRAM_MD5”。 | ||||||
ConnectionProtocol | 字符串 | 与传出 SMTP 服务器的连接类型。 | ||||||
ConnectionProtocol@Redfish.AllowableValues | 数组 | 项:字符串 项数:1 | ||||||
ConnectionProtocol @Redfish.AllowableValues[N] | 字符串 | “AutoDetect” | ||||||
FromAddress | 字符串 | 传出电子邮件的发件人地址。 | ||||||
Password | 字符串 | 用于向 SMTP 服务器进行认证的密码。此值在响应中为“null”。 | ||||||
Port | 数字 | 目标 SMTP 端口。 | ||||||
ServerAddress | 字符串 | SMTP 服务器的地址。 | ||||||
ServiceEnabled | 布尔 | 指示是否启用了用于事件传递的 SMTP。 | ||||||
Username | 字符串 | 用于向 SMTP 服务器进行认证的用户名。 |
状态代码
HTTP 状态代码 | 错误消息 ID |
---|---|
500 | InternalError |
示例
返回以下示例 JSON 响应:
{
"@odata.context": "/redfish/v1/$metadata#EventService.EventService",
"@odata.etag": "\"E1C416CD\"",
"@odata.id": "/redfish/v1/EventService",
"@odata.type": "#EventService.v1_8_0.EventService",
"Actions": {
"#EventService.SubmitTestEvent": {
"target": "/redfish/v1/EventService/Actions/EventService.SubmitTestEvent",
"title": "SubmitTestEvent"
}
},
"DeliveryRetryAttempts": 3,
"DeliveryRetryIntervalSeconds": 30,
"Description": "This resource represents an event service for a Redfish implementation.",
"EventFormatTypes": [
"Event",
"MetricReport"
],
"Id": "EventService",
"IncludeOriginOfConditionSupported": true,
"Name": "Event Service",
"RegistryPrefixes": [
"Base",
"TaskEvent",
"EventRegistry",
"UEFIEventRegistry",
"LXPMEventRegistry"
],
"ResourceTypes": [
"Task",
"Fan",
"PowerSupply",
"PowerSubsystem",
"ComputerSystem",
"Memory"
],
"SMTP": {
"Authentication": "None",
"Authentication@Redfish.AllowableValues": [
"Login",
"CRAM_MD5",
"None"
],
"ConnectionProtocol": "AutoDetect",
"ConnectionProtocol@Redfish.AllowableValues": [
"AutoDetect"
],
"FromAddress": "",
"Password": null,
"Port": 25,
"ServerAddress": "0.0.0.0",
"ServiceEnabled": true,
"Username": ""
},
"SSEFilterPropertiesSupported": {
"EventFormatType": true,
"MessageId": true,
"MetricReportDefinition": true,
"OriginResource": true,
"RegistryPrefix": true,
"ResourceType": true,
"SubordinateResources": true
},
"ServerSentEventUri": "/redfish/v1/EventService/ServerSentEvent",
"ServiceEnabled": true,
"Status": {
"Health": "OK",
"State": "Enabled"
},
"SubordinateResourcesSupported": true,
"Subscriptions": {
"@odata.id": "/redfish/v1/EventService/Subscriptions"
}
}