mirror of
https://github.com/micromdm/micromdm/
synced 2026-08-07 18:15:47 +08:00
Add raw command and clear device queue endpoints (#864)
This commit is contained in:
5
tools/api/clear_queue
Executable file
5
tools/api/clear_queue
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
source $MICROMDM_ENV_PATH
|
||||
endpoint="v1/commands/$1"
|
||||
|
||||
curl $CURL_OPTS -K <(cat <<< "-u micromdm:$API_TOKEN") -X DELETE "$SERVER_URL/$endpoint"
|
||||
6
tools/api/raw_command
Executable file
6
tools/api/raw_command
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
# raw_cmd $udid $path/to/cmd.plist
|
||||
source $MICROMDM_ENV_PATH
|
||||
endpoint="v1/commands/$1"
|
||||
|
||||
curl $CURL_OPTS -K <(cat <<< "-u micromdm:$API_TOKEN") --data "@$2" "$SERVER_URL/$endpoint"
|
||||
Reference in New Issue
Block a user