Hello,
I’m trying to use the REST proxy on the BIG-IQ system to request a BIG-IP device as follows:
<span># Parameters for the requests<br></span>headers = {<br> <span>'X-F5-Auth-Token'</span>: <span>f'</span><span>{</span>token<span>}</span><span>'</span><span>,<br></span> <span>'Content-Type'</span>: <span>'application/json'<br></span>}<br><br><span>#Request to use the REST proxy on the BIG-IQ system<br></span><span>try</span>:<br> url_pro = <span>"https://" </span>+ ip + <span>"/mgmt/shared/resolver/device-groups/cm-bigip-allBigIpDevices/devices/4ad12733-95ea-47b0-a562-dd6ac6da5adc/rest-proxy/mgmt/tm/sys/file/ssl-cert/f5-ca-bundle.crt?options=-hidden&$select=cachePath"<br></span> response_pro = requests.get(url_pro<span>, </span><span>headers</span>=headers<span>, </span><span>verify</span>=<span>False</span>)<br> json_response_pro = response_pro.json()<br> <span>print</span>(<span>"</span><span>\033</span><span>[93m" </span>+ <span>"Response to the request to use the REST proxy on the BIG-IQ system: "</span>)<br> <span>print</span>(<span>"</span><span>\033</span><span>[93m" </span>+ json.dumps(json_response_pro<span>, </span><span>indent</span>=<span>2</span>))<br><br><span>except </span>requests.exceptions.RequestException <span>as </span>e:<br> <span>raise </span><span>SystemExit</span>(<span>"</span><span>\033</span><span>[91m" </span>+ <span>"The REST proxy on the BIG-IQ system is NOT working because... " </span>+ <span>str</span>(e))
Everything was working fine until I got this message: “Unable to decrypt an item because the Master Key has not been configured on this system. Please setup the Master Key via the setup UI before proceeding.”
I don’t know how to fix it, does anybody know? Why is this happening?
Thanks in advance!