You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
508 B
26 lines
508 B
#!/bin/sh
|
|
|
|
if [ -z "$1" ]
|
|
then
|
|
echo "No argument uid (1 of 3)"
|
|
exit 1
|
|
fi
|
|
|
|
if [ -z "$2" ]
|
|
then
|
|
echo "No argument email (2 of 3)"
|
|
exit 1
|
|
fi
|
|
|
|
if [ -z "$3" ]
|
|
then
|
|
echo "No argument password (3 of 3)"
|
|
exit 1
|
|
fi
|
|
|
|
curl --location --request POST 'http://{ingress_address}/api/v1/registration' \
|
|
--header 'Content-Type: application/x-www-form-urlencoded' \
|
|
--data-urlencode uid=""$1"" \
|
|
--data-urlencode email=""$2"" \
|
|
--data-urlencode password=""$3""
|
|
echo ""
|
|
|