module ILO_SDK::ManagerNetworkProtocolHelper
Contains helper methods for Manager Network Protocol actions
Public Instance Methods
get_timeout()
click to toggle source
Get the Session Timeout Minutes @raise [RuntimeError] if the request failed @return [Fixnum] timeout
# File lib/ilo-sdk/helpers/manager_network_protocol_helper.rb, line 18 def get_timeout response = rest_get('/redfish/v1/Managers/1/NetworkService/') response_handler(response)['SessionTimeoutMinutes'] end
set_timeout(timeout)
click to toggle source
Set the Session Timeout Minutes @param [Fixnum] timeout @raise [RuntimeError] if the request failed @return true
# File lib/ilo-sdk/helpers/manager_network_protocol_helper.rb, line 27 def set_timeout(timeout) new_action = { 'SessionTimeoutMinutes' => timeout } response = rest_patch('/redfish/v1/Managers/1/NetworkService/', body: new_action) response_handler(response) true end