]> git.immae.eu Git - github/fretlink/terraform-provider-statuscake.git/blame - website/docs/index.html.markdown
Merge branch 'add_ssl_tests' of github.com:alexandreFre/terraform-provider-statuscake
[github/fretlink/terraform-provider-statuscake.git] / website / docs / index.html.markdown
CommitLineData
d3491090 1---
2layout: "statuscake"
3page_title: "Provider: StatusCake"
4sidebar_current: "docs-statuscake-index"
5description: |-
f6072b06 6 The StatusCake provider configures tests and in StatusCake.
d3491090 7---
8
9# StatusCake Provider
10
11The StatusCake provider allows Terraform to create and configure tests in [StatusCake](https://www.statuscake.com/). StatusCake is a tool that helps to
12monitor the uptime of your service via a network of monitoring centers throughout the world
13
14The provider configuration block accepts the following arguments:
15
16* ``username`` - (Required) The username for the statuscake account. May alternatively be set via the
17 ``STATUSCAKE_USERNAME`` environment variable.
18
19* ``apikey`` - (Required) The API auth token to use when making requests. May alternatively
20 be set via the ``STATUSCAKE_APIKEY`` environment variable.
506e71e5 21
d3491090 22Use the navigation to the left to read about the available resources.
23
24## Example Usage
25
b8e9f053 26```hcl
d3491090 27provider "statuscake" {
506e71e5
GC
28 username = "testuser"
29 apikey = "12345ddfnakn"
d3491090 30}
31
32resource "statuscake_test" "google" {
506e71e5
GC
33 website_name = "google.com"
34 website_url = "www.google.com"
35 test_type = "HTTP"
36 check_rate = 300
37 contact_id = 12345
d3491090 38}
f6072b06
AG
39
40resource "statuscake_ssl" "google" {
41 domain = "https://www.google.com"
42 contact_groups_c = "3,12"
43 checkrate = 3600
44 alert_at = "18,71,344"
45 alert_reminder = true
46 alert_expiry = true
47 alert_broken = false
48 alert_mixed = true
49}
d3491090 50```