Files
threshold/internal/tests/cli/boundary/_sessions.bash
T
Jeff Mitchell 72aa110f72 CLI JSON updates (#962)
See Changelog for details.
2021-02-25 12:43:17 -05:00

18 lines
305 B
Bash

load _authorized_actions
function list_sessions() {
boundary sessions list -scope-id $1 -format json
}
function count_sessions() {
list_sessions $1 | jq '.items | length'
}
function cancel_session() {
boundary sessions cancel -id $1
}
function read_session() {
boundary sessions read -id $1
}