|
| 1 | +--- |
| 2 | +layout: "tfe" |
| 3 | +page_title: "Terraform Enterprise: tfe_teams" |
| 4 | +description: |- |
| 5 | + Get information on Teams. |
| 6 | +--- |
| 7 | + |
| 8 | + |
| 9 | +<!-- Please do not edit this file, it is generated. --> |
| 10 | +# Data Source: tfe_teams |
| 11 | + |
| 12 | +Use this data source to get a list of Teams in an Organization and a map of their IDs. The Teams returned may be a subset of all teams in an Organization based on the permissions of the API token. |
| 13 | + |
| 14 | +## Example Usage |
| 15 | + |
| 16 | +```python |
| 17 | +# DO NOT EDIT. Code generated by 'cdktf convert' - Please report bugs at https://cdk.tf/bug |
| 18 | +from constructs import Construct |
| 19 | +from cdktf import TerraformStack |
| 20 | +# |
| 21 | +# Provider bindings are generated by running `cdktf get`. |
| 22 | +# See https://cdk.tf/provider-generation for more details. |
| 23 | +# |
| 24 | +from imports.tfe. import DataTfeTeams |
| 25 | +class MyConvertedCode(TerraformStack): |
| 26 | + def __init__(self, scope, name): |
| 27 | + super().__init__(scope, name) |
| 28 | + DataTfeTeams(self, "foo", |
| 29 | + organization="my-org-name" |
| 30 | + ) |
| 31 | +``` |
| 32 | + |
| 33 | +## Argument Reference |
| 34 | + |
| 35 | +The following arguments are supported: |
| 36 | + |
| 37 | +* `organization` - (Optional) Name of the organization. |
| 38 | + |
| 39 | +## Attributes Reference |
| 40 | + |
| 41 | +In addition to all arguments above, the following attributes are exported: |
| 42 | +* `id` - Name of the organization. |
| 43 | +* `names` - A list of team names in an organization. |
| 44 | +* `ids` - A map of team names in an organization and their IDs. |
| 45 | +<!-- cache-key: cdktf-0.18.0 input-cf3ee1827f2be48f369b644c694e42391fe00d2d4bd827ba913b0bf211d958c0 --> |
0 commit comments