Qualys User Account

The application must authenticate using Qualys account credentials (user name and password) as part of the HTTP request. The credentials are transmitted using the Basic Authentication Scheme over HTTPS. 

Qualys Cloud Agent APIs supports only the Basic Authentication scheme using username and password. 

For more details on basic authentication, refer to RFC 2617 - HTTP Authentication.

The exact method of implementing authentication will vary according to which programming language is used.

API Request Sample: 

 
  curl -u fo_username:password -X POST -H "Content-Type: text/xml" 
  -H "Cache-Control: no-cache" --data-binary @activate_all_agents.xml
  "<qualys_base_url>/qps/rest/2.0/activate/am/asset"

where <qualys_base_url> is the base API URL to the Qualys API server where your account is located.

To access the Qualys APIs, user must have been created from Qualys user interface with proper permissions, such as API access permission, Cloud Agent permissions, and access to required Qualys applications.