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?

We would love to hear it
Open an issue

/ruby/getNotifications/