<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Akhil,<br>
      <br>
      As a trial user you can ask <a class="moz-txt-link-abbreviated" href="mailto:evaluations@nginx.com">evaluations@nginx.com</a> to help you with
      this setup.<br>
      API queries data in status zones. You should configure one for
      your upstream with 'zone backend 64k;' or similar statement inside
      upstream{} block.<br>
      <br>
      Regards.<br>
      <br>
      On 06.02.2018 15:21, Akhil Dangore wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:db7c47ed-1e76-cbb6-b135-9ca10f8e5efc@calsoftinc.com">
      <meta http-equiv="content-type" content="text/html; charset=utf-8">
      <p>Hello Team, </p>
      <div class="moz-forward-container">
        <p>I am trying Nginx plus for our company product, Currently I
          am using trail account to achieve our requirement but I am
          facing some issue.<br>
        </p>
        <p>Details explanation of issue:</p>
        <ul>
          <li>I have configured Nginx plus with attatched file, Here I
            have enabled nginx API to reconfigure nginx plus run time</li>
          <li>I am facing some issue to configure using nginx API, below
            are some examples of requests:</li>
          <ul>
            <li>curl localhost:80/api/2/http/requests</li>
            <ul>
              <li>{"total":111562,"current":1} - Working fine</li>
            </ul>
            <li><font color="#ff0000">curl
                localhost:80/api/2/http/upstreams</font></li>
            <ul>
              <li><font color="#ff0000">{} - empty dict - Not working
                  fine, since I have configured upstreams in
                  nginx.config file as below:</font></li>
              <li><font color="#ff0000">        upstream backend {<br>
                              server localhost:8080;<br>
                              server localhost:8090;<br>
                  <br>
                          }<br>
                          location / {<br>
                              proxy_pass <a
                    class="moz-txt-link-freetext" href="http://backend"
                    moz-do-not-send="true">http://backend</a>;<br>
                          }<br>
                </font></li>
              <li><font color="#ff0000">Why am i receiving empty dict ?<br>
                </font></li>
            </ul>
          </ul>
        </ul>
        If you need more details, please let me know.<br>
        <br>
        Regards,<br>
        Akhil<br>
        <font color="#ff0000"> <br>
        </font>
        <p><br>
        </p>
        <p><br>
        </p>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
nginx mailing list
<a class="moz-txt-link-abbreviated" href="mailto:nginx@nginx.org">nginx@nginx.org</a>
<a class="moz-txt-link-freetext" href="http://mailman.nginx.org/mailman/listinfo/nginx">http://mailman.nginx.org/mailman/listinfo/nginx</a></pre>
    </blockquote>
    <p><br>
    </p>
  </body>
</html>