Skip to content

Latest commit

 

History

History
41 lines (27 loc) · 1.22 KB

File metadata and controls

41 lines (27 loc) · 1.22 KB

🐞 Resource Documentation: portainer_support_debug_log

Overview

The portainer_support_debug_log resource allows administrators to enable or disable the global debug log in Portainer.

This is useful for collecting additional runtime information to help with diagnostics and troubleshooting.

Currently working only for Portainer BE edition


📘 Example Usage

resource "portainer_support_debug_log" "debug" {
  enabled = true
}

⚙️ Lifecycle & Behavior

  • Create and Update: call PUT /support/debug_log with { debugLogEnabled: true|false }
  • Read: uses GET /support/debug_log to confirm current log status
  • Delete: automatically disables the debug log via PUT /support/debug_log with false

🧾 Arguments Reference

Name Type Required Description
enabled bool ✅ yes Whether the global debug log should be active

📤 Attributes Reference

Name Description
id Set to string value of true or false