Adding tree import.

This commit is contained in:
stephb9959
2021-09-08 10:55:55 -07:00
parent ab34083186
commit 8784e82700
4 changed files with 11 additions and 45 deletions

View File

@@ -332,13 +332,11 @@ listconfigs() {
}
deviceconfig() {
gettag() {
curl ${FLAGS} "https://${OWPROV}/api/v1/inventory/$1?config=true" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${token}" \
-H "accept: application/json" > ${result_file}
jq < ${result_file}
}
curl ${FLAGS} "https://${OWPROV}/api/v1/inventory/$1?config=true" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${token}" \
-H "accept: application/json" > ${result_file}
jq < ${result_file}
}
shopt -s nocasematch