Skip to content

Commit fdf0020

Browse files
committed
Add user op creation script
1 parent 65428c5 commit fdf0020

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

scripts/dmt/create_user_op.sh

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/usr/bin/env bash
2+
3+
set -o errexit
4+
set -o pipefail
5+
set -o errtrace
6+
7+
export CHARSET=UTF-8
8+
export LANG=C.UTF-8
9+
10+
EMAIL=${1}
11+
12+
NAME=${1}
13+
14+
USER_OP_PARAMS=$(cat <<END
15+
{
16+
"email": "${EMAIL}",
17+
"name": "${NAME}"
18+
}
19+
END
20+
)
21+
22+
woorl -s "damsel/proto/domain_config_v2.thrift" "http://dmt:8022/v1/domain/user_op" UserOpManagement Create "${USER_OP_PARAMS}" |
23+
jq -r '.id'

0 commit comments

Comments
 (0)