Skip to main content

GET – Event subscriptions for SNMPv1-{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-SNMPv1-{N}

Request body

None

Response body

FieldTypeDescription

Id

StringREST-SNMPv1-{N}, N is from 1 - 3

Name

StringREST-SNMPv1-{N}, N is from 1 - 3

Context

StringEmpty string.

Status

ObjectExpanded
 

State

StringThe state of the Event subscription.

EventFormatType

Boolean“Event“

Destination

StringThis property shall contain a URI to the destination where the events will be sent.

SubscriptionType

String“SNMPTrap“

Description

ArrayThis resource represents an event destination for a Redfish implementation.

Protocol

String“SNMPv1”

SNMP

ObjectExpanded
 

TrapCommunity

StringThe SNMP trap community string.

Status code

HTTP Status CodeError Message ID
500InternalError

Example

The following example JSON response is returned:

{
"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"
}
}