Skip to main content

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

FieldTypeDescription

Id

StringREST-SMTP-{N}, N is from 1 - 12

Name

StringREST-SMTP-{N}, N is from 1 - 12

Context

StringEmpty string.

Status

ObjectExpanded
 

State

StringThe state of this subscription. Possible values are “Enabled” and “Disabled”.

EventFormatType

Boolean“Event“

Destination

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

SubscriptionType

String“RedfishEvent“

Description

ArrayThis resource represents an event destination for a Redfish implementation.

Protocol

String“SMTP”

Status code

HTTP Status CodeError Message ID
500InternalError

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