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
+67-31Lines changed: 67 additions & 31 deletions
Original file line number
Diff line number
Diff line change
@@ -587,7 +587,35 @@ definitions:
587
587
example: 19.0
588
588
required: [activated]
589
589
590
-
ManagedSystemDataProperty:
590
+
ManagedSystemSysApiData:
591
+
description: Contains the SysAPI information.
592
+
type: object
593
+
properties:
594
+
lastUpdatedTimestamp:
595
+
description: Last updated timestamp.
596
+
type: string
597
+
format: iso-date-time
598
+
example: '2019-02-11T13:32:06.030958Z'
599
+
data:
600
+
description: The lists of SysAPI property-bags.
601
+
type: array
602
+
items:
603
+
description: >
604
+
A property-bag tend to look like
605
+
{
606
+
resource_uri = <str>,
607
+
[
608
+
{
609
+
type = <str>,
610
+
tag = <int64>,
611
+
value = <str>
612
+
}
613
+
]
614
+
}
615
+
type: object
616
+
required: [lastUpdatedTimestamp, data]
617
+
618
+
ManagedSystemDataPropertyMap:
591
619
description: Property of a system composed by the last updated timestamp and a dictionary with the actual data.
592
620
type: object
593
621
properties:
@@ -597,8 +625,10 @@ definitions:
597
625
format: iso-date-time
598
626
example: '2019-02-11T13:32:06.030958Z'
599
627
data:
600
-
description: The actual data.
628
+
description: This map is used for grains/packages/feeds. All these are heterogeneous (integers, booleans, lists, dictionaries, ...) collections containing open-ended properties and flags.
601
629
type: object
630
+
additionalProperties:
631
+
type: object
602
632
example:
603
633
key: value
604
634
required: [lastUpdatedTimestamp, data]
@@ -656,7 +686,7 @@ definitions:
656
686
required: [lastUpdatedTimestamp, data]
657
687
grains:
658
688
description: General information about the system.
description: Specifies the groups to which the system is assigned.
737
-
$ref: '#/definitions/ManagedSystemDataProperty'
738
-
example:
739
-
lastUpdatedTimestamp: '2019-02-19T11:42:25.078Z'
767
+
type: object
768
+
properties:
769
+
lastUpdatedTimestamp:
770
+
description: Last updated timestamp.
771
+
type: string
772
+
format: iso-date-time
773
+
example: '2019-02-19T11:42:25.078Z'
740
774
data:
741
-
- 121b471c-d7d4-4996-a38f-27f7e58be070
775
+
description: A list of strings defining metadata information about a system.
776
+
type: array
777
+
items:
778
+
type: string
779
+
example: Lab1
780
+
required: [lastUpdatedTimestamp, data]
742
781
keywords:
743
782
description: Keywords metadata information about a system.
744
783
type: object
@@ -753,8 +792,7 @@ definitions:
753
792
type: array
754
793
items:
755
794
type: string
756
-
example:
757
-
- testVM
795
+
example: testVM
758
796
required: [lastUpdatedTimestamp, data]
759
797
properties:
760
798
description: Properties metadata information about a system.
@@ -796,7 +834,7 @@ definitions:
796
834
$ref: '#/definitions/ReportType'
797
835
filter:
798
836
type: string
799
-
example: grains.data.os==""NILinuxRT""
837
+
example: grains.data.os=="NILinuxRT"
800
838
description: Specifies the filter criteria for systems.
801
839
required: [ids, type]
802
840
@@ -1119,10 +1157,9 @@ definitions:
1119
1157
description: The name of the package.
1120
1158
example: "ni-securityupdate-kb67l8lcqw-killbits"
1121
1159
plugin:
1122
-
type: integer
1123
-
format: int32
1160
+
type: string
1124
1161
description: Agent that will be used to install the package.
1125
-
example: 2
1162
+
example: "wininst"
1126
1163
predepends:
1127
1164
type: array
1128
1165
description: An array containing information about other packages this package predepends.
@@ -1131,10 +1168,9 @@ definitions:
1131
1168
type: string
1132
1169
example: "ni-teststand-2017-tools (>= 17.0.0)"
1133
1170
priority:
1134
-
type: integer
1135
-
format: int32
1171
+
type: string
1136
1172
description: The priority of the package.
1137
-
example: 4
1173
+
example: "standard"
1138
1174
provides:
1139
1175
type: array
1140
1176
description: An array containing information about other packages this package provides.
@@ -1189,7 +1225,7 @@ definitions:
1189
1225
description: An array containing tags for the package.
1190
1226
items:
1191
1227
type: string
1192
-
description: Tag for the package.
1228
+
description: The tag for the package.
1193
1229
example: ".NET"
1194
1230
userVisible:
1195
1231
type: boolean
@@ -1325,7 +1361,7 @@ definitions:
1325
1361
example: 100
1326
1362
filter:
1327
1363
type: string
1328
-
example: connected.data.state==""CONNECTED""
1364
+
example: connected.data.state=="CONNECTED"
1329
1365
description: >-
1330
1366
The filter criteria for jobs or systems. Consists of a string of queries composed using AND/OR operators.
1331
1367
String values and date strings need to be enclosed in double quotes.
@@ -1375,14 +1411,14 @@ definitions:
1375
1411
1376
1412
- config.user: String representing the user who created the job.
1377
1413
1378
-
- config.tgt: List of strings representing the targeted systems. Example: config.tgt.Contains(""id"")
1414
+
- config.tgt: List of strings representing the targeted systems. Example: config.tgt.Contains("id")
1379
1415
1380
-
- config.fun: List of strings representing the functions to be executed within the job. Example: config.fun.Contains(""nisysmgmt.set_blackout"")
1416
+
- config.fun: List of strings representing the functions to be executed within the job. Example: config.fun.Contains("nisysmgmt.set_blackout")
1381
1417
1382
-
- 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"")
1418
+
- 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")
1383
1419
1384
1420
- result.return: An array of objects representing return values for each executed function. Example:
1385
-
result.return[0].Contains(""Success"")
1421
+
result.return[0].Contains("Success")
1386
1422
1387
1423
- result.retcode: An array of integers representing code values for each executed function. Example: result.retcode
1388
1424
@@ -1413,7 +1449,7 @@ definitions:
1413
1449
1414
1450
- grains.lastUpdatedTimestamp: ISO-8601 formatted timestamp string specifying the last date the system grains were updated.
1415
1451
1416
-
- grains.data: Dictionary of string to object representing general information about the system. Example: grains.data.os == ""Windows""
1452
+
- grains.data: Dictionary of string to object representing general information about the system. Example: grains.data.os == "Windows"
1417
1453
1418
1454
- packages.lastUpdatedTimestamp: ISO-8601 formatted timestamp string specifying the last date the system installed packages were updated.
1419
1455
@@ -1429,15 +1465,15 @@ definitions:
1429
1465
1430
1466
- groups.lastUpdatedTimestamp: ISO-8601 formatted timestamp string specifying the last date the system groups data was updated.
1431
1467
1432
-
- groups.data: Array of strings representing the IDs of the groups the system is assigned to. Example: groups.data.Contains(""id"")
1468
+
- groups.data: Array of strings representing the IDs of the groups the system is assigned to. Example: groups.data.Contains("id")
1433
1469
1434
1470
- keywords.lastUpdatedTimestamp: ISO-8601 formatted timestamp string specifying the last date the system keywords were updated.
1435
1471
1436
-
- keywords.data: Array of strings representing the keywords of the system. Example: keywords.data.Contains(""test"")
1472
+
- keywords.data: Array of strings representing the keywords of the system. Example: keywords.data.Contains("test")
1437
1473
1438
1474
- properties.lastUpdatedTimestamp: ISO-8601 formatted timestamp string specifying the last date the system properties were updated.
1439
1475
1440
-
- properties.data: Dictionary of string to string representing metadata information about a system. Example: properties.data.owner == ""admin""
1476
+
- properties.data: Dictionary of string to string representing metadata information about a system. Example: properties.data.owner == "admin"
0 commit comments