You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*`project_id` - (Optional) The Rollbar project ID. When set, the account access token (`api_key`) is used with this project ID instead of requiring a separate project access token (`project_api_key`).
81
+
77
82
Slack:
78
83
79
84
*`enabled` - (Required) Boolean that enables the Slack notifications globally
**Option 2: Using an account access token with `project_id`**
44
+
45
+
If you prefer not to configure a separate project access token, you can use the account access token and specify `project_id` on each resource:
46
+
47
+
```hcl
48
+
provider "rollbar" {
49
+
api_key = "my-account-access-token"
50
+
}
51
+
52
+
resource "rollbar_notification" "email" {
53
+
project_id = 123456
54
+
channel = "email"
55
+
rule {
56
+
enabled = true
57
+
trigger = "occurrence_rate"
58
+
filters {
59
+
type = "rate"
60
+
period = 300
61
+
count = 10
62
+
}
63
+
}
64
+
config {
65
+
users = ["user@rollbar.com"]
45
66
teams = ["test-team-example"]
46
67
}
47
68
}
@@ -52,6 +73,7 @@ Argument Reference
52
73
53
74
The following arguments are supported:
54
75
76
+
*`project_id` - (Optional) The Rollbar project ID. When set, the account access token (`api_key`) is used with this project ID instead of requiring a separate project access token (`project_api_key`).
55
77
*`channel` - (Required) The notification channel (eg. `slack`, `pagerduty`, `email`, `webhook`) to configure a notification rule(s) for
56
78
*`rule` - (Required) An array of expression configurations for notification rules. Structure is [documented below](#nested_rule)
57
79
*`config` - (Required) An array of configurations for notification rules. Structure is [documented below](#nested_config)
*`project_id` - (Optional) The Rollbar project ID. When set, the account access token (`api_key`) is used with this project ID instead of requiring a separate project access token (`project_api_key`).
40
49
*`name` - (Required) The name of the service link
41
50
*`template` - (Required) The url that contains templated variables referencing an occurrences data. [Examples](https://docs.rollbar.com/docs/service-links)
0 commit comments