Privilege: ConfigureManager, Login
NOTE: Subscription containing EventTypes with value as both Alert and MetricReport is not supported as Redfish supports only one value.
NOTE: The parameter for the property DeliveryRetryPolicy is set to RetryForever by default. RetryForever may result in some data loss in Metric reports while there are multiple instances of delivery retries. To avoid any data loss, ensure that DeliveryRetryPolicy is set to SuspendRetries or TerminateAfterRetries.
/redfish/v1/EventService/Subscriptions
get
NOTE: The HttpHeaders property is read-only, and a PATCH method is not supported for this property.
X-Auth-Token: ********************username:passwordAuthorization: Basic *****************curl --location '/redfish/v1/EventService/Subscriptions' \
--header 'X-Auth-Token: <api-key>' \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"Context": "R3V1014",
"DeliveryRetryPolicy": "TerminateAfterRetries",
"Destination": "https://ip:port/SupportAssist/api/unscd/redfish/alerts/R3V1014",
"EventFormatType": "Event",
"EventTypes": [
"Alert"
],
"HttpHeaders": [
{
"Content-Type": "application/json"
}
],
"Protocol": "Redfish",
"SubscriptionType": "RedfishEvent"
}'{
"error": {
"@Message.ExtendedInfo": [
{}
],
"code": "string",
"message": "string"
}
}