-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Update version.
- Loading branch information
Showing
5 changed files
with
64 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
--- | ||
layout: "ns1" | ||
page_title: "NS1: ns1_alert" | ||
sidebar_current: "docs-ns1-resource-alert" | ||
description: |- | ||
Provides a NS1 Alert resource. | ||
--- | ||
|
||
# ns1\_alert | ||
|
||
Provides a NS1 Alert resource. This can be used to create, modify, and delete alerts. | ||
|
||
## Example Usage | ||
|
||
```hcl | ||
resource "ns1_alert" "example" { | ||
#required | ||
name = "Example Alert" | ||
type = "zone" | ||
subtype = "transfer_failed" | ||
#optional | ||
notification_lists = [] | ||
zone_names = [] | ||
record_ids = [] | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
|
||
The following arguments are supported: | ||
|
||
* `name` - (Required) The free-form display name for the alert. | ||
* `type` - (Required) The type of the alert. | ||
* `subtype` - (Required) The type of the alert. | ||
* `notification_lists` - (Optional) A list of id's for notification lists whose notifiers will be triggered by the alert. | ||
* `zone_names` - (Optional) A list of zones this alert applies to. | ||
* `record_ids` - (Optional) A list of record id's this alert applies to. | ||
|
||
## Attributes Reference | ||
|
||
In addition to all arguments above, the following attributes are exported: | ||
|
||
* `created_by` - (Read Only) The user or apikey that created this alert. | ||
* `updated_by` - (Read Only) The user or apikey that last modified this alert. | ||
* `created_at` - (Read Only) The Unix timestamp representing when the alert configuration was created. | ||
* `updated_at` - (Read Only) The Unix timestamp representing when the alert configuration was last modified. | ||
|
||
## Import | ||
|
||
`terraform import ns1_alert.<name> <alert_id>` | ||
|
||
## NS1 Documentation | ||
|
||
[Alerts Api Doc](https://ns1.com/api#alerts) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters