@itentialopensource/adapter-meraki 0.8.1 → 0.8.2
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +8 -0
- package/adapter.js +179 -519
- package/adapterBase.js +272 -2
- package/package.json +3 -3
- package/propertiesDecorators.json +14 -0
- package/propertiesSchema.json +339 -195
- package/refs?service=git-upload-pack +0 -0
- package/report/updateReport1651511176919.json +115 -0
- package/test/unit/adapterBaseTestUnit.js +1 -1
- package/test/unit/adapterTestUnit.js +5 -5
- package/utils/tbUtils.js +20 -7
package/propertiesSchema.json
CHANGED
@@ -843,217 +843,361 @@
|
|
843
843
|
"type": "object",
|
844
844
|
"properties": {
|
845
845
|
"getDevice": {
|
846
|
-
"type": "
|
847
|
-
"description": "Broker call to getDevice",
|
848
|
-
"
|
849
|
-
"
|
850
|
-
"
|
851
|
-
|
852
|
-
|
853
|
-
|
854
|
-
|
855
|
-
"
|
856
|
-
|
857
|
-
|
858
|
-
|
859
|
-
|
860
|
-
"
|
861
|
-
|
862
|
-
|
863
|
-
|
864
|
-
|
865
|
-
|
866
|
-
|
867
|
-
"
|
868
|
-
|
869
|
-
|
870
|
-
|
871
|
-
|
872
|
-
|
873
|
-
|
874
|
-
|
875
|
-
|
876
|
-
|
877
|
-
|
878
|
-
|
879
|
-
|
880
|
-
|
881
|
-
"
|
882
|
-
|
883
|
-
|
884
|
-
|
885
|
-
|
886
|
-
|
887
|
-
|
888
|
-
|
889
|
-
|
890
|
-
"
|
891
|
-
|
892
|
-
|
893
|
-
|
894
|
-
|
895
|
-
|
896
|
-
|
897
|
-
|
846
|
+
"type": "array",
|
847
|
+
"description": "Broker call(s) to getDevice",
|
848
|
+
"items": {
|
849
|
+
"properties": {
|
850
|
+
"path": {
|
851
|
+
"type": "string",
|
852
|
+
"description": "The fully qualified path of the call to getDevice (e.g. /rest/api/device/{deviceid})",
|
853
|
+
"default": ""
|
854
|
+
},
|
855
|
+
"method": {
|
856
|
+
"type": "string",
|
857
|
+
"description": "The method of the call to getDevice",
|
858
|
+
"default": "GET"
|
859
|
+
},
|
860
|
+
"query": {
|
861
|
+
"type": "object",
|
862
|
+
"description": "The json object with query parameters of the call to getDevice",
|
863
|
+
"additionalProperties": {
|
864
|
+
"type": "string"
|
865
|
+
}
|
866
|
+
},
|
867
|
+
"body": {
|
868
|
+
"type": "object",
|
869
|
+
"description": "The json object with body of the call to getDevice",
|
870
|
+
"additionalProperties": {
|
871
|
+
"type": "string"
|
872
|
+
}
|
873
|
+
},
|
874
|
+
"headers": {
|
875
|
+
"type": "object",
|
876
|
+
"description": "The json object with headers of the call to getDevice",
|
877
|
+
"additionalProperties": {
|
878
|
+
"type": "string"
|
879
|
+
}
|
880
|
+
},
|
881
|
+
"handleFailure": {
|
882
|
+
"type": "string",
|
883
|
+
"enum": [
|
884
|
+
"ignore",
|
885
|
+
"fail"
|
886
|
+
],
|
887
|
+
"description": "return failure or ignore failure",
|
888
|
+
"default": "ignore"
|
889
|
+
},
|
890
|
+
"requestFields": {
|
891
|
+
"type": "object",
|
892
|
+
"description": "The json object with response fields of the call to getDevice",
|
893
|
+
"additionalProperties": {
|
894
|
+
"type": "string"
|
895
|
+
},
|
896
|
+
"properties": {}
|
897
|
+
},
|
898
|
+
"responseFields": {
|
899
|
+
"type": "object",
|
900
|
+
"description": "The json object with response fields of the call to getDevice",
|
901
|
+
"additionalProperties": {
|
902
|
+
"type": "string"
|
903
|
+
},
|
904
|
+
"properties": {
|
905
|
+
"name": {
|
906
|
+
"type": "string",
|
907
|
+
"description": "The field in response to getDevice that contains the name of the device",
|
908
|
+
"default": "name"
|
909
|
+
},
|
910
|
+
"ostype": {
|
911
|
+
"type": "string",
|
912
|
+
"description": "The field in response to getDevice that contains the ostype of the device",
|
913
|
+
"default": "ostype"
|
914
|
+
},
|
915
|
+
"ostypePrefix": {
|
916
|
+
"type": "string",
|
917
|
+
"description": "Any prefix that should be added to the ostype of the device (e.g. aws-)",
|
918
|
+
"default": ""
|
919
|
+
},
|
920
|
+
"port": {
|
921
|
+
"type": "string",
|
922
|
+
"description": "The field in response to getDevice that contains the port of the device",
|
923
|
+
"default": ""
|
924
|
+
},
|
925
|
+
"ip": {
|
926
|
+
"type": "string",
|
927
|
+
"description": "The field in response to getDevice that contains the ip address of the device",
|
928
|
+
"default": ""
|
929
|
+
}
|
930
|
+
}
|
931
|
+
}
|
898
932
|
}
|
899
933
|
}
|
900
934
|
},
|
901
935
|
"getDevicesFiltered": {
|
902
|
-
"type": "
|
903
|
-
"description": "Broker call to getDevicesFiltered",
|
904
|
-
"
|
905
|
-
"
|
906
|
-
"
|
907
|
-
|
908
|
-
|
909
|
-
|
910
|
-
|
911
|
-
"
|
912
|
-
|
913
|
-
|
914
|
-
|
915
|
-
|
916
|
-
"
|
917
|
-
|
918
|
-
|
919
|
-
|
920
|
-
|
921
|
-
|
922
|
-
|
923
|
-
"
|
924
|
-
|
925
|
-
|
926
|
-
|
927
|
-
|
928
|
-
|
929
|
-
|
930
|
-
|
931
|
-
|
932
|
-
|
933
|
-
|
934
|
-
|
935
|
-
|
936
|
-
|
937
|
-
"
|
938
|
-
|
939
|
-
|
940
|
-
|
941
|
-
|
942
|
-
|
943
|
-
|
944
|
-
|
945
|
-
|
946
|
-
"
|
947
|
-
|
948
|
-
|
949
|
-
|
950
|
-
|
951
|
-
|
952
|
-
|
953
|
-
|
936
|
+
"type": "array",
|
937
|
+
"description": "Broker call(s) to getDevicesFiltered",
|
938
|
+
"items": {
|
939
|
+
"properties": {
|
940
|
+
"path": {
|
941
|
+
"type": "string",
|
942
|
+
"description": "The fully qualified path of the call to getDevicesFiltered (e.g. /rest/api/device/{deviceid})",
|
943
|
+
"default": ""
|
944
|
+
},
|
945
|
+
"method": {
|
946
|
+
"type": "string",
|
947
|
+
"description": "The method of the call to getDevicesFiltered",
|
948
|
+
"default": "GET"
|
949
|
+
},
|
950
|
+
"query": {
|
951
|
+
"type": "object",
|
952
|
+
"description": "The json object with query parameters of the call to getDevicesFiltered",
|
953
|
+
"additionalProperties": {
|
954
|
+
"type": "string"
|
955
|
+
}
|
956
|
+
},
|
957
|
+
"body": {
|
958
|
+
"type": "object",
|
959
|
+
"description": "The json object with body of the call to getDevicesFiltered",
|
960
|
+
"additionalProperties": {
|
961
|
+
"type": "string"
|
962
|
+
}
|
963
|
+
},
|
964
|
+
"headers": {
|
965
|
+
"type": "object",
|
966
|
+
"description": "The json object with headers of the call to getDevicesFiltered",
|
967
|
+
"additionalProperties": {
|
968
|
+
"type": "string"
|
969
|
+
}
|
970
|
+
},
|
971
|
+
"handleFailure": {
|
972
|
+
"type": "string",
|
973
|
+
"enum": [
|
974
|
+
"ignore",
|
975
|
+
"fail"
|
976
|
+
],
|
977
|
+
"description": "return failure or ignore failure",
|
978
|
+
"default": "ignore"
|
979
|
+
},
|
980
|
+
"responseFields": {
|
981
|
+
"type": "object",
|
982
|
+
"description": "The json object with response fields of the call to getDevicesFiltered",
|
983
|
+
"additionalProperties": {
|
984
|
+
"type": "string"
|
985
|
+
},
|
986
|
+
"properties": {
|
987
|
+
"name": {
|
988
|
+
"type": "string",
|
989
|
+
"description": "The field in response to getDevicesFiltered that contains the name of the device",
|
990
|
+
"default": "name"
|
991
|
+
},
|
992
|
+
"ostype": {
|
993
|
+
"type": "string",
|
994
|
+
"description": "The field in response to getDevicesFiltered that contains the ostype of the device",
|
995
|
+
"default": "ostype"
|
996
|
+
},
|
997
|
+
"ostypePrefix": {
|
998
|
+
"type": "string",
|
999
|
+
"description": "Any prefix that should be added to the ostype of the device (e.g. aws-)",
|
1000
|
+
"default": ""
|
1001
|
+
},
|
1002
|
+
"port_field": {
|
1003
|
+
"type": "string",
|
1004
|
+
"description": "The field in response to getDevicesFiltered that contains the port of the device",
|
1005
|
+
"default": ""
|
1006
|
+
},
|
1007
|
+
"ip_field": {
|
1008
|
+
"type": "string",
|
1009
|
+
"description": "The field in response to getDevicesFiltered that contains the ip address of the device",
|
1010
|
+
"default": ""
|
1011
|
+
}
|
1012
|
+
}
|
1013
|
+
}
|
954
1014
|
}
|
955
1015
|
}
|
956
1016
|
},
|
957
1017
|
"isAlive": {
|
958
|
-
"type": "
|
959
|
-
"description": "Broker call to isAlive",
|
960
|
-
"
|
961
|
-
"
|
962
|
-
"
|
963
|
-
|
964
|
-
|
965
|
-
|
966
|
-
|
967
|
-
"
|
968
|
-
|
969
|
-
|
970
|
-
|
971
|
-
|
972
|
-
"
|
973
|
-
|
974
|
-
|
975
|
-
|
976
|
-
|
977
|
-
|
978
|
-
|
979
|
-
"
|
980
|
-
|
981
|
-
|
982
|
-
|
983
|
-
|
984
|
-
|
985
|
-
|
986
|
-
|
987
|
-
|
988
|
-
|
989
|
-
|
990
|
-
|
991
|
-
|
992
|
-
|
993
|
-
"
|
994
|
-
|
1018
|
+
"type": "array",
|
1019
|
+
"description": "Broker call(s) to determine if the device isAlive",
|
1020
|
+
"items": {
|
1021
|
+
"properties": {
|
1022
|
+
"path": {
|
1023
|
+
"type": "string",
|
1024
|
+
"description": "The fully qualified path of the call to isAlive (e.g. /rest/api/device/{deviceid})",
|
1025
|
+
"default": ""
|
1026
|
+
},
|
1027
|
+
"method": {
|
1028
|
+
"type": "string",
|
1029
|
+
"description": "The method of the call to isAlive",
|
1030
|
+
"default": "GET"
|
1031
|
+
},
|
1032
|
+
"query": {
|
1033
|
+
"type": "object",
|
1034
|
+
"description": "The json object with query parameters of the call to isAlive",
|
1035
|
+
"additionalProperties": {
|
1036
|
+
"type": "string"
|
1037
|
+
}
|
1038
|
+
},
|
1039
|
+
"body": {
|
1040
|
+
"type": "object",
|
1041
|
+
"description": "The json object with body of the call to isAlive",
|
1042
|
+
"additionalProperties": {
|
1043
|
+
"type": "string"
|
1044
|
+
}
|
1045
|
+
},
|
1046
|
+
"headers": {
|
1047
|
+
"type": "object",
|
1048
|
+
"description": "The json object with headers of the call to isAlive",
|
1049
|
+
"additionalProperties": {
|
1050
|
+
"type": "string"
|
1051
|
+
}
|
1052
|
+
},
|
1053
|
+
"handleFailure": {
|
1054
|
+
"type": "string",
|
1055
|
+
"enum": [
|
1056
|
+
"ignore",
|
1057
|
+
"fail"
|
1058
|
+
],
|
1059
|
+
"description": "return failure or ignore isAlive",
|
1060
|
+
"default": "ignore"
|
1061
|
+
},
|
1062
|
+
"statusValue": {
|
1063
|
+
"type": "string",
|
1064
|
+
"description": "The expected value in the status field",
|
1065
|
+
"default": "true"
|
1066
|
+
},
|
1067
|
+
"requestFields": {
|
1068
|
+
"type": "object",
|
1069
|
+
"description": "The json object with response fields of the call to getDevice",
|
1070
|
+
"additionalProperties": {
|
1071
|
+
"type": "string"
|
1072
|
+
},
|
1073
|
+
"properties": {}
|
1074
|
+
},
|
1075
|
+
"responseFields": {
|
1076
|
+
"type": "object",
|
1077
|
+
"description": "The json object with response fields of the call to isAlive",
|
1078
|
+
"additionalProperties": {
|
1079
|
+
"type": "string"
|
1080
|
+
},
|
1081
|
+
"properties": {
|
1082
|
+
"status": {
|
1083
|
+
"type": "string",
|
1084
|
+
"description": "The field in response to isAlive that contains the status of the device",
|
1085
|
+
"default": "name"
|
1086
|
+
}
|
1087
|
+
}
|
1088
|
+
}
|
995
1089
|
}
|
996
1090
|
}
|
997
1091
|
},
|
998
1092
|
"getConfig": {
|
999
|
-
"type": "
|
1000
|
-
"description": "Broker call to getConfig",
|
1001
|
-
"
|
1002
|
-
"
|
1003
|
-
"
|
1004
|
-
|
1005
|
-
|
1006
|
-
|
1007
|
-
|
1008
|
-
"
|
1009
|
-
|
1010
|
-
|
1011
|
-
|
1012
|
-
|
1013
|
-
"
|
1014
|
-
|
1015
|
-
|
1016
|
-
|
1017
|
-
|
1018
|
-
|
1019
|
-
|
1020
|
-
"
|
1021
|
-
|
1022
|
-
|
1023
|
-
|
1024
|
-
|
1025
|
-
|
1093
|
+
"type": "array",
|
1094
|
+
"description": "Broker call(s) to getConfig",
|
1095
|
+
"items": {
|
1096
|
+
"properties": {
|
1097
|
+
"path": {
|
1098
|
+
"type": "string",
|
1099
|
+
"description": "The fully qualified path of the call to getConfig (e.g. /rest/api/device/{deviceid})",
|
1100
|
+
"default": ""
|
1101
|
+
},
|
1102
|
+
"method": {
|
1103
|
+
"type": "string",
|
1104
|
+
"description": "The method of the call to getConfig",
|
1105
|
+
"default": "GET"
|
1106
|
+
},
|
1107
|
+
"query": {
|
1108
|
+
"type": "object",
|
1109
|
+
"description": "The json object with query parameters of the call to getConfig",
|
1110
|
+
"additionalProperties": {
|
1111
|
+
"type": "string"
|
1112
|
+
}
|
1113
|
+
},
|
1114
|
+
"body": {
|
1115
|
+
"type": "object",
|
1116
|
+
"description": "The json object with body of the call to getConfig",
|
1117
|
+
"additionalProperties": {
|
1118
|
+
"type": "string"
|
1119
|
+
}
|
1120
|
+
},
|
1121
|
+
"headers": {
|
1122
|
+
"type": "object",
|
1123
|
+
"description": "The json object with headers of the call to getConfig",
|
1124
|
+
"additionalProperties": {
|
1125
|
+
"type": "string"
|
1126
|
+
}
|
1127
|
+
},
|
1128
|
+
"handleFailure": {
|
1129
|
+
"type": "string",
|
1130
|
+
"enum": [
|
1131
|
+
"ignore",
|
1132
|
+
"fail"
|
1133
|
+
],
|
1134
|
+
"description": "return failure or ignore getConfig",
|
1135
|
+
"default": "ignore"
|
1136
|
+
},
|
1137
|
+
"requestFields": {
|
1138
|
+
"type": "object",
|
1139
|
+
"description": "The json object with response fields of the call to getDevice",
|
1140
|
+
"additionalProperties": {
|
1141
|
+
"type": "string"
|
1142
|
+
},
|
1143
|
+
"properties": {}
|
1144
|
+
},
|
1145
|
+
"responseFields": {
|
1146
|
+
"type": "object",
|
1147
|
+
"description": "The json object with response fields of the call to getConfig",
|
1148
|
+
"additionalProperties": {
|
1149
|
+
"type": "string"
|
1150
|
+
},
|
1151
|
+
"properties": {}
|
1152
|
+
}
|
1026
1153
|
}
|
1027
1154
|
}
|
1028
1155
|
},
|
1029
1156
|
"getCount": {
|
1030
|
-
"type": "
|
1031
|
-
"description": "Broker call to getCount",
|
1032
|
-
"
|
1033
|
-
"
|
1034
|
-
"
|
1035
|
-
|
1036
|
-
|
1037
|
-
|
1038
|
-
|
1039
|
-
"
|
1040
|
-
|
1041
|
-
|
1042
|
-
|
1043
|
-
|
1044
|
-
"
|
1045
|
-
|
1046
|
-
|
1047
|
-
|
1048
|
-
|
1049
|
-
|
1050
|
-
|
1051
|
-
"
|
1052
|
-
|
1053
|
-
|
1054
|
-
|
1055
|
-
|
1056
|
-
|
1157
|
+
"type": "array",
|
1158
|
+
"description": "Broker call(s) to getCount",
|
1159
|
+
"items": {
|
1160
|
+
"properties": {
|
1161
|
+
"path": {
|
1162
|
+
"type": "string",
|
1163
|
+
"description": "The fully qualified path of the call to getCount (e.g. /rest/api/device/{deviceid})",
|
1164
|
+
"default": ""
|
1165
|
+
},
|
1166
|
+
"method": {
|
1167
|
+
"type": "string",
|
1168
|
+
"description": "The method of the call to getCount",
|
1169
|
+
"default": "GET"
|
1170
|
+
},
|
1171
|
+
"query": {
|
1172
|
+
"type": "object",
|
1173
|
+
"description": "The json object with query parameters of the call to getCount",
|
1174
|
+
"additionalProperties": {
|
1175
|
+
"type": "string"
|
1176
|
+
}
|
1177
|
+
},
|
1178
|
+
"body": {
|
1179
|
+
"type": "object",
|
1180
|
+
"description": "The json object with body of the call to getCount",
|
1181
|
+
"additionalProperties": {
|
1182
|
+
"type": "string"
|
1183
|
+
}
|
1184
|
+
},
|
1185
|
+
"headers": {
|
1186
|
+
"type": "object",
|
1187
|
+
"description": "The json object with headers of the call to getCount",
|
1188
|
+
"additionalProperties": {
|
1189
|
+
"type": "string"
|
1190
|
+
}
|
1191
|
+
},
|
1192
|
+
"handleFailure": {
|
1193
|
+
"type": "string",
|
1194
|
+
"enum": [
|
1195
|
+
"ignore",
|
1196
|
+
"fail"
|
1197
|
+
],
|
1198
|
+
"description": "return failure or ignore getCount",
|
1199
|
+
"default": "ignore"
|
1200
|
+
}
|
1057
1201
|
}
|
1058
1202
|
}
|
1059
1203
|
}
|
Binary file
|