Method: Diplomat::RaftOperator#get_configuration
- Defined in:
- lib/diplomat/raft.rb
#get_configuration(options = {}) ⇒ OpenStruct
Get raft configuration
11 12 13 14 15 16 17 |
# File 'lib/diplomat/raft.rb', line 11 def get_configuration( = {}) custom_params = [] custom_params << use_named_parameter('dc', [:dc]) if [:dc] ret = send_get_request(@conn, ['/v1/operator/raft/configuration'], , custom_params) JSON.parse(ret.body) end |