blob: db2e56d4beee714b637e8c13778059db55835362 (
plain) (
tree)
|
|
---
layout: "statuscake"
page_title: "Provider: StatusCake"
sidebar_current: "docs-statuscake-index"
description: |-
The StatusCake provider configures tests and in StatusCake.
---
# StatusCake Provider
The StatusCake provider allows Terraform to create and configure tests in [StatusCake](https://www.statuscake.com/). StatusCake is a tool that helps to
monitor the uptime of your service via a network of monitoring centers throughout the world
The provider configuration block accepts the following arguments:
* ``username`` - (Required) The username for the statuscake account. May alternatively be set via the
``STATUSCAKE_USERNAME`` environment variable.
* ``apikey`` - (Required) The API auth token to use when making requests. May alternatively
be set via the ``STATUSCAKE_APIKEY`` environment variable.
Use the navigation to the left to read about the available resources.
## Example Usage
```hcl
provider "statuscake" {
username = "testuser"
apikey = "12345ddfnakn"
}
resource "statuscake_test" "google" {
website_name = "google.com"
website_url = "www.google.com"
test_type = "HTTP"
check_rate = 300
contact_id = 12345
}
resource "statuscake_ssl" "google" {
domain = "https://www.google.com"
contact_groups_c = "3,12"
checkrate = 3600
alert_at = "18,71,344"
alert_reminder = true
alert_expiry = true
alert_broken = false
alert_mixed = true
}
```
|