You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: systems-management/nisysmgmt.yml
+125-6Lines changed: 125 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -796,7 +796,7 @@ definitions:
796
796
$ref: '#/definitions/ReportType'
797
797
filter:
798
798
type: string
799
-
example: grains.data.os==NILinuxRT
799
+
example: grains.data.os==""NILinuxRT""
800
800
description: Specifies the filter criteria for systems.
801
801
required: [ids, type]
802
802
@@ -1322,8 +1322,119 @@ definitions:
1322
1322
example: 100
1323
1323
filter:
1324
1324
type: string
1325
-
example: connected.data.state==CONNECTED
1326
-
description: The criteria used to filter resources.
1325
+
example: connected.data.state==""CONNECTED""
1326
+
description: >-
1327
+
The filter criteria for jobs or systems. Consists of a string of queries composed using AND/OR operators.
1328
+
String values and date strings need to be enclosed in double quotes.
1329
+
Parenthesis can be used around filters to better define the order of operations.
1330
+
1331
+
Filter syntax: '[property name][operator][operand] and [property name][operator][operand]'
1332
+
1333
+
1334
+
Operators:
1335
+
1336
+
- Equals operator '='. Example: 'x = y'
1337
+
1338
+
- Not equal operator '!='. Example: 'x != y'
1339
+
1340
+
- Greater than operator '>'. Example: 'x > y'
1341
+
1342
+
- Greater than or equal operator '>='. Example: 'x >= y'
1343
+
1344
+
- Less than operator '<'. Example: 'x < y'
1345
+
1346
+
- Less than or equal operator '<='. Example: 'x <= y'
1347
+
1348
+
- Logical AND operator 'and' or '&&'. Example: 'x and y'
1349
+
1350
+
- Logical OR operator 'or' or '||'. Example: 'x or y'
1351
+
1352
+
- Contains operator '.Contains()', used to check if a list contains an element. Example: 'x.Contains(y)'
1353
+
1354
+
- Not Contains operator '!.Contains()', used to check if a list does not contain an element. Example: '!x.Contains(y)'
1355
+
1356
+
1357
+
Valid job properties that can be used in the filter:
1358
+
1359
+
- jid : String representing the ID of the job.
1360
+
1361
+
- id : String representing the ID of the system.
1362
+
1363
+
- createdTimestamp: ISO-8601 formatted timestamp string specifying the date when the job was created.
1364
+
1365
+
- lastUpdatedTimestamp: ISO-8601 formatted timestamp string specifying the last date the job was updated.
1366
+
1367
+
- dispatchedTimestamp: ISO-8601 formatted timestamp string specifying the date when the job was actually sent to the system.
1368
+
1369
+
- state: String representing the state of the job.
1370
+
1371
+
- metadata: Object containg the the metadata of job. Example: metadata.queued
1372
+
1373
+
- config.user: String representing the user who created the job.
1374
+
1375
+
- config.tgt: List of strings representing the targeted systems. Example: config.tgt.Contains(""id"")
1376
+
1377
+
- config.fun: List of strings representing the functions to be executed within the job. Example: config.fun.Contains(""nisysmgmt.set_blackout"")
1378
+
1379
+
- config.arg: An array of arrays of variable type elements that are arguments to the function specified by the "fun" property. Example: config.arg[0].Contains(""test"")
1380
+
1381
+
- result.return: An array of objects representing return values for each executed function. Example:
1382
+
result.return[0].Contains(""Success"")
1383
+
1384
+
- result.retcode: An array of integers representing code values for each executed function. Example: result.retcode
1385
+
1386
+
- result.success: An array of booleans representing success values for each executed function. Example:
1387
+
result.success.Contains(false)
1388
+
1389
+
Valid system properties that can be used in the filter:
1390
+
1391
+
- id : String representing the ID of the system.
1392
+
1393
+
- createdTimestamp: ISO-8601 formatted timestamp string specifying the date when the system was registered.
1394
+
1395
+
- lastUpdatedTimestamp: ISO-8601 formatted timestamp string specifying the last date the system was updated.
1396
+
1397
+
- alias: String representing the alias of the system.
1398
+
1399
+
- activation.lastUpdatedTimestamp: ISO-8601 formatted timestamp string specifying the last date the system activation was updated.
1400
+
1401
+
- activation.data.activated: Boolean representing whether the system is activated or not.
1402
+
1403
+
- activation.data.licenseName: String representing the name of the license.
1404
+
1405
+
- activation.data.licenseVersion: String representing the license version.
1406
+
1407
+
- connected.lastUpdatedTimestamp: ISO-8601 formatted timestamp string specifying the last date the system connection was updated.
1408
+
1409
+
- connected.data.state: String representing the state of the system.
1410
+
1411
+
- grains.lastUpdatedTimestamp: ISO-8601 formatted timestamp string specifying the last date the system grains were updated.
1412
+
1413
+
- grains.data: Dictionary of string to object representing general information about the system. Example: grains.data.os == ""Windows""
1414
+
1415
+
- packages.lastUpdatedTimestamp: ISO-8601 formatted timestamp string specifying the last date the system installed packages were updated.
1416
+
1417
+
- packages.data: Dictionary representing software packages installed on the system. Example: packages.data.ni-package-manager-upgrader.version: String representing the installed version of ni-package-manager-upgrader package.
1418
+
1419
+
- feeds.lastUpdatedTimestamp: ISO-8601 formatted timestamp string specifying the last date the system configured feeds were updated.
1420
+
1421
+
- feeds.data: Dictionary representing the feeds configured on the system.
1422
+
1423
+
- sysapi.lastUpdatedTimestamp: ISO-8601 formatted timestamp string specifying the last date the system sysapi data was updated.
1424
+
1425
+
- sysapi.data: Dictionary representing system API information of a system.
1426
+
1427
+
- groups.lastUpdatedTimestamp: ISO-8601 formatted timestamp string specifying the last date the system groups data was updated.
1428
+
1429
+
- groups.data: Array of strings representing the IDs of the groups the system is assigned to. Example: groups.data.Contains(""id"")
1430
+
1431
+
- keywords.lastUpdatedTimestamp: ISO-8601 formatted timestamp string specifying the last date the system keywords were updated.
1432
+
1433
+
- keywords.data: Array of strings representing the keywords of the system. Example: keywords.data.Contains(""test"")
1434
+
1435
+
- properties.lastUpdatedTimestamp: ISO-8601 formatted timestamp string specifying the last date the system properties were updated.
1436
+
1437
+
- properties.data: Dictionary of string to string representing metadata information about a system. Example: properties.data.owner == ""admin""
1327
1438
projection:
1328
1439
type: string
1329
1440
example: 'new(id,grains,lastUpdatedTimestamp)'
@@ -1406,7 +1517,7 @@ paths:
1406
1517
x-ni-operation: createOrCancelJobs
1407
1518
tags: [jobs]
1408
1519
summary: Create a job
1409
-
description: Create a job.
1520
+
description: Create a job and returns the newly created job including the job ID.
0 commit comments