/
Runbook: API Access to Files Data
Runbook: API Access to Files Data
This process involves gathering a token and creating CURL commands
cURL
curl --location '{{CLUSTER_URL}}/auth/realms/gv/protocol/openid-connect/token' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data-urlencode 'client_id=dashboard' \ --data-urlencode 'username={{USERNAME}}' \ --data-urlencode 'password={{PASSWORD}}' \ --data-urlencode 'grant_type=password'
This will return the token
For Windows
curl --location "{{CLUSTER_URL}}/auth/realms/gv/protocol/openid-connect/token" ^ --header "Content-Type: application/x-www-form-urlencoded" ^ --data-urlencode "client_id=dashboard" ^ --data-urlencode "username={{USERNAME}}" ^ --data-urlencode "password={{PASSWORD}}" ^ --data-urlencode "grant_type=password"
Otherwise
Open Network tab on browser
login to Getvisbility UI
In Network, search for the POST called
token
Go to Response
Copy the raw access token
Use the GET CURL command to file data. Increment the
offset
value as you go. This command will give details for the first 100 files in the database.curl "https://{{CLUSTER_URL}}/scan-data-manager/files?limit=100&offset=0" -H "accept: application/json" -H "authorization: Bearer {{TOKEN}}" --insecure
Example output:
To get aggregate information about the scan use the token in this CURL:
Response:
, multiple selections available,
Related content
Air Gap Installation
Air Gap Installation
Read with this
Sharepoint Scan Setup
Sharepoint Scan Setup
More like this
Frequently Asked Questions
Frequently Asked Questions
Read with this
Azure Files Connector
Azure Files Connector
More like this
DSPM DRA - Data Assets and Data Controls
DSPM DRA - Data Assets and Data Controls
Read with this
Google Drive Setup Wizard
Google Drive Setup Wizard
More like this
Classified as Getvisibility - Partner/Customer Confidential