feat: Add boundary_group data source (#503)
* refact: Move groupMemberIdsKey const * feat: Add `boundary_group` data source * CR
This commit is contained in:
1 parent
13f6a2497d
commit
dc3adfa96a
9 files changed
+348
-18
No files matched your search
@@ -0,0 +1,15 @@
|
||||
# Retrieve a user from the global scope
|
||||
data "boundary_group" "global_group" {
|
||||
name = "admin"
|
||||
}
|
||||
|
||||
# User from an org scope
|
||||
data "boundary_scope" "org" {
|
||||
name = "org"
|
||||
scope_id = "global"
|
||||
}
|
||||
|
||||
data "boundary_group" "org_group" {
|
||||
name = "username"
|
||||
scope_id = data.boundary_scope.org.id
|
||||
}
|
||||
@@ -1,11 +1,9 @@
|
||||
# Retrieve a user from the global scope
|
||||
|
||||
data "boundary_user" "global_scope_admin" {
|
||||
name = "admin"
|
||||
}
|
||||
|
||||
# User from a org scope
|
||||
|
||||
data "boundary_user" "org_user" {
|
||||
name = "username"
|
||||
scope_id = data.boundary_scope.org.id
|
||||
|
||||
Reference in new issue
Block a user