dokploy_pushover_notification (Resource)
A Pushover notification channel (Settings > Notifications). Dokploy sends each message through the Pushover API to a user or a group.
Each event attribute selects one Dokploy event that sends a message on this channel. All events default to false, so a new channel sends nothing until you enable one.
~> Dokploy does not test the channel on create or update. A wrong URL or token applies successfully and fails on the first message. Set verify_connection = true to test the channel before the write.
~> Dokploy stores and returns user_key in cleartext. The attribute is sensitive, so Terraform does not print it, but anyone with API access to the server can read it. The user_key_wo companion keeps it out of the Terraform state.
~> Dokploy stores and returns api_token in cleartext. The attribute is sensitive, so Terraform does not print it, but anyone with API access to the server can read it. The api_token_wo companion keeps it out of the Terraform state.
Example Usage
# Emergency alerts through Pushover: priority 2 repeats every minute for an
# hour until someone acknowledges the message.
resource "dokploy_pushover_notification" "oncall" {
name = "on-call"
priority = 2
retry = 60
expire = 3600
user_key_wo = var.pushover_user_key
user_key_wo_version = 1
api_token_wo = var.pushover_api_token
api_token_wo_version = 1
app_build_error = true
server_threshold = true
}Schema
Required
name(String) Display name. Dokploy does not enforce a unique name.
Optional
NOTE: Write-only arguments are supported in Terraform 1.11 and later.
api_token(String, Sensitive) API token of the Pushover application. Set this attribute orapi_token_wo.api_token_wo(String, Sensitive, Write-only) Write-only form ofapi_token. Terraform keeps it out of the plan and the state. It needs Terraform 1.11 or later. Set exactly one ofapi_tokenandapi_token_wo. A new value reaches the server only whenapi_token_wo_versionchanges.api_token_wo_version(Number) Version ofapi_token_wo. Change it to send the currentapi_token_wovalue to the server. It needsapi_token_wo.app_build_error(Boolean) Send a message when a build fails. Defaults tofalse.app_deploy(Boolean) Send a message when an application or a compose deploys. Defaults tofalse.database_backup(Boolean) Send a message when a database backup runs. Defaults tofalse.docker_cleanup(Boolean) Send a message when the Docker cleanup runs. Defaults tofalse.dokploy_backup(Boolean) Send a message when the Dokploy server backup runs. Defaults tofalse.dokploy_restart(Boolean) Send a message when Dokploy restarts. Defaults tofalse.expire(Number) Seconds after which an emergency message stops repeating, 1 to 10800. Only for priority2.priority(Number) Message priority from-2(lowest) to2(emergency). Defaults to0. Priority2needsretryandexpire.retry(Number) Seconds between repeats of an emergency message, 30 or more. Only for priority2.server_threshold(Boolean) Send a message when a server crosses a resource threshold. Defaults tofalse.user_key(String, Sensitive) User or group key from the Pushover dashboard. Set this attribute oruser_key_wo.user_key_wo(String, Sensitive, Write-only) Write-only form ofuser_key. Terraform keeps it out of the plan and the state. It needs Terraform 1.11 or later. Set exactly one ofuser_keyanduser_key_wo. A new value reaches the server only whenuser_key_wo_versionchanges.user_key_wo_version(Number) Version ofuser_key_wo. Change it to send the currentuser_key_wovalue to the server. It needsuser_key_wo.verify_connection(Boolean) Test the connection withnotification.testPushoverConnectionbefore the provider creates or updates the record. If the test fails, the apply fails with the server message, and the provider writes nothing. The default is no check:nullandfalseboth skip the test. Dokploy stores no value for this attribute, soterraform importleaves itnull. The test sends a real test message to the channel.volume_backup(Boolean) Send a message when a volume backup runs. Defaults tofalse.
Read-Only
created_at(String) Creation timestamp from the server.id(String) Notification id.
Import
Import is supported using the following syntax:
In Terraform v1.5.0 and later, the import block can be used with the id attribute, for example:
import {
to = dokploy_pushover_notification.oncall
id = "INt_PYqh9apo8mmDIoixZ"
}The terraform import command can be used, for example:
terraform import dokploy_pushover_notification.oncall INt_PYqh9apo8mmDIoixZ