Hi Experts,
I was wondering if there is an option for Add/Delete/Update the products,product versions under a watch list. We would need this to automate the dynamic products and version changes to get updated in the watch list. I have found Vulnerability Manager module API, But does it require additional license? Please help.
Our product is SV Research.
Thanks & Regards,
Ramu Gajula
‎Sep 06, 2020 10:23 PM
Hi Ramu,
‎Sep 07, 2020 03:38 AM
Hi Raslam,
Thank you for your response. Following are our account details. Could you please verify from your side if we are entitled for this request.
Account ID: 657453
Thanks and Regards,
Ramu.
‎Sep 07, 2020 04:01 AM
Ramu,
Thanks for the account ID and we have verified your account internally. We would like to confirm that your company account is entitled to use the Flexera SVR APIs. Please follow the previously provided API help links for more detail.
-Raheel
‎Sep 07, 2020 04:08 AM
Hi Raheel,
Thank you. I will try this out.
Thanks & Regards,
Ramu.
‎Sep 07, 2020 05:30 AM
Hi Raheel,
I tried connecting to the API of our Flexera instance in cloud using a simple GET request. Th response i get is HTTP Code 403.
Following is the script. Could you please check and let me know if i am missing anything here.
# import requests module
import requests
from requests.auth import HTTPBasicAuth
# Making a get request
session = requests.Session()
session.headers.update({'Authorization': 'Bearer {MY_AUTH_TOKEN_HERE}'})
response = session.get('https://api.app.flexerasoftware.com/api/')
# print request object
print(response)
Regards,
Ramu.
‎Sep 21, 2020 09:02 PM
Hi Ramu,
Your Python script is returning error 403 which means that your simple request is not able to authenticate. I have edited your Python script to allow you to authenticate. Below script is displaying products from your SVR. Before running this Python script please edit token. You will need to apply your required filters to data received from API.
# import requests module
import requests
from requests.auth import HTTPBasicAuth
# Making a get request
session = requests.Session()
session.headers.update({'Authorization': 'Token xxxxxxxxxxxxxxxxxxxxxxx'})
response = session.get('https://api.app.flexerasoftware.com/api/inventory/products/')
# print request object
print(response)
if response:
print('Response OK')
else:
print('Response Failed')
print(response.text)
Regards,
Artur
‎Sep 22, 2020 08:10 AM