Skip to content

Commit a508371

Browse files
authored
Merge pull request #119 from SumoLogic/ssain-add-missing-docs
add new docs and fix some formatting on the old ones
2 parents 4993e70 + 55e804a commit a508371

18 files changed

+259
-29
lines changed

website/docs/README.md

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#### Data Sources
66
+ [sumologic_caller_identity][10]
77
+ [sumologic_collector][11]
8+
+ [sumologic_personal_folder][12]
89

910
#### Resources
1011
##### Sources
@@ -23,6 +24,10 @@
2324

2425
##### Content
2526
+ [sumologic_scheduled_view][40]
27+
+ [sumologic_partition][41]
28+
+ [sumologic_extraction_rule][42]
29+
+ [sumologic_folder][43]
30+
+ [sumologic_content][44]
2631

2732
#### Common Source Properties
2833

@@ -47,16 +52,21 @@ The following properties are common to ALL sources and can be used to configure
4752
- `lookup_by_name` - (Optional) Configures an existent collector using the same 'name' or creates a new one if non existent. Defaults to false.
4853
- `destroy` - (Optional) Whether or not to delete the collector in Sumo when it is removed from Terraform. Defaults to true.
4954

50-
[0]: sumologic-provider.md
55+
[0]: index.html.markdown
5156
[2]: https://en.wikipedia.org/wiki/Tz_database
52-
[10]: d/sumologic_caller_identity.md
53-
[11]: d/sumologic_collector.md
54-
[20]: r/sumologic_collector.md
55-
[21]: r/sumologic_http_source.md
56-
[22]: r/sumologic_polling_source.md
57-
[23]: r/sumologic_cloudsyslog_source.md
58-
[24]: r/sumologic_collector_ingest_budget_assignment.md
59-
[25]: r/sumologic_ingest_budget.md
60-
[30]: r/sumologic_role.md
61-
[31]: r/sumologic_user.md
62-
[40]: r/sumologic_scheduled_view.md
57+
[10]: d/caller_identity.html.markdown
58+
[11]: d/collector.html.markdown
59+
[12]: d/personal_folder.html.markdown
60+
[20]: r/collector.html.markdown
61+
[21]: r/http_source.html.markdown
62+
[22]: r/polling_source.html.markdown
63+
[23]: r/cloudsyslog_source.html.markdown
64+
[24]: r/collector_ingest_budget_assignment.html.markdown
65+
[25]: r/ingest_budget.html.markdown
66+
[30]: r/role.html.markdown
67+
[31]: r/user.html.markdown
68+
[40]: r/scheduled_view.html.markdown
69+
[41]: r/partition.html.markdown
70+
[42]: r/extraction_rule.html.markdown
71+
[43]: r/folder.html.markdown
72+
[44]: r/content.html.markdown

website/docs/d/caller_identity.html.markdown

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ data "sumologic_caller_identity" "current" {}
1616

1717

1818
## Attributes reference
19+
1920
The following attributes are exported:
21+
2022
- `access_id` - Sumo Logic access ID.
2123
- `access_key` - Sumo Logic access key.
2224
- `environment` - API endpoint environment.

website/docs/d/collector.html.markdown

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ A collector can be looked up by either `id` or `name`. One of those attributes n
2929
If both `id` and `name` have been specified, `id` takes precedence.
3030

3131
## Attributes reference
32+
3233
The following attributes are exported:
34+
3335
- `id` - The internal ID of the collector. This can be used to attach sources to the collector.
3436
- `name` - The name of the collector.
3537
- `description` - The description of the collector.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
layout: "sumologic"
3+
page_title: "SumoLogic: sumologic_personal_folder"
4+
description: |-
5+
Provides an easy way to retrieve the Personal Folder.
6+
---
7+
8+
# sumologic_personal_folder
9+
Provides an easy way to retrieve the Personal Folder.
10+
11+
12+
## Example Usage
13+
```hcl
14+
data "sumologic_personal_folder" "personalFolder" {}
15+
```
16+
17+
18+
## Attributes reference
19+
20+
The following attributes are exported:
21+
22+
- `id` - The ID of the Personal Folder.
23+
- `name` - The name of the Personal Folder.
24+
- `description` - The description of the Personal Folder.
25+
26+
[Back to Index][0]
27+
28+
[0]: ../README.md
29+

website/docs/r/cloudsyslog_source.html.markdown

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ Only the common properties are valid.
3333
## Attributes reference
3434

3535
The following attributes are exported:
36+
3637
- `id` - The internal ID of the source.
3738
- `token` - The token to use for sending data to this source.
3839

website/docs/r/collector.html.markdown

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ resource "sumologic_collector" "collector" {
2020
```
2121

2222
## Argument reference
23+
2324
The following arguments are supported:
25+
2426
- `name` - (Required) The name of the collector. This is required, and has to be unique. Changing this will force recreation the collector.
2527
- `description` - (Optional) The description of the collector.
2628
- `category` - (Optional) The default source category for any source attached to this collector. Can be overridden in the configuration of said sources.
@@ -29,8 +31,8 @@ The following arguments are supported:
2931
- `lookup_by_name` - (Optional) Configures an existent collector using the same 'name' or creates a new one if non existent. Defaults to false.
3032
- `destroy` - (Optional) Whether or not to delete the collector in Sumo when it is removed from Terraform. Defaults to true.
3133

32-
## Attributes reference
3334
The following attributes are exported:
35+
3436
- `id` - The internal ID of the collector. This can be used to attach sources to the collector.
3537

3638
## Import

website/docs/r/collector_ingest_budget_assignment.html.markdown

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,14 @@ resource "sumologic_collector_ingest_budget_assignment" "assignment" {
2727
```
2828

2929
## Argument reference
30+
3031
The following arguments are supported:
32+
3133
- `collector_id` - (Required) ID of the collector to assign to the ingest budget.
3234
- `ingest_budget_id` - (Required) ID of the ingest budget to assign the collector to.
3335

34-
## Attributes reference
3536
The following attributes are exported:
37+
3638
- `id` - The internal ID of the assignment.
3739

3840
[Back to Index][0]
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
---
2+
layout: "sumologic"
3+
page_title: "SumoLogic: sumologic_content"
4+
description: |-
5+
Provides a way to interact with Sumologic Content
6+
---
7+
8+
# sumologic_content
9+
Provides a way to interact with Sumologic Content.
10+
11+
## Example Usage
12+
```hcl
13+
resource "sumologic_content" "test" {
14+
parent_id = "%s"
15+
config =
16+
{
17+
"type": "SavedSearchWithScheduleSyncDefinition",
18+
"name": "test-333",
19+
"search": {
20+
"queryText": "\"warn\"",
21+
"defaultTimeRange": "-15m",
22+
"byReceiptTime": false,
23+
"viewName": "",
24+
"viewStartTime": "1970-01-01T00:00:00Z",
25+
"queryParameters": [],
26+
"parsingMode": "Manual"
27+
},
28+
"searchSchedule": {
29+
"cronExpression": "0 0 * * * ? *",
30+
"displayableTimeRange": "-10m",
31+
"parseableTimeRange": {
32+
"type": "BeginBoundedTimeRange",
33+
"from": {
34+
"type": "RelativeTimeRangeBoundary",
35+
"relativeTime": "-50m"
36+
},
37+
"to": null
38+
},
39+
"timeZone": "America/Los_Angeles",
40+
"threshold": null,
41+
"notification": {
42+
"taskType": "EmailSearchNotificationSyncDefinition",
43+
"toList": ["[email protected]"],
44+
"subjectTemplate": "Search Results: {{SearchName}}",
45+
"includeQuery": true,
46+
"includeResultSet": true,
47+
"includeHistogram": false,
48+
"includeCsvAttachment": false
49+
},
50+
"scheduleType": "1Hour",
51+
"muteErrorEmails": false,
52+
"parameters": []
53+
},
54+
"description": "Runs every hour with timerange of 15m and sends email notifications"
55+
}
56+
}
57+
```
58+
59+
## Argument reference
60+
61+
The following arguments are supported:
62+
63+
- `parent_id` - (Required) The identifier of the folder to import into. Identifiers from the Library in the Sumo user interface are provided in decimal format which is incompatible with Terraform. The identifier needs to be in hexadecimal format.
64+
- `config` - (Required) JSON block for the content to import.
65+
66+
## Attributes reference
67+
68+
The following attributes are exported:
69+
70+
- `id` - Unique identifier for the contnet item.
71+
72+
[Back to Index][0]
73+
74+
[0]: ../README.md
75+
[1]: https://help.sumologic.com/APIs/Content-Management-API
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
layout: "sumologic"
3+
page_title: "SumoLogic: sumologic_extraction_rule"
4+
description: |-
5+
Provides a Sumologic Field Extraction Rule
6+
---
7+
8+
# sumologic_extraction_rule
9+
Provides a [Sumologic Field Extraction Rule][1].
10+
11+
## Example Usage
12+
```hcl
13+
resource "sumologic_field_extraction_rule" "exampleFER" {
14+
name = "exampleFieldExtractionRule"
15+
scope = "_sourceHost=127.0.0.1"
16+
parse_expression = "csv _raw extract 1 as f1"
17+
enabled = true
18+
}
19+
```
20+
21+
## Argument reference
22+
23+
The following arguments are supported:
24+
25+
- `name` - (Required) Name of the field extraction rule. Use a name that makes it easy to identify the rule.
26+
- `scope` - (Required) Scope of the field extraction rule. This could be a sourceCategory, sourceHost, or any other metadata that describes the data you want to extract from. Think of the Scope as the first portion of an ad hoc search, before the first pipe ( | ). You'll use the Scope to run a search against the rule.
27+
- `parse_expression` - (Required) Describes the fields to be parsed.
28+
- `enabled` - (Required) Is the field extraction rule enabled.
29+
30+
## Attributes reference
31+
32+
The following attributes are exported:
33+
34+
- `id` - Unique identifier for the field extraction rule.
35+
36+
[Back to Index][0]
37+
38+
[0]: ../README.md
39+
[1]: https://help.sumologic.com/Manage/Field-Extractions

website/docs/r/folder.html.markdown

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,15 @@ Unfortunately, the only way to find the parent folder's hexadecimal ID is by sen
2323
In the future, there will be a button in the UI that will reveal the hex ID.
2424

2525
## Argument reference
26+
2627
The following arguments are supported:
28+
2729
- `name` - (Required) The name of the folder. This is required, and has to be unique.
2830
- `parent_id` - (Required) The ID of the folder in which you want to create the new folder.
2931
- `description` - (Optional) The description of the folder.
3032

31-
## Additional data provided in state
33+
Additional data provided in state
34+
3235
- `created_at` - (Computed) When the folder was created.
3336
- `created_by` - (Computed) Who created the folder.
3437
- `modified_at` - (Computed) When was the folder last modified.

0 commit comments

Comments
 (0)