uptimeify_tcp_monitor
A TCP monitor: connects to hostname:port, optionally expecting a banner. The hostname must resolve to a public address when it is set. Import with the numeric id or the public id.
A TCP monitor: connects to hostname:port, optionally expecting a banner. The hostname must resolve to a public address when it is set. Import with the numeric id or the public id.
Example Usage
resource "uptimeify_tcp_monitor" "this" {
customer_id = 12
name = "Postgres primary"
hostname = "db.shop.example"
port = 5432
check_interval = 5
}Schema
Required
customer_id(Number) Customer the monitor belongs to. Changing it moves the monitor to another customer of the same organization in place.hostname(String) Host name or IP address only: no scheme, no path, no spaces.name(String) Display name, 1 to 255 characters.port(Number)
Optional
NOTE: Write-only arguments are supported in Terraform 1.11 and later.
allow_duplicate(Boolean, Write-only) Create the monitor even if the customer already has one of this type for the same target. Without it the create fails with 409monitorAlreadyExistsand the error names the import command for the existing monitor. Sent with create only.allowed_check_country_codes(Set of String) Upper-case ISO 3166-1 alpha-2 codes of the allowed check locations. Unset = all locations.check_interval(Number) Minutes between checks, 1 to 1440. Defaults to 30. The customer's package can require a larger minimum.expect_banner(String) Text the server's greeting must contain, at most 255 characters.management_type(String)managedorself_service. Only organization writers choose it; customer tokens always getself_service. Defaults tomanaged.status(String)active,maintenanceordisabled. Defaults toactive.timeout_seconds(Number) Timeout per check in seconds, 1 to 60. Defaults to 30.
Read-Only
created_at(String)id(String) Numeric TCP monitor id.organization_id(Number)public_id(String) Public UUID of the TCP monitor.updated_at(String)
Import
Import is supported using the following syntax:
The terraform import command can be used, for example:
# Numeric id or public id
terraform import uptimeify_tcp_monitor.this 42uptimeify_tag
A tag that groups monitors. Import with the numeric id or the public id.
uptimeify_user
A login of the organization. Creating it sends an invitation mail; the person sets their own password (Terraform never sets one). Destroying it deletes the login. Needs an organization admin token. Import with the user id.