Initial repository setup for TrueNAS Scale configuration management and disaster recovery. This system provides automated collection, versioning, and documentation of TrueNAS configuration state. Key components: - Configuration collection scripts with API integration - Disaster recovery exports (configs, storage, system state) - Comprehensive documentation and API reference - Sub-agent architecture for specialized operations Infrastructure protected: - Storage pools and datasets configuration - Network configuration and routing - Sharing services (NFS, SMB, iSCSI) - System tasks (snapshots, replication, cloud sync) - User and group management Security measures: - API keys managed via environment variables - Sensitive data excluded via .gitignore - No credentials committed to repository 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2.5 KiB
2.5 KiB
TrueNAS Scale API Connectivity Test Results
Date: 2025-12-14
Target: 192.168.2.150
Test Status: SUCCESSFUL
Test Results
Network Connectivity
- ✅ PASS: Host is reachable via ICMP
- RTT: 2.7-2.9ms average
- Packet Loss: 0%
API Accessibility
- ✅ HTTPS Port 443: OPEN and accessible
- ✅ API Endpoint: Responds correctly
- ✅ Response: HTTP 401 Unauthorized (expected - requires authentication)
Findings
Protocol
Use HTTPS (port 443)
https://192.168.2.150/api/v2.0/
Authentication
Required: API key via Bearer token
curl -X GET "https://192.168.2.150/api/v2.0/system/version" \
-H "Authorization: Bearer YOUR_API_KEY_HERE" \
--insecure
SSL Certificate
Self-signed certificate detected
- Must use
--insecureor-kflag with curl - Or install CA certificate for production use
Implementation Requirements
1. Generate API Key
- Login to TrueNAS Web UI: https://192.168.2.150
- Navigate to: Account → API Keys
- Create new key with read-only permissions
- Store securely
2. Test Authentication
export TRUENAS_API_KEY="your-generated-key"
curl -X GET "https://192.168.2.150/api/v2.0/system/version" \
-H "Authorization: Bearer ${TRUENAS_API_KEY}" \
-H "Content-Type: application/json" \
--insecure
Expected response:
{
"fullversion": "TrueNAS-SCALE-XX.XX.X",
"version": "XX.XX.X"
}
3. Collection Script Parameters
TRUENAS_HOST="192.168.2.150"
TRUENAS_PROTOCOL="https"
TRUENAS_PORT="443"
TRUENAS_API_BASE="/api/v2.0"
CURL_OPTS="--insecure" # For self-signed cert
Next Steps
- ✅ Network connectivity confirmed
- ✅ API endpoint confirmed
- ⏳ Generate API key in TrueNAS UI
- ⏳ Test authenticated API calls
- ⏳ Implement collection script
- ⏳ Create comprehensive documentation
Recommended API Calls for Collection
System Information
GET /system/info- Hardware and versionGET /system/version- TrueNAS versionGET /system/general- General config
Storage
GET /pool- All poolsGET /pool/dataset- All datasetsGET /disk- Disk inventoryGET /disk/temperature- Disk temps
Sharing
GET /sharing/nfs- NFS sharesGET /sharing/smb- SMB shares
Services
GET /service- Service status
Compatibility
- TrueNAS Scale: Compatible
- API Version: v2.0
- Connection: Stable, low latency
Test completed successfully - Ready for implementation