mirror of
https://github.com/empayre/fleet.git
synced 2024-11-07 01:15:22 +00:00
7a68e3de65
- Support both /api/v1/fleet and /api/v1/kolide routes in server. - Add logging for use of deprecated routes. - Rename routes in frontend JS. - Rename routes and add notes in documentation.
15 lines
364 B
Bash
Executable File
15 lines
364 B
Bash
Executable File
#!/bin/bash
|
|
source $FLEET_ENV_PATH
|
|
endpoint="api/v1/fleet/schedule"
|
|
jq -n \
|
|
--arg pack_id "$1" \
|
|
--arg query_id "$2" \
|
|
'.pack_id = ($pack_id|tonumber)
|
|
|.query_id = ($query_id|tonumber)
|
|
|.interval = 60
|
|
|.removed = false
|
|
|.snapshot = true
|
|
|.platform = "darwin"
|
|
'|\
|
|
curl $CURL_FLAGS -H "Authorization: Bearer $TOKEN" "$SERVER_URL/$endpoint" -d@-
|