Hello,
I need help with authentication configuration.
My company uses Veeam 13, which uses OAuth2. If I understand correctly, httpapi_exporter does not natively support OAuth2.
https://helpcenter.veeam.com/references/vbr/13/rest/1.3-rev1/tag/SectionOverview#section/Authorization-and-Security
Unfortunately, the ready-made configuration available in the repository is not adapted to the newer Veeam. I tried to modify it, but despite my efforts, I find it difficult to understand.
login:
- name: init login loop
vars:
login_retry: 0
status_code: 0
until: 'js: login_retry < queryRetry'
actions:
- name: login phase
query:
url: /oauth2/token
data: 'js: "user="+user+"&password="+password+"&grant_type=password"'
method: post
auth_config:
mode: basic
ok_status: 201
var_name: _
- name: analyze login response
play_script: auth_check
In the login script, I am able to get access_token and refresh_token by sending a payload. How could I save these tokens so that I can use them later to read metrics?
How to implement OAuth2 authorizations in the configuration?
Hello,
I need help with authentication configuration.
My company uses Veeam 13, which uses OAuth2. If I understand correctly, httpapi_exporter does not natively support OAuth2.
https://helpcenter.veeam.com/references/vbr/13/rest/1.3-rev1/tag/SectionOverview#section/Authorization-and-Security
Unfortunately, the ready-made configuration available in the repository is not adapted to the newer Veeam. I tried to modify it, but despite my efforts, I find it difficult to understand.
In the login script, I am able to get access_token and refresh_token by sending a payload. How could I save these tokens so that I can use them later to read metrics?
How to implement OAuth2 authorizations in the configuration?