|
| 1 | +--- |
| 2 | +# generated by https://github.com/hashicorp/terraform-plugin-docs |
| 3 | +page_title: "singlestoredb_teams Data Source - terraform-provider-singlestoredb" |
| 4 | +subcategory: "" |
| 5 | +description: |- |
| 6 | + This data source provides a list of teams that the user has access to. |
| 7 | +--- |
| 8 | + |
| 9 | +# singlestoredb_teams (Data Source) |
| 10 | + |
| 11 | +This data source provides a list of teams that the user has access to. |
| 12 | + |
| 13 | +## Example Usage |
| 14 | + |
| 15 | +```terraform |
| 16 | +provider "singlestoredb" { |
| 17 | + // The SingleStoreDB Terraform provider uses the SINGLESTOREDB_API_KEY environment variable for authentication. |
| 18 | + // Please set this environment variable with your SingleStore Management API key. |
| 19 | + // You can generate this key from the SingleStore Portal at https://portal.singlestore.com/organizations/org-id/api-keys. |
| 20 | +} |
| 21 | +
|
| 22 | +data "singlestoredb_teams" "all" {} |
| 23 | +
|
| 24 | +output "all_teams" { |
| 25 | + value = data.singlestoredb_teams.all |
| 26 | +} |
| 27 | +``` |
| 28 | + |
| 29 | +<!-- schema generated by tfplugindocs --> |
| 30 | +## Schema |
| 31 | + |
| 32 | +### Read-Only |
| 33 | + |
| 34 | +- `id` (String) The ID of this resource. |
| 35 | +- `teams` (Attributes List) (see [below for nested schema](#nestedatt--teams)) |
| 36 | + |
| 37 | +<a id="nestedatt--teams"></a> |
| 38 | +### Nested Schema for `teams` |
| 39 | + |
| 40 | +Required: |
| 41 | + |
| 42 | +- `id` (String) The unique identifier of the team. |
| 43 | + |
| 44 | +Read-Only: |
| 45 | + |
| 46 | +- `created_at` (String) The timestamp of when the team was created. |
| 47 | +- `description` (String) The description of the team. |
| 48 | +- `member_teams` (Attributes List) List of teams that are members of this team. (see [below for nested schema](#nestedatt--teams--member_teams)) |
| 49 | +- `member_users` (Attributes List) List of users that are members of this team. (see [below for nested schema](#nestedatt--teams--member_users)) |
| 50 | +- `name` (String) The name of the team. |
| 51 | + |
| 52 | +<a id="nestedatt--teams--member_teams"></a> |
| 53 | +### Nested Schema for `teams.member_teams` |
| 54 | + |
| 55 | +Read-Only: |
| 56 | + |
| 57 | +- `description` (String) The description of the team. |
| 58 | +- `name` (String) The name of the team. |
| 59 | +- `team_id` (String) The unique identifier of the team. |
| 60 | + |
| 61 | + |
| 62 | +<a id="nestedatt--teams--member_users"></a> |
| 63 | +### Nested Schema for `teams.member_users` |
| 64 | + |
| 65 | +Read-Only: |
| 66 | + |
| 67 | +- `email` (String) The email of the user. |
| 68 | +- `first_name` (String) The first name of the user. |
| 69 | +- `last_name` (String) The last name of the user. |
| 70 | +- `user_id` (String) The unique identifier of the user. |
| 71 | + |
| 72 | + |
0 commit comments