File Transfer Automation
v3.11.0
Search this version
File Transfer Automation
File Transfer Automation
Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
API - Auditing logs
Copy Markdown
Open in ChatGPT
Open in Claude
Display auditing logs
We can use GET vault_rest/audit/{start}/{count} endpoint to fetch and search audit logs.
start- starting record to return
count- number of records to return
sort_column= Name of column to use when sorting data
sort_direction= Sorting direction
find= Free text search string
findB64= Free text search string (Base64 encoded)
Powershell
Response
x
try { $headers = @{ Authorization = "Bearer $token" sort_column = "Name of column to use when sorting data" sort_direction = "Sorting direction" find = "Free text search string" findB64 = "Free text search string (Base64 encoded)" } $response = Invoke-RestMethod -Uri "$baseUrl/audit/0/5" -Headers $headers -Method Get # Prints output as JSON object Write-Host ( $response | ConvertTo-Json | Out-String) # Prints output as Table Write-Output $response.items | Select-Object date, location, event, status, user, description | Format-Table -AutoSize} catch { Write-Host "Error Status Code: $($_.Exception.Response.StatusCode.Value__)" Write-Host "Error Message: $($_.Exception.Message)" return}Export auditing logs
Powershell
try { $headers = @{ Authorization = "Bearer $token" } $response = Invoke-RestMethod -Uri "$baseUrl/audit/export" -Headers $headers -Method Get -OutFile "C:\Users\user\Documents\audit.csv" } catch { Write-Host "Error Status Code: $($_.Exception.Response.StatusCode.Value__)" Write-Host "Error Message: $($_.Exception.Message)" return}Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
Last updated on
Was this page helpful?
Discard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message
