Skip to content

Commit

Permalink
[SP-1618] update sysdig_monitor_notification_channel_ibm_event_notifi…
Browse files Browse the repository at this point in the history
…c… (#458)

* SP-1618: update sysdig_monitor_notification_channel_ibm_event_notification instance id

* SP-1618: update instance id wording

* update resource page

* update the data source

* Update website/docs/d/monitor_notification_channel_ibm_event_notification.md

Co-authored-by: Diego Bonfigli <[email protected]>

* Update website/docs/r/monitor_notification_channel_ibm_event_notification.md

Co-authored-by: Diego Bonfigli <[email protected]>

---------

Co-authored-by: Ying Zhao <[email protected]>
Co-authored-by: Diego Bonfigli <[email protected]>
  • Loading branch information
3 people authored Dec 11, 2023
1 parent ccc0ded commit a866e9f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ In addition to all arguments above, the following attributes are exported:

* `id` - The Notification Channel ID.
* `name` - The Notification Channel Name.
* `instance_id` - id of the Event Notifications Instance.
* `instance_id` - id of the Event Notifications Instance. Id value can be either an instance id or CRN. If the event notification instance is within the same account, then it is the instance id. If it is in a different account, then the Event Notifications Instance's [CRN](https://cloud.ibm.com/docs/account?topic=account-crn).
* `enabled` - Whether the Notification Channel is active or not.
* `notify_when_ok` - Whether the Notification Channel sends a notification when the condition is no longer triggered.
* `notify_when_resolved` - Whether the Notification Channel sends a notification if it's manually acknowledged by a
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Creates a Sysdig Monitor Notification Channel of type IBM Event Notification (on
## Example Usage

```terraform
# IBM event notification registering in the same account
resource "sysdig_monitor_notification_channel_ibm_event_notification" "sample" {
name = "Example Channel - IBM Event Notification"
enabled = true
Expand All @@ -25,11 +26,23 @@ resource "sysdig_monitor_notification_channel_ibm_event_notification" "sample" {
}
```

```terraform
# IBM event notification registering in different account
resource "sysdig_monitor_notification_channel_ibm_event_notification" "sample" {
name = "Example Channel - IBM Event Notification"
enabled = true
instance_id = "crn:v1:bluemix:public:event-notifications:global:a/59bcbfa6ea2f006b4ed7094c1a08dcdd:1a0ec336-f391-4091-a6fb-5e084a4c56f4::"
notify_when_ok = false
notify_when_resolved = false
share_with_current_team = true
}
```

## Argument Reference

* `name` - (Required) The name of the Notification Channel. Must be unique.

* `instance_id` - (Required) id of the Event Notifications Instance.
* `instance_id` - (Required) id of the Event Notifications Instance. Id value can be either an instance id or CRN. If the event notification instance is within the same account, use the actual instance id. If it is in a different account, then use the Event Notifications Instance's [CRN](https://cloud.ibm.com/docs/account?topic=account-crn).

* `enabled` - (Optional) If false, the channel will not emit notifications. Default is true.

Expand Down

0 comments on commit a866e9f

Please sign in to comment.