Hi,
I tried successfully the two CURL command to generate a token and try the API. So it works fine, it was an issue about a special caracter used in my password (even it is able to use it in the Qualys authentication).
curl -X POST https://gateway.qg1.apps.qualys.eu/auth -d "username=LOGIN&password=PWD&token=true" -H "Content-Type: application/x-www-form-urlencoded" --> gives a token
curl -X POST -H "Accept: application/json" -H "Authorization: Bearer TOKEN" -H "Content-Type: application/json" -i "https://gateway.qg1.apps.qualys.eu/rest/2.0/search/am/asset" --> gives a lot of data expected
Unfortunately, if I tried the following command to launch the dm-adapter for Jira : ./dm-adapters --run "Qualys_for_CMDB" --workspace-id WORKSPACEID --token TOKEN gives me the following response:
Failed to execute the job. Error on page 1, offset 1. Qualys API response error: {"timestamp":"2026-05-27T12:53:34.176+00:00","path":"/qps/rest/2.0/search/am/hostasset","status":401,"error":"Unauthorized","requestId":"031088db-24353571","message":"Not authenticated"}.
Thanks.
Welcome to the community.
Did you insert your workspace id and token in the call?
What is you OS and are you using the correct client?
Data Manager 2026 © Atlassian Pty Ltd, all rights reserved. Version: 2.0.0
Yes, I inserted Wokrspace ID and Token dedicated for this Qualys Job. I used this kind of command for Entra ID Users jobs.
It's a recent Linux OS.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is the token you are using still valid, as 401 is an unauthorized response!
Or does the Qualys API the culprit, then contact Qualys suport, to see what the issue can be?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Marc -Devoteam- ,
yes, the token is valid for the next (almost) 12 months.
I tried, the API QUALYS with the same credentials (my account with API rights) and it worked.
Qualys Support cannot do more as the issue is just during Jira Adapter for Qualys launch.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.