Hello,
Your first attempt failed, as the output says, because the command:
# curl -f http://10.30.32.61/api_v3/index.php?service=system&action=ping
did not return as expected. This indicates the API cannot be reached.
Why that was I'm afraid I cannot tell you, seeing how now it works and we cannot debug something that doesn't fail:)
Should you have additional issues, do let me know.