Added RefreshCellularPlans support (#809)

This commit is contained in:
Ayush Sharma
2022-03-20 02:55:15 +05:30
committed by GitHub
parent 1f44de09b5
commit 96e15ff9f2
11 changed files with 746 additions and 573 deletions

View 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@-