You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lookup all teams assigned to a custom organization role.
5
+
Data source to list all teams assigned to a custom organization role.
5
6
---
6
7
7
8
# github_organization_role_teams (Data Source)
8
9
9
-
Lookup all teams assigned to a custom organization role.
10
+
Data source to list all teams assigned to a custom organization role.
10
11
11
12
## Example Usage
12
13
@@ -16,21 +17,74 @@ data "github_organization_role_teams" "example" {
16
17
}
17
18
```
18
19
20
+
<!--
19
21
## Schema
20
22
21
23
### Required
22
24
23
-
-`role_id` (Number) The ID of the organization role.
25
+
- `role_id` (Number) ID of the organization role.
24
26
25
27
### Read-Only
26
28
27
-
-`teams` (Set of Object, see [schema](#nested-schema-for-teams)) Teams assigned to the organization role.
29
+
- `id` (String) The ID of this resource.
30
+
- `teams` (List of Object) Teams assigned to the organization role. (see [below for nested schema](#nestedatt--teams))
28
31
29
-
## Nested Schema for `teams`
32
+
<a id="nestedatt--teams"></a>
33
+
### Nested Schema for `teams`
34
+
35
+
Read-Only:
36
+
37
+
- `assignment` (String)
38
+
- `description` (String)
39
+
- `id` (Number)
40
+
- `name` (String)
41
+
- `parent_team` (List of Object) (see [below for nested schema](#nestedobjatt--teams--parent_team))
42
+
- `permission` (String)
43
+
- `privacy` (String)
44
+
- `slug` (String)
45
+
- `team_id` (Number)
46
+
- `type` (String)
47
+
48
+
<a id="nestedobjatt--teams--parent_team"></a>
49
+
### Nested Schema for `teams.parent_team`
50
+
51
+
Read-Only:
52
+
53
+
- `id` (Number)
54
+
- `slug` (String)
55
+
-->
56
+
57
+
## Schema
58
+
59
+
### Required
60
+
61
+
-`role_id` (Number) ID of the organization role.
30
62
31
63
### Read-Only
32
64
33
-
-`team_id` (Number) The ID of the team.
34
-
-`slug` (String) The Slug of the team name.
35
-
-`name` (String) The name of the team.
36
-
-`permission` (String) The permission that the team will have for its repositories.
65
+
-`id` (String) The ID of this resource.
66
+
-`teams` (List of Object) Teams assigned to the organization role. (see [below for nested schema](#nestedatt--teams))
67
+
68
+
<aid="nestedatt--teams"></a>
69
+
### Nested Schema for `teams`
70
+
71
+
Read-Only:
72
+
73
+
-`assignment` (String) Relationship a team has with a role; one of `direct`, `indirect`, or `mixed`.
74
+
-`description` (String) Description of the team.
75
+
-`id` (Number) ID of the team.
76
+
-`name` (String) Name of the team.
77
+
-`parent_team` (List of Object) Parent team; only set if this is an indirect assignment. (see [below for nested schema](#nestedobjatt--teams--parent_team))
78
+
-`permission` (String) Legacy default repository permission for the team (typically pull, push, or admin), used when adding a repository without specifying an explicit permission. This does not represent effective access for all repositories or custom repository roles.
79
+
-`privacy` (String) Privacy level of the team; one of `secret` or `closed`.
80
+
-`slug` (String) Slug of the team name.
81
+
-`team_id` (Number, Deprecated) ID of the team.
82
+
-`type` (String) Ownership type of the team; one of `enterprise` or `organization`.
0 commit comments