跳到主要内容

GET – SNMPv1-{N} 的事件订阅

使用 GET 方法检索服务器的事件订阅条目中的属性。

请求 URL

GET https://<BMC_IPADDR>/redfish/v1/EventService/Subscriptions/REST-SNMPv1-{N}

请求正文

响应正文

字段类型描述

Id

字符串REST-SNMPv1-{N},N 介于 1 - 3 之间

Name

字符串REST-SNMPv1-{N},N 介于 1 - 3 之间

Context

字符串空字符串。

Status

对象已展开
 

State

字符串事件订阅的状态。

EventFormatType

布尔“Event”

Destination

字符串此属性应包含要将事件发送到的目标的 URI。

SubscriptionType

字符串“SNMPTrap”

Description

数组“This resource represents an event destination for a Redfish implementation.”

Protocol

字符串“SNMPv1”

SNMP

对象已展开
 

TrapCommunity

字符串SNMP 陷阱团体字符串。

状态代码

HTTP 状态代码错误消息 ID
500InternalError

示例

返回以下示例 JSON 响应:

{
"SNMP": {
"TrapCommunity": "test"
},
"@odata.etag": "\"3d651f22d4d72726c9c\"",
"Id": "REST-SNMPv1-1",
"Name": "REST-SNMPv1-1",
"@odata.type": "#EventDestination.v1_11_2.EventDestination",
"@odata.id": "/redfish/v1/EventService/Subscriptions/REST-SNMPv1-1",
"Description": "This resource represents an event destination for a Redfish implementation.",
"EventFormatType": "Event",
"@odata.context": "/redfish/v1/$metadata#EventDestination.EventDestination",
"Context": "",
"Protocol": "SNMPv1",
"Destination": "snmp://10.10.10.10",
"SubscriptionType": "SNMPTrap",
"Status": {
"State": "Enabled"
}
}