-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsle-management-client.yaml
484 lines (484 loc) · 13.1 KB
/
sle-management-client.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
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
openapi: 3.0.1
info:
title: sle-management-client
description: Python SLE Provider Management Client
contact:
email: oss@visionspace.com
license:
name: AGPL-3.0
url: https://opensource.org/licenses/AGPL-3.0
version: 0.1.0
externalDocs:
description: Find out more about the sle-management-client
url: https://github.com/visionspacetec/sle-management-client
servers:
- url: http://localhost:2048/api
- url: https://localhost:2048/api
tags:
- name: service-instances
description: Access the loaded service instances
- name: sle-config
description: Change the SLE configuration parameters
- name: cortex-config
description: Change the Cortex configuration parameters
- name: cortex-command
description: Send commands to the Cortex
paths:
/service-instances:
get:
tags:
- service-instances
summary: Get a list of the loaded service instances
operationId: get_si_list
responses:
200:
description: successful operation
content:
application/json:
schema:
$ref: '#/components/schemas/si-list'
401:
$ref: '#/components/responses/UnauthorizedError'
delete:
tags:
- service-instances
summary: Deletes all loaded service instances
operationId: delete_si_list
responses:
202:
description: Accepted
content: {}
401:
$ref: '#/components/responses/UnauthorizedError'
/service-instances/{si}:
get:
tags:
- service-instances
summary: Find service instance by name
description: Returns a single service instance
operationId: get_si
parameters:
- name: si
in: path
description: Service instance identifier
required: true
schema:
type: string
responses:
200:
description: successful operation
content:
application/json:
schema:
$ref: '#/components/schemas/service-instance'
401:
$ref: '#/components/responses/UnauthorizedError'
404:
description: Service instance not found
content: {}
delete:
tags:
- service-instances
summary: Deletes a service instance by name
operationId: delete_si
parameters:
- name: si
in: path
description: Service instance to delete
required: true
schema:
type: string
responses:
202:
description: Accepted
content: {}
401:
$ref: '#/components/responses/UnauthorizedError'
404:
description: Service instance not found
content: {}
post:
tags:
- service-instances
summary: Adds a service instance
operationId: post_si
parameters:
- name: si
in: path
description: New service instance identifier
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/service-instance'
responses:
201:
description: Created
content: {}
400:
description: Bad request
content: {}
401:
$ref: '#/components/responses/UnauthorizedError'
409:
description: Conflict with existing service instance
content: {}
patch:
tags:
- service-instances
summary: Updates one or more service instance parameters
operationId: patch_si
parameters:
- name: si
in: path
description: Service instance that needs to be updated
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/sle-config-patch'
responses:
401:
$ref: '#/components/responses/UnauthorizedError'
405:
description: Invalid input
content: {}
/sle-config:
get:
tags:
- sle-config
summary: Get a list of the available configuration parameters
operationId: get_sle_config_list
responses:
200:
description: successful operation
content:
application/json:
schema:
$ref: '#/components/schemas/sle-config'
401:
$ref: '#/components/responses/UnauthorizedError'
500:
description: Internal server error
content: {}
/sle-config/{param}:
get:
tags:
- sle-config
summary: Returns the current value of a SLE configuration parameter
operationId: get_sle_config
parameters:
- name: param
in: path
description: Name of the parameter to return
required: true
schema:
$ref: '#/components/schemas/sle-config-params'
responses:
200:
description: successful operation
content:
application/json:
schema:
$ref: '#/components/schemas/sle-config-params-values'
401:
$ref: '#/components/responses/UnauthorizedError'
404:
description: SLE configuration parameter not found
content: {}
500:
description: Internal server error
content: {}
patch:
tags:
- sle-config
summary: Update a SLE configuration parameter
operationId: patch_sle_config
parameters:
- name: param
in: path
description: Name of the parameter that needs to be updated
required: true
schema:
$ref: '#/components/schemas/sle-config-params'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/sle-config-params-values'
responses:
202:
description: Accepted
content: {}
401:
$ref: '#/components/responses/UnauthorizedError'
404:
description: SLE configuration parameter not found
content: {}
500:
description: Internal server error
content: {}
/cortex-config:
get:
tags:
- cortex-config
summary: Get a list of the available configuration tables
operationId: get_cortex_config_table_list
responses:
200:
description: successful operation
content:
application/json:
schema:
$ref: '#/components/schemas/cortex-config-table-list'
401:
$ref: '#/components/responses/UnauthorizedError'
500:
description: Internal server error
content: {}
/cortex-config/{param}:
get:
tags:
- cortex-config
summary: Returns the parameter names of a Cortex configuration table
operationId: get_cortex_config_table
parameters:
- name: param
in: path
description: Name of the table to return
required: true
schema:
type: string
responses:
200:
description: successful operation
content:
application/json:
schema:
$ref: '#/components/schemas/cortex-config-table'
401:
$ref: '#/components/responses/UnauthorizedError'
404:
description: Cortex configuration table not found
content: {}
500:
description: Internal server error
content: {}
/cortex-command:
get:
tags:
- cortex-command
summary: Returns a list of the availiable Cortex commands
operationId: get_cortex_command_list
responses:
200:
description: successful operation
content:
application/json:
schema:
$ref: '#/components/schemas/cortex-command-list'
401:
$ref: '#/components/responses/UnauthorizedError'
500:
description: Internal server error
content: {}
post:
tags:
- cortex-command
summary: Send a command to the Cortex
operationId: post_cortex_command
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/cortex-command'
responses:
202:
description: Accepted
content: {}
400:
description: Bad request
content: {}
401:
$ref: '#/components/responses/UnauthorizedError'
500:
description: Internal server error
content: {}
components:
responses:
UnauthorizedError:
description: Authentication information is missing or invalid
headers:
WWW_Authenticate:
schema:
type: string
securitySchemes:
BasicAuth:
type: http
scheme: basic
schemas:
si-list:
type: array
description: List of all loaded service instances, represented by their service instance identifier
items:
type: string
example: [sagr=1.spack=VST1-PASS0001.rsl-fg=1.raf=ontl1]
sle-config-params:
type: string
description: Configurable parameter set
enum:
- authentication-delay
- transmit-queue-size
- startup-timer
- allow-non-use-heartbeat
- min-hearbeat
- max-heartbeat
- min-deadfactor
- max-deadfactor
- max-trace-size
- min-reporting-cycle
- max-reporting-cycle
- server-types
- local-id
- local-password
- remote-peers
sle-config-params-values:
oneOf:
- type: integer
nullable: true
- type: boolean
- type: string
- type: array
sle-config:
type: array
description: List of all configurable SLE parameters
items:
$ref: '#/components/schemas/sle-config-params'
example: [authentication-delay, startup-timer]
sle-config-patch:
type: object
additionalProperties:
$ref: '#/components/schemas/sle-config-params-values'
example:
authentication-delay: 600
transmit-queue-size: 23
service-instance:
type: object
description: Describes a service instance
properties:
start_time:
type: integer
nullable: true
default: null
example: null
description: ToDo - not yet supported
stop_time:
type: integer
nullable: true
default: null
example: null
description: ToDo - not yet supported
initiator_id:
type: string
default: SLE_USER
example: SLE_USER
responder_id:
type: string
default: SLE_PROVIDER
example: SLE_PROVIDER
return_timeout_period:
type: integer
default: 15
example: 15
delivery_mode:
type: string
enum:
- TIMELY_ONLINE
- COMPLETE_ONLINE
- OFFLINE
default: TIMELY_ONLINE
example: TIMELY_ONLINE
description: ToDo - Only timely online supported
initiator:
type: string
enum:
- USER
- PROVIDER
default: USER
example: USER
permitted_frame_quality:
type: array
items:
type: string
enum:
- allFrames
- erredFramesOnly
- goodFramesOnly
default: [allFrames]
example: [allFrames]
latency_limit:
type: integer
default: 9
example: 9
transfer_buffer_size:
type: integer
default: 1
example: 1
report_cycle:
type: integer
nullable: true
default: null
example: null
requested_frame_quality:
type: string
enum:
- allFrames
- erredFramesOnly
- goodFramesOnly
default: allFrames
example: allFrames
state:
type: string
default: unbound
example: unbound
cortex-config-table-list:
type: array
description: List of the Cortex configuration table names
items:
type: string
example: ["tcu", "ifm1"]
cortex-config-table:
type: array
description: List of all configuration parameters in a table
items:
type: string
example: [flow_id, bit_rate, tc_tone_f1]
cortex-command-list:
type: array
description: List of all availiable Cortex commands
items:
type: string
example: [start-telemetry, stop-telemetry]
cortex-command:
type: object
description: Cortex command with parameters
properties:
command:
type: string
description: Command to execute on the Cortex
example: start-telemetry
args:
type: array
description: The arguments needed to execute the command
items:
type: string
example: [TMUA]
example: {command: start-telemetry, args:[TMUA]}
security:
- basicAuth: []