-
Notifications
You must be signed in to change notification settings - Fork 6
PLAT-7450 Add singlestoredb_team resource and datasource #61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,66 @@ | ||
| --- | ||
| # generated by https://github.com/hashicorp/terraform-plugin-docs | ||
| page_title: "singlestoredb_team Data Source - terraform-provider-singlestoredb" | ||
| subcategory: "" | ||
| description: |- | ||
| Retrieve a specific team using its ID with this data source. | ||
| --- | ||
|
|
||
| # singlestoredb_team (Data Source) | ||
|
|
||
| Retrieve a specific team using its ID with this data source. | ||
|
|
||
| ## Example Usage | ||
|
|
||
| ```terraform | ||
| provider "singlestoredb" { | ||
| // The SingleStoreDB Terraform provider uses the SINGLESTOREDB_API_KEY environment variable for authentication. | ||
| // Please set this environment variable with your SingleStore Management API key. | ||
| // You can generate this key from the SingleStore Portal at https://portal.singlestore.com/organizations/org-id/api-keys. | ||
| } | ||
|
|
||
| data "singlestoredb_team" "this" { | ||
| id = "24f31e2d-847f-4a62-9a93-a10e9bcd0dae" # Replace with the actual ID of the team. | ||
| } | ||
|
|
||
| output "this_team" { | ||
| value = data.singlestoredb_team.this | ||
| } | ||
| ``` | ||
|
|
||
| <!-- schema generated by tfplugindocs --> | ||
| ## Schema | ||
|
|
||
| ### Required | ||
|
|
||
| - `id` (String) The unique identifier of the team. | ||
|
|
||
| ### Read-Only | ||
|
|
||
| - `created_at` (String) The timestamp of when the team was created. | ||
| - `description` (String) The description of the team. | ||
| - `member_teams` (Attributes List) List of teams that are members of this team. (see [below for nested schema](#nestedatt--member_teams)) | ||
| - `member_users` (Attributes List) List of users that are members of this team. (see [below for nested schema](#nestedatt--member_users)) | ||
| - `name` (String) The name of the team. | ||
|
|
||
| <a id="nestedatt--member_teams"></a> | ||
| ### Nested Schema for `member_teams` | ||
|
|
||
| Read-Only: | ||
|
|
||
| - `description` (String) The description of the team. | ||
| - `name` (String) The name of the team. | ||
| - `team_id` (String) The unique identifier of the team. | ||
|
|
||
|
|
||
| <a id="nestedatt--member_users"></a> | ||
| ### Nested Schema for `member_users` | ||
|
|
||
| Read-Only: | ||
|
|
||
| - `email` (String) The email of the user. | ||
| - `first_name` (String) The first name of the user. | ||
| - `last_name` (String) The last name of the user. | ||
| - `user_id` (String) The unique identifier of the user. | ||
|
|
||
|
|
This file contains hidden or 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,72 @@ | ||
| --- | ||
| # generated by https://github.com/hashicorp/terraform-plugin-docs | ||
| page_title: "singlestoredb_teams Data Source - terraform-provider-singlestoredb" | ||
| subcategory: "" | ||
| description: |- | ||
| This data source provides a list of teams that the user has access to. | ||
| --- | ||
|
|
||
| # singlestoredb_teams (Data Source) | ||
|
|
||
| This data source provides a list of teams that the user has access to. | ||
|
|
||
| ## Example Usage | ||
|
|
||
| ```terraform | ||
| provider "singlestoredb" { | ||
| // The SingleStoreDB Terraform provider uses the SINGLESTOREDB_API_KEY environment variable for authentication. | ||
| // Please set this environment variable with your SingleStore Management API key. | ||
| // You can generate this key from the SingleStore Portal at https://portal.singlestore.com/organizations/org-id/api-keys. | ||
| } | ||
|
|
||
| data "singlestoredb_teams" "all" {} | ||
|
|
||
| output "all_teams" { | ||
| value = data.singlestoredb_teams.all | ||
| } | ||
| ``` | ||
|
|
||
| <!-- schema generated by tfplugindocs --> | ||
| ## Schema | ||
|
|
||
| ### Read-Only | ||
|
|
||
| - `id` (String) The ID of this resource. | ||
| - `teams` (Attributes List) (see [below for nested schema](#nestedatt--teams)) | ||
|
|
||
| <a id="nestedatt--teams"></a> | ||
| ### Nested Schema for `teams` | ||
|
|
||
| Required: | ||
|
|
||
| - `id` (String) The unique identifier of the team. | ||
|
|
||
| Read-Only: | ||
|
|
||
| - `created_at` (String) The timestamp of when the team was created. | ||
| - `description` (String) The description of the team. | ||
| - `member_teams` (Attributes List) List of teams that are members of this team. (see [below for nested schema](#nestedatt--teams--member_teams)) | ||
| - `member_users` (Attributes List) List of users that are members of this team. (see [below for nested schema](#nestedatt--teams--member_users)) | ||
| - `name` (String) The name of the team. | ||
|
|
||
| <a id="nestedatt--teams--member_teams"></a> | ||
| ### Nested Schema for `teams.member_teams` | ||
|
|
||
| Read-Only: | ||
|
|
||
| - `description` (String) The description of the team. | ||
| - `name` (String) The name of the team. | ||
| - `team_id` (String) The unique identifier of the team. | ||
|
|
||
|
|
||
| <a id="nestedatt--teams--member_users"></a> | ||
| ### Nested Schema for `teams.member_users` | ||
|
|
||
| Read-Only: | ||
|
|
||
| - `email` (String) The email of the user. | ||
| - `first_name` (String) The first name of the user. | ||
| - `last_name` (String) The last name of the user. | ||
| - `user_id` (String) The unique identifier of the user. | ||
|
|
||
|
|
||
This file contains hidden or 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,52 @@ | ||
| --- | ||
| # generated by https://github.com/hashicorp/terraform-plugin-docs | ||
| page_title: "singlestoredb_team Resource - terraform-provider-singlestoredb" | ||
| subcategory: "" | ||
| description: |- | ||
| Manage SingleStoreDB teams with this resource. | ||
| --- | ||
|
|
||
| # singlestoredb_team (Resource) | ||
|
|
||
| Manage SingleStoreDB teams with this resource. | ||
|
|
||
| ## Example Usage | ||
|
|
||
| ```terraform | ||
| provider "singlestoredb" { | ||
| // The SingleStoreDB Terraform provider uses the SINGLESTOREDB_API_KEY environment variable for authentication. | ||
| // Please set this environment variable with your SingleStore Management API key. | ||
| // You can generate this key from the SingleStore Portal at https://portal.singlestore.com/organizations/org-id/api-keys. | ||
| } | ||
|
|
||
| resource "singlestoredb_team" "this" { | ||
| name = "terrafrom-test-team" | ||
| description = "Terrafrom test team" | ||
oyeliseiev-ua marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| member_users = [] | ||
| member_teams = [] | ||
| } | ||
|
|
||
| output "singlestoredb_team_id" { | ||
| value = singlestoredb_team.this.id | ||
| } | ||
| ``` | ||
|
|
||
| <!-- schema generated by tfplugindocs --> | ||
| ## Schema | ||
|
|
||
| ### Required | ||
|
|
||
| - `name` (String) The name of the team. | ||
|
|
||
| ### Optional | ||
|
|
||
| - `description` (String) The description of the team. | ||
| - `member_teams` (List of String) List of team UUIDs that are members of this team. | ||
| - `member_users` (List of String) List of user UUIDs that are members of this team. | ||
oyeliseiev-ua marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| ### Read-Only | ||
|
|
||
| - `created_at` (String) The timestamp of when the team was created. | ||
| - `id` (String) The unique identifier of the team. | ||
|
|
||
|
|
||
This file contains hidden or 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,13 @@ | ||
| provider "singlestoredb" { | ||
| // The SingleStoreDB Terraform provider uses the SINGLESTOREDB_API_KEY environment variable for authentication. | ||
| // Please set this environment variable with your SingleStore Management API key. | ||
| // You can generate this key from the SingleStore Portal at https://portal.singlestore.com/organizations/org-id/api-keys. | ||
| } | ||
|
|
||
| data "singlestoredb_team" "this" { | ||
| id = "24f31e2d-847f-4a62-9a93-a10e9bcd0dae" # Replace with the actual ID of the team. | ||
| } | ||
|
|
||
| output "this_team" { | ||
| value = data.singlestoredb_team.this | ||
| } |
This file contains hidden or 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,11 @@ | ||
| provider "singlestoredb" { | ||
| // The SingleStoreDB Terraform provider uses the SINGLESTOREDB_API_KEY environment variable for authentication. | ||
| // Please set this environment variable with your SingleStore Management API key. | ||
| // You can generate this key from the SingleStore Portal at https://portal.singlestore.com/organizations/org-id/api-keys. | ||
| } | ||
|
|
||
| data "singlestoredb_teams" "all" {} | ||
|
|
||
| output "all_teams" { | ||
| value = data.singlestoredb_teams.all | ||
| } |
This file contains hidden or 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 hidden or 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,16 @@ | ||
| provider "singlestoredb" { | ||
| // The SingleStoreDB Terraform provider uses the SINGLESTOREDB_API_KEY environment variable for authentication. | ||
| // Please set this environment variable with your SingleStore Management API key. | ||
| // You can generate this key from the SingleStore Portal at https://portal.singlestore.com/organizations/org-id/api-keys. | ||
| } | ||
|
|
||
| resource "singlestoredb_team" "this" { | ||
| name = "terrafrom-test-team" | ||
| description = "Terrafrom test team" | ||
| member_users = [] | ||
| member_teams = [] | ||
| } | ||
|
|
||
| output "singlestoredb_team_id" { | ||
| value = singlestoredb_team.this.id | ||
| } |
This file contains hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.