-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathv1.yaml
316 lines (316 loc) · 8.63 KB
/
v1.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
---
$id: system_profile.spec.yaml
$schema: http://json-schema.org/draft-07/schema#
$defs:
NestedObject:
type: object
description: An arbitrary object that doesn’t allow empty string keys.
# openapi spec does not support propertyNames, we will use a custom validator
# to validate x-propertyNames as propertyNames
x-propertyNames:
minLength: 1
additionalProperties:
oneOf:
- "$ref": "#/$defs/NestedObject"
- not:
type: object
DiskDevice:
description: Representation of one mounted device
type: object
properties:
device:
example: "/dev/fdd0"
type: string
maxLength: 2048
label:
description: User-defined mount label
type: string
maxLength: 1024
options:
description: Mount options for nested object
example:
uid: "0"
ro: true
"$ref": "#/$defs/NestedObject"
mount_point:
description: The mount point
example: "/mnt/remote_nfs_shares"
type: string
maxLength: 2048
type:
description: The mount type
example: "ext3"
type: string
maxLength: 256
YumRepo:
description: Representation of one yum repository
type: object
properties:
id:
type: string
maxLength: 256
name:
type: string
maxLength: 1024
gpgcheck:
type: boolean
enabled:
type: boolean
base_url:
type: string
format: uri
maxLength: 2048
DnfModule:
description: Representation of one DNF module
type: object
properties:
name:
type: string
maxLength: 128
stream:
type: string
maxLength: 2048
InstalledProduct:
description: Representation of one installed product
type: object
properties:
name:
type: string
maxLength: 512
id:
description: The product ID
example: "71"
type: string
maxLength: 64
status:
description: Subscription status for product
example: "Subscribed"
type: string
maxLength: 256
NetworkInterface:
description: Representation of one network interface
type: object
properties:
ipv4_addresses:
type: array
items:
description: The ipv4 address of the system
example: "123.456.789.012"
type: string
format: ipv4
ipv6_addresses:
type: array
items:
description: The ipv6 address of the system
example: "0123:4567:89ab:cdef:0123:4567:89ab:cdef"
type: string
format: ipv6
mtu:
description: MTU (Maximum transmission unit)
type: integer
mac_address:
description: MAC address (with or without colons)
example: "00:00:00:00:00:00"
type: string
maxLength: 59
name:
description: Name of interface
type: string
example: eth0
minLength: 1
maxLength: 50
state:
description: Interface state (UP, DOWN, UNKNOWN)
type: string
example: "UP"
maxLength: 25
type:
description: Interface type (ether, loopback)
type: string
example: "ether"
maxLength: 18
SystemProfile:
description: Representation of the system profile fields
type: object
properties:
owner_id:
description: A UUID associated with the host's RHSM certificate
type: string
pattern: '[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}'
maxLength: 36
example: 22cd8e39-13bb-4d02-8316-84b850dc5136
number_of_cpus:
type: integer
number_of_sockets:
type: integer
cores_per_socket:
type: integer
system_memory_bytes:
type: integer
format: int64
infrastructure_type:
type: string
maxLength: 100
infrastructure_vendor:
type: string
maxLength: 100
network_interfaces:
type: array # techincally a set, ordering is not important
items:
$ref: '#/$defs/NetworkInterface'
disk_devices:
type: array # techincally a set, ordering is not important
items:
$ref: '#/$defs/DiskDevice'
bios_vendor:
type: string
maxLength: 100
bios_version:
type: string
maxLength: 100
bios_release_date:
type: string
maxLength: 50
cpu_flags:
items:
type: string
maxLength: 30
type: array
operating_system:
description: Object for OS details
type: object
properties:
major:
description: Major release of OS (aka the x version)
example: 6
type: integer
minimum: 0
maximum: 99
minor:
description: Minor release of OS (aka the y version)
example: 8
type: integer
minimum: 0
maximum: 99
name:
description: Name of the distro/os
example: "RHEL"
type: string
maxLength: 4
enum: [RHEL]
os_release:
type: string
maxLength: 100
os_kernel_version:
type: string
maxLength: 100
arch:
type: string
maxLength: 50
kernel_modules:
type: array
items:
type: string
maxLength: 255
last_boot_time:
type: string
format: date-time
maxLength: 50
running_processes:
type: array # techincally a set, ordering is not important
items:
description: A single running process. This will be truncated to 1000 characters when saved.
type: string
maxLength: 1000
subscription_status:
type: string
maxLength: 100
subscription_auto_attach:
type: string
maxLength: 100
katello_agent_running:
type: boolean
satellite_managed:
type: boolean
cloud_provider:
type: string
maxLength: 100
yum_repos:
type: array # technically a set, ordering is not important
items:
$ref: '#/$defs/YumRepo'
dnf_modules:
type: array # technically a set, ordering is not important
items:
$ref: '#/$defs/DnfModule'
installed_products:
type: array # technically a set, ordering is not important
items:
$ref: '#/$defs/InstalledProduct'
insights_client_version:
type: string
maxLength: 50
insights_egg_version:
type: string
maxLength: 50
captured_date:
type: string
maxLength: 32
installed_packages:
type: array # technically a set, ordering is not important
items:
description: A NEVRA string for a single installed package
example: "krb5-libs-0:-1.16.1-23.fc29.i686"
type: string
maxLength: 512
installed_services:
type: array
items:
type: string
maxLength: 512
enabled_services:
type: array
items:
type: string
maxLength: 512
sap_system:
type: boolean
description: Indicates if SAP is installed on the system
sap_sids:
type: array
uniqueItems: true
items:
description: The SAP system ID (SID)
type: string
example: "H2O"
maxLength: 3
pattern: '^[A-Z][A-Z0-9]{2}$'
sap_instance_number:
type: string
description: The instance number of the SAP HANA system (a two-digit number between 00 and 97)
example: '03'
maxLength: 2
pattern: '(?!99)(?!98)^[0-9]{2}$'
sap_version:
type: string
description: The version of the SAP HANA lifecycle management program
example: '1.00.122.04.1478575636'
maxLength: 22
pattern: '^[0-9].[0-9]{2}.[0-9]{3}.[0-9]{2}.[0-9]{10}$'
tuned_profile:
type: string
maxLength: 256
description: Current profile resulting from command tuned-adm active
example: 'desktop'
selinux_current_mode:
type: string
enum: [enforcing, permissive, disabled]
maxLength: 10
description: The current SELinux mode, either enforcing, permissive, or disabled
example: 'enforcing'
selinux_config_file:
type: string
enum: [enforcing, permissive, disabled]
maxLength: 10
description: The SELinux mode provided in the config file
example: 'permissive'