- Flexera Community
- :
- Software Vulnerability Management
- :
- Software Vulnerability Management Forum
- :
- Add/Delete/Update products and versions using API
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Add/Delete/Update products and versions using API
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
This thread has been automatically locked due to inactivity.
To continue the discussion, please start a new thread.
- Mark as New
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Ramu,
- Mark as New
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Raheel,
Thank you. I will try this out.
Thanks & Regards,
Ramu.
- Mark as New
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
