Skip to content

Commit

Permalink
Add team doc
Browse files Browse the repository at this point in the history
  • Loading branch information
palson-cf committed Jul 13, 2020
1 parent ee58331 commit 4c5fc24
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 2 deletions.
2 changes: 1 addition & 1 deletion codefresh/resource_team.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func resourceTeam() *schema.Resource {
Type: schema.TypeSet,
Optional: true,
Elem: &schema.Schema{
Type: schema.TypeString,
Type: schema.TypeString,g
},
},
},
Expand Down
1 change: 0 additions & 1 deletion docs/resources/api-key.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,3 @@ resource "codefresh_team" "team_1" {

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

32 changes: 32 additions & 0 deletions docs/resources/team.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Team resource

Team is used as a part of access control and allow to define what teams have access to which clusters and pipelines.
See the [documentation](https://codefresh.io/docs/docs/administration/access-control/).

## Example usage

```hcl
resource "codefresh_team" "developers" {
name = "developers"
users = [
"5efc3cb6355c6647041b6e49",
"59009221c102763beda7cf04"
]
}
```

## Argument Reference

- `name` - (Required) The display name for the team.
- `type` - (Optional) The type of the team. Possible values:
- __default__
- __admin__
- `tags` - (Optional) A list of tags to mark a team for easy management.
- `users` - (Optional) A list of user IDs that should be in the team.

## Attributes Reference

- `id` - The Team ID.
- `account_id` - The relevant Account ID.

0 comments on commit 4c5fc24

Please sign in to comment.