Skip to content

Commit

Permalink
Add API persona support to the permission_set data source (#275)
Browse files Browse the repository at this point in the history
  • Loading branch information
martezr authored Sep 10, 2024
1 parent fcdb001 commit 4d1f89a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

NOTES:

* Added support for the new API persona to the `morpheus_permission_set` data source. [264](https://github.com/gomorpheus/terraform-provider-morpheus/issues/264)
* Fixed the `morpheus_power_schedule_policy` from throwing an error when applying the resource due to an issue with the code. [272](https://github.com/gomorpheus/terraform-provider-morpheus/issues/272)
* Added support for managing the Chef server integration. [270](https://github.com/gomorpheus/terraform-provider-morpheus/issues/270)
* Added support for managing the Chef bootstrap task. [269](https://github.com/gomorpheus/terraform-provider-morpheus/issues/269)
Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/permission_set.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ data "morpheus_permission_set" "override_set" {
- `default_cloud_permission` (String) The default role permission for clouds (none, read, full)
- `default_group_permission` (String) The default role permission for groups (none, read, full)
- `default_instance_type_permission` (String) The default role permission for instance types (none, full)
- `default_persona` (String) The default role persona (standard, serviceCatalog, vdi)
- `default_persona` (String) The default role persona (standard, serviceCatalog, vdi, api)
- `default_persona_permission` (String) The default role permission for personas (none, full)
- `default_report_type_permission` (String) The default role permission for report types (none, full)
- `default_task_permission` (String) The default role permission for tasks (none, full)
Expand Down Expand Up @@ -223,7 +223,7 @@ Optional:
Optional:

- `access` (String) The level of access granted to the persona (default, full, none)
- `code` (String) The code of the persona (standard, vdi, serviceCatalog)
- `code` (String) The code of the persona (standard, vdi, serviceCatalog, api)


<a id="nestedblock--report_type_permission"></a>
Expand Down
6 changes: 3 additions & 3 deletions morpheus/data_source_permission_set.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ func dataSourceMorpheusPermissionSet() *schema.Resource {
},
"default_persona": {
Type: schema.TypeString,
Description: "The default role persona (standard, serviceCatalog, vdi)",
Description: "The default role persona (standard, serviceCatalog, vdi, api)",
Optional: true,
Computed: true,
ValidateFunc: validation.StringInSlice([]string{"standard", "serviceCatalog", "vdi"}, true),
ValidateFunc: validation.StringInSlice([]string{"standard", "serviceCatalog", "vdi", "api"}, true),
},
"default_catalog_item_type_permission": {
Type: schema.TypeString,
Expand Down Expand Up @@ -227,7 +227,7 @@ func dataSourceMorpheusPermissionSet() *schema.Resource {
Schema: map[string]*schema.Schema{
"code": {
Type: schema.TypeString,
Description: "The code of the persona (standard, vdi, serviceCatalog)",
Description: "The code of the persona (standard, vdi, serviceCatalog, api)",
Optional: true,
},
"access": {
Expand Down

0 comments on commit 4d1f89a

Please sign in to comment.