跳到主要内容

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

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

请求 URL

GET https://<BMC_IPADDR>/redfish/v1/EventService/Subscriptions/REST-SNMPv2c-{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

字符串“SNMPv2c”

SNMP

对象已展开
 

TrapCommunity

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

状态代码

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

示例

返回以下示例 JSON 响应:

{
"Description": "This resource represents an event destination for a Redfish implementation.",
"Status": {
"State": "Enabled"
},
"Name": "REST-SNMPv2c-1",
"@odata.type": "#EventDestination.v1_12_0.EventDestination",
"@odata.id": "/redfish/v1/EventService/Subscriptions/REST-SNMPv2c-1",
"@odata.context": "/redfish/v1/$metadata#EventDestination.EventDestination",
"Id": "REST-SNMPv2c-1",
"Protocol": "SNMPv2c",
"Context": "",
"Destination": "snmp://10.10.10.10",
"EventFormatType": "Event",
"SNMP": {
"TrapCommunity": "test"
},
"SubscriptionType": "SNMPTrap",
"@odata.etag": "\"3e292697ce252a26e2b\"",
"@Message.ExtendedInfo": [
{
"Resolution": "If failed, retry before meeting the requirement of the security mode.",
"Message": "The value \"snmp://10.10.10.10\" for the property Destination is not recommanded by current security mode Standard.",
"@odata.type": "#Message.v1_1_2.Message",
"MessageArgs": [
"\"snmp://10.10.10.10\"",
"Destination",
"Standard"
],
"MessageId": "LenovoExtendedWarning.1.0.NotRecommandedOperation",
"MessageSeverity": "Warning"
}
]
}