-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #155 from jfrog/add-group-resource
Add 'platform_group' resource
- Loading branch information
Showing
10 changed files
with
691 additions
and
7 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
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,54 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "platform_group Resource - terraform-provider-platform" | ||
subcategory: "" | ||
description: |- | ||
Provides a group resource. This can be used to create and manage groups. A group represents a role in the system and is assigned a set of permissions. | ||
--- | ||
|
||
# platform_group (Resource) | ||
|
||
Provides a group resource. This can be used to create and manage groups. A group represents a role in the system and is assigned a set of permissions. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "platform_group" "my-group" { | ||
name = "my-group" | ||
description = "My group" | ||
external_id = "My Azure ID" | ||
auto_join = true | ||
admin_privileges = false | ||
members = [ | ||
"admin" | ||
] | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `name` (String) Name of the group. | ||
|
||
### Optional | ||
|
||
- `admin_privileges` (Boolean) Any users added to this group will automatically be assigned with admin privileges in the system. | ||
- `auto_join` (Boolean) When this parameter is set, any new users defined in the system are automatically assigned to this group. | ||
- `description` (String) A description for the group. | ||
- `external_id` (String) New external group ID used to configure the corresponding group in Azure AD. | ||
- `members` (Set of String) List of users assigned to the group. | ||
|
||
### Read-Only | ||
|
||
- `realm` (String) The realm for the group. | ||
- `realm_attributes` (String) The realm for the group. | ||
|
||
## Import | ||
|
||
Import is supported using the following syntax: | ||
|
||
```shell | ||
terraform import platform_group.my-group my-group | ||
``` |
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 @@ | ||
terraform import platform_group.my-group my-group |
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,10 @@ | ||
resource "platform_group" "my-group" { | ||
name = "my-group" | ||
description = "My group" | ||
external_id = "My Azure ID" | ||
auto_join = true | ||
admin_privileges = false | ||
members = [ | ||
"admin" | ||
] | ||
} |
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
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
Oops, something went wrong.