Files
threshold/internal/tests/cli/boundary/_managed_groups.bash
T
429247f407 [COMPLIANCE] Update Copyright Headers (#6282)
* [COMPLIANCE] Update Copyright and License Headers

* chore: make gen to generate files with copyright headers

* chore: update missed copyright headers

---------

Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com>
Co-authored-by: Justin Nguyen <justin.nguyen@hashicorp.com>
2026-01-28 11:05:07 -06:00

36 lines
921 B
Bash

# Copyright IBM Corp. 2020, 2025
# SPDX-License-Identifier: BUSL-1.1
function create_ldap_managed_group() {
local amid=$1
local name=$2
local gnames=$3
boundary managed-groups create ldap -auth-method-id $amid -name $name -group-names $gnames -format json
}
function read_managed_group() {
local mgid=$1
boundary managed-groups read -id $mgid -format json
}
function list_managed_groups() {
local amid=$1
boundary managed-groups list -auth-method-id $amid -format json
}
function update_ldap_managed_group() {
local $mgid=$1
boundary managed-groups update ldap -id $mgid -description "TEST"
}
function delete_managed_group() {
local mgid=$1
boundary managed-groups delete -id $mgid -format json
}
function managed_group_id() {
local amid=$1
local name=$2
strip $(list_managed_groups $amid | jq -c ".items[] | select(.name != null) | select(.name | contains(\"$name\")) | .[\"id\"]")
}