-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PLT-1480:Added permission attribute support (#539)
- Loading branch information
1 parent
f5d27fc
commit 1cee37c
Showing
5 changed files
with
50 additions
and
10 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 |
---|---|---|
@@ -1,6 +1,14 @@ | ||
data "spectrocloud_role" "role1" { | ||
name = "Project Editor" | ||
data "spectrocloud_role" "role" { | ||
name = "Resource Cluster Admin" | ||
|
||
# (alternatively) | ||
# id = "5fd0ca727c411c71b55a359c" | ||
# id = "66fbea622947f81fb62294ac" | ||
} | ||
|
||
output "role_id" { | ||
value = data.spectrocloud_role.role.id | ||
} | ||
|
||
output "role_permissions" { | ||
value = data.spectrocloud_role.role.permissions | ||
} |
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