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
resource "portainer_support_debug_log" "debug" {
enabled = true
}- Create and Update: call
PUT /support/debug_logwith{ debugLogEnabled: true|false } - Read: uses
GET /support/debug_logto confirm current log status - Delete: automatically disables the debug log via
PUT /support/debug_logwithfalse
| Name | Type | Required | Description |
|---|---|---|---|
enabled |
bool | ✅ yes | Whether the global debug log should be active |
| Name | Description |
|---|---|
id |
Set to string value of true or false |