For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
  • Getting Started
    • Welcome
    • Architecture
    • Installation
    • Authentication
    • Quick Start
    • Support
  • Core Concepts
    • Guardrails
    • AI BOM
    • Red Teaming
    • Compliance
    • Audit Logs
  • Integrations
    • GitHub
    • GitLab
    • Azure DevOps
    • Bitbucket
    • Jira
    • LiteLLM
  • Usage Guides
    • Organization
    • Guardrails Setup
    • Policies
    • Scans
    • Red Team
    • Dashboards
  • Code Examples
    • cURL
    • Python
    • Node.js
    • API Patterns
On this page
  • Running Scans & Inventory
  • Scan Types
  • Code Scanning
  • Model Inventory
  • Compliance Scan
  • Scheduled Scans
  • Viewing Results
  • Next Steps
Usage Guides

Running Scans & Inventory

Was this page helpful?
Edit this page
Previous

Red-Team Campaigns

Next
Built with

Running Scans & Inventory

Discover and catalog AI usage across your infrastructure.

Scan Types

Code Scanning

Analyze repositories for AI model usage and dependencies.

$curl -X POST https://api.governanceai.com/v1/scans \
> -H "Authorization: Bearer $API_KEY" \
> -d '{
> "scan_type": "code_scan",
> "repositories": ["repo_1", "repo_2"],
> "depth": "full"
> }'

Model Inventory

Build catalog of models and versions used.

$curl -X POST https://api.governanceai.com/v1/scans \
> -H "Authorization: Bearer $API_KEY" \
> -d '{
> "scan_type": "model_inventory",
> "include_vulnerabilities": true
> }'

Compliance Scan

Check for compliance gaps.

$curl -X POST https://api.governanceai.com/v1/scans \
> -H "Authorization: Bearer $API_KEY" \
> -d '{
> "scan_type": "compliance_scan",
> "frameworks": ["SOC2", "HIPAA", "GDPR"]
> }'

Scheduled Scans

Set up recurring scans:

$curl -X POST https://api.governanceai.com/v1/scans/schedule \
> -H "Authorization: Bearer $API_KEY" \
> -d '{
> "name": "Weekly Repository Scan",
> "schedule": "0 2 * * 0",
> "scan_type": "code_scan",
> "repositories": ["all"]
> }'

Viewing Results

$# Get latest scan results
$curl -H "Authorization: Bearer $API_KEY" \
> https://api.governanceai.com/v1/scans/results/latest
$
$# Returns:
${
> "scan_id": "scan_123",
> "status": "completed",
> "models_found": 15,
> "vulnerabilities": 3,
> "compliance_violations": 2
>}

Next Steps

  • Red-Team Campaigns - Test your systems
  • Dashboards - View results
  • API Reference - Scan APIs