anchor.diff:                               {auth_ro, fun handle_visual_internal_settings/1};
                            ["nodes", NodeId] ->
                                {auth_ro, fun handle_node/2, [NodeId]};
  +                         ["nodes", "self", "xdcrSSLPorts"] ->
  +                             {done, handle_node_self_xdcr_ssl_ports(Req)};
                            ["diag"] ->
                                {auth, fun diag_handler:handle_diag/1, []};
                            ["diag", "vbuckets"] -> {auth, fun handle_diag_vbuckets/1};
  
positive.code:                              {auth_ro, fun menelaus_web_remote_clusters:handle_remote_clusters/1};
                           ["pools", "default", "serverGroups"] ->
                               {auth_ro, fun menelaus_web_groups:handle_server_groups/1};
                           ["nodeStatuses"] ->
                               {auth_ro, fun handle_node_statuses/1};
                           ["logs"] ->
  
negative.code: location_prop_to_json({quotaMb, none}) -> {quotaMb, none};
  location_prop_to_json({state, ok}) -> {state, ok};
  location_prop_to_json(KV) -> KV.
  
  handle_node_self_xdcr_ssl_ports(Req) ->
      case is_xdcr_over_ssl_allowed() of
          false ->
              reply_json(Req, [], 403);
          true ->
              {value, ProxyPort} = ns_config:search_node(ssl_proxy_downstream_port),
              {value, RESTSSL} = ns_config:search_node(ssl_rest_port),
              {value, CapiSSL} = ns_config:search_node(ssl_capi_port),
              reply_json(Req, {struct, [{sslProxy, ProxyPort},
                                        {httpsMgmt, RESTSSL},
                                        {httpsCAPI, CapiSSL}]})
      end.
  
  handle_cluster_certificate(Req) ->
      {Cert, _} = ns_server_cert:cluster_cert_and_pkey_pem(),
      reply_json(Req, {struct, [{certificate, Cert}]}).
  
  handle_regenerate_certificate(Req) ->
      ns_server_cert:generate_and_set_cert_and_pkey(),
      ns_ssl_services_setup:sync_local_cert_and_pkey_change(),
      ?log_info("Completed certificate regeneration"),
      handle_cluster_certificate(Req).
  
  handle_node_resources_post("self", Req)            -> handle_node_resources_post(node(), Req);
  handle_node_resources_post(S, Req) when is_list(S) -> handle_node_resources_post(list_to_atom(S), Req);
  