mirror of
https://github.com/micromdm/micromdm/
synced 2026-08-07 10:05:48 +08:00
tools: add device_configured script
This commit is contained in:
11
tools/api/commands/device_configured
Executable file
11
tools/api/commands/device_configured
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
source $MICROMDM_ENV_PATH
|
||||
endpoint="v1/commands"
|
||||
jq -n \
|
||||
--arg request_type "DeviceConfigured" \
|
||||
--arg udid "$1" \
|
||||
--arg query_strings "$2" \
|
||||
'.udid = $udid
|
||||
|.request_type = $request_type
|
||||
'|\
|
||||
curl $CURL_OPTS -u "micromdm:$API_TOKEN" "$SERVER_URL/$endpoint" -d@-
|
||||
Reference in New Issue
Block a user