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