Skip to content

Commit 9d883e2

Browse files
authored
Merge pull request #251 from brewkode/doc/data_http_source
doc: Add docs for http_source datasource
2 parents 138f906 + 6752104 commit 9d883e2

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
layout: "sumologic"
3+
page_title: "SumoLogic: sumologic_http_source"
4+
description: |-
5+
Provides a way to retrieve Sumo Logic HTTP Source details (id, names, etc) for an HTTP Source managed by another terraform stack.
6+
---
7+
8+
# sumologic_http_source
9+
10+
Provides a way to retrieve Sumo Logic HTTP Source details (id, names, etc) for an HTTP Source managed by another terraform stack.
11+
12+
13+
## Example Usage
14+
```hcl
15+
data "sumologic_http_source" "this" {
16+
collector_id = 121212
17+
name = "source_name"
18+
}
19+
```
20+
21+
A HTTP Source can be looked up by using a combination of `collector_id` & `name`.
22+
If either `id` or `name` are not present, the data source block fails with a panic (at this point).
23+
24+
## Attributes reference
25+
26+
The following attributes are exported:
27+
28+
- `id` - The internal ID of the collector. This can be used to attach sources to the collector.
29+
- `name` - The name of the collector.
30+
- `description` - The description of the collector.
31+
- `category` - The default source category for any source attached to this collector.
32+
- `timezone` - The time zone to use for this collector. The value follows the [tzdata][2] naming convention.
33+
- `multiline` - Multiline processing enabled or not.
34+
- `url` - The HTTP endpoint to use for sending data to this source.
35+
36+

0 commit comments

Comments
 (0)