Skip to content

Commit 4c5fc24

Browse files
committed
Add team doc
1 parent ee58331 commit 4c5fc24

File tree

3 files changed

+33
-2
lines changed

3 files changed

+33
-2
lines changed

codefresh/resource_team.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func resourceTeam() *schema.Resource {
3939
Type: schema.TypeSet,
4040
Optional: true,
4141
Elem: &schema.Schema{
42-
Type: schema.TypeString,
42+
Type: schema.TypeString,g
4343
},
4444
},
4545
},

docs/resources/api-key.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,4 +91,3 @@ resource "codefresh_team" "team_1" {
9191

9292
- `id` - The Key ID.
9393
- `token` - The Token, that should used as a new provider's token attribute.
94-

docs/resources/team.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Team resource
2+
3+
Team is used as a part of access control and allow to define what teams have access to which clusters and pipelines.
4+
See the [documentation](https://codefresh.io/docs/docs/administration/access-control/).
5+
6+
## Example usage
7+
8+
```hcl
9+
resource "codefresh_team" "developers" {
10+
11+
name = "developers"
12+
13+
users = [
14+
"5efc3cb6355c6647041b6e49",
15+
"59009221c102763beda7cf04"
16+
]
17+
}
18+
```
19+
20+
## Argument Reference
21+
22+
- `name` - (Required) The display name for the team.
23+
- `type` - (Optional) The type of the team. Possible values:
24+
- __default__
25+
- __admin__
26+
- `tags` - (Optional) A list of tags to mark a team for easy management.
27+
- `users` - (Optional) A list of user IDs that should be in the team.
28+
29+
## Attributes Reference
30+
31+
- `id` - The Team ID.
32+
- `account_id` - The relevant Account ID.

0 commit comments

Comments
 (0)