Method: OneviewSDK::LogicalInterconnect#update_telemetry_configuration

Defined in:
lib/oneview-sdk/resource/logical_interconnect.rb

#update_telemetry_configurationObject

Note:

The attribute is defined inside the instance of the Logical Interconnect

Updates telemetry configuration of the Logical Interconnect

Returns:

  • Updated instance of the Logical Interconnect



164
165
166
167
168
169
170
171
172
173
# File 'lib/oneview-sdk/resource/logical_interconnect.rb', line 164

def update_telemetry_configuration
  fail IncompleteResource, 'Please retrieve the Logical Interconnect before trying to update' unless @data['telemetryConfiguration']
  update_options = {
    'If-Match' =>  @data['telemetryConfiguration'].delete('eTag'),
    'body' => @data['telemetryConfiguration']
  }
  response = @client.rest_put(@data['telemetryConfiguration']['uri'], update_options, @api_version)
  body = @client.response_handler(response)
  set_all(body)
end