Forum Discussion

Sekhar's avatar
Sekhar
Icon for Nimbostratus rankNimbostratus
May 21, 2015

API error 502

Hi,

 

We are using 11.4.1 HF8, F5 4200V. This is my first time trying i Control rest. When I gave the following command

 

\$partition=/xxx , it is giving me the following error

 

The proxy server received an invalid response from an upstream server.

 

The proxy server could not handle the request GET /mgmt/tm/ltm/pool.

 

Reason: Error reading from remote server

 

Error 502 Please help me in fixing this issue.

 

Thanks, Sekhar

 

9 Replies

  • how many pools do you have? is it big?

     

    does another api such as /mgmt/shared/echo work?

     

    • Sekhar's avatar
      Sekhar
      Icon for Nimbostratus rankNimbostratus
      Hi Nitass, we are having a very limited number of pools around 100. Please suggest me on how to check the functionality of api you mentioned. Thanks, Sekhar
  • how many pools do you have? is it big?

     

    does another api such as /mgmt/shared/echo work?

     

    • Sekhar's avatar
      Sekhar
      Icon for Nimbostratus rankNimbostratus
      Hi Nitass, we are having a very limited number of pools around 100. Please suggest me on how to check the functionality of api you mentioned. Thanks, Sekhar
  • A couple of questions/issues... 1. What client are you using to issue the request? curl, a browser, etc... 2. I believe for partition filtering you have to use the format ?filter=partition%20eq%20/xxx. 3. If you are using a browser, do you have the browser setup to go through a proxy server? -Joe
  • Sekhar's avatar
    Sekhar
    Icon for Nimbostratus rankNimbostratus
    Hi Joe, I have tried using both curl and browser. It gave the same result. I have tried using your format for partition but it did not gave me results Can you please suggest me on how to verify if my browser is allowed through a proxy. Thanks, Sekhar
  • I'm sorry, one more question. Which version of BIG-IP are you trying to connect to?
  • Well, that would be the reason. The REST interface was first publicly available in 11.5. I believe it is accessible in 11.4 with an Early Access license key but the first API reference that came out was for 11.5. I was told that some things changed between 11.4 and 11.5 but I'm not sure of the extent of the changes. You might look into getting an EA key for 11.4 to look at the APIs, but I wouldn't do anything production-wise until you are up to 11.5 or above.