-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from trocco-io/add-user-api
Add User Resource
- Loading branch information
Showing
18 changed files
with
1,145 additions
and
54 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "trocco_user Resource - trocco" | ||
subcategory: "" | ||
description: |- | ||
Provides a TROCCO user resource. | ||
--- | ||
|
||
# trocco_user (Resource) | ||
|
||
Provides a TROCCO user resource. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "trocco_user" "example" { | ||
email = "trocco@example.com" | ||
password = "Jb1p4f1uuC" | ||
role = "member" | ||
can_use_audit_log = false | ||
is_restricted_connection_modify = false | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `email` (String) The email of the user. | ||
- `role` (String) The role of the user. Valid value is `super_admin`, `admin`, or `member`. | ||
|
||
### Optional | ||
|
||
- `can_use_audit_log` (Boolean) Whether the user can use the audit log. | ||
- `is_restricted_connection_modify` (Boolean) Whether the user is restricted to modify connections. | ||
- `password` (String, Sensitive) The password of the user. It must be at least 8 characters long and contain at least one letter and one number. It is required when creating a new user but optional during updates. | ||
|
||
### Read-Only | ||
|
||
- `id` (Number) The ID of the user. | ||
|
||
## Import | ||
|
||
Import is supported using the following syntax: | ||
|
||
```shell | ||
terraform import trocco_user.example <user_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 |
---|---|---|
@@ -0,0 +1 @@ | ||
terraform import trocco_user.example <user_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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
resource "trocco_user" "example" { | ||
email = "trocco@example.com" | ||
password = "Jb1p4f1uuC" | ||
role = "member" | ||
can_use_audit_log = false | ||
is_restricted_connection_modify = false | ||
} |
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
Oops, something went wrong.