GET – SMTP-{N} 的事件订阅
使用 GET 方法检索服务器的事件订阅条目中的属性。
请求 URL
GET https://<BMC_IPADDR>/redfish/v1/EventService/Subscriptions/REST-SMTP-{N}
请求正文
无
响应正文
字段 | 类型 | 描述 | ||||||
---|---|---|---|---|---|---|---|---|
Id | 字符串 | REST-SMTP-{N},N 介于 1 - 12 之间 | ||||||
Name | 字符串 | REST-SMTP-{N},N 介于 1 - 12 之间 | ||||||
Context | 字符串 | 空字符串。 | ||||||
Status | 对象 | 已展开 | ||||||
State | 字符串 | 此订阅的状态。可能的值为“Enabled”和“Disabled”。 | ||||||
EventFormatType | 布尔 | “Event” | ||||||
Destination | 字符串 | 此属性应包含要将事件发送到的目标的 URI。 | ||||||
SubscriptionType | 字符串 | “RedfishEvent” | ||||||
Description | 数组 | “This resource represents an event destination for a Redfish implementation.” | ||||||
Protocol | 字符串 | “SMTP” |
状态代码
HTTP 状态代码 | 错误消息 ID |
---|---|
500 | InternalError |
示例
返回以下示例 JSON 响应:
{
"SubscriptionType": "RedfishEvent",
"@odata.etag": "\"3a74e0d2c81027e56d8\"",
"Id": "REST-SMTP-1",
"Name": "REST-SMTP-1",
"@odata.type": "#EventDestination.v1_11_2.EventDestination",
"@odata.id": "/redfish/v1/EventService/Subscriptions/REST-SMTP-1",
"EventFormatType": "Event",
"@odata.context": "/redfish/v1/$metadata#EventDestination.EventDestination",
"Description": "This resource represents an event destination for a Redfish implementation.",
"Protocol": "SMTP",
"Destination": "mailto:userid@lenovo.com",
"Context": "",
"Status": {
"State": "Enabled"
}
}
提供反馈