blob: cc6eeefbebc63097ff05341ad4cf909870f40b77 [file] [log] [blame]
Anusha Dathatri062cba22022-07-28 09:30:08 -05001*** Settings ***
2
3Documentation Resource file for event notification subscription.
4
5*** Keywords ***
6
7Delete All Event Subscriptions
8 [Documentation] Delete all event subscriptions.
9
10 ${subscriptions}= Redfish.Get Attribute /redfish/v1/EventService/Subscriptions Members
11 Return From Keyword If ${subscriptions} is None
12 FOR ${subscription} IN @{subscriptions}
13 Redfish.Delete ${subscription['@odata.id']}
14 END
15
16Get Event Subscription IDs
17 [Documentation] Get event subscription IDs.
18
19 ${subscription_ids}= Create List
20 ${subscriptions}= Redfish.Get Attribute /redfish/v1/EventService/Subscriptions Members
21 Log ${subscriptions}
22 FOR ${subscription} IN @{subscriptions}
23 Append To List ${subscription_ids}
24 ... ${subscription['@odata.id'].split("/redfish/v1/EventService/Subscriptions/")[-1]}
25 END
26 [Return] ${subscription_ids}
27