Skip to content

Commit dcf3182

Browse files
committed
Add docs for token
1 parent b9a75a2 commit dcf3182

File tree

2 files changed

+47
-0
lines changed

2 files changed

+47
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
## 2.9.4 (Unreleased)
22

3+
Features:
4+
5+
* **New Resource:** sumologic_token (GH-203)
6+
37
## 2.9.3 (April 26, 2021)
48

59
FEATURES:

website/docs/r/token.html.markdown

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
layout: "sumologic"
3+
page_title: "SumoLogic: sumologic_token"
4+
description: |-
5+
Provides a Sumologic Token
6+
---
7+
8+
# sumologic_token
9+
Provides a [Sumologic Token][1].
10+
11+
## Example Usage
12+
```hcl
13+
resource "sumologic_token" "example_token" {
14+
name = "testToken"
15+
description = "Testing resource sumologic_token"
16+
status = "Active"
17+
type = "CollectorRegistration"
18+
version = 0
19+
}
20+
```
21+
22+
## Argument Reference
23+
24+
The following arguments are supported:
25+
26+
* `name` - (Required) Display name of the token. This must be unique across all of the tokens.
27+
* `description` - (Optional) The description of the token.
28+
* `status` - (Required) Status of the token. Supported values are `Active`, and `Inactive`.
29+
* `type` - (Required) Type of the token. Supported value is `CollectorRegistration`.
30+
* `version` - (Required for update) Version of the token. This is only required for update. It starts from 0 when created and gets incremented with each update.
31+
32+
The following attributes are exported:
33+
34+
* `id` - The internal ID of the token.
35+
36+
## Import
37+
Tokens can be imported using the name, e.g.:
38+
39+
```hcl
40+
terraform import sumologic_token tokenName
41+
```
42+
43+
[1]: https://help.sumologic.com/Manage/Security/Installation_Tokens

0 commit comments

Comments
 (0)