GET – Event subscriptions for SNMPv2c-{N}
Use the GET method to retrieve properties in event subscription entries for a server.
Request URL
GET https://<BMC_IPADDR>/redfish/v1/EventService/Subscriptions/REST-SNMPv2c-{N}
Request body
None
Response body
Field | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
Id | String | REST-SNMPv1-{N}, N is from 1 - 3 | ||||||
Name | String | REST-SNMPv1-{N}, N is from 1 - 3 | ||||||
Context | String | Empty string. | ||||||
Status | Object | Expanded | ||||||
State | String | The state of the Event subscription. | ||||||
EventFormatType | Boolean | “Event“ | ||||||
Destination | String | This property shall contain a URI to the destination where the events will be sent. | ||||||
SubscriptionType | String | “SNMPTrap“ | ||||||
Description | Array | This resource represents an event destination for a Redfish implementation. | ||||||
Protocol | String | “SNMPv2c” | ||||||
SNMP | Object | Expanded | ||||||
TrapCommunity | String | The SNMP trap community string. |
Status code
HTTP Status Code | Error Message ID |
---|---|
500 | InternalError |
Example
The following example JSON response is returned:
{
"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"
}
]
}
Give documentation feedback