Skip to content

Commit 272ef53

Browse files
authored
Merge pull request #2 from terraform-providers/ssain-content-resource-docs-fixes
Ssain content resource docs fixes
2 parents 1ed4d3d + 6f89891 commit 272ef53

File tree

3 files changed

+11
-12
lines changed

3 files changed

+11
-12
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Build Status](https://travis-ci.org/sumologic/sumologic-terraform-provider.svg?branch=master)](https://travis-ci.org/sumologic/sumologic-terraform-provider) [![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/sumologic/sumologic-terraform-provider/issues)
1+
[![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/sumologic/sumologic-terraform-provider/issues)
22

33
# terraform-provider-sumologic
44
This provider is used to manage multiple configuration entities within the Sumo Logic product.

website/docs/r/content.html.markdown

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@ Provides a way to interact with Sumologic Content.
1010

1111
## Example Usage
1212
```hcl
13+
data "sumologic_personal_folder" "personalFolder" {}
14+
1315
resource "sumologic_content" "test" {
14-
parent_id = "%s"
15-
config =
16-
{
16+
parent_id = "${data.sumologic_personal_folder.personalFolder.id}"
17+
config =
18+
jsonencode({
1719
"type": "SavedSearchWithScheduleSyncDefinition",
1820
"name": "test-333",
1921
"search": {
@@ -52,7 +54,7 @@ parent_id = "%s"
5254
"parameters": []
5355
},
5456
"description": "Runs every hour with timerange of 15m and sends email notifications"
55-
}
57+
})
5658
}
5759
```
5860

website/docs/r/folder.html.markdown

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,15 @@ Provides the ability to create, read, delete, update, and manage of folders.
1010

1111
## Example Usage
1212
```hcl
13+
data "sumologic_personal_folder" "personalFolder" {}
14+
1315
resource "sumologic_folder" "folder" {
1416
name = "test-folder"
15-
description = "Just testing this"
16-
parent_id = "<Hexadecimal ID of the parent folder>"
17+
description = "A test folder"
18+
parent_id = "${data.sumologic_personal_folder.personalFolder.id}"
1719
}
1820
```
1921

20-
## Finding the parent ID
21-
Unfortunately, the only way to find the parent folder's hexadecimal ID is by sending the following request `curl -X GET -u {ACCESS_ID}:{ACCESS_KEY} https://api.sumologic.com/api/v2/content/folders/personal` and subsequently getting children's folders (GET `.../api/v2/content/folders/{id}`) until you find the correct parent folder.
22-
23-
In the future, there will be a button in the UI that will reveal the hex ID.
24-
2522
## Argument reference
2623

2724
The following arguments are supported:

0 commit comments

Comments
 (0)