From 0b957cd46a2a3a209c45778da2a7e1e55a94f3c7 Mon Sep 17 00:00:00 2001 From: Alexandre Garand Date: Fri, 9 Aug 2019 11:02:14 +0200 Subject: add contact_group resource to the provider --- website/docs/index.html.markdown | 10 ++++++- website/docs/r/contact_group.html.markdown | 47 ++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 website/docs/r/contact_group.html.markdown (limited to 'website/docs') 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" page_title: "Provider: StatusCake" sidebar_current: "docs-statuscake-index" description: |- - The StatusCake provider configures tests in StatusCake. + + The StatusCake provider configures tests and contact groups in StatusCake. --- # StatusCake Provider @@ -36,4 +37,11 @@ resource "statuscake_test" "google" { check_rate = 300 contact_id = 12345 } + +resource "statuscake_contact_group" "exemple" { + emails= ["email1","email2"] + group_name= "group name" + ping_url= "url" +} + ``` 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 @@ +--- +layout: "statuscake" +page_title: "StatusCake: statuscake_contact_group" +sidebar_current: "docs-statuscake-contact_group" +description: |- + The statuscake_contact_group resource allows StatusCake contact groups to be managed by Terraform. +--- + +# statuscake\_contact_group + +The contact_group resource allows StatusCake contact groups to be managed by Terraform. + +## Example Usage + +```hcl +resource "statuscake_contact_group" "exemple" { + emails= ["email1","email2"] + group_name= "group name" + ping_url= "url" +} +``` + +## Argument Reference + +The following arguments are supported: + +* `desktop_alert` - (Required) Set to 1 To Enable Desktop Alerts +* `ping_url` - (Optional) +* `group_name` - (Optional) The internal Group Name +* `pushover` - (Optional) A Pushover Account Key +* `boxcar` - (Optional) A Boxcar API Key +* `mobiles` - (Optional) Comma Seperated List of International Format Cell Numbers +* `emails` - (Optional) List of Emails To Alert. + +## Attributes Reference + +The following attribute is exported: + +* `contact_id` - A unique identifier for the contact group. + +## Import + +StatusCake contact groups can be imported using the contact group id, e.g. + +``` +tf import statuscake_contact_group.example 123 +``` -- cgit v1.2.3