Files
threshold/internal/tests/cli/boundary/_sessions.bash
T

17 lines
305 B
Bash
Raw Normal View History

load _authorized_actions
function list_sessions() {
boundary sessions list -scope-id $1 -format json
}
function count_sessions() {
2021-02-25 12:43:17 -05:00
list_sessions $1 | jq '.items | length'
}
function cancel_session() {
boundary sessions cancel -id $1
}
function read_session() {
boundary sessions read -id $1
2021-02-25 12:43:17 -05:00
}