Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
curl --verbose -X GET "https://abiquo.example.com:443/api/login" -u adminuser:password -k | jq .

If you are using 2FA, you can get the 2FA verification code in the usual way (by email or from Google Authenticator).

...

Code Block
curl --verbose -X GET "https://abiquo.example.com:443/api/login" -H "X-Abiquo-OTP: your2FAcode" | jq .

Now you can get the token from the X-Abiquo-Token header of the response.

...