@itentialopensource/adapter-infoblox 1.10.0 → 1.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/adapter.js +1056 -195
- package/package.json +1 -1
- package/pronghorn.json +2288 -486
- package/refs?service=git-upload-pack +0 -0
- package/test/unit/adapterTestUnit.js +20 -20
package/adapter.js
CHANGED
|
@@ -1259,7 +1259,20 @@ class Infoblox extends AdapterBaseCl {
|
|
|
1259
1259
|
* (entities) or the error
|
|
1260
1260
|
*/
|
|
1261
1261
|
getNetworkDetails(networkIP, callback) {
|
|
1262
|
-
|
|
1262
|
+
this.getNetworkDetailsWithQuery(networkIP, {}, callback);
|
|
1263
|
+
}
|
|
1264
|
+
|
|
1265
|
+
/**
|
|
1266
|
+
* @summary This function will get all the network details of the network block
|
|
1267
|
+
*
|
|
1268
|
+
* @function getNetworkDetailsWithQuery
|
|
1269
|
+
* @param {String} networkIP - hostName name for the ip-address(required)
|
|
1270
|
+
* @param {object} query - query params for request
|
|
1271
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
1272
|
+
* (entities) or the error
|
|
1273
|
+
*/
|
|
1274
|
+
getNetworkDetailsWithQuery(networkIP, query, callback) {
|
|
1275
|
+
const meth = 'adapter-getNetworkDetailsWithQuery';
|
|
1263
1276
|
const origin = `${this.id}-${meth}`;
|
|
1264
1277
|
log.trace(origin);
|
|
1265
1278
|
|
|
@@ -1281,6 +1294,9 @@ class Infoblox extends AdapterBaseCl {
|
|
|
1281
1294
|
const queryParams = {};
|
|
1282
1295
|
const pathVars = [];
|
|
1283
1296
|
const bodyVars = {};
|
|
1297
|
+
if (query) {
|
|
1298
|
+
Object.assign(queryParamsAvailable, query);
|
|
1299
|
+
}
|
|
1284
1300
|
|
|
1285
1301
|
// loop in template. long callback arg name to avoid identifier conflicts
|
|
1286
1302
|
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
@@ -1399,7 +1415,20 @@ class Infoblox extends AdapterBaseCl {
|
|
|
1399
1415
|
* (entities) or the error
|
|
1400
1416
|
*/
|
|
1401
1417
|
getNetworkContainerDetails(networkIP, callback) {
|
|
1402
|
-
|
|
1418
|
+
this.getNetworkContainerDetailsWithQuery(networkIP, {}, callback);
|
|
1419
|
+
}
|
|
1420
|
+
|
|
1421
|
+
/**
|
|
1422
|
+
* @summary This function will get the network container details
|
|
1423
|
+
*
|
|
1424
|
+
* @function getNetworkContainerDetailsWithQuery
|
|
1425
|
+
* @param {String} networkIP - (required)
|
|
1426
|
+
* @param {object} query - query params for request
|
|
1427
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
1428
|
+
* (entities) or the error
|
|
1429
|
+
*/
|
|
1430
|
+
getNetworkContainerDetailsWithQuery(networkIP, query, callback) {
|
|
1431
|
+
const meth = 'adapter-getNetworkContainerDetailsWithQuery';
|
|
1403
1432
|
const origin = `${this.id}-${meth}`;
|
|
1404
1433
|
log.trace(origin);
|
|
1405
1434
|
|
|
@@ -1421,6 +1450,9 @@ class Infoblox extends AdapterBaseCl {
|
|
|
1421
1450
|
const queryParams = {};
|
|
1422
1451
|
const pathVars = [];
|
|
1423
1452
|
const bodyVars = {};
|
|
1453
|
+
if (query) {
|
|
1454
|
+
Object.assign(queryParamsAvailable, query);
|
|
1455
|
+
}
|
|
1424
1456
|
|
|
1425
1457
|
// loop in template. long callback arg name to avoid identifier conflicts
|
|
1426
1458
|
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
@@ -1472,7 +1504,20 @@ class Infoblox extends AdapterBaseCl {
|
|
|
1472
1504
|
* (entities) or the error
|
|
1473
1505
|
*/
|
|
1474
1506
|
getAuthZoneDetailsByfqdnName(fqdnName, callback) {
|
|
1475
|
-
|
|
1507
|
+
this.getAuthZoneDetailsByfqdnNameWithQuery(fqdnName, {}, callback);
|
|
1508
|
+
}
|
|
1509
|
+
|
|
1510
|
+
/**
|
|
1511
|
+
* @summary This function will get the auth zone details
|
|
1512
|
+
*
|
|
1513
|
+
* @function getAuthZoneDetailsByfqdnNameWithQuery
|
|
1514
|
+
* @param {String} fqdnName - (required)
|
|
1515
|
+
* @param {object} query - query params for request
|
|
1516
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
1517
|
+
* (entities) or the error
|
|
1518
|
+
*/
|
|
1519
|
+
getAuthZoneDetailsByfqdnNameWithQuery(fqdnName, query, callback) {
|
|
1520
|
+
const meth = 'adapter-getAuthZoneDetailsByfqdnNameWithQuery';
|
|
1476
1521
|
const origin = `${this.id}-${meth}`;
|
|
1477
1522
|
log.trace(origin);
|
|
1478
1523
|
|
|
@@ -1494,6 +1539,9 @@ class Infoblox extends AdapterBaseCl {
|
|
|
1494
1539
|
const queryParams = {};
|
|
1495
1540
|
const pathVars = [];
|
|
1496
1541
|
const bodyVars = {};
|
|
1542
|
+
if (query) {
|
|
1543
|
+
Object.assign(queryParamsAvailable, query);
|
|
1544
|
+
}
|
|
1497
1545
|
|
|
1498
1546
|
// loop in template. long callback arg name to avoid identifier conflicts
|
|
1499
1547
|
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
@@ -1798,7 +1846,20 @@ class Infoblox extends AdapterBaseCl {
|
|
|
1798
1846
|
* (entities) or the error
|
|
1799
1847
|
*/
|
|
1800
1848
|
getNetworkKeyByIP(networkIP, callback) {
|
|
1801
|
-
|
|
1849
|
+
this.getNetworkKeyByIPWithQuery(networkIP, {}, callback);
|
|
1850
|
+
}
|
|
1851
|
+
|
|
1852
|
+
/**
|
|
1853
|
+
* @summary This function will get the key for the network ip from Infoblox
|
|
1854
|
+
*
|
|
1855
|
+
* @function getNetworkKeyByIPWithQuery
|
|
1856
|
+
* @param {String} networkIP - Network IP Address of the block, e.g. 7.7.7.104/30 (required)
|
|
1857
|
+
* @param {object} query - query params for request
|
|
1858
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
1859
|
+
* (entities) or the error
|
|
1860
|
+
*/
|
|
1861
|
+
getNetworkKeyByIPWithQuery(networkIP, query, callback) {
|
|
1862
|
+
const meth = 'adapter-getNetworkKeyByIPWithQuery';
|
|
1802
1863
|
const origin = `${this.id}-${meth}`;
|
|
1803
1864
|
log.trace(origin);
|
|
1804
1865
|
|
|
@@ -1820,6 +1881,9 @@ class Infoblox extends AdapterBaseCl {
|
|
|
1820
1881
|
const queryParams = {};
|
|
1821
1882
|
const pathVars = [];
|
|
1822
1883
|
const bodyVars = {};
|
|
1884
|
+
if (query) {
|
|
1885
|
+
Object.assign(queryParamsAvailable, query);
|
|
1886
|
+
}
|
|
1823
1887
|
|
|
1824
1888
|
// loop in template. long callback arg name to avoid identifier conflicts
|
|
1825
1889
|
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
@@ -1869,7 +1933,21 @@ class Infoblox extends AdapterBaseCl {
|
|
|
1869
1933
|
* (entities) or the error
|
|
1870
1934
|
*/
|
|
1871
1935
|
getNextAvailableNetworks(networkId, subnetMask, callback) {
|
|
1872
|
-
|
|
1936
|
+
this.getNextAvailableNetworksWithQuery(networkId, subnetMask, {}, callback);
|
|
1937
|
+
}
|
|
1938
|
+
|
|
1939
|
+
/**
|
|
1940
|
+
* @summary This function will get the next available networks from the master network from Infoblox
|
|
1941
|
+
*
|
|
1942
|
+
* @function getNextAvailableNetworksWithQuery
|
|
1943
|
+
* @param {String} networkId - The network key of the network block(required)
|
|
1944
|
+
* @param {String} subnetMask - The subnetMask of the next avilable network(required)
|
|
1945
|
+
* @param {object} query - query params for request
|
|
1946
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
1947
|
+
* (entities) or the error
|
|
1948
|
+
*/
|
|
1949
|
+
getNextAvailableNetworksWithQuery(networkId, subnetMask, query, callback) {
|
|
1950
|
+
const meth = 'adapter-getNextAvailableNetworksWithQuery';
|
|
1873
1951
|
const origin = `${this.id}-${meth}`;
|
|
1874
1952
|
log.trace(origin);
|
|
1875
1953
|
|
|
@@ -1905,6 +1983,9 @@ class Infoblox extends AdapterBaseCl {
|
|
|
1905
1983
|
cidr: parseInt(subnetMask, 10),
|
|
1906
1984
|
num: 1
|
|
1907
1985
|
};
|
|
1986
|
+
if (query) {
|
|
1987
|
+
Object.assign(queryParamsAvailable, query);
|
|
1988
|
+
}
|
|
1908
1989
|
|
|
1909
1990
|
// loop in template. long callback arg name to avoid identifier conflicts
|
|
1910
1991
|
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
@@ -1947,6 +2028,18 @@ class Infoblox extends AdapterBaseCl {
|
|
|
1947
2028
|
}
|
|
1948
2029
|
}
|
|
1949
2030
|
|
|
2031
|
+
/**
|
|
2032
|
+
* @summary This function will get the next available ip from its master network from Infoblox
|
|
2033
|
+
*
|
|
2034
|
+
* @function getNextAvailableIps
|
|
2035
|
+
* @param {String} networkRef - The network id ref of the master network block, e.g. 'ZG5zLm5ldHdvcmskMS4xLjEuMC8zMC8w:1.1.1.0/30/default' (required)
|
|
2036
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
2037
|
+
* (entities) or the error
|
|
2038
|
+
*/
|
|
2039
|
+
getNextAvailableIp(networkRef, callback) {
|
|
2040
|
+
this.getNextAvailableIps(networkRef, 1, callback);
|
|
2041
|
+
}
|
|
2042
|
+
|
|
1950
2043
|
/**
|
|
1951
2044
|
* @summary This function will get the n next available ips from its master network from Infoblox
|
|
1952
2045
|
*
|
|
@@ -1958,7 +2051,22 @@ class Infoblox extends AdapterBaseCl {
|
|
|
1958
2051
|
* (entities) or the error
|
|
1959
2052
|
*/
|
|
1960
2053
|
getNextAvailableIps(networkRef, number, callback) {
|
|
1961
|
-
|
|
2054
|
+
this.getNextAvailableIpsWithQuery(networkRef, number, {}, callback);
|
|
2055
|
+
}
|
|
2056
|
+
|
|
2057
|
+
/**
|
|
2058
|
+
* @summary This function will get the n next available ips from its master network from Infoblox
|
|
2059
|
+
*
|
|
2060
|
+
* @function getNextAvailableIpsWithQuery
|
|
2061
|
+
* @param {String} networkRef - The network id ref of the master network block, e.g. 'ZG5zLm5ldHdvcmskMS4xLjEuMC8zMC8w:1.1.1.0/30/default' (required)
|
|
2062
|
+
* @deprecated {String} networkRef - The network id ref of the master network block, e.g. '1.1.1.0/30' (required)
|
|
2063
|
+
* @param {number} number - number of ips from the master network block (required)
|
|
2064
|
+
* @param {object} query - query params for request
|
|
2065
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
2066
|
+
* (entities) or the error
|
|
2067
|
+
*/
|
|
2068
|
+
getNextAvailableIpsWithQuery(networkRef, number, query, callback) {
|
|
2069
|
+
const meth = 'adapter-getNextAvailableIpsWithQuery';
|
|
1962
2070
|
const origin = `${this.id}-${meth}`;
|
|
1963
2071
|
log.trace(origin);
|
|
1964
2072
|
|
|
@@ -1991,6 +2099,9 @@ class Infoblox extends AdapterBaseCl {
|
|
|
1991
2099
|
const queryParams = {};
|
|
1992
2100
|
const pathVars = [networkIdadj];
|
|
1993
2101
|
const bodyVars = { num: number };
|
|
2102
|
+
if (query) {
|
|
2103
|
+
Object.assign(queryParamsAvailable, query);
|
|
2104
|
+
}
|
|
1994
2105
|
|
|
1995
2106
|
// loop in template. long callback arg name to avoid identifier conflicts
|
|
1996
2107
|
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
@@ -2045,27 +2156,28 @@ class Infoblox extends AdapterBaseCl {
|
|
|
2045
2156
|
}
|
|
2046
2157
|
|
|
2047
2158
|
/**
|
|
2048
|
-
* @summary This function will get the
|
|
2159
|
+
* @summary This function will get the details of the ip-address
|
|
2049
2160
|
*
|
|
2050
|
-
* @function
|
|
2051
|
-
* @param {String}
|
|
2161
|
+
* @function getIpDetails
|
|
2162
|
+
* @param {String} IPAddress - The ip-address, e.g. '1.1.1.0', can be network or host, without subnet e.g. '/30' (required)
|
|
2052
2163
|
* @param {getCallback} callback - a callback function to return the result
|
|
2053
2164
|
* (entities) or the error
|
|
2054
2165
|
*/
|
|
2055
|
-
|
|
2056
|
-
this.
|
|
2166
|
+
getIpDetails(IPAddress, callback) {
|
|
2167
|
+
this.getIpDetailsWithQuery(IPAddress, {}, callback);
|
|
2057
2168
|
}
|
|
2058
2169
|
|
|
2059
2170
|
/**
|
|
2060
2171
|
* @summary This function will get the details of the ip-address
|
|
2061
2172
|
*
|
|
2062
|
-
* @function
|
|
2173
|
+
* @function getIpDetailsWithQuery
|
|
2063
2174
|
* @param {String} IPAddress - The ip-address, e.g. '1.1.1.0', can be network or host, without subnet e.g. '/30' (required)
|
|
2175
|
+
* @param {object} query - query params for request
|
|
2064
2176
|
* @param {getCallback} callback - a callback function to return the result
|
|
2065
2177
|
* (entities) or the error
|
|
2066
2178
|
*/
|
|
2067
|
-
|
|
2068
|
-
const meth = 'adapter-
|
|
2179
|
+
getIpDetailsWithQuery(IPAddress, query, callback) {
|
|
2180
|
+
const meth = 'adapter-getIpDetailsWithQuery';
|
|
2069
2181
|
const origin = `${this.id}-${meth}`;
|
|
2070
2182
|
log.trace(origin);
|
|
2071
2183
|
|
|
@@ -2086,6 +2198,9 @@ class Infoblox extends AdapterBaseCl {
|
|
|
2086
2198
|
const queryParams = {};
|
|
2087
2199
|
const pathVars = [];
|
|
2088
2200
|
const bodyVars = {};
|
|
2201
|
+
if (query) {
|
|
2202
|
+
Object.assign(queryParamsAvailable, query);
|
|
2203
|
+
}
|
|
2089
2204
|
|
|
2090
2205
|
// loop in template. long callback arg name to avoid identifier conflicts
|
|
2091
2206
|
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
@@ -2134,7 +2249,20 @@ class Infoblox extends AdapterBaseCl {
|
|
|
2134
2249
|
* (entities) or the error
|
|
2135
2250
|
*/
|
|
2136
2251
|
getIpByHost(hostName, callback) {
|
|
2137
|
-
|
|
2252
|
+
this.getIpByHostWithQuery(hostName, {}, callback);
|
|
2253
|
+
}
|
|
2254
|
+
|
|
2255
|
+
/**
|
|
2256
|
+
* @summary This function will get the ip address from hostname Infoblox
|
|
2257
|
+
*
|
|
2258
|
+
* @function getIpByHostWithQuery
|
|
2259
|
+
* @param {String} hostName - hostname of the registered ip address (required)
|
|
2260
|
+
* @param {object} query - query params for request
|
|
2261
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
2262
|
+
* (entities) or the error
|
|
2263
|
+
*/
|
|
2264
|
+
getIpByHostWithQuery(hostName, query, callback) {
|
|
2265
|
+
const meth = 'adapter-getIpByHostWithQuery';
|
|
2138
2266
|
const origin = `${this.id}-${meth}`;
|
|
2139
2267
|
log.trace(origin);
|
|
2140
2268
|
|
|
@@ -2159,6 +2287,9 @@ class Infoblox extends AdapterBaseCl {
|
|
|
2159
2287
|
const queryParams = {};
|
|
2160
2288
|
const pathVars = [];
|
|
2161
2289
|
const bodyVars = {};
|
|
2290
|
+
if (query) {
|
|
2291
|
+
Object.assign(queryParamsAvailable, query);
|
|
2292
|
+
}
|
|
2162
2293
|
|
|
2163
2294
|
// loop in template. long callback arg name to avoid identifier conflicts
|
|
2164
2295
|
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
@@ -2207,7 +2338,20 @@ class Infoblox extends AdapterBaseCl {
|
|
|
2207
2338
|
* (entities) or the error
|
|
2208
2339
|
*/
|
|
2209
2340
|
getHostByIp(IPAddress, callback) {
|
|
2210
|
-
|
|
2341
|
+
this.getHostByIpWithQuery(IPAddress, {}, callback);
|
|
2342
|
+
}
|
|
2343
|
+
|
|
2344
|
+
/**
|
|
2345
|
+
* @summary This function will get the ip address from hostname Infoblox
|
|
2346
|
+
*
|
|
2347
|
+
* @function getHostByIpWithQuery
|
|
2348
|
+
* @param {String} IPAddress - ip address (required)
|
|
2349
|
+
* @param {object} query - query params for request
|
|
2350
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
2351
|
+
* (entities) or the error
|
|
2352
|
+
*/
|
|
2353
|
+
getHostByIpWithQuery(IPAddress, query, callback) {
|
|
2354
|
+
const meth = 'adapter-getHostByIpWithQuery';
|
|
2211
2355
|
const origin = `${this.id}-${meth}`;
|
|
2212
2356
|
log.trace(origin);
|
|
2213
2357
|
|
|
@@ -2228,6 +2372,9 @@ class Infoblox extends AdapterBaseCl {
|
|
|
2228
2372
|
const queryParams = {};
|
|
2229
2373
|
const pathVars = [];
|
|
2230
2374
|
const bodyVars = {};
|
|
2375
|
+
if (query) {
|
|
2376
|
+
Object.assign(queryParamsAvailable, query);
|
|
2377
|
+
}
|
|
2231
2378
|
|
|
2232
2379
|
// loop in template. long callback arg name to avoid identifier conflicts
|
|
2233
2380
|
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
@@ -2276,7 +2423,20 @@ class Infoblox extends AdapterBaseCl {
|
|
|
2276
2423
|
* (entities) or the error
|
|
2277
2424
|
*/
|
|
2278
2425
|
getHostKeyByHostName(hostName, callback) {
|
|
2279
|
-
|
|
2426
|
+
this.getHostKeyByHostNameWithQuery(hostName, {}, callback);
|
|
2427
|
+
}
|
|
2428
|
+
|
|
2429
|
+
/**
|
|
2430
|
+
* @summary This function will get the host key from hostname
|
|
2431
|
+
*
|
|
2432
|
+
* @function getHostKeyByHostNameWithQuery
|
|
2433
|
+
* @param {String} hostName - hostname of the registered ip address (required)
|
|
2434
|
+
* @param {object} query - query params for request
|
|
2435
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
2436
|
+
* (entities) or the error
|
|
2437
|
+
*/
|
|
2438
|
+
getHostKeyByHostNameWithQuery(hostName, query, callback) {
|
|
2439
|
+
const meth = 'adapter-getHostKeyByHostNameWithQuery';
|
|
2280
2440
|
const origin = `${this.id}-${meth}`;
|
|
2281
2441
|
log.trace(origin);
|
|
2282
2442
|
|
|
@@ -2298,6 +2458,9 @@ class Infoblox extends AdapterBaseCl {
|
|
|
2298
2458
|
const queryParams = {};
|
|
2299
2459
|
const pathVars = [];
|
|
2300
2460
|
const bodyVars = {};
|
|
2461
|
+
if (query) {
|
|
2462
|
+
Object.assign(queryParamsAvailable, query);
|
|
2463
|
+
}
|
|
2301
2464
|
|
|
2302
2465
|
// loop in template. long callback arg name to avoid identifier conflicts
|
|
2303
2466
|
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
@@ -2416,7 +2579,20 @@ class Infoblox extends AdapterBaseCl {
|
|
|
2416
2579
|
* (entities) or the error
|
|
2417
2580
|
*/
|
|
2418
2581
|
getNetworkUtilizationByIP(networkIP, callback) {
|
|
2419
|
-
|
|
2582
|
+
this.getNetworkUtilizationByIPWithQuery(networkIP, {}, callback);
|
|
2583
|
+
}
|
|
2584
|
+
|
|
2585
|
+
/**
|
|
2586
|
+
* @summary This function will get the network utilization by network ip-address
|
|
2587
|
+
*
|
|
2588
|
+
* @function getNetworkUtilizationByIPWithQuery
|
|
2589
|
+
* @param networkIP - network ip with subnet mask, e.g. '1.1.1.0/24' (required)
|
|
2590
|
+
* @param {object} query - query params for request
|
|
2591
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
2592
|
+
* (entities) or the error
|
|
2593
|
+
*/
|
|
2594
|
+
getNetworkUtilizationByIPWithQuery(networkIP, query, callback) {
|
|
2595
|
+
const meth = 'adapter-getNetworkUtilizationByIPWithQuery';
|
|
2420
2596
|
const origin = `${this.id}-${meth}`;
|
|
2421
2597
|
log.trace(origin);
|
|
2422
2598
|
|
|
@@ -2438,7 +2614,7 @@ class Infoblox extends AdapterBaseCl {
|
|
|
2438
2614
|
if (networkIP.length > 0) {
|
|
2439
2615
|
address = networkIP.split('/');
|
|
2440
2616
|
}
|
|
2441
|
-
const queryParamsAvailable =
|
|
2617
|
+
const queryParamsAvailable = query;
|
|
2442
2618
|
const queryParams = {};
|
|
2443
2619
|
const pathVars = [];
|
|
2444
2620
|
const bodyVars = {};
|
|
@@ -3532,9 +3708,19 @@ class Infoblox extends AdapterBaseCl {
|
|
|
3532
3708
|
* @function getForwardZones
|
|
3533
3709
|
* @param {getCallback} callback - a callback function to return the result
|
|
3534
3710
|
*/
|
|
3535
|
-
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
3536
3711
|
getForwardZones(callback) {
|
|
3537
|
-
|
|
3712
|
+
this.getForwardZonesWithQuery({}, callback);
|
|
3713
|
+
}
|
|
3714
|
+
|
|
3715
|
+
/**
|
|
3716
|
+
* @summary GET Forward Zones
|
|
3717
|
+
*
|
|
3718
|
+
* @function getForwardZonesWithQuery
|
|
3719
|
+
* @param {object} query - query params for request
|
|
3720
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
3721
|
+
*/
|
|
3722
|
+
getForwardZonesWithQuery(query, callback) {
|
|
3723
|
+
const meth = 'adapter-getForwardZonesWithQuery';
|
|
3538
3724
|
const origin = `${this.id}-${meth}`;
|
|
3539
3725
|
log.trace(origin);
|
|
3540
3726
|
|
|
@@ -3547,8 +3733,25 @@ class Infoblox extends AdapterBaseCl {
|
|
|
3547
3733
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
3548
3734
|
|
|
3549
3735
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
3736
|
+
const queryParamsAvailable = query;
|
|
3737
|
+
const queryParams = {};
|
|
3738
|
+
const pathVars = [];
|
|
3739
|
+
const bodyVars = {};
|
|
3740
|
+
|
|
3741
|
+
// loop in template. long callback arg name to avoid identifier conflicts
|
|
3742
|
+
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
3743
|
+
if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
|
|
3744
|
+
&& queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
|
|
3745
|
+
queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
|
|
3746
|
+
}
|
|
3747
|
+
});
|
|
3748
|
+
|
|
3550
3749
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders
|
|
3551
|
-
const reqObj =
|
|
3750
|
+
const reqObj = {
|
|
3751
|
+
payload: bodyVars,
|
|
3752
|
+
uriPathVars: pathVars,
|
|
3753
|
+
uriQuery: queryParams
|
|
3754
|
+
};
|
|
3552
3755
|
|
|
3553
3756
|
try {
|
|
3554
3757
|
// Make the call -
|
|
@@ -3731,9 +3934,19 @@ class Infoblox extends AdapterBaseCl {
|
|
|
3731
3934
|
* @function getZoneDelegations
|
|
3732
3935
|
* @param {getCallback} callback - a callback function to return the result
|
|
3733
3936
|
*/
|
|
3734
|
-
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
3735
3937
|
getZoneDelegations(callback) {
|
|
3736
|
-
|
|
3938
|
+
this.getZoneDelegationsWithQuery({}, callback);
|
|
3939
|
+
}
|
|
3940
|
+
|
|
3941
|
+
/**
|
|
3942
|
+
* @summary GET Zone Delegations
|
|
3943
|
+
*
|
|
3944
|
+
* @function getZoneDelegationsWithQuery
|
|
3945
|
+
* @param {object} query - query params for request
|
|
3946
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
3947
|
+
*/
|
|
3948
|
+
getZoneDelegationsWithQuery(query, callback) {
|
|
3949
|
+
const meth = 'adapter-getZoneDelegationsWithQuery';
|
|
3737
3950
|
const origin = `${this.id}-${meth}`;
|
|
3738
3951
|
log.trace(origin);
|
|
3739
3952
|
|
|
@@ -3746,8 +3959,25 @@ class Infoblox extends AdapterBaseCl {
|
|
|
3746
3959
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
3747
3960
|
|
|
3748
3961
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
3962
|
+
const queryParamsAvailable = query;
|
|
3963
|
+
const queryParams = {};
|
|
3964
|
+
const pathVars = [];
|
|
3965
|
+
const bodyVars = {};
|
|
3966
|
+
|
|
3967
|
+
// loop in template. long callback arg name to avoid identifier conflicts
|
|
3968
|
+
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
3969
|
+
if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
|
|
3970
|
+
&& queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
|
|
3971
|
+
queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
|
|
3972
|
+
}
|
|
3973
|
+
});
|
|
3974
|
+
|
|
3749
3975
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders
|
|
3750
|
-
const reqObj =
|
|
3976
|
+
const reqObj = {
|
|
3977
|
+
payload: bodyVars,
|
|
3978
|
+
uriPathVars: pathVars,
|
|
3979
|
+
uriQuery: queryParams
|
|
3980
|
+
};
|
|
3751
3981
|
|
|
3752
3982
|
try {
|
|
3753
3983
|
// Make the call -
|
|
@@ -3931,9 +4161,20 @@ class Infoblox extends AdapterBaseCl {
|
|
|
3931
4161
|
* @param {string} objectReference - objectReference param
|
|
3932
4162
|
* @param {getCallback} callback - a callback function to return the result
|
|
3933
4163
|
*/
|
|
3934
|
-
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
3935
4164
|
getNetworkBlock(objectReference, callback) {
|
|
3936
|
-
|
|
4165
|
+
this.getNetworkBlockWithQuery(objectReference, {}, callback);
|
|
4166
|
+
}
|
|
4167
|
+
|
|
4168
|
+
/**
|
|
4169
|
+
* @summary GET Network block associations
|
|
4170
|
+
*
|
|
4171
|
+
* @function getNetworkBlockWithQuery
|
|
4172
|
+
* @param {string} objectReference - objectReference param
|
|
4173
|
+
* @param {object} query - query params for request
|
|
4174
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
4175
|
+
*/
|
|
4176
|
+
getNetworkBlockWithQuery(objectReference, query, callback) {
|
|
4177
|
+
const meth = 'adapter-getNetworkBlockWithQuery';
|
|
3937
4178
|
const origin = `${this.id}-${meth}`;
|
|
3938
4179
|
log.trace(origin);
|
|
3939
4180
|
|
|
@@ -3955,6 +4196,9 @@ class Infoblox extends AdapterBaseCl {
|
|
|
3955
4196
|
const queryParams = {};
|
|
3956
4197
|
const pathVars = [objectReference];
|
|
3957
4198
|
const bodyVars = {};
|
|
4199
|
+
if (query) {
|
|
4200
|
+
Object.assign(queryParamsAvailable, query);
|
|
4201
|
+
}
|
|
3958
4202
|
|
|
3959
4203
|
// loop in template. long callback arg name to avoid identifier conflicts
|
|
3960
4204
|
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
@@ -4252,7 +4496,19 @@ class Infoblox extends AdapterBaseCl {
|
|
|
4252
4496
|
*/
|
|
4253
4497
|
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
4254
4498
|
getDtcServer(callback) {
|
|
4255
|
-
|
|
4499
|
+
this.getDtcServerWithQuery({}, callback);
|
|
4500
|
+
}
|
|
4501
|
+
|
|
4502
|
+
/**
|
|
4503
|
+
* @summary GET DTC Server
|
|
4504
|
+
*
|
|
4505
|
+
* @function getDtcServerWithQuery
|
|
4506
|
+
* @param {object} query - query params for request
|
|
4507
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
4508
|
+
*/
|
|
4509
|
+
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
4510
|
+
getDtcServerWithQuery(query, callback) {
|
|
4511
|
+
const meth = 'adapter-getDtcServerWithQuery';
|
|
4256
4512
|
const origin = `${this.id}-${meth}`;
|
|
4257
4513
|
log.trace(origin);
|
|
4258
4514
|
|
|
@@ -4265,8 +4521,25 @@ class Infoblox extends AdapterBaseCl {
|
|
|
4265
4521
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
4266
4522
|
|
|
4267
4523
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
4524
|
+
const queryParamsAvailable = query;
|
|
4525
|
+
const queryParams = {};
|
|
4526
|
+
const pathVars = [];
|
|
4527
|
+
const bodyVars = {};
|
|
4528
|
+
|
|
4529
|
+
// loop in template. long callback arg name to avoid identifier conflicts
|
|
4530
|
+
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
4531
|
+
if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
|
|
4532
|
+
&& queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
|
|
4533
|
+
queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
|
|
4534
|
+
}
|
|
4535
|
+
});
|
|
4536
|
+
|
|
4268
4537
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders
|
|
4269
|
-
const reqObj =
|
|
4538
|
+
const reqObj = {
|
|
4539
|
+
payload: bodyVars,
|
|
4540
|
+
uriPathVars: pathVars,
|
|
4541
|
+
uriQuery: queryParams
|
|
4542
|
+
};
|
|
4270
4543
|
|
|
4271
4544
|
try {
|
|
4272
4545
|
// Make the call -
|
|
@@ -4373,11 +4646,24 @@ class Infoblox extends AdapterBaseCl {
|
|
|
4373
4646
|
* @summary GET DTC Pool
|
|
4374
4647
|
*
|
|
4375
4648
|
* @function getDtcPool
|
|
4649
|
+
* @param {object} query - query params for request
|
|
4376
4650
|
* @param {getCallback} callback - a callback function to return the result
|
|
4377
4651
|
*/
|
|
4378
4652
|
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
4379
4653
|
getDtcPool(callback) {
|
|
4380
|
-
|
|
4654
|
+
this.getDtcPoolWithQuery({}, callback);
|
|
4655
|
+
}
|
|
4656
|
+
|
|
4657
|
+
/**
|
|
4658
|
+
* @summary GET DTC Pool
|
|
4659
|
+
*
|
|
4660
|
+
* @function getDtcPoolWithQuery
|
|
4661
|
+
* @param {object} query - query params for request
|
|
4662
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
4663
|
+
*/
|
|
4664
|
+
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
4665
|
+
getDtcPoolWithQuery(query, callback) {
|
|
4666
|
+
const meth = 'adapter-getDtcPoolWithQuery';
|
|
4381
4667
|
const origin = `${this.id}-${meth}`;
|
|
4382
4668
|
log.trace(origin);
|
|
4383
4669
|
|
|
@@ -4390,8 +4676,25 @@ class Infoblox extends AdapterBaseCl {
|
|
|
4390
4676
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
4391
4677
|
|
|
4392
4678
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
4679
|
+
const queryParamsAvailable = query;
|
|
4680
|
+
const queryParams = {};
|
|
4681
|
+
const pathVars = [];
|
|
4682
|
+
const bodyVars = {};
|
|
4683
|
+
|
|
4684
|
+
// loop in template. long callback arg name to avoid identifier conflicts
|
|
4685
|
+
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
4686
|
+
if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
|
|
4687
|
+
&& queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
|
|
4688
|
+
queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
|
|
4689
|
+
}
|
|
4690
|
+
});
|
|
4691
|
+
|
|
4393
4692
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders
|
|
4394
|
-
const reqObj =
|
|
4693
|
+
const reqObj = {
|
|
4694
|
+
payload: bodyVars,
|
|
4695
|
+
uriPathVars: pathVars,
|
|
4696
|
+
uriQuery: queryParams
|
|
4697
|
+
};
|
|
4395
4698
|
|
|
4396
4699
|
try {
|
|
4397
4700
|
// Make the call -
|
|
@@ -4575,9 +4878,20 @@ class Infoblox extends AdapterBaseCl {
|
|
|
4575
4878
|
* @param {string} hostName - hostname of the registered ip address
|
|
4576
4879
|
* @param {getCallback} callback - a callback function to return the result
|
|
4577
4880
|
*/
|
|
4578
|
-
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
4579
4881
|
getHostRecord(hostName, callback) {
|
|
4580
|
-
|
|
4882
|
+
this.getHostRecordWithQuery(hostName, {}, callback);
|
|
4883
|
+
}
|
|
4884
|
+
|
|
4885
|
+
/**
|
|
4886
|
+
* @summary GET HOST record by name
|
|
4887
|
+
*
|
|
4888
|
+
* @function getHostRecordWithQuery
|
|
4889
|
+
* @param {string} hostName - hostname of the registered ip address
|
|
4890
|
+
* @param {object} query - query params for request
|
|
4891
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
4892
|
+
*/
|
|
4893
|
+
getHostRecordWithQuery(hostName, query, callback) {
|
|
4894
|
+
const meth = 'adapter-getHostRecordWithQuery';
|
|
4581
4895
|
const origin = `${this.id}-${meth}`;
|
|
4582
4896
|
log.trace(origin);
|
|
4583
4897
|
|
|
@@ -4599,6 +4913,9 @@ class Infoblox extends AdapterBaseCl {
|
|
|
4599
4913
|
const queryParams = {};
|
|
4600
4914
|
const pathVars = [];
|
|
4601
4915
|
const bodyVars = {};
|
|
4916
|
+
if (query) {
|
|
4917
|
+
Object.assign(queryParamsAvailable, query);
|
|
4918
|
+
}
|
|
4602
4919
|
|
|
4603
4920
|
// loop in template. long callback arg name to avoid identifier conflicts
|
|
4604
4921
|
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
@@ -4649,11 +4966,22 @@ class Infoblox extends AdapterBaseCl {
|
|
|
4649
4966
|
* @param {string} name - Name of the record to retreive
|
|
4650
4967
|
* @param {getCallback} callback - a callback function to return the result
|
|
4651
4968
|
*/
|
|
4652
|
-
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
4653
4969
|
getARecords(name, callback) {
|
|
4654
|
-
|
|
4655
|
-
|
|
4656
|
-
|
|
4970
|
+
this.getARecordsWithQuery(name, {}, callback);
|
|
4971
|
+
}
|
|
4972
|
+
|
|
4973
|
+
/**
|
|
4974
|
+
* @summary get A records
|
|
4975
|
+
*
|
|
4976
|
+
* @function getARecordsWithQuery
|
|
4977
|
+
* @param {string} name - Name of the record to retreive
|
|
4978
|
+
* @param {object} query - query params for request
|
|
4979
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
4980
|
+
*/
|
|
4981
|
+
getARecordsWithQuery(name, query, callback) {
|
|
4982
|
+
const meth = 'adapter-getARecordsWithQuery';
|
|
4983
|
+
const origin = `${this.id}-${meth}`;
|
|
4984
|
+
log.trace(origin);
|
|
4657
4985
|
|
|
4658
4986
|
if (this.suspended && this.suspendMode === 'error') {
|
|
4659
4987
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
@@ -4668,6 +4996,9 @@ class Infoblox extends AdapterBaseCl {
|
|
|
4668
4996
|
const queryParams = {};
|
|
4669
4997
|
const pathVars = [];
|
|
4670
4998
|
const bodyVars = {};
|
|
4999
|
+
if (query) {
|
|
5000
|
+
Object.assign(queryParamsAvailable, query);
|
|
5001
|
+
}
|
|
4671
5002
|
|
|
4672
5003
|
// loop in template. long callback arg name to avoid identifier conflicts
|
|
4673
5004
|
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
@@ -4789,11 +5120,22 @@ class Infoblox extends AdapterBaseCl {
|
|
|
4789
5120
|
* @summary GET CNAME Records
|
|
4790
5121
|
*
|
|
4791
5122
|
* @function getCnameRecords
|
|
5123
|
+
* @param {object} query - query params for request
|
|
4792
5124
|
* @param {getCallback} callback - a callback function to return the result
|
|
4793
5125
|
*/
|
|
4794
|
-
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
4795
5126
|
getCnameRecords(callback) {
|
|
4796
|
-
|
|
5127
|
+
this.getCnameRecordsWithQuery({}, callback);
|
|
5128
|
+
}
|
|
5129
|
+
|
|
5130
|
+
/**
|
|
5131
|
+
* @summary GET CNAME Records
|
|
5132
|
+
*
|
|
5133
|
+
* @function getCnameRecordsWithQuery
|
|
5134
|
+
* @param {object} query - query params for request
|
|
5135
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
5136
|
+
*/
|
|
5137
|
+
getCnameRecordsWithQuery(query, callback) {
|
|
5138
|
+
const meth = 'adapter-getCnameRecordsWithQuery';
|
|
4797
5139
|
const origin = `${this.id}-${meth}`;
|
|
4798
5140
|
log.trace(origin);
|
|
4799
5141
|
|
|
@@ -4806,8 +5148,25 @@ class Infoblox extends AdapterBaseCl {
|
|
|
4806
5148
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
4807
5149
|
|
|
4808
5150
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
5151
|
+
const queryParamsAvailable = query;
|
|
5152
|
+
const queryParams = {};
|
|
5153
|
+
const pathVars = [];
|
|
5154
|
+
const bodyVars = {};
|
|
5155
|
+
|
|
5156
|
+
// loop in template. long callback arg name to avoid identifier conflicts
|
|
5157
|
+
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
5158
|
+
if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
|
|
5159
|
+
&& queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
|
|
5160
|
+
queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
|
|
5161
|
+
}
|
|
5162
|
+
});
|
|
5163
|
+
|
|
4809
5164
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders
|
|
4810
|
-
const reqObj =
|
|
5165
|
+
const reqObj = {
|
|
5166
|
+
payload: bodyVars,
|
|
5167
|
+
uriPathVars: pathVars,
|
|
5168
|
+
uriQuery: queryParams
|
|
5169
|
+
};
|
|
4811
5170
|
|
|
4812
5171
|
try {
|
|
4813
5172
|
// Make the call -
|
|
@@ -4916,9 +5275,19 @@ class Infoblox extends AdapterBaseCl {
|
|
|
4916
5275
|
* @function getTxtRecords
|
|
4917
5276
|
* @param {getCallback} callback - a callback function to return the result
|
|
4918
5277
|
*/
|
|
4919
|
-
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
4920
5278
|
getTxtRecords(callback) {
|
|
4921
|
-
|
|
5279
|
+
this.getTxtRecordsWithQuery({}, callback);
|
|
5280
|
+
}
|
|
5281
|
+
|
|
5282
|
+
/**
|
|
5283
|
+
* @summary GET TXT Records
|
|
5284
|
+
*
|
|
5285
|
+
* @function getTxtRecordsWithQuery
|
|
5286
|
+
* @param {object} query - query params for request
|
|
5287
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
5288
|
+
*/
|
|
5289
|
+
getTxtRecordsWithQuery(query, callback) {
|
|
5290
|
+
const meth = 'adapter-getTxtRecordsWithQuery';
|
|
4922
5291
|
const origin = `${this.id}-${meth}`;
|
|
4923
5292
|
log.trace(origin);
|
|
4924
5293
|
|
|
@@ -4931,8 +5300,25 @@ class Infoblox extends AdapterBaseCl {
|
|
|
4931
5300
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
4932
5301
|
|
|
4933
5302
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
5303
|
+
const queryParamsAvailable = query;
|
|
5304
|
+
const queryParams = {};
|
|
5305
|
+
const pathVars = [];
|
|
5306
|
+
const bodyVars = {};
|
|
5307
|
+
|
|
5308
|
+
// loop in template. long callback arg name to avoid identifier conflicts
|
|
5309
|
+
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
5310
|
+
if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
|
|
5311
|
+
&& queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
|
|
5312
|
+
queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
|
|
5313
|
+
}
|
|
5314
|
+
});
|
|
5315
|
+
|
|
4934
5316
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders
|
|
4935
|
-
const reqObj =
|
|
5317
|
+
const reqObj = {
|
|
5318
|
+
payload: bodyVars,
|
|
5319
|
+
uriPathVars: pathVars,
|
|
5320
|
+
uriQuery: queryParams
|
|
5321
|
+
};
|
|
4936
5322
|
|
|
4937
5323
|
try {
|
|
4938
5324
|
// Make the call -
|
|
@@ -5042,9 +5428,20 @@ class Infoblox extends AdapterBaseCl {
|
|
|
5042
5428
|
* @param {string} zone - zone param
|
|
5043
5429
|
* @param {getCallback} callback - a callback function to return the result
|
|
5044
5430
|
*/
|
|
5045
|
-
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
5046
5431
|
getAllRecords(zone, callback) {
|
|
5047
|
-
|
|
5432
|
+
this.getAllRecordsWithQuery(zone, {}, callback);
|
|
5433
|
+
}
|
|
5434
|
+
|
|
5435
|
+
/**
|
|
5436
|
+
* @summary GET All Records
|
|
5437
|
+
*
|
|
5438
|
+
* @function getAllRecordsWithQuery
|
|
5439
|
+
* @param {string} zone - zone param
|
|
5440
|
+
* @param {object} query - query params for request
|
|
5441
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
5442
|
+
*/
|
|
5443
|
+
getAllRecordsWithQuery(zone, query, callback) {
|
|
5444
|
+
const meth = 'adapter-getAllRecordsWithQuery';
|
|
5048
5445
|
const origin = `${this.id}-${meth}`;
|
|
5049
5446
|
log.trace(origin);
|
|
5050
5447
|
|
|
@@ -5066,6 +5463,9 @@ class Infoblox extends AdapterBaseCl {
|
|
|
5066
5463
|
const queryParams = {};
|
|
5067
5464
|
const pathVars = [];
|
|
5068
5465
|
const bodyVars = {};
|
|
5466
|
+
if (query) {
|
|
5467
|
+
Object.assign(queryParamsAvailable, query);
|
|
5468
|
+
}
|
|
5069
5469
|
|
|
5070
5470
|
// loop in template. long callback arg name to avoid identifier conflicts
|
|
5071
5471
|
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
@@ -5113,11 +5513,22 @@ class Infoblox extends AdapterBaseCl {
|
|
|
5113
5513
|
* @summary GET AAAA Records
|
|
5114
5514
|
*
|
|
5115
5515
|
* @function getAaaaRecords
|
|
5516
|
+
* @param {object} query - query params for request
|
|
5116
5517
|
* @param {getCallback} callback - a callback function to return the result
|
|
5117
5518
|
*/
|
|
5118
|
-
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
5119
5519
|
getAaaaRecords(callback) {
|
|
5120
|
-
|
|
5520
|
+
this.getAaaaRecordsWithQuery({}, callback);
|
|
5521
|
+
}
|
|
5522
|
+
|
|
5523
|
+
/**
|
|
5524
|
+
* @summary GET AAAA Records
|
|
5525
|
+
*
|
|
5526
|
+
* @function getAaaaRecordsWithQuery
|
|
5527
|
+
* @param {object} query - query params for request
|
|
5528
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
5529
|
+
*/
|
|
5530
|
+
getAaaaRecordsWithQuery(query, callback) {
|
|
5531
|
+
const meth = 'adapter-getAaaaRecordsWithQuery';
|
|
5121
5532
|
const origin = `${this.id}-${meth}`;
|
|
5122
5533
|
log.trace(origin);
|
|
5123
5534
|
|
|
@@ -5129,9 +5540,27 @@ class Infoblox extends AdapterBaseCl {
|
|
|
5129
5540
|
|
|
5130
5541
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
5131
5542
|
|
|
5543
|
+
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
5544
|
+
const queryParamsAvailable = query;
|
|
5545
|
+
const queryParams = {};
|
|
5546
|
+
const pathVars = [];
|
|
5547
|
+
const bodyVars = {};
|
|
5548
|
+
|
|
5549
|
+
// loop in template. long callback arg name to avoid identifier conflicts
|
|
5550
|
+
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
5551
|
+
if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
|
|
5552
|
+
&& queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
|
|
5553
|
+
queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
|
|
5554
|
+
}
|
|
5555
|
+
});
|
|
5556
|
+
|
|
5132
5557
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
5133
5558
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders
|
|
5134
|
-
const reqObj =
|
|
5559
|
+
const reqObj = {
|
|
5560
|
+
payload: bodyVars,
|
|
5561
|
+
uriPathVars: pathVars,
|
|
5562
|
+
uriQuery: queryParams
|
|
5563
|
+
};
|
|
5135
5564
|
|
|
5136
5565
|
try {
|
|
5137
5566
|
// Make the call -
|
|
@@ -5240,9 +5669,19 @@ class Infoblox extends AdapterBaseCl {
|
|
|
5240
5669
|
* @function getMxRecords
|
|
5241
5670
|
* @param {getCallback} callback - a callback function to return the result
|
|
5242
5671
|
*/
|
|
5243
|
-
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
5244
5672
|
getMxRecords(callback) {
|
|
5245
|
-
|
|
5673
|
+
this.getMxRecordsWithQuery({}, callback);
|
|
5674
|
+
}
|
|
5675
|
+
|
|
5676
|
+
/**
|
|
5677
|
+
* @summary GET MX Records
|
|
5678
|
+
*
|
|
5679
|
+
* @function getMxRecordsWithQuery
|
|
5680
|
+
* @param {object} query - query params for request
|
|
5681
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
5682
|
+
*/
|
|
5683
|
+
getMxRecordsWithQuery(query, callback) {
|
|
5684
|
+
const meth = 'adapter-getMxRecordsWithQuery';
|
|
5246
5685
|
const origin = `${this.id}-${meth}`;
|
|
5247
5686
|
log.trace(origin);
|
|
5248
5687
|
|
|
@@ -5255,8 +5694,25 @@ class Infoblox extends AdapterBaseCl {
|
|
|
5255
5694
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
5256
5695
|
|
|
5257
5696
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
5697
|
+
const queryParamsAvailable = query;
|
|
5698
|
+
const queryParams = {};
|
|
5699
|
+
const pathVars = [];
|
|
5700
|
+
const bodyVars = {};
|
|
5701
|
+
|
|
5702
|
+
// loop in template. long callback arg name to avoid identifier conflicts
|
|
5703
|
+
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
5704
|
+
if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
|
|
5705
|
+
&& queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
|
|
5706
|
+
queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
|
|
5707
|
+
}
|
|
5708
|
+
});
|
|
5709
|
+
|
|
5258
5710
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders
|
|
5259
|
-
const reqObj =
|
|
5711
|
+
const reqObj = {
|
|
5712
|
+
payload: bodyVars,
|
|
5713
|
+
uriPathVars: pathVars,
|
|
5714
|
+
uriQuery: queryParams
|
|
5715
|
+
};
|
|
5260
5716
|
|
|
5261
5717
|
try {
|
|
5262
5718
|
// Make the call -
|
|
@@ -5365,9 +5821,19 @@ class Infoblox extends AdapterBaseCl {
|
|
|
5365
5821
|
* @function getNsRecords
|
|
5366
5822
|
* @param {getCallback} callback - a callback function to return the result
|
|
5367
5823
|
*/
|
|
5368
|
-
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
5369
5824
|
getNsRecords(callback) {
|
|
5370
|
-
|
|
5825
|
+
this.getNsRecordsWithQuery({}, callback);
|
|
5826
|
+
}
|
|
5827
|
+
|
|
5828
|
+
/**
|
|
5829
|
+
* @summary GET NS Records
|
|
5830
|
+
*
|
|
5831
|
+
* @function getNsRecordsWithQuery
|
|
5832
|
+
* @param {object} query - query params for request
|
|
5833
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
5834
|
+
*/
|
|
5835
|
+
getNsRecordsWithQuery(query, callback) {
|
|
5836
|
+
const meth = 'adapter-getNsRecordsWithQuery';
|
|
5371
5837
|
const origin = `${this.id}-${meth}`;
|
|
5372
5838
|
log.trace(origin);
|
|
5373
5839
|
|
|
@@ -5380,8 +5846,25 @@ class Infoblox extends AdapterBaseCl {
|
|
|
5380
5846
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
5381
5847
|
|
|
5382
5848
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
5849
|
+
const queryParamsAvailable = query;
|
|
5850
|
+
const queryParams = {};
|
|
5851
|
+
const pathVars = [];
|
|
5852
|
+
const bodyVars = {};
|
|
5853
|
+
|
|
5854
|
+
// loop in template. long callback arg name to avoid identifier conflicts
|
|
5855
|
+
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
5856
|
+
if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
|
|
5857
|
+
&& queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
|
|
5858
|
+
queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
|
|
5859
|
+
}
|
|
5860
|
+
});
|
|
5861
|
+
|
|
5383
5862
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders
|
|
5384
|
-
const reqObj =
|
|
5863
|
+
const reqObj = {
|
|
5864
|
+
payload: bodyVars,
|
|
5865
|
+
uriPathVars: pathVars,
|
|
5866
|
+
uriQuery: queryParams
|
|
5867
|
+
};
|
|
5385
5868
|
|
|
5386
5869
|
try {
|
|
5387
5870
|
// Make the call -
|
|
@@ -5490,9 +5973,19 @@ class Infoblox extends AdapterBaseCl {
|
|
|
5490
5973
|
* @function getPtrRecords
|
|
5491
5974
|
* @param {getCallback} callback - a callback function to return the result
|
|
5492
5975
|
*/
|
|
5493
|
-
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
5494
5976
|
getPtrRecords(callback) {
|
|
5495
|
-
|
|
5977
|
+
this.getPtrRecordsWithQuery({}, callback);
|
|
5978
|
+
}
|
|
5979
|
+
|
|
5980
|
+
/**
|
|
5981
|
+
* @summary GET PTR Records
|
|
5982
|
+
*
|
|
5983
|
+
* @function getPtrRecordsWithQuery
|
|
5984
|
+
* @param {object} query - general request options
|
|
5985
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
5986
|
+
*/
|
|
5987
|
+
getPtrRecordsWithQuery(query, callback) {
|
|
5988
|
+
const meth = 'adapter-getPtrRecordsWithQuery';
|
|
5496
5989
|
const origin = `${this.id}-${meth}`;
|
|
5497
5990
|
log.trace(origin);
|
|
5498
5991
|
|
|
@@ -5505,8 +5998,25 @@ class Infoblox extends AdapterBaseCl {
|
|
|
5505
5998
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
5506
5999
|
|
|
5507
6000
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
6001
|
+
const queryParamsAvailable = query;
|
|
6002
|
+
const queryParams = {};
|
|
6003
|
+
const pathVars = [];
|
|
6004
|
+
const bodyVars = {};
|
|
6005
|
+
|
|
6006
|
+
// loop in template. long callback arg name to avoid identifier conflicts
|
|
6007
|
+
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
6008
|
+
if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
|
|
6009
|
+
&& queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
|
|
6010
|
+
queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
|
|
6011
|
+
}
|
|
6012
|
+
});
|
|
6013
|
+
|
|
5508
6014
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders
|
|
5509
|
-
const reqObj =
|
|
6015
|
+
const reqObj = {
|
|
6016
|
+
payload: bodyVars,
|
|
6017
|
+
uriPathVars: pathVars,
|
|
6018
|
+
uriQuery: queryParams
|
|
6019
|
+
};
|
|
5510
6020
|
|
|
5511
6021
|
try {
|
|
5512
6022
|
// Make the call -
|
|
@@ -5615,9 +6125,19 @@ class Infoblox extends AdapterBaseCl {
|
|
|
5615
6125
|
* @function getSrvRecords
|
|
5616
6126
|
* @param {getCallback} callback - a callback function to return the result
|
|
5617
6127
|
*/
|
|
5618
|
-
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
5619
6128
|
getSrvRecords(callback) {
|
|
5620
|
-
|
|
6129
|
+
this.getSrvRecordsWithQuery({}, callback);
|
|
6130
|
+
}
|
|
6131
|
+
|
|
6132
|
+
/**
|
|
6133
|
+
* @summary GET SRV Records
|
|
6134
|
+
*
|
|
6135
|
+
* @function getSrvRecordsWithQuery
|
|
6136
|
+
* @param {object} query - query params for request
|
|
6137
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
6138
|
+
*/
|
|
6139
|
+
getSrvRecordsWithQuery(query, callback) {
|
|
6140
|
+
const meth = 'adapter-getSrvRecordsWithQuery';
|
|
5621
6141
|
const origin = `${this.id}-${meth}`;
|
|
5622
6142
|
log.trace(origin);
|
|
5623
6143
|
|
|
@@ -5630,8 +6150,25 @@ class Infoblox extends AdapterBaseCl {
|
|
|
5630
6150
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
5631
6151
|
|
|
5632
6152
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
6153
|
+
const queryParamsAvailable = query;
|
|
6154
|
+
const queryParams = {};
|
|
6155
|
+
const pathVars = [];
|
|
6156
|
+
const bodyVars = {};
|
|
6157
|
+
|
|
6158
|
+
// loop in template. long callback arg name to avoid identifier conflicts
|
|
6159
|
+
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
6160
|
+
if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
|
|
6161
|
+
&& queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
|
|
6162
|
+
queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
|
|
6163
|
+
}
|
|
6164
|
+
});
|
|
6165
|
+
|
|
5633
6166
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders
|
|
5634
|
-
const reqObj =
|
|
6167
|
+
const reqObj = {
|
|
6168
|
+
payload: bodyVars,
|
|
6169
|
+
uriPathVars: pathVars,
|
|
6170
|
+
uriQuery: queryParams
|
|
6171
|
+
};
|
|
5635
6172
|
|
|
5636
6173
|
try {
|
|
5637
6174
|
// Make the call -
|
|
@@ -6354,11 +6891,24 @@ class Infoblox extends AdapterBaseCl {
|
|
|
6354
6891
|
* @summary GET grid:dns
|
|
6355
6892
|
*
|
|
6356
6893
|
* @function getGridDns
|
|
6894
|
+
* @param {object} query - query params for request
|
|
6357
6895
|
* @param {getCallback} callback - a callback function to return the result
|
|
6358
6896
|
*/
|
|
6359
6897
|
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
6360
6898
|
getGridDns(callback) {
|
|
6361
|
-
|
|
6899
|
+
this.getGridDnsWithQuery({}, callback);
|
|
6900
|
+
}
|
|
6901
|
+
|
|
6902
|
+
/**
|
|
6903
|
+
* @summary GET grid:dns
|
|
6904
|
+
*
|
|
6905
|
+
* @function getGridDnsWithQuery
|
|
6906
|
+
* @param {object} query - query params for request
|
|
6907
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
6908
|
+
*/
|
|
6909
|
+
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
6910
|
+
getGridDnsWithQuery(query, callback) {
|
|
6911
|
+
const meth = 'adapter-getGridDnsWithQuery';
|
|
6362
6912
|
const origin = `${this.id}-${meth}`;
|
|
6363
6913
|
log.trace(origin);
|
|
6364
6914
|
|
|
@@ -6371,8 +6921,25 @@ class Infoblox extends AdapterBaseCl {
|
|
|
6371
6921
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
6372
6922
|
|
|
6373
6923
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
6924
|
+
const queryParamsAvailable = query;
|
|
6925
|
+
const queryParams = {};
|
|
6926
|
+
const pathVars = [];
|
|
6927
|
+
const bodyVars = {};
|
|
6928
|
+
|
|
6929
|
+
// loop in template. long callback arg name to avoid identifier conflicts
|
|
6930
|
+
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
6931
|
+
if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
|
|
6932
|
+
&& queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
|
|
6933
|
+
queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
|
|
6934
|
+
}
|
|
6935
|
+
});
|
|
6936
|
+
|
|
6374
6937
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders
|
|
6375
|
-
const reqObj =
|
|
6938
|
+
const reqObj = {
|
|
6939
|
+
payload: bodyVars,
|
|
6940
|
+
uriPathVars: pathVars,
|
|
6941
|
+
uriQuery: queryParams
|
|
6942
|
+
};
|
|
6376
6943
|
|
|
6377
6944
|
try {
|
|
6378
6945
|
// Make the call -
|
|
@@ -6402,14 +6969,26 @@ class Infoblox extends AdapterBaseCl {
|
|
|
6402
6969
|
}
|
|
6403
6970
|
|
|
6404
6971
|
/**
|
|
6405
|
-
* @summary GET member:
|
|
6972
|
+
* @summary GET member:dhcp
|
|
6406
6973
|
*
|
|
6407
6974
|
* @function getMemberDns
|
|
6408
6975
|
* @param {getCallback} callback - a callback function to return the result
|
|
6409
6976
|
*/
|
|
6410
6977
|
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
6411
6978
|
getMemberDns(callback) {
|
|
6412
|
-
|
|
6979
|
+
this.getMemberDnsWithQuery({}, callback);
|
|
6980
|
+
}
|
|
6981
|
+
|
|
6982
|
+
/**
|
|
6983
|
+
* @summary GET member:dhcp
|
|
6984
|
+
*
|
|
6985
|
+
* @function getMemberDnsWithQuery
|
|
6986
|
+
* @param {object} query - query params for request
|
|
6987
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
6988
|
+
*/
|
|
6989
|
+
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
6990
|
+
getMemberDnsWithQuery(query, callback) {
|
|
6991
|
+
const meth = 'adapter-getMemberDnsWithQuery';
|
|
6413
6992
|
const origin = `${this.id}-${meth}`;
|
|
6414
6993
|
log.trace(origin);
|
|
6415
6994
|
|
|
@@ -6422,8 +7001,25 @@ class Infoblox extends AdapterBaseCl {
|
|
|
6422
7001
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
6423
7002
|
|
|
6424
7003
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
7004
|
+
const queryParamsAvailable = query;
|
|
7005
|
+
const queryParams = {};
|
|
7006
|
+
const pathVars = [];
|
|
7007
|
+
const bodyVars = {};
|
|
7008
|
+
|
|
7009
|
+
// loop in template. long callback arg name to avoid identifier conflicts
|
|
7010
|
+
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
7011
|
+
if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
|
|
7012
|
+
&& queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
|
|
7013
|
+
queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
|
|
7014
|
+
}
|
|
7015
|
+
});
|
|
7016
|
+
|
|
6425
7017
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders
|
|
6426
|
-
const reqObj =
|
|
7018
|
+
const reqObj = {
|
|
7019
|
+
payload: bodyVars,
|
|
7020
|
+
uriPathVars: pathVars,
|
|
7021
|
+
uriQuery: queryParams
|
|
7022
|
+
};
|
|
6427
7023
|
|
|
6428
7024
|
try {
|
|
6429
7025
|
// Make the call -
|
|
@@ -6458,9 +7054,19 @@ class Infoblox extends AdapterBaseCl {
|
|
|
6458
7054
|
* @function getResponsePolicyZones
|
|
6459
7055
|
* @param {getCallback} callback - a callback function to return the result
|
|
6460
7056
|
*/
|
|
6461
|
-
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
6462
7057
|
getResponsePolicyZones(callback) {
|
|
6463
|
-
|
|
7058
|
+
this.getResponsePolicyZonesWithQuery({}, callback);
|
|
7059
|
+
}
|
|
7060
|
+
|
|
7061
|
+
/**
|
|
7062
|
+
* @summary GET Response Policy Zones
|
|
7063
|
+
*
|
|
7064
|
+
* @function getResponsePolicyZonesWithQuery
|
|
7065
|
+
* @param {object} query - query params for request
|
|
7066
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
7067
|
+
*/
|
|
7068
|
+
getResponsePolicyZonesWithQuery(query, callback) {
|
|
7069
|
+
const meth = 'adapter-getResponsePolicyZonesWithQuery';
|
|
6464
7070
|
const origin = `${this.id}-${meth}`;
|
|
6465
7071
|
log.trace(origin);
|
|
6466
7072
|
|
|
@@ -6473,8 +7079,25 @@ class Infoblox extends AdapterBaseCl {
|
|
|
6473
7079
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
6474
7080
|
|
|
6475
7081
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
7082
|
+
const queryParamsAvailable = query;
|
|
7083
|
+
const queryParams = {};
|
|
7084
|
+
const pathVars = [];
|
|
7085
|
+
const bodyVars = {};
|
|
7086
|
+
|
|
7087
|
+
// loop in template. long callback arg name to avoid identifier conflicts
|
|
7088
|
+
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
7089
|
+
if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
|
|
7090
|
+
&& queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
|
|
7091
|
+
queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
|
|
7092
|
+
}
|
|
7093
|
+
});
|
|
7094
|
+
|
|
6476
7095
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders
|
|
6477
|
-
const reqObj =
|
|
7096
|
+
const reqObj = {
|
|
7097
|
+
payload: bodyVars,
|
|
7098
|
+
uriPathVars: pathVars,
|
|
7099
|
+
uriQuery: queryParams
|
|
7100
|
+
};
|
|
6478
7101
|
|
|
6479
7102
|
try {
|
|
6480
7103
|
// Make the call -
|
|
@@ -7176,9 +7799,20 @@ class Infoblox extends AdapterBaseCl {
|
|
|
7176
7799
|
* @param {string} zone - zone param
|
|
7177
7800
|
* @param {getCallback} callback - a callback function to return the result
|
|
7178
7801
|
*/
|
|
7179
|
-
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
7180
7802
|
getAllRpzRecords(zone, callback) {
|
|
7181
|
-
|
|
7803
|
+
this.getAllRpzRecordsWithQuery(zone, {}, callback);
|
|
7804
|
+
}
|
|
7805
|
+
|
|
7806
|
+
/**
|
|
7807
|
+
* @summary GET All RPZ Records
|
|
7808
|
+
*
|
|
7809
|
+
* @function getAllRpzRecordsWithQuery
|
|
7810
|
+
* @param {string} zone - zone param
|
|
7811
|
+
* @param {object} query - query params for request
|
|
7812
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
7813
|
+
*/
|
|
7814
|
+
getAllRpzRecordsWithQuery(zone, query, callback) {
|
|
7815
|
+
const meth = 'adapter-getAllRpzRecordsWithQuery';
|
|
7182
7816
|
const origin = `${this.id}-${meth}`;
|
|
7183
7817
|
log.trace(origin);
|
|
7184
7818
|
|
|
@@ -7200,6 +7834,9 @@ class Infoblox extends AdapterBaseCl {
|
|
|
7200
7834
|
const queryParams = {};
|
|
7201
7835
|
const pathVars = [];
|
|
7202
7836
|
const bodyVars = {};
|
|
7837
|
+
if (query) {
|
|
7838
|
+
Object.assign(queryParamsAvailable, query);
|
|
7839
|
+
}
|
|
7203
7840
|
|
|
7204
7841
|
// loop in template. long callback arg name to avoid identifier conflicts
|
|
7205
7842
|
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
@@ -7249,9 +7886,19 @@ class Infoblox extends AdapterBaseCl {
|
|
|
7249
7886
|
* @function getNameServerGroups
|
|
7250
7887
|
* @param {getCallback} callback - a callback function to return the result
|
|
7251
7888
|
*/
|
|
7252
|
-
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
7253
7889
|
getNameServerGroups(callback) {
|
|
7254
|
-
|
|
7890
|
+
this.getNameServerGroupsWithQuery({}, callback);
|
|
7891
|
+
}
|
|
7892
|
+
|
|
7893
|
+
/**
|
|
7894
|
+
* @summary GET Name Server Groups
|
|
7895
|
+
*
|
|
7896
|
+
* @function getNameServerGroupsWithQuery
|
|
7897
|
+
* @param {object} query - query params for request
|
|
7898
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
7899
|
+
*/
|
|
7900
|
+
getNameServerGroupsWithQuery(query, callback) {
|
|
7901
|
+
const meth = 'adapter-getNameServerGroupsWithQuery';
|
|
7255
7902
|
const origin = `${this.id}-${meth}`;
|
|
7256
7903
|
log.trace(origin);
|
|
7257
7904
|
|
|
@@ -7264,8 +7911,25 @@ class Infoblox extends AdapterBaseCl {
|
|
|
7264
7911
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
7265
7912
|
|
|
7266
7913
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
7914
|
+
const queryParamsAvailable = query;
|
|
7915
|
+
const queryParams = {};
|
|
7916
|
+
const pathVars = [];
|
|
7917
|
+
const bodyVars = {};
|
|
7918
|
+
|
|
7919
|
+
// loop in template. long callback arg name to avoid identifier conflicts
|
|
7920
|
+
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
7921
|
+
if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
|
|
7922
|
+
&& queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
|
|
7923
|
+
queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
|
|
7924
|
+
}
|
|
7925
|
+
});
|
|
7926
|
+
|
|
7267
7927
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders
|
|
7268
|
-
const reqObj =
|
|
7928
|
+
const reqObj = {
|
|
7929
|
+
payload: bodyVars,
|
|
7930
|
+
uriPathVars: pathVars,
|
|
7931
|
+
uriQuery: queryParams
|
|
7932
|
+
};
|
|
7269
7933
|
|
|
7270
7934
|
try {
|
|
7271
7935
|
// Make the call -
|
|
@@ -7375,9 +8039,20 @@ class Infoblox extends AdapterBaseCl {
|
|
|
7375
8039
|
* @param {string} location - location param
|
|
7376
8040
|
* @param {getCallback} callback - a callback function to return the result
|
|
7377
8041
|
*/
|
|
7378
|
-
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
7379
8042
|
getRangeByExtensibleAttribute(location, callback) {
|
|
7380
|
-
|
|
8043
|
+
this.getRangeByExtensibleAttributeWithQuery(location, {}, callback);
|
|
8044
|
+
}
|
|
8045
|
+
|
|
8046
|
+
/**
|
|
8047
|
+
* @summary GET Range by Extensible Attribute
|
|
8048
|
+
*
|
|
8049
|
+
* @function getRangeByExtensibleAttributeWithQuery
|
|
8050
|
+
* @param {string} location - location param
|
|
8051
|
+
* @param {object} query - query params for request
|
|
8052
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
8053
|
+
*/
|
|
8054
|
+
getRangeByExtensibleAttributeWithQuery(location, query, callback) {
|
|
8055
|
+
const meth = 'adapter-getRangeByExtensibleAttributeWithQuery';
|
|
7381
8056
|
const origin = `${this.id}-${meth}`;
|
|
7382
8057
|
log.trace(origin);
|
|
7383
8058
|
|
|
@@ -7399,6 +8074,9 @@ class Infoblox extends AdapterBaseCl {
|
|
|
7399
8074
|
const queryParams = {};
|
|
7400
8075
|
const pathVars = [];
|
|
7401
8076
|
const bodyVars = {};
|
|
8077
|
+
if (query) {
|
|
8078
|
+
Object.assign(queryParamsAvailable, query);
|
|
8079
|
+
}
|
|
7402
8080
|
|
|
7403
8081
|
// loop in template. long callback arg name to avoid identifier conflicts
|
|
7404
8082
|
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
@@ -7525,7 +8203,20 @@ class Infoblox extends AdapterBaseCl {
|
|
|
7525
8203
|
*/
|
|
7526
8204
|
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
7527
8205
|
getLeaseByIpAddress(address, callback) {
|
|
7528
|
-
|
|
8206
|
+
this.getLeaseByIpAddressWithQuery(address, {}, callback);
|
|
8207
|
+
}
|
|
8208
|
+
|
|
8209
|
+
/**
|
|
8210
|
+
* @summary GET Lease by IP address with general options
|
|
8211
|
+
*
|
|
8212
|
+
* @function getLeaseByIpAddressWithQuery
|
|
8213
|
+
* @param {string} address - address param
|
|
8214
|
+
* @param {object} query - query params for request
|
|
8215
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
8216
|
+
*/
|
|
8217
|
+
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
8218
|
+
getLeaseByIpAddressWithQuery(address, query, callback) {
|
|
8219
|
+
const meth = 'adapter-getLeaseByIpAddressWithQuery';
|
|
7529
8220
|
const origin = `${this.id}-${meth}`;
|
|
7530
8221
|
log.trace(origin);
|
|
7531
8222
|
|
|
@@ -7547,6 +8238,9 @@ class Infoblox extends AdapterBaseCl {
|
|
|
7547
8238
|
const queryParams = {};
|
|
7548
8239
|
const pathVars = [];
|
|
7549
8240
|
const bodyVars = {};
|
|
8241
|
+
if (query) {
|
|
8242
|
+
Object.assign(queryParamsAvailable, query);
|
|
8243
|
+
}
|
|
7550
8244
|
|
|
7551
8245
|
// loop in template. long callback arg name to avoid identifier conflicts
|
|
7552
8246
|
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
@@ -7598,7 +8292,19 @@ class Infoblox extends AdapterBaseCl {
|
|
|
7598
8292
|
*/
|
|
7599
8293
|
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
7600
8294
|
getMemberDhcp(callback) {
|
|
7601
|
-
|
|
8295
|
+
this.getMemberDhcpWithQuery({}, callback);
|
|
8296
|
+
}
|
|
8297
|
+
|
|
8298
|
+
/**
|
|
8299
|
+
* @summary GET member:dhcp
|
|
8300
|
+
*
|
|
8301
|
+
* @function getMemberDhcpWithQuery
|
|
8302
|
+
* @param {object} query - query params for request
|
|
8303
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
8304
|
+
*/
|
|
8305
|
+
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
8306
|
+
getMemberDhcpWithQuery(query, callback) {
|
|
8307
|
+
const meth = 'adapter-getMemberDhcpWithQuery';
|
|
7602
8308
|
const origin = `${this.id}-${meth}`;
|
|
7603
8309
|
log.trace(origin);
|
|
7604
8310
|
|
|
@@ -7611,8 +8317,25 @@ class Infoblox extends AdapterBaseCl {
|
|
|
7611
8317
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
7612
8318
|
|
|
7613
8319
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
8320
|
+
const queryParamsAvailable = query;
|
|
8321
|
+
const queryParams = {};
|
|
8322
|
+
const pathVars = [];
|
|
8323
|
+
const bodyVars = {};
|
|
8324
|
+
|
|
8325
|
+
// loop in template. long callback arg name to avoid identifier conflicts
|
|
8326
|
+
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
8327
|
+
if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
|
|
8328
|
+
&& queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
|
|
8329
|
+
queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
|
|
8330
|
+
}
|
|
8331
|
+
});
|
|
8332
|
+
|
|
7614
8333
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders
|
|
7615
|
-
const reqObj =
|
|
8334
|
+
const reqObj = {
|
|
8335
|
+
payload: bodyVars,
|
|
8336
|
+
uriPathVars: pathVars,
|
|
8337
|
+
uriQuery: queryParams
|
|
8338
|
+
};
|
|
7616
8339
|
|
|
7617
8340
|
try {
|
|
7618
8341
|
// Make the call -
|
|
@@ -7648,9 +8371,20 @@ class Infoblox extends AdapterBaseCl {
|
|
|
7648
8371
|
* @param {string} address - address param
|
|
7649
8372
|
* @param {getCallback} callback - a callback function to return the result
|
|
7650
8373
|
*/
|
|
7651
|
-
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
7652
8374
|
getIpAddressUsingSearch(address, callback) {
|
|
7653
|
-
|
|
8375
|
+
this.getIpAddressUsingSearchWithQuery(address, {}, callback);
|
|
8376
|
+
}
|
|
8377
|
+
|
|
8378
|
+
/**
|
|
8379
|
+
* @summary GET IP address using search
|
|
8380
|
+
*
|
|
8381
|
+
* @function getIpAddressUsingSearchWithQuery
|
|
8382
|
+
* @param {string} address - address param
|
|
8383
|
+
* @param {object} query - query params for request
|
|
8384
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
8385
|
+
*/
|
|
8386
|
+
getIpAddressUsingSearchWithQuery(address, query, callback) {
|
|
8387
|
+
const meth = 'adapter-getIpAddressUsingSearchWithQuery';
|
|
7654
8388
|
const origin = `${this.id}-${meth}`;
|
|
7655
8389
|
log.trace(origin);
|
|
7656
8390
|
|
|
@@ -7672,6 +8406,9 @@ class Infoblox extends AdapterBaseCl {
|
|
|
7672
8406
|
const queryParams = {};
|
|
7673
8407
|
const pathVars = [];
|
|
7674
8408
|
const bodyVars = {};
|
|
8409
|
+
if (query) {
|
|
8410
|
+
Object.assign(queryParamsAvailable, query);
|
|
8411
|
+
}
|
|
7675
8412
|
|
|
7676
8413
|
// loop in template. long callback arg name to avoid identifier conflicts
|
|
7677
8414
|
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
@@ -7721,9 +8458,19 @@ class Infoblox extends AdapterBaseCl {
|
|
|
7721
8458
|
* @function getDnsView
|
|
7722
8459
|
* @param {getCallback} callback - a callback function to return the result
|
|
7723
8460
|
*/
|
|
7724
|
-
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
7725
8461
|
getDnsView(callback) {
|
|
7726
|
-
|
|
8462
|
+
this.getDnsViewWithQuery({}, callback);
|
|
8463
|
+
}
|
|
8464
|
+
|
|
8465
|
+
/**
|
|
8466
|
+
* @summary GET DNS view
|
|
8467
|
+
*
|
|
8468
|
+
* @function getDnsViewWithQuery
|
|
8469
|
+
* @param {object} query - query params for request
|
|
8470
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
8471
|
+
*/
|
|
8472
|
+
getDnsViewWithQuery(query, callback) {
|
|
8473
|
+
const meth = 'adapter-getDnsViewWithQuery';
|
|
7727
8474
|
const origin = `${this.id}-${meth}`;
|
|
7728
8475
|
log.trace(origin);
|
|
7729
8476
|
|
|
@@ -7736,8 +8483,25 @@ class Infoblox extends AdapterBaseCl {
|
|
|
7736
8483
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
7737
8484
|
|
|
7738
8485
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
8486
|
+
const queryParamsAvailable = query;
|
|
8487
|
+
const queryParams = {};
|
|
8488
|
+
const pathVars = [];
|
|
8489
|
+
const bodyVars = {};
|
|
8490
|
+
|
|
8491
|
+
// loop in template. long callback arg name to avoid identifier conflicts
|
|
8492
|
+
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
8493
|
+
if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
|
|
8494
|
+
&& queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
|
|
8495
|
+
queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
|
|
8496
|
+
}
|
|
8497
|
+
});
|
|
8498
|
+
|
|
7739
8499
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders
|
|
7740
|
-
const reqObj =
|
|
8500
|
+
const reqObj = {
|
|
8501
|
+
payload: bodyVars,
|
|
8502
|
+
uriPathVars: pathVars,
|
|
8503
|
+
uriQuery: queryParams
|
|
8504
|
+
};
|
|
7741
8505
|
|
|
7742
8506
|
try {
|
|
7743
8507
|
// Make the call -
|
|
@@ -7772,59 +8536,17 @@ class Infoblox extends AdapterBaseCl {
|
|
|
7772
8536
|
* @function getNetworkView
|
|
7773
8537
|
* @param {getCallback} callback - a callback function to return the result
|
|
7774
8538
|
*/
|
|
7775
|
-
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
7776
8539
|
getNetworkView(callback) {
|
|
7777
|
-
|
|
7778
|
-
const origin = `${this.id}-${meth}`;
|
|
7779
|
-
log.trace(origin);
|
|
7780
|
-
|
|
7781
|
-
if (this.suspended && this.suspendMode === 'error') {
|
|
7782
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
7783
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
7784
|
-
return callback(null, errorObj);
|
|
7785
|
-
}
|
|
7786
|
-
|
|
7787
|
-
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
7788
|
-
|
|
7789
|
-
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
7790
|
-
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders
|
|
7791
|
-
const reqObj = null;
|
|
7792
|
-
|
|
7793
|
-
try {
|
|
7794
|
-
// Make the call -
|
|
7795
|
-
// identifyRequest(entity, action, requestObj, returnDataFlag, callback)
|
|
7796
|
-
return this.requestHandlerInst.identifyRequest('NetworkViewsAndDNSViews', 'getNetworkView', reqObj, true, (irReturnData, irReturnError) => {
|
|
7797
|
-
// if we received an error or their is no response on the results
|
|
7798
|
-
// return an error
|
|
7799
|
-
if (irReturnError) {
|
|
7800
|
-
/* HERE IS WHERE YOU CAN ALTER THE ERROR MESSAGE */
|
|
7801
|
-
return callback(null, irReturnError);
|
|
7802
|
-
}
|
|
7803
|
-
if (!Object.hasOwnProperty.call(irReturnData, 'response')) {
|
|
7804
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Invalid Response', ['getNetworkView'], null, null, null);
|
|
7805
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
7806
|
-
return callback(null, errorObj);
|
|
7807
|
-
}
|
|
7808
|
-
|
|
7809
|
-
/* HERE IS WHERE YOU CAN ALTER THE RETURN DATA */
|
|
7810
|
-
// return the response
|
|
7811
|
-
return callback(irReturnData, null);
|
|
7812
|
-
});
|
|
7813
|
-
} catch (ex) {
|
|
7814
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Caught Exception', null, null, null, ex);
|
|
7815
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
7816
|
-
return callback(null, errorObj);
|
|
7817
|
-
}
|
|
8540
|
+
this.getNetworkViewWithQuery({}, callback);
|
|
7818
8541
|
}
|
|
7819
8542
|
|
|
7820
8543
|
/**
|
|
7821
|
-
* @summary GET Network view
|
|
8544
|
+
* @summary GET Network view
|
|
7822
8545
|
*
|
|
7823
8546
|
* @function getNetworkViewWithQuery
|
|
7824
|
-
* @param {object} query - query
|
|
8547
|
+
* @param {object} query - query params for request
|
|
7825
8548
|
* @param {getCallback} callback - a callback function to return the result
|
|
7826
8549
|
*/
|
|
7827
|
-
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
7828
8550
|
getNetworkViewWithQuery(query, callback) {
|
|
7829
8551
|
const meth = 'adapter-getNetworkViewWithQuery';
|
|
7830
8552
|
const origin = `${this.id}-${meth}`;
|
|
@@ -7870,7 +8592,7 @@ class Infoblox extends AdapterBaseCl {
|
|
|
7870
8592
|
return callback(null, irReturnError);
|
|
7871
8593
|
}
|
|
7872
8594
|
if (!Object.hasOwnProperty.call(irReturnData, 'response')) {
|
|
7873
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Invalid Response', ['
|
|
8595
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Invalid Response', ['getNetworkView'], null, null, null);
|
|
7874
8596
|
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
7875
8597
|
return callback(null, errorObj);
|
|
7876
8598
|
}
|
|
@@ -7968,7 +8690,6 @@ class Infoblox extends AdapterBaseCl {
|
|
|
7968
8690
|
* @param {object} query - query param
|
|
7969
8691
|
* @param {getCallback} callback - a callback function to return the result
|
|
7970
8692
|
*/
|
|
7971
|
-
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
7972
8693
|
getNetworkViewById(viewId, query, callback) {
|
|
7973
8694
|
const meth = 'adapter-getNetworkViewById';
|
|
7974
8695
|
const origin = `${this.id}-${meth}`;
|
|
@@ -8192,7 +8913,20 @@ class Infoblox extends AdapterBaseCl {
|
|
|
8192
8913
|
*/
|
|
8193
8914
|
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
8194
8915
|
getFixedAddressMac(mac, callback) {
|
|
8195
|
-
|
|
8916
|
+
this.getFixedAddressMacWithQuery(mac, {}, callback);
|
|
8917
|
+
}
|
|
8918
|
+
|
|
8919
|
+
/**
|
|
8920
|
+
* @summary GET Fixed address MAC
|
|
8921
|
+
*
|
|
8922
|
+
* @function getFixedAddressMacWithQuery
|
|
8923
|
+
* @param {string} mac - mac param
|
|
8924
|
+
* @param {object} query - query params for request
|
|
8925
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
8926
|
+
*/
|
|
8927
|
+
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
8928
|
+
getFixedAddressMacWithQuery(mac, query, callback) {
|
|
8929
|
+
const meth = 'adapter-getFixedAddressMacWithQuery';
|
|
8196
8930
|
const origin = `${this.id}-${meth}`;
|
|
8197
8931
|
log.trace(origin);
|
|
8198
8932
|
|
|
@@ -8214,6 +8948,9 @@ class Infoblox extends AdapterBaseCl {
|
|
|
8214
8948
|
const queryParams = {};
|
|
8215
8949
|
const pathVars = [];
|
|
8216
8950
|
const bodyVars = {};
|
|
8951
|
+
if (query) {
|
|
8952
|
+
Object.assign(queryParamsAvailable, query);
|
|
8953
|
+
}
|
|
8217
8954
|
|
|
8218
8955
|
// loop in template. long callback arg name to avoid identifier conflicts
|
|
8219
8956
|
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
@@ -8332,14 +9069,24 @@ class Infoblox extends AdapterBaseCl {
|
|
|
8332
9069
|
}
|
|
8333
9070
|
|
|
8334
9071
|
/**
|
|
8335
|
-
* @summary GET Members
|
|
9072
|
+
* @summary GET Members getMembers
|
|
8336
9073
|
*
|
|
8337
9074
|
* @function getMembers
|
|
8338
9075
|
* @param {getCallback} callback - a callback function to return the result
|
|
8339
9076
|
*/
|
|
8340
|
-
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
8341
9077
|
getMembers(callback) {
|
|
8342
|
-
|
|
9078
|
+
this.getMembersWithQuery({}, callback);
|
|
9079
|
+
}
|
|
9080
|
+
|
|
9081
|
+
/**
|
|
9082
|
+
* @summary GET Members getMembers
|
|
9083
|
+
*
|
|
9084
|
+
* @function getMembersWithQuery
|
|
9085
|
+
* @param {object} query - query params for request
|
|
9086
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
9087
|
+
*/
|
|
9088
|
+
getMembersWithQuery(query, callback) {
|
|
9089
|
+
const meth = 'adapter-getMembersWithQuery';
|
|
8343
9090
|
const origin = `${this.id}-${meth}`;
|
|
8344
9091
|
log.trace(origin);
|
|
8345
9092
|
|
|
@@ -8352,8 +9099,25 @@ class Infoblox extends AdapterBaseCl {
|
|
|
8352
9099
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
8353
9100
|
|
|
8354
9101
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
9102
|
+
const queryParamsAvailable = query;
|
|
9103
|
+
const queryParams = {};
|
|
9104
|
+
const pathVars = [];
|
|
9105
|
+
const bodyVars = {};
|
|
9106
|
+
|
|
9107
|
+
// loop in template. long callback arg name to avoid identifier conflicts
|
|
9108
|
+
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
9109
|
+
if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
|
|
9110
|
+
&& queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
|
|
9111
|
+
queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
|
|
9112
|
+
}
|
|
9113
|
+
});
|
|
9114
|
+
|
|
8355
9115
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders
|
|
8356
|
-
const reqObj =
|
|
9116
|
+
const reqObj = {
|
|
9117
|
+
payload: bodyVars,
|
|
9118
|
+
uriPathVars: pathVars,
|
|
9119
|
+
uriQuery: queryParams
|
|
9120
|
+
};
|
|
8357
9121
|
|
|
8358
9122
|
try {
|
|
8359
9123
|
// Make the call -
|
|
@@ -8462,9 +9226,19 @@ class Infoblox extends AdapterBaseCl {
|
|
|
8462
9226
|
* @function getGrid
|
|
8463
9227
|
* @param {getCallback} callback - a callback function to return the result
|
|
8464
9228
|
*/
|
|
8465
|
-
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
8466
9229
|
getGrid(callback) {
|
|
8467
|
-
|
|
9230
|
+
this.getGridWithQuery({}, callback);
|
|
9231
|
+
}
|
|
9232
|
+
|
|
9233
|
+
/**
|
|
9234
|
+
* @summary GET grid
|
|
9235
|
+
*
|
|
9236
|
+
* @function getGridWithQuery
|
|
9237
|
+
* @param {object} query - query params for request
|
|
9238
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
9239
|
+
*/
|
|
9240
|
+
getGridWithQuery(query, callback) {
|
|
9241
|
+
const meth = 'adapter-getGridWithQuery';
|
|
8468
9242
|
const origin = `${this.id}-${meth}`;
|
|
8469
9243
|
log.trace(origin);
|
|
8470
9244
|
|
|
@@ -8477,8 +9251,25 @@ class Infoblox extends AdapterBaseCl {
|
|
|
8477
9251
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
8478
9252
|
|
|
8479
9253
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
9254
|
+
const queryParamsAvailable = query;
|
|
9255
|
+
const queryParams = {};
|
|
9256
|
+
const pathVars = [];
|
|
9257
|
+
const bodyVars = {};
|
|
9258
|
+
|
|
9259
|
+
// loop in template. long callback arg name to avoid identifier conflicts
|
|
9260
|
+
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
9261
|
+
if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
|
|
9262
|
+
&& queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
|
|
9263
|
+
queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
|
|
9264
|
+
}
|
|
9265
|
+
});
|
|
9266
|
+
|
|
8480
9267
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders
|
|
8481
|
-
const reqObj =
|
|
9268
|
+
const reqObj = {
|
|
9269
|
+
payload: bodyVars,
|
|
9270
|
+
uriPathVars: pathVars,
|
|
9271
|
+
uriQuery: queryParams
|
|
9272
|
+
};
|
|
8482
9273
|
|
|
8483
9274
|
try {
|
|
8484
9275
|
// Make the call -
|
|
@@ -8513,9 +9304,19 @@ class Infoblox extends AdapterBaseCl {
|
|
|
8513
9304
|
* @function getGridStatus
|
|
8514
9305
|
* @param {getCallback} callback - a callback function to return the result
|
|
8515
9306
|
*/
|
|
8516
|
-
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
8517
9307
|
getGridStatus(callback) {
|
|
8518
|
-
|
|
9308
|
+
this.getGridStatusWithQuery({}, callback);
|
|
9309
|
+
}
|
|
9310
|
+
|
|
9311
|
+
/**
|
|
9312
|
+
* @summary GET grid status
|
|
9313
|
+
*
|
|
9314
|
+
* @function getGridStatusWithQuery
|
|
9315
|
+
* @param {object} query - query params for request
|
|
9316
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
9317
|
+
*/
|
|
9318
|
+
getGridStatusWithQuery(query, callback) {
|
|
9319
|
+
const meth = 'adapter-getGridStatusWithQuery';
|
|
8519
9320
|
const origin = `${this.id}-${meth}`;
|
|
8520
9321
|
log.trace(origin);
|
|
8521
9322
|
|
|
@@ -8528,8 +9329,25 @@ class Infoblox extends AdapterBaseCl {
|
|
|
8528
9329
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
8529
9330
|
|
|
8530
9331
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
9332
|
+
const queryParamsAvailable = query;
|
|
9333
|
+
const queryParams = {};
|
|
9334
|
+
const pathVars = [];
|
|
9335
|
+
const bodyVars = {};
|
|
9336
|
+
|
|
9337
|
+
// loop in template. long callback arg name to avoid identifier conflicts
|
|
9338
|
+
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
9339
|
+
if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
|
|
9340
|
+
&& queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
|
|
9341
|
+
queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
|
|
9342
|
+
}
|
|
9343
|
+
});
|
|
9344
|
+
|
|
8531
9345
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders
|
|
8532
|
-
const reqObj =
|
|
9346
|
+
const reqObj = {
|
|
9347
|
+
payload: bodyVars,
|
|
9348
|
+
uriPathVars: pathVars,
|
|
9349
|
+
uriQuery: queryParams
|
|
9350
|
+
};
|
|
8533
9351
|
|
|
8534
9352
|
try {
|
|
8535
9353
|
// Make the call -
|
|
@@ -8564,9 +9382,19 @@ class Infoblox extends AdapterBaseCl {
|
|
|
8564
9382
|
* @function getGridPendingChanges
|
|
8565
9383
|
* @param {getCallback} callback - a callback function to return the result
|
|
8566
9384
|
*/
|
|
8567
|
-
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
8568
9385
|
getGridPendingChanges(callback) {
|
|
8569
|
-
|
|
9386
|
+
this.getGridPendingChangesWithQuery({}, callback);
|
|
9387
|
+
}
|
|
9388
|
+
|
|
9389
|
+
/**
|
|
9390
|
+
* @summary GET grid pending changes
|
|
9391
|
+
*
|
|
9392
|
+
* @function getGridPendingChangesWithQuery
|
|
9393
|
+
* @param {object} query - query params for request
|
|
9394
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
9395
|
+
*/
|
|
9396
|
+
getGridPendingChangesWithQuery(query, callback) {
|
|
9397
|
+
const meth = 'adapter-getGridPendingChangesWithQuery';
|
|
8570
9398
|
const origin = `${this.id}-${meth}`;
|
|
8571
9399
|
log.trace(origin);
|
|
8572
9400
|
|
|
@@ -8579,8 +9407,25 @@ class Infoblox extends AdapterBaseCl {
|
|
|
8579
9407
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
8580
9408
|
|
|
8581
9409
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
9410
|
+
const queryParamsAvailable = query;
|
|
9411
|
+
const queryParams = {};
|
|
9412
|
+
const pathVars = [];
|
|
9413
|
+
const bodyVars = {};
|
|
9414
|
+
|
|
9415
|
+
// loop in template. long callback arg name to avoid identifier conflicts
|
|
9416
|
+
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
9417
|
+
if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
|
|
9418
|
+
&& queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
|
|
9419
|
+
queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
|
|
9420
|
+
}
|
|
9421
|
+
});
|
|
9422
|
+
|
|
8582
9423
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders
|
|
8583
|
-
const reqObj =
|
|
9424
|
+
const reqObj = {
|
|
9425
|
+
payload: bodyVars,
|
|
9426
|
+
uriPathVars: pathVars,
|
|
9427
|
+
uriQuery: queryParams
|
|
9428
|
+
};
|
|
8584
9429
|
|
|
8585
9430
|
try {
|
|
8586
9431
|
// Make the call -
|
|
@@ -8613,11 +9458,22 @@ class Infoblox extends AdapterBaseCl {
|
|
|
8613
9458
|
* @summary GET vDiscovery tasks
|
|
8614
9459
|
*
|
|
8615
9460
|
* @function getVdiscoveryTasks
|
|
9461
|
+
* @param {object} query - query params for request
|
|
8616
9462
|
* @param {getCallback} callback - a callback function to return the result
|
|
8617
9463
|
*/
|
|
8618
|
-
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
8619
9464
|
getVdiscoveryTasks(callback) {
|
|
8620
|
-
|
|
9465
|
+
this.getVdiscoveryTasksWithQuery({}, callback);
|
|
9466
|
+
}
|
|
9467
|
+
|
|
9468
|
+
/**
|
|
9469
|
+
* @summary GET vDiscovery tasks
|
|
9470
|
+
*
|
|
9471
|
+
* @function getVdiscoveryTasksWithQuery
|
|
9472
|
+
* @param {object} query - query params for request
|
|
9473
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
9474
|
+
*/
|
|
9475
|
+
getVdiscoveryTasksWithQuery(query, callback) {
|
|
9476
|
+
const meth = 'adapter-getVdiscoveryTasksWithQuery';
|
|
8621
9477
|
const origin = `${this.id}-${meth}`;
|
|
8622
9478
|
log.trace(origin);
|
|
8623
9479
|
|
|
@@ -8630,8 +9486,25 @@ class Infoblox extends AdapterBaseCl {
|
|
|
8630
9486
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
8631
9487
|
|
|
8632
9488
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
9489
|
+
const queryParamsAvailable = query;
|
|
9490
|
+
const queryParams = {};
|
|
9491
|
+
const pathVars = [];
|
|
9492
|
+
const bodyVars = {};
|
|
9493
|
+
|
|
9494
|
+
// loop in template. long callback arg name to avoid identifier conflicts
|
|
9495
|
+
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
9496
|
+
if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
|
|
9497
|
+
&& queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
|
|
9498
|
+
queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
|
|
9499
|
+
}
|
|
9500
|
+
});
|
|
9501
|
+
|
|
8633
9502
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders
|
|
8634
|
-
const reqObj =
|
|
9503
|
+
const reqObj = {
|
|
9504
|
+
payload: bodyVars,
|
|
9505
|
+
uriPathVars: pathVars,
|
|
9506
|
+
uriQuery: queryParams
|
|
9507
|
+
};
|
|
8635
9508
|
|
|
8636
9509
|
try {
|
|
8637
9510
|
// Make the call -
|
|
@@ -8741,9 +9614,20 @@ class Infoblox extends AdapterBaseCl {
|
|
|
8741
9614
|
* @param {string} role - role param
|
|
8742
9615
|
* @param {getCallback} callback - a callback function to return the result
|
|
8743
9616
|
*/
|
|
8744
|
-
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
8745
9617
|
getPermissionsForARole(role, callback) {
|
|
8746
|
-
|
|
9618
|
+
this.getPermissionsForARoleWithQuery(role, {}, callback);
|
|
9619
|
+
}
|
|
9620
|
+
|
|
9621
|
+
/**
|
|
9622
|
+
* @summary GET Permissions for a role
|
|
9623
|
+
*
|
|
9624
|
+
* @function getPermissionsForARoleWithQuery
|
|
9625
|
+
* @param {string} role - role param
|
|
9626
|
+
* @param {object} query - query params for request
|
|
9627
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
9628
|
+
*/
|
|
9629
|
+
getPermissionsForARoleWithQuery(role, query, callback) {
|
|
9630
|
+
const meth = 'adapter-getPermissionsForARoleWithQuery';
|
|
8747
9631
|
const origin = `${this.id}-${meth}`;
|
|
8748
9632
|
log.trace(origin);
|
|
8749
9633
|
|
|
@@ -8765,6 +9649,9 @@ class Infoblox extends AdapterBaseCl {
|
|
|
8765
9649
|
const queryParams = {};
|
|
8766
9650
|
const pathVars = [];
|
|
8767
9651
|
const bodyVars = {};
|
|
9652
|
+
if (query) {
|
|
9653
|
+
Object.assign(queryParamsAvailable, query);
|
|
9654
|
+
}
|
|
8768
9655
|
|
|
8769
9656
|
// loop in template. long callback arg name to avoid identifier conflicts
|
|
8770
9657
|
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
@@ -8815,9 +9702,20 @@ class Infoblox extends AdapterBaseCl {
|
|
|
8815
9702
|
* @param {string} schema - schema param
|
|
8816
9703
|
* @param {getCallback} callback - a callback function to return the result
|
|
8817
9704
|
*/
|
|
8818
|
-
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
8819
9705
|
getWapiSchema(schema, callback) {
|
|
8820
|
-
|
|
9706
|
+
this.getWapiSchemaWithQuery(schema, {}, callback);
|
|
9707
|
+
}
|
|
9708
|
+
|
|
9709
|
+
/**
|
|
9710
|
+
* @summary GET WAPI Schema
|
|
9711
|
+
*
|
|
9712
|
+
* @function getWapiSchemaWithQuery
|
|
9713
|
+
* @param {string} schema - schema param
|
|
9714
|
+
* @param {object} query - query params for request
|
|
9715
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
9716
|
+
*/
|
|
9717
|
+
getWapiSchemaWithQuery(schema, query, callback) {
|
|
9718
|
+
const meth = 'adapter-getWapiSchemaWithQuery';
|
|
8821
9719
|
const origin = `${this.id}-${meth}`;
|
|
8822
9720
|
log.trace(origin);
|
|
8823
9721
|
|
|
@@ -8839,6 +9737,9 @@ class Infoblox extends AdapterBaseCl {
|
|
|
8839
9737
|
const queryParams = {};
|
|
8840
9738
|
const pathVars = [];
|
|
8841
9739
|
const bodyVars = {};
|
|
9740
|
+
if (query) {
|
|
9741
|
+
Object.assign(queryParamsAvailable, query);
|
|
9742
|
+
}
|
|
8842
9743
|
|
|
8843
9744
|
// loop in template. long callback arg name to avoid identifier conflicts
|
|
8844
9745
|
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
@@ -8964,54 +9865,14 @@ class Infoblox extends AdapterBaseCl {
|
|
|
8964
9865
|
*/
|
|
8965
9866
|
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
8966
9867
|
getExtensibleAttributeDefinition(callback) {
|
|
8967
|
-
|
|
8968
|
-
const origin = `${this.id}-${meth}`;
|
|
8969
|
-
log.trace(origin);
|
|
8970
|
-
|
|
8971
|
-
if (this.suspended && this.suspendMode === 'error') {
|
|
8972
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
8973
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
8974
|
-
return callback(null, errorObj);
|
|
8975
|
-
}
|
|
8976
|
-
|
|
8977
|
-
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
8978
|
-
|
|
8979
|
-
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
8980
|
-
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders
|
|
8981
|
-
const reqObj = null;
|
|
8982
|
-
|
|
8983
|
-
try {
|
|
8984
|
-
// Make the call -
|
|
8985
|
-
// identifyRequest(entity, action, requestObj, returnDataFlag, callback)
|
|
8986
|
-
return this.requestHandlerInst.identifyRequest('ExtensibleAttributes', 'getExtensibleAttributeDefinition', reqObj, true, (irReturnData, irReturnError) => {
|
|
8987
|
-
// if we received an error or their is no response on the results
|
|
8988
|
-
// return an error
|
|
8989
|
-
if (irReturnError) {
|
|
8990
|
-
/* HERE IS WHERE YOU CAN ALTER THE ERROR MESSAGE */
|
|
8991
|
-
return callback(null, irReturnError);
|
|
8992
|
-
}
|
|
8993
|
-
if (!Object.hasOwnProperty.call(irReturnData, 'response')) {
|
|
8994
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Invalid Response', ['getExtensibleAttributeDefinition'], null, null, null);
|
|
8995
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
8996
|
-
return callback(null, errorObj);
|
|
8997
|
-
}
|
|
8998
|
-
|
|
8999
|
-
/* HERE IS WHERE YOU CAN ALTER THE RETURN DATA */
|
|
9000
|
-
// return the response
|
|
9001
|
-
return callback(irReturnData, null);
|
|
9002
|
-
});
|
|
9003
|
-
} catch (ex) {
|
|
9004
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Caught Exception', null, null, null, ex);
|
|
9005
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
9006
|
-
return callback(null, errorObj);
|
|
9007
|
-
}
|
|
9868
|
+
this.getExtensibleAttributeDefinitionWithQuery({}, callback);
|
|
9008
9869
|
}
|
|
9009
9870
|
|
|
9010
9871
|
/**
|
|
9011
|
-
* @summary GET Extensible Attribute definition
|
|
9872
|
+
* @summary GET Extensible Attribute definition
|
|
9012
9873
|
*
|
|
9013
9874
|
* @function getExtensibleAttributeDefinitionWithQuery
|
|
9014
|
-
* @param {object} query - query
|
|
9875
|
+
* @param {object} query - query params for request
|
|
9015
9876
|
* @param {getCallback} callback - a callback function to return the result
|
|
9016
9877
|
*/
|
|
9017
9878
|
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
@@ -9060,7 +9921,7 @@ class Infoblox extends AdapterBaseCl {
|
|
|
9060
9921
|
return callback(null, irReturnError);
|
|
9061
9922
|
}
|
|
9062
9923
|
if (!Object.hasOwnProperty.call(irReturnData, 'response')) {
|
|
9063
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Invalid Response', ['
|
|
9924
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Invalid Response', ['getExtensibleAttributeDefinition'], null, null, null);
|
|
9064
9925
|
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
9065
9926
|
return callback(null, errorObj);
|
|
9066
9927
|
}
|