diff options
author | Alexandre Garand <alexandre.garand@fretlink.com> | 2019-08-09 11:02:14 +0200 |
---|---|---|
committer | Alexandre Garand <alexandre.garand@fretlink.com> | 2019-08-09 12:30:58 +0200 |
commit | 49c1c7b4dc69ffb9ab52330e6dc52ccdd6351087 (patch) | |
tree | 34f1df96cf365a584acf76482d5b5b5fb4d267ee /website | |
parent | ebf8436f01bcacb71e3c378f08b165dfd6dd90e6 (diff) | |
download | terraform-provider-statuscake-49c1c7b4dc69ffb9ab52330e6dc52ccdd6351087.tar.gz terraform-provider-statuscake-49c1c7b4dc69ffb9ab52330e6dc52ccdd6351087.tar.zst terraform-provider-statuscake-49c1c7b4dc69ffb9ab52330e6dc52ccdd6351087.zip |
add contact_group resource to the provider
Diffstat (limited to 'website')
-rw-r--r-- | website/docs/index.html.markdown | 10 | ||||
-rw-r--r-- | website/docs/r/contact_group.html.markdown | 47 | ||||
-rw-r--r-- | website/statuscake.erb | 3 |
3 files changed, 59 insertions, 1 deletions
diff --git a/website/docs/index.html.markdown b/website/docs/index.html.markdown index d25a866..653b9ec 100644 --- a/website/docs/index.html.markdown +++ b/website/docs/index.html.markdown | |||
@@ -3,7 +3,8 @@ layout: "statuscake" | |||
3 | page_title: "Provider: StatusCake" | 3 | page_title: "Provider: StatusCake" |
4 | sidebar_current: "docs-statuscake-index" | 4 | sidebar_current: "docs-statuscake-index" |
5 | description: |- | 5 | description: |- |
6 | The StatusCake provider configures tests in StatusCake. | 6 | |
7 | The StatusCake provider configures tests and contact groups in StatusCake. | ||
7 | --- | 8 | --- |
8 | 9 | ||
9 | # StatusCake Provider | 10 | # StatusCake Provider |
@@ -36,4 +37,11 @@ resource "statuscake_test" "google" { | |||
36 | check_rate = 300 | 37 | check_rate = 300 |
37 | contact_id = 12345 | 38 | contact_id = 12345 |
38 | } | 39 | } |
40 | |||
41 | resource "statuscake_contact_group" "exemple" { | ||
42 | emails= ["email1","email2"] | ||
43 | group_name= "group name" | ||
44 | ping_url= "url" | ||
45 | } | ||
46 | |||
39 | ``` | 47 | ``` |
diff --git a/website/docs/r/contact_group.html.markdown b/website/docs/r/contact_group.html.markdown new file mode 100644 index 0000000..ed3354f --- /dev/null +++ b/website/docs/r/contact_group.html.markdown | |||
@@ -0,0 +1,47 @@ | |||
1 | --- | ||
2 | layout: "statuscake" | ||
3 | page_title: "StatusCake: statuscake_contact_group" | ||
4 | sidebar_current: "docs-statuscake-contact_group" | ||
5 | description: |- | ||
6 | The statuscake_contact_group resource allows StatusCake contact groups to be managed by Terraform. | ||
7 | --- | ||
8 | |||
9 | # statuscake\_contact_group | ||
10 | |||
11 | The contact_group resource allows StatusCake contact groups to be managed by Terraform. | ||
12 | |||
13 | ## Example Usage | ||
14 | |||
15 | ```hcl | ||
16 | resource "statuscake_contact_group" "exemple" { | ||
17 | emails= ["email1","email2"] | ||
18 | group_name= "group name" | ||
19 | ping_url= "url" | ||
20 | } | ||
21 | ``` | ||
22 | |||
23 | ## Argument Reference | ||
24 | |||
25 | The following arguments are supported: | ||
26 | |||
27 | * `desktop_alert` - (Required) Set to 1 To Enable Desktop Alerts | ||
28 | * `ping_url` - (Optional) | ||
29 | * `group_name` - (Optional) The internal Group Name | ||
30 | * `pushover` - (Optional) A Pushover Account Key | ||
31 | * `boxcar` - (Optional) A Boxcar API Key | ||
32 | * `mobiles` - (Optional) Comma Seperated List of International Format Cell Numbers | ||
33 | * `emails` - (Optional) List of Emails To Alert. | ||
34 | |||
35 | ## Attributes Reference | ||
36 | |||
37 | The following attribute is exported: | ||
38 | |||
39 | * `contact_id` - A unique identifier for the contact group. | ||
40 | |||
41 | ## Import | ||
42 | |||
43 | StatusCake contact groups can be imported using the contact group id, e.g. | ||
44 | |||
45 | ``` | ||
46 | tf import statuscake_contact_group.example 123 | ||
47 | ``` | ||
diff --git a/website/statuscake.erb b/website/statuscake.erb index d5edf59..93828d0 100644 --- a/website/statuscake.erb +++ b/website/statuscake.erb | |||
@@ -16,6 +16,9 @@ | |||
16 | <li<%= sidebar_current("docs-statuscake-test") %>> | 16 | <li<%= sidebar_current("docs-statuscake-test") %>> |
17 | <a href="/docs/providers/statuscake/r/test.html">statuscake_test</a> | 17 | <a href="/docs/providers/statuscake/r/test.html">statuscake_test</a> |
18 | </li> | 18 | </li> |
19 | <li<%= sidebar_current("docs-statuscake-contact_group") %>> | ||
20 | <a href="/docs/providers/statuscake/r/contact_group.html">statuscake_contact_group</a> | ||
21 | </li> | ||
19 | </ul> | 22 | </ul> |
20 | </li> | 23 | </li> |
21 | </ul> | 24 | </ul> |