-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PLT-1470: Added data source support for team.
- Loading branch information
1 parent
c42423d
commit 9ec3e95
Showing
3 changed files
with
46 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "spectrocloud_team Data Source - terraform-provider-spectrocloud" | ||
subcategory: "" | ||
description: |- | ||
--- | ||
|
||
# spectrocloud_team (Data Source) | ||
|
||
|
||
|
||
## Example Usage | ||
|
||
```terraform | ||
data "spectrocloud_team" "team1" { | ||
name = "team2" | ||
# (alternatively) | ||
# id = "5fd0ca727c411c71b55a359c" | ||
} | ||
output "team-id" { | ||
value = data.spectrocloud_team.team1.id | ||
} | ||
output "team-role-ids" { | ||
value = data.spectrocloud_team.team1.role_ids | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Optional | ||
|
||
- `id` (String) The unique ID of the team. If provided, `name` cannot be used. | ||
- `name` (String) The name of the team. If provided, `id` cannot be used. | ||
|
||
### Read-Only | ||
|
||
- `role_ids` (List of String) The roles id's assigned to 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
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