Hello,
If you are trying to do more stuff with the API using curl, you can use the next script as starter, or orientation, it has how to obtain bearer, and how to query other things: https://github.com/jorgedlcruz/veeam-on ... eam_one.sh
It is a bit old, but should work fine. Without this script, you will need to refresh token many times on the UI to come back to Curl, etc. Quite tricky.
Let us know
Jorge de la Cruz
Senior Product Manager | Veeam ONE @ Veeam Software
curl: (3) URL rejected: Port number was not a decimal number between 0 and 65535
curl: (6) Could not resolve host: application
curl: (6) Could not resolve host: bearer
curl: (3) URL rejected: Bad hostname
C:\Users\feihgl6>curl -k -X GET "https://vwbranddone03.sa.vwg:1239/api/v2/about" -H "accept: application/json" -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsImtpZCI6IldlYkFwaVNlY3VyaXR5S2V5IiwidHlwIjoiSldUIn0.eyJ1bmlxdWVfbmFtZSI6ImJydndiMDBcXGFlaWhnbDYiLCJyb2xlIjoiVGVuYW50IiwiaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvd3MvMjAwNS8wNS9pZGVudGl0eS9jbGFpbXMvc2lkIjoiUy0xLTUtMjEtMjA5NDUzOTcyMi02OTg0ODYxNjYtMTUyNDI0Nzk3Mi0yODU4MTIiLCJBY2Nlc3NUb2tlbklkIjoiZDdkZWNiNjctNzVmZi00ZjEzLWE5YzctMjA0Nzc5ZWEyMjQ4IiwiVXNlcklkIjoiMjAiLCJuYmYiOjE2OTA2NTk4MzksImV4cCI6MTY5MDY2MDczOSwiaWF0IjoxNjkwNjU5ODM5fQ.aXZ606HemB83otvDSCWMDsFPWaFS6h9qVbIDSfH34gA"
{"type":"about:blank","title":"This method is not allowed for users with \"Tenant\" role","status":403,"detail":"This method is not allowed for users with \"Tenant\" role","instance":"/api/v2/about","extensions":{"exceptionType":"AccessDeniedException"}}
In the current release, there is no access to the Rest API for tenant accounts.
The account must be a member of the Veeam ONE Administrators, Veeam ONE Power Users or Veeam ONE Read-Only Users group. Some methods would not be accessible for the latest two groups.
To what Roman mentioned, be careful next time sharing the first query to obtain the bearer, as you pasted your user/pass in plain text, I just edited removing it.
Let us know
Jorge de la Cruz
Senior Product Manager | Veeam ONE @ Veeam Software