"[email protected]":2,
"Name":"Event Subscriptions Collection",
"@odata.context":"/redfish/v1/$metadata#EventService/Subscriptions"
}
Retrieving Information about an Event Subscriber with Subscription Key
Request:
curl -GET https://10.10.10.10/redfish/v1/EventService
/Subscriptions/771756785144ea475854488556157a85 -u admin:password -k
Response:
{
"@odata.id":"/redfish/v1/EventService/Subscriptions/771756785144ea475854488556157a85",
"Protocol":"Redfish",
"Name":"EventSubscription 771756785144ea475854488556157a85",
"Context":"abcsd",
"Descritiom":"Event Subscription Details",
"@odata.type":"#EventDestination.1.0.0.EventDestination",
"Destination":"10.104.255.16",
"@odata.context":"/redfish/v1/$metadata#EventService/Subscriptions/Members/$entity",
"Id":"771756785144ea475854488556157a85",
"EventTypes":["Alert"]
}
Updating Event Subscribers
Request:
curl -XPATCH https://10.10.10.10/redfish/v1
/EventService/Subscriptions
/351357385644ea45d8544885d7655a8d -d
'{"Context":"Cisco"}' -u admin:password --insecure
Response:
{
"Descritiom":"Event Subscription Details",
"Context":"Cisco",
"Id":"351357385644ea45d8544885d7655a8d",
"Destination":"10.104.255.59",
"Protocol":"Redfish",
"Name":"EventSubscription 351357385644ea45d8544885d7655a8d",
"EventTypes":["Alert"]
}
Deleting an Event Subscription
Request:
curl -XDELETE https://10.10.10.10/redfish/v1/EventService
Cisco UCS C-Series Servers REST API Programmer's Guide
25
Cisco IMC REST API Examples
Examples of Server Tasks