| layout | ns1 |
|---|---|
| page_title | NS1: ns1_datasource |
| sidebar_current | docs-ns1-resource-datasource |
| description | Provides a NS1 Data Source resource. |
Provides a NS1 Data Source resource. This can be used to create, modify, and delete data sources.
resource "ns1_api_datasource" "example" {
name = "example-api"
sourcetype = "nsone_v1"
}OR
resource "ns1_monitoring_datasource" "example" {
name = "example-monitoring"
sourcetype = "nsone_monitoring"
}The following arguments are supported:
name- (Required) The free form name of the data source.sourcetype- (Required) The data sources type, listed in API endpoint https://api.nsone.net/v1/data/sourcetypes.config- (Optional) The data source configuration, determined by its type, matching the specification inconfigfrom /data/sourcetypes.
All of the arguments listed above are exported as attributes, with no additions.