GET – Event subscriptions for SNMPv3-{N}-{M}
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-SNMPv3-{N}-{M}
Request body
None
Response body
Field | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
Id | String | REST-SMTPv3-{N}-{M}, where N is the account index ranging from 1 -12, M is the subscription index ranging from 1-3. | ||||||
Name | String | User name of SNMPv3. | ||||||
Context | String | Empty string. | ||||||
Status | Object | Expanded | ||||||
State | String | The state of this subscription. Possible values are “Enabled” and “Disabled”. | ||||||
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 | “SNMPv3” | ||||||
SNMP | Object | Expanded | ||||||
TrapCommunity | String | null |
Status code
HTTP Status Code | Error Message ID |
---|---|
500 | InternalError |
Example
The following example JSON response is returned:
{
"SubscriptionType": "SNMPTrap",
"@odata.etag": "\"3f6d1b3b4bba27279a2\"",
"Id": "REST-SNMPv3-3-1",
"Name": "test",
"@odata.type": "#EventDestination.v1_11_2.EventDestination",
"@odata.id": "/redfish/v1/EventService/Subscriptions/REST-SNMPv3-3-1",
"Status": {
"State": "Enabled"
},
"EventFormatType": "Event",
"@odata.context": "/redfish/v1/$metadata#EventDestination.EventDestination",
"Context": "",
"Protocol": "SNMPv3",
"Destination": "snmp://test@10.10.10.10",
"Description": "This resource represents an event destination for a Redfish implementation.",
"SNMP": {
"TrapCommunity": null
}
}
Give documentation feedback