PACT_member
May 09, 2018Nimbostratus
Get qkview through API REST : Bad gateway 502
Hello,
I am trying to use API REST to get qkview from F5 BIG IP 3600. There are on version 12.1.2 Build 0.0.249
r = s.post("https://" + address_ip_input + "/mgmt/tm/util/qkview",json=({"command": "run"}))
I keep getting error 502 and the r.text is the following :
Bad Gateway!
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request .
Reason: Error reading from remote server
Error 502
What is strange, is that the qkview is created without trouble on the device.
Could you please tell me what's wrong ? I have already use API REST to get facts, save ucs, etc, so I'm pretty sure the structure of my request is good.
This request doesn't download the qkview locally isn't it ? What's the best way to retrieve it ? Through scp ? There are no API REST to get file ?