mirror of
https://github.com/micromdm/micromdm/
synced 2026-08-08 02:25:34 +08:00
Added RefreshCellularPlans support (#809)
This commit is contained in:
12
tools/api/commands/refresh_cellular_plans
Normal file
12
tools/api/commands/refresh_cellular_plans
Normal file
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
source $MICROMDM_ENV_PATH
|
||||
endpoint="v1/commands"
|
||||
jq -n \
|
||||
--arg request_type "RefreshCellularPlans" \
|
||||
--arg udid "$1" \
|
||||
--arg esim_server_url $2 \
|
||||
'.udid = $udid
|
||||
|.esim_server_url = $esim_server_url
|
||||
|.request_type = $request_type
|
||||
'|\
|
||||
curl $CURL_OPTS -K <(cat <<< "-u micromdm:$API_TOKEN") "$SERVER_URL/$endpoint" -d@-
|
||||
Reference in New Issue
Block a user