mirror of
https://github.com/gravitl/netmaker.git
synced 2025-02-26 00:53:23 +08:00
17 lines
267 B
Bash
17 lines
267 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
USES=1000
|
||
|
|
||
|
generate_post_json ()
|
||
|
{
|
||
|
cat <<EOF
|
||
|
{
|
||
|
"uses": $USES
|
||
|
}
|
||
|
EOF
|
||
|
}
|
||
|
|
||
|
POST_JSON=$(generate_post_json)
|
||
|
|
||
|
curl --max-time 5.0 -d "$POST_JSON" -H 'Content-Type: application/json' -H "authorization: Bearer secretkey" localhost:8081/api/groups/skynet/keys
|