code: function listConfigs(resultFunc) {
    $.ajax({
      type: 'GET',
      url: 'command/list_configs',
      dataType: 'text',
      error: function(request, textStatus) {
        getResponseDataJson(textStatus);
      },
      success: function(data, textStatus, request) {
        var response = getResponseDataJson(null, data);
        if (response) {
          resultFunc(response.configs);
        }
      }
    });
  }
docs: Retrieve the list of configs.