# File lib/clouddb/instance.rb, line 170 def enable_root() response = @connection.dbreq("POST", @dbmgmthost, "#{@dbmgmtpath}/instances/#{CloudDB.escape(@id.to_s)}/root", @dbmgmtport, @dbmgmtscheme, {}) CloudDB::Exception.raise_exception(response) unless response.code.to_s.match(/^20.$/) @root_enabled = true body = JSON.parse(response.body)['user'] return body end