April 2, 2017


Get Notifications

Gets a list of upcoming maintenance events

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

require 'softlayer_api'
require 'pp'

client = SoftLayer::Client.new(:timeout => 120)

theDate = '01/01/2017 01:00:00'
theFilter = {
                'startDate'=> { 
                    'operation'=> 'greaterThanDate',
                    'options'=> [
                        {'name'=> 'date', 'value' => [theDate]}
                    ]
                }
            }



getresults = client['SoftLayer_Notification_Occurrence_Event'].getAllObjects(filter=theFilter)
pp getresults

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