Skip to content

Commit 6f89891

Browse files
author
Sean Sain
committed
add personal folder to folder docs
1 parent aeb48d6 commit 6f89891

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

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)