GET – Event subscriptions for SMTP-{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-SMTP-{N}
Request body
None
Response body
Field | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
Id | String | REST-SMTP-{N}, N is from 1 - 12 | ||||||
Name | String | REST-SMTP-{N}, N is from 1 - 12 | ||||||
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 | “RedfishEvent“ | ||||||
Description | Array | This resource represents an event destination for a Redfish implementation. | ||||||
Protocol | String | “SMTP” |
Status code
HTTP Status Code | Error Message ID |
---|---|
500 | InternalError |
Example
The following example JSON response is returned:
{
"SubscriptionType": "RedfishEvent",
"@odata.etag": "\"3a74e0d2c81027e56d8\"",
"Id": "REST-SMTP-1",
"Name": "REST-SMTP-1",
"@odata.type": "#EventDestination.v1_11_2.EventDestination",
"@odata.id": "/redfish/v1/EventService/Subscriptions/REST-SMTP-1",
"EventFormatType": "Event",
"@odata.context": "/redfish/v1/$metadata#EventDestination.EventDestination",
"Description": "This resource represents an event destination for a Redfish implementation.",
"Protocol": "SMTP",
"Destination": "mailto:userid@lenovo.com",
"Context": "",
"Status": {
"State": "Enabled"
}
}
Give documentation feedback