terraform/website/source/docs/providers/statuscake/r/test.html.markdown

42 lines
1.3 KiB
Markdown
Raw Normal View History

---
layout: "statuscake"
page_title: "StatusCake: statuscake_test"
sidebar_current: "docs-statuscake-test"
description: |-
The statuscake_test resource allows StatusCake tests to be managed by Terraform.
---
# statuscake\_test
The test resource allows StatusCake tests to be managed by Terraform.
## Example Usage
```
resource "statuscake_test" "google" {
website_name = "google.com"
website_url = "www.google.com"
test_type = "HTTP"
check_rate = 300
}
```
## Argument Reference
The following arguments are supported:
* `website_name` - (Required) This is the name of the test and the website to be monitored.
* `website_url` - (Required) The URL of the website to be monitored.
* `check_rate` - (Optional) Test check rate in seconds. Defaults to 300.
* `test_type` - (Required) The type of Test. Either HTTP or TCP.
* `paused` - (Optional) Whether or not the test is paused. Defaults to false.
* `timeout` - (Optional) The timeout of the test in seconds.
* `contact_id` - (Optional) The ID of the contact group to associate with the test.
* `confirmations` - (Optional) The number of confirmation servers to use in order to detect downtime. Defaults to 0.
## Attributes Reference
The following attribute is exported:
* `test_id` - A unique identifier for the test.