-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cccead7
commit 5e18d2a
Showing
3 changed files
with
38 additions
and
26 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 |
---|---|---|
@@ -1,34 +1,39 @@ | ||
# Data Source: team | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "buildkite_team Data Source - terraform-provider-buildkite" | ||
subcategory: "" | ||
description: |- | ||
Use this data source to retrieve a team by slug or id. You can find out more about clusters in the Buildkite | ||
documentation https://buildkite.com/docs/pipelines/permissions. | ||
--- | ||
|
||
Use this data source to look up properties of a team. This can be used to | ||
validate that a team exists before setting the team slug on a pipeline. | ||
# buildkite_team (Data Source) | ||
|
||
Buildkite documentation: https://buildkite.com/docs/pipelines/permissions | ||
Use this data source to retrieve a team by slug or id. You can find out more about clusters in the Buildkite | ||
[documentation](https://buildkite.com/docs/pipelines/permissions). | ||
|
||
## Example Usage | ||
|
||
```hcl | ||
data "buildkite_team" "my_team_data" { | ||
id = "<team id>" | ||
```terraform | ||
data "buildkite_team" "team" { | ||
id = "Everyone" | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
One of: | ||
* `id` - The GraphQL ID of the team, available in the Settings page for the team. | ||
* `slug` - The slug of the team. Available in the URL of the team on buildkite.com; in the format | ||
"<organizaton/team-name>" | ||
### Optional | ||
|
||
The `team` data-source supports **either** the use of `id` or `slug` for lookup of a team. | ||
- `id` (String) The ID of the team to find. Use either ID or slug. | ||
- `slug` (String) The slug of the team to find. Use either ID or slug. | ||
|
||
## Attribute Reference | ||
### Read-Only | ||
|
||
* `id` - The GraphQL ID of the team | ||
* `uuid` - The UUID of the team | ||
* `name` - The name of the team | ||
* `privacy` - Whether the team is visible to org members outside this team | ||
* `description` - A description of the team | ||
* `default_team` - Whether new org members will be automatically added to this team | ||
* `default_member_role` - Default role to assign to a team member | ||
* `members_can_create_pipelines` - Whether team members can create new pipelines and add them to the team | ||
- `default_member_role` (String) The default member role of the team. | ||
- `default_team` (Boolean) Whether the team is the default team. | ||
- `description` (String) The description of the team. | ||
- `members_can_create_pipelines` (Boolean) Whether members can create pipelines. | ||
- `name` (String) The name of the team. | ||
- `privacy` (String) The privacy setting of the team. | ||
- `uuid` (String) The UUID of the team. |
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,3 @@ | ||
data "buildkite_team" "team" { | ||
id = "Everyone" | ||
} |