Method: Diplomat::RaftOperator#get_configuration

Defined in:
lib/diplomat/raft.rb

#get_configuration(options = {}) ⇒ OpenStruct

Get raft configuration

Parameters:

  • options (Hash) (defaults to: {})

    options parameter hash

Returns:

  • (OpenStruct)

    all data associated with the raft configuration



11
12
13
14
15
16
17
# File 'lib/diplomat/raft.rb', line 11

def get_configuration(options = {})
  custom_params = []
  custom_params << use_named_parameter('dc', options[:dc]) if options[:dc]

  ret = send_get_request(@conn, ['/v1/operator/raft/configuration'], options, custom_params)
  JSON.parse(ret.body)
end