-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
patch - remove org_key and upgrade api_key, custom_role, group and us…
…er docs (#223) * patch - remove org_key and upgrade api_key, custom_role, group and user docs
- Loading branch information
Showing
14 changed files
with
137 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,5 +33,5 @@ Coralogix Api keys. | |
|
||
Read-Only: | ||
|
||
- `team_id` (Number) | ||
- `team_id` (String) | ||
- `user_id` (String) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,14 +13,25 @@ Coralogix group. | |
## Example Usage | ||
|
||
```hcl | ||
resource "coralogix_group" "example" { | ||
display_name = "example" | ||
role = "Read Only" | ||
members = [coralogix_user.example.id] | ||
resource "coralogix_custom_role" "example" { | ||
name = "Example custom role" | ||
description = "This role is created with terraform!" | ||
parent_role = "Standard User" | ||
permissions = ["spans.events2metrics:UpdateConfig"] | ||
} | ||
resource "coralogix_user" "example" { | ||
user_name = "[email protected]" | ||
name = { | ||
given_name = "example" | ||
family_name = "example" | ||
} | ||
} | ||
resource "coralogix_group" "example" { | ||
display_name = "example" | ||
role = coralogix_custom_role.example.name | ||
members = [coralogix_user.example.id] | ||
} | ||
``` | ||
|
||
|
@@ -40,3 +51,17 @@ resource "coralogix_user" "example" { | |
### Read-Only | ||
|
||
- `id` (String) Group ID. | ||
|
||
### Import | ||
|
||
```sh | ||
terraform import coralogix_group.example <group-id> | ||
``` | ||
|
||
to get the group id you can use the following command: | ||
```sh | ||
curl --location --request GET 'https://ng-api-http.<region-domain>/scim/Groups' \ | ||
--header 'Authorization: Bearer <api-key>' \' | ||
``` | ||
[region-domain table](../index.md#region-domain-table) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,3 +18,17 @@ resource "coralogix_custom_role" "example" { | |
parent_role = "Standard User" | ||
permissions = ["spans.events2metrics:UpdateConfig"] | ||
} | ||
|
||
resource "coralogix_user" "example" { | ||
user_name = "[email protected]" | ||
name = { | ||
given_name = "example" | ||
family_name = "example" | ||
} | ||
} | ||
|
||
resource "coralogix_group" "example" { | ||
display_name = "example" | ||
role = coralogix_custom_role.example.name | ||
members = [coralogix_user.example.id] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,13 +12,24 @@ provider "coralogix" { | |
#env = "<add the environment you want to work at or add env variable CORALOGIX_ENV>" | ||
} | ||
|
||
resource "coralogix_group" "example" { | ||
display_name = "example" | ||
role = "Read Only" | ||
members = [coralogix_user.example.id] | ||
resource "coralogix_custom_role" "example" { | ||
name = "Example custom role" | ||
description = "This role is created with terraform!" | ||
parent_role = "Standard User" | ||
permissions = ["spans.events2metrics:UpdateConfig"] | ||
} | ||
|
||
resource "coralogix_user" "example" { | ||
user_name = "[email protected]" | ||
name = { | ||
given_name = "example" | ||
family_name = "example" | ||
} | ||
} | ||
|
||
resource "coralogix_group" "example" { | ||
display_name = "example" | ||
role = coralogix_custom_role.example.name | ||
members = [coralogix_user.example.id] | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,13 @@ provider "coralogix" { | |
#env = "<add the environment you want to work at or add env variable CORALOGIX_ENV>" | ||
} | ||
|
||
resource "coralogix_custom_role" "example" { | ||
name = "Example custom role" | ||
description = "This role is created with terraform!" | ||
parent_role = "Standard User" | ||
permissions = ["spans.events2metrics:UpdateConfig"] | ||
} | ||
|
||
resource "coralogix_user" "example" { | ||
user_name = "[email protected]" | ||
name = { | ||
|
@@ -22,7 +29,7 @@ resource "coralogix_user" "example" { | |
|
||
resource "coralogix_group" "example" { | ||
display_name = "example" | ||
role = "Read Only" | ||
role = coralogix_custom_role.example.name | ||
members = [coralogix_user.example.id] | ||
} | ||
|