February 26, 2016


Get Notifications

Gets a list of upcoming maintenance events

Retrieves all notifications that were created on January 1, 2016.

import SoftLayer
from pprint import pprint as pp

class example():

    def __init__(self):

        self.client = SoftLayer.Client()

    def main(self):
        theDate = '01/01/2016 01:00:00'
        _filter = {
                'startDate': { 
                    'operation': 'greaterThanDate',
                    'options': [
                        {'name': 'date', 'value': [theDate]}
                    ]
                }
            }
        result = self.client['SoftLayer_Notification_Occurrence_Event'].getAllObjects(filter=_filter)
        pp(result)

if __name__ == "__main__":
    main = example()
    main.main()

Feedback?

If this article contains any error, or leaves any of your questions unanswered, please help us out by opening up a github issue.
Open an issue