Adding tree import.

This commit is contained in:
stephb9959
2021-09-08 12:39:04 -07:00
parent 79b2742f36
commit e1cb55883e
3 changed files with 20 additions and 19 deletions

View File

@@ -181,7 +181,7 @@ gettag() {
}
addtag() {
payload="{ \"name\" : \"$1\",\"entity\" : \"$2\", \"serialNumber\" : \"$1\", \"deviceType\" : \"linksys_ea8300\" }";
payload="{ \"name\" : \"$1\", \"serialNumber\" : \"$1\", \"deviceType\" : \"linksys_ea8300\" }";
curl ${FLAGS} -X POST "https://${OWPROV}/api/v1/inventory/1" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${token}" \
@@ -372,7 +372,7 @@ case "$1" in
"tree") login; tree ; logout;;
"importtree") login; importtree $2; logout;;
"deviceconfig") login; deviceconfig "$2"; logout;;
"addtag") login; addtag $2 $3; logout;;
"addtag") login; addtag "$2"; logout;;
"unassigntag") login; unassigntag $2; logout;;
"addunassignedtag") login; addunassignedtag $2 ; logout;;
"getunassignedtags") login; getunassignedtags ; logout;;