Module: ILO_SDK::ManagerNetworkProtocolHelper
- Included in:
- Client
- Defined in:
- lib/ilo-sdk/helpers/manager_network_protocol_helper.rb
Overview
Contains helper methods for Manager Network Protocol actions
Instance Method Summary collapse
-
#get_timeout ⇒ Fixnum
Get the Session Timeout Minutes.
-
#set_timeout(timeout) ⇒ Object
Set the Session Timeout Minutes.
Instance Method Details
#get_timeout ⇒ Fixnum
Get the Session Timeout Minutes
16 17 18 19 |
# File 'lib/ilo-sdk/helpers/manager_network_protocol_helper.rb', line 16 def get_timeout response = rest_get('/redfish/v1/Managers/1/NetworkService/') response_handler(response)['SessionTimeoutMinutes'] end |
#set_timeout(timeout) ⇒ Object
Set the Session Timeout Minutes
25 26 27 28 29 30 |
# File 'lib/ilo-sdk/helpers/manager_network_protocol_helper.rb', line 25 def set_timeout(timeout) new_action = { 'SessionTimeoutMinutes' => timeout } response = rest_patch('/redfish/v1/Managers/1/NetworkService/', body: new_action) response_handler(response) true end |