blob: ec9bbce4541db6792c3ad677e80cbb69a8bf720d [file] [log] [blame]
PatrikBuhr1b8d76d2020-01-30 16:10:19 +01001swagger: '2.0'
2info:
PatrikBuhr6a8a0d52020-03-09 08:01:52 +01003 description: This page lists all the rest apis for the service.
PatrikBuhr1b8d76d2020-01-30 16:10:19 +01004 version: '1.0'
PatrikBuhr6a8a0d52020-03-09 08:01:52 +01005 title: A1 Policy management service
PatrikBuhr1b8d76d2020-01-30 16:10:19 +01006host: 'localhost:8081'
7basePath: /
8tags:
PatrikBuhr6a8a0d52020-03-09 08:01:52 +01009 - name: A1 Policy Management
10 description: Policy Controller
11 - name: Health check
12 description: Status Controller
13 - name: RIC Repository
14 description: Ric Repository Controller
15 - name: Service registry and supervision
16 description: Service Controller
PatrikBuhr1b8d76d2020-01-30 16:10:19 +010017paths:
PatrikBuhr1b8d76d2020-01-30 16:10:19 +010018 /policies:
19 get:
20 tags:
PatrikBuhr6a8a0d52020-03-09 08:01:52 +010021 - A1 Policy Management
PatrikBuhr1b8d76d2020-01-30 16:10:19 +010022 summary: Query policies
23 operationId: getPoliciesUsingGET
24 produces:
25 - '*/*'
26 parameters:
27 - name: ric
28 in: query
maximesson4e2052b2020-06-05 09:12:55 +020029 description: The name of the Near-RT RIC to get policies for.
PatrikBuhr1b8d76d2020-01-30 16:10:19 +010030 required: false
31 type: string
maximesson4e2052b2020-06-05 09:12:55 +020032 allowEmptyValue: false
PatrikBuhr1b8d76d2020-01-30 16:10:19 +010033 - name: service
34 in: query
maximesson4e2052b2020-06-05 09:12:55 +020035 description: The name of the service to get policies for.
PatrikBuhr1b8d76d2020-01-30 16:10:19 +010036 required: false
37 type: string
maximesson4e2052b2020-06-05 09:12:55 +020038 allowEmptyValue: false
PatrikBuhr1b8d76d2020-01-30 16:10:19 +010039 - name: type
40 in: query
maximesson4e2052b2020-06-05 09:12:55 +020041 description: The name of the policy type to get policies for.
PatrikBuhr1b8d76d2020-01-30 16:10:19 +010042 required: false
43 type: string
maximesson4e2052b2020-06-05 09:12:55 +020044 allowEmptyValue: false
PatrikBuhr1b8d76d2020-01-30 16:10:19 +010045 responses:
46 '200':
47 description: Policies
48 schema:
49 type: array
50 items:
51 $ref: '#/definitions/PolicyInfo'
52 '401':
53 description: Unauthorized
54 '403':
55 description: Forbidden
56 '404':
PatrikBuhr6a8a0d52020-03-09 08:01:52 +010057 description: RIC or type not found
58 schema:
59 type: string
PatrikBuhr1b8d76d2020-01-30 16:10:19 +010060 deprecated: false
61 /policy:
62 get:
63 tags:
PatrikBuhr6a8a0d52020-03-09 08:01:52 +010064 - A1 Policy Management
PatrikBuhr1b8d76d2020-01-30 16:10:19 +010065 summary: Returns a policy configuration
66 operationId: getPolicyUsingGET
67 produces:
68 - '*/*'
69 parameters:
elinuxhenrikf85d5642020-04-03 09:24:52 +020070 - name: id
PatrikBuhr1b8d76d2020-01-30 16:10:19 +010071 in: query
maximesson4e2052b2020-06-05 09:12:55 +020072 description: The ID of the policy instance.
PatrikBuhr1b8d76d2020-01-30 16:10:19 +010073 required: true
74 type: string
maximesson4e2052b2020-06-05 09:12:55 +020075 allowEmptyValue: false
PatrikBuhr1b8d76d2020-01-30 16:10:19 +010076 responses:
77 '200':
78 description: Policy found
79 schema:
80 type: object
PatrikBuhr1b8d76d2020-01-30 16:10:19 +010081 '401':
82 description: Unauthorized
83 '403':
84 description: Forbidden
85 '404':
PatrikBuhr6a8a0d52020-03-09 08:01:52 +010086 description: Policy is not found
PatrikBuhr1b8d76d2020-01-30 16:10:19 +010087 deprecated: false
88 put:
89 tags:
PatrikBuhr6a8a0d52020-03-09 08:01:52 +010090 - A1 Policy Management
PatrikBuhr1b8d76d2020-01-30 16:10:19 +010091 summary: Put a policy
92 operationId: putPolicyUsingPUT
93 consumes:
94 - application/json
95 produces:
96 - '*/*'
97 parameters:
elinuxhenrikf85d5642020-04-03 09:24:52 +020098 - name: id
PatrikBuhr1b8d76d2020-01-30 16:10:19 +010099 in: query
maximesson4e2052b2020-06-05 09:12:55 +0200100 description: The ID of the policy instance.
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100101 required: true
102 type: string
maximesson4e2052b2020-06-05 09:12:55 +0200103 allowEmptyValue: false
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100104 - in: body
105 name: jsonBody
106 description: jsonBody
107 required: true
108 schema:
109 type: object
110 - name: ric
111 in: query
maximesson4e2052b2020-06-05 09:12:55 +0200112 description: The name of the Near-RT RIC where the policy will be created.
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100113 required: true
114 type: string
maximesson4e2052b2020-06-05 09:12:55 +0200115 allowEmptyValue: false
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100116 - name: service
117 in: query
maximesson4e2052b2020-06-05 09:12:55 +0200118 description: The name of the service creating the policy.
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100119 required: true
120 type: string
maximesson4e2052b2020-06-05 09:12:55 +0200121 allowEmptyValue: false
PatrikBuhr4db5e7d2020-05-13 10:55:14 +0200122 - name: transient
123 in: query
maximesson4e2052b2020-06-05 09:12:55 +0200124 description: If the policy is transient or not (boolean defaulted to false). A policy is transient if it will be forgotten when the service needs to reconnect to the Near-RT RIC.
PatrikBuhr4db5e7d2020-05-13 10:55:14 +0200125 required: false
126 type: boolean
127 default: false
maximesson4e2052b2020-06-05 09:12:55 +0200128 allowEmptyValue: false
129 x-example: false
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100130 - name: type
131 in: query
maximesson4e2052b2020-06-05 09:12:55 +0200132 description: The name of the policy type.
PatrikBuhr2753ad52020-03-18 13:38:58 +0100133 required: false
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100134 type: string
maximesson4e2052b2020-06-05 09:12:55 +0200135 allowEmptyValue: false
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100136 responses:
137 '200':
PatrikBuhr6a8a0d52020-03-09 08:01:52 +0100138 description: Policy updated
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100139 schema:
PatrikBuhrc5c25192020-03-11 14:15:50 +0100140 type: object
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100141 '201':
PatrikBuhr6a8a0d52020-03-09 08:01:52 +0100142 description: Policy created
143 schema:
PatrikBuhrc5c25192020-03-11 14:15:50 +0100144 type: object
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100145 '401':
146 description: Unauthorized
147 '403':
148 description: Forbidden
149 '404':
PatrikBuhr6a8a0d52020-03-09 08:01:52 +0100150 description: RIC or policy type is not found
151 schema:
152 type: string
PatrikBuhr6a8a0d52020-03-09 08:01:52 +0100153 '423':
PatrikBuhr2bfc1442020-04-07 14:26:26 +0200154 description: RIC is not operational
PatrikBuhr6a8a0d52020-03-09 08:01:52 +0100155 schema:
156 type: string
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100157 deprecated: false
158 delete:
159 tags:
PatrikBuhr6a8a0d52020-03-09 08:01:52 +0100160 - A1 Policy Management
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100161 summary: Delete a policy
162 operationId: deletePolicyUsingDELETE
163 produces:
164 - '*/*'
165 parameters:
elinuxhenrikf85d5642020-04-03 09:24:52 +0200166 - name: id
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100167 in: query
maximesson4e2052b2020-06-05 09:12:55 +0200168 description: The ID of the policy instance.
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100169 required: true
170 type: string
maximesson4e2052b2020-06-05 09:12:55 +0200171 allowEmptyValue: false
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100172 responses:
173 '200':
174 description: OK
175 schema:
176 type: object
177 '204':
178 description: Policy deleted
179 schema:
180 type: object
181 '401':
182 description: Unauthorized
183 '403':
184 description: Forbidden
PatrikBuhr6a8a0d52020-03-09 08:01:52 +0100185 '404':
186 description: Policy is not found
187 schema:
188 type: string
189 '423':
PatrikBuhr2bfc1442020-04-07 14:26:26 +0200190 description: RIC is not operational
PatrikBuhr6a8a0d52020-03-09 08:01:52 +0100191 schema:
192 type: string
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100193 deprecated: false
PatrikBuhr2753ad52020-03-18 13:38:58 +0100194 /policy_ids:
195 get:
196 tags:
197 - A1 Policy Management
198 summary: 'Query policies, only IDs returned'
199 operationId: getPolicyIdsUsingGET
200 produces:
201 - '*/*'
202 parameters:
203 - name: ric
204 in: query
maximesson4e2052b2020-06-05 09:12:55 +0200205 description: The name of the Near-RT RIC to get policies for.
PatrikBuhr2753ad52020-03-18 13:38:58 +0100206 required: false
207 type: string
maximesson4e2052b2020-06-05 09:12:55 +0200208 allowEmptyValue: false
PatrikBuhr2753ad52020-03-18 13:38:58 +0100209 - name: service
210 in: query
maximesson4e2052b2020-06-05 09:12:55 +0200211 description: The name of the service to get policies for.
PatrikBuhr2753ad52020-03-18 13:38:58 +0100212 required: false
213 type: string
maximesson4e2052b2020-06-05 09:12:55 +0200214 allowEmptyValue: false
PatrikBuhr2753ad52020-03-18 13:38:58 +0100215 - name: type
216 in: query
maximesson4e2052b2020-06-05 09:12:55 +0200217 description: The name of the policy type to get policies for.
PatrikBuhr2753ad52020-03-18 13:38:58 +0100218 required: false
219 type: string
maximesson4e2052b2020-06-05 09:12:55 +0200220 allowEmptyValue: false
PatrikBuhr2753ad52020-03-18 13:38:58 +0100221 responses:
222 '200':
223 description: Policy ids
224 schema:
225 type: array
226 items:
227 type: string
228 '401':
229 description: Unauthorized
230 '403':
231 description: Forbidden
232 '404':
233 description: RIC or type not found
234 schema:
235 type: string
236 deprecated: false
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100237 /policy_schema:
238 get:
239 tags:
PatrikBuhr6a8a0d52020-03-09 08:01:52 +0100240 - A1 Policy Management
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100241 summary: Returns one policy type schema definition
242 operationId: getPolicySchemaUsingGET
243 produces:
244 - '*/*'
245 parameters:
246 - name: id
247 in: query
maximesson4e2052b2020-06-05 09:12:55 +0200248 description: The ID of the policy type to get the definition for.
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100249 required: true
250 type: string
maximesson4e2052b2020-06-05 09:12:55 +0200251 allowEmptyValue: false
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100252 responses:
253 '200':
254 description: Policy schema
255 schema:
256 type: object
257 '401':
258 description: Unauthorized
259 '403':
260 description: Forbidden
261 '404':
PatrikBuhr6a8a0d52020-03-09 08:01:52 +0100262 description: RIC is not found
263 schema:
264 type: string
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100265 deprecated: false
266 /policy_schemas:
267 get:
268 tags:
PatrikBuhr6a8a0d52020-03-09 08:01:52 +0100269 - A1 Policy Management
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100270 summary: Returns policy type schema definitions
271 operationId: getPolicySchemasUsingGET
272 produces:
273 - '*/*'
274 parameters:
275 - name: ric
276 in: query
maximesson4e2052b2020-06-05 09:12:55 +0200277 description: The name of the Near-RT RIC to get the definitions for.
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100278 required: false
279 type: string
maximesson4e2052b2020-06-05 09:12:55 +0200280 allowEmptyValue: false
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100281 responses:
282 '200':
283 description: Policy schemas
284 schema:
285 type: array
286 items:
PatrikBuhrb40e1b42020-02-07 12:59:09 +0100287 type: object
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100288 '401':
289 description: Unauthorized
290 '403':
291 description: Forbidden
292 '404':
PatrikBuhr6a8a0d52020-03-09 08:01:52 +0100293 description: RIC is not found
294 schema:
295 type: string
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100296 deprecated: false
297 /policy_status:
298 get:
299 tags:
PatrikBuhr6a8a0d52020-03-09 08:01:52 +0100300 - A1 Policy Management
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100301 summary: Returns a policy status
302 operationId: getPolicyStatusUsingGET
303 produces:
304 - '*/*'
305 parameters:
elinuxhenrikf85d5642020-04-03 09:24:52 +0200306 - name: id
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100307 in: query
maximesson4e2052b2020-06-05 09:12:55 +0200308 description: The ID of the policy.
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100309 required: true
310 type: string
maximesson4e2052b2020-06-05 09:12:55 +0200311 allowEmptyValue: false
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100312 responses:
313 '200':
314 description: Policy status
315 schema:
316 type: object
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100317 '401':
318 description: Unauthorized
319 '403':
320 description: Forbidden
321 '404':
PatrikBuhr6a8a0d52020-03-09 08:01:52 +0100322 description: Policy is not found
323 schema:
324 type: string
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100325 deprecated: false
326 /policy_types:
327 get:
328 tags:
PatrikBuhr6a8a0d52020-03-09 08:01:52 +0100329 - A1 Policy Management
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100330 summary: Query policy type names
331 operationId: getPolicyTypesUsingGET
332 produces:
333 - '*/*'
334 parameters:
335 - name: ric
336 in: query
maximesson4e2052b2020-06-05 09:12:55 +0200337 description: The name of the Near-RT RIC to get types for.
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100338 required: false
339 type: string
maximesson4e2052b2020-06-05 09:12:55 +0200340 allowEmptyValue: false
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100341 responses:
342 '200':
343 description: Policy type names
344 schema:
345 type: array
346 items:
347 type: string
348 '401':
349 description: Unauthorized
350 '403':
351 description: Forbidden
352 '404':
PatrikBuhr6a8a0d52020-03-09 08:01:52 +0100353 description: RIC is not found
354 schema:
355 type: string
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100356 deprecated: false
357 /ric:
358 get:
359 tags:
PatrikBuhr6a8a0d52020-03-09 08:01:52 +0100360 - RIC Repository
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100361 summary: Returns the name of a RIC managing one Mananged Element
362 operationId: getRicUsingGET
363 produces:
364 - '*/*'
365 parameters:
366 - name: managedElementId
367 in: query
maximessone8d3abe2020-06-12 16:22:34 +0200368 description: The ID of the Managed Element
PatrikBuhr2bfc1442020-04-07 14:26:26 +0200369 required: true
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100370 type: string
maximessone8d3abe2020-06-12 16:22:34 +0200371 allowEmptyValue: false
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100372 responses:
373 '200':
elinuxhenrike0fab9a2020-03-31 17:59:49 +0200374 description: RIC is found
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100375 schema:
376 type: string
377 '401':
378 description: Unauthorized
379 '403':
380 description: Forbidden
381 '404':
elinuxhenrike0fab9a2020-03-31 17:59:49 +0200382 description: RIC is not found
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100383 schema:
384 type: string
385 deprecated: false
386 /rics:
387 get:
388 tags:
PatrikBuhr6a8a0d52020-03-09 08:01:52 +0100389 - RIC Repository
elinuxhenrike0fab9a2020-03-31 17:59:49 +0200390 summary: Query Near-RT RIC information
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100391 operationId: getRicsUsingGET
392 produces:
393 - '*/*'
394 parameters:
395 - name: policyType
396 in: query
maximessone8d3abe2020-06-12 16:22:34 +0200397 description: The name of the policy type
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100398 required: false
399 type: string
maximessone8d3abe2020-06-12 16:22:34 +0200400 allowEmptyValue: false
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100401 responses:
402 '200':
403 description: OK
404 schema:
405 type: array
406 items:
407 $ref: '#/definitions/RicInfo'
408 '401':
409 description: Unauthorized
410 '403':
411 description: Forbidden
412 '404':
PatrikBuhr6a8a0d52020-03-09 08:01:52 +0100413 description: Policy type is not found
414 schema:
415 type: string
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100416 deprecated: false
417 /service:
418 put:
419 tags:
PatrikBuhr6a8a0d52020-03-09 08:01:52 +0100420 - Service registry and supervision
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100421 summary: Register a service
422 operationId: putServiceUsingPUT
423 consumes:
424 - application/json
425 produces:
426 - '*/*'
427 parameters:
428 - in: body
429 name: registrationInfo
430 description: registrationInfo
431 required: true
432 schema:
433 $ref: '#/definitions/ServiceRegistrationInfo'
434 responses:
435 '200':
PatrikBuhr643ba182020-03-27 15:44:54 +0100436 description: Service updated
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100437 schema:
438 type: string
439 '201':
PatrikBuhr643ba182020-03-27 15:44:54 +0100440 description: Service created
441 schema:
442 type: string
PatrikBuhr6a8a0d52020-03-09 08:01:52 +0100443 '400':
PatrikBuhr2bfc1442020-04-07 14:26:26 +0200444 description: The ServiceRegistrationInfo is not accepted
PatrikBuhr6a8a0d52020-03-09 08:01:52 +0100445 schema:
446 type: string
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100447 '401':
448 description: Unauthorized
449 '403':
450 description: Forbidden
451 '404':
452 description: Not Found
453 deprecated: false
454 /services:
455 get:
456 tags:
PatrikBuhr6a8a0d52020-03-09 08:01:52 +0100457 - Service registry and supervision
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100458 summary: Returns service information
459 operationId: getServicesUsingGET
460 produces:
461 - '*/*'
462 parameters:
463 - name: name
464 in: query
maximessone8d3abe2020-06-12 16:22:34 +0200465 description: The name of the service
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100466 required: false
467 type: string
maximessone8d3abe2020-06-12 16:22:34 +0200468 allowEmptyValue: false
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100469 responses:
470 '200':
471 description: OK
472 schema:
473 type: array
474 items:
475 $ref: '#/definitions/ServiceStatus'
476 '401':
477 description: Unauthorized
478 '403':
479 description: Forbidden
480 '404':
PatrikBuhr6a8a0d52020-03-09 08:01:52 +0100481 description: Service is not found
482 schema:
483 type: string
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100484 deprecated: false
485 delete:
486 tags:
PatrikBuhr6a8a0d52020-03-09 08:01:52 +0100487 - Service registry and supervision
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100488 summary: Delete a service
489 operationId: deleteServiceUsingDELETE
490 produces:
491 - '*/*'
492 parameters:
PatrikBuhr6a8a0d52020-03-09 08:01:52 +0100493 - name: name
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100494 in: query
maximessone8d3abe2020-06-12 16:22:34 +0200495 description: The name of the service
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100496 required: true
497 type: string
maximessone8d3abe2020-06-12 16:22:34 +0200498 allowEmptyValue: false
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100499 responses:
500 '200':
501 description: OK
502 schema:
503 type: string
504 '204':
PatrikBuhr6a8a0d52020-03-09 08:01:52 +0100505 description: OK
506 schema:
507 type: string
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100508 '401':
509 description: Unauthorized
510 '403':
511 description: Forbidden
PatrikBuhr6a8a0d52020-03-09 08:01:52 +0100512 '404':
513 description: Service not found
514 schema:
515 type: string
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100516 deprecated: false
517 /services/keepalive:
PatrikBuhr2bfc1442020-04-07 14:26:26 +0200518 put:
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100519 tags:
PatrikBuhr6a8a0d52020-03-09 08:01:52 +0100520 - Service registry and supervision
PatrikBuhr2753ad52020-03-18 13:38:58 +0100521 summary: Heartbeat from a serice
PatrikBuhr2bfc1442020-04-07 14:26:26 +0200522 operationId: keepAliveServiceUsingPUT
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100523 consumes:
524 - application/json
525 produces:
526 - '*/*'
527 parameters:
PatrikBuhr6a8a0d52020-03-09 08:01:52 +0100528 - name: name
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100529 in: query
maximessone8d3abe2020-06-12 16:22:34 +0200530 description: The name of the service
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100531 required: true
532 type: string
maximessone8d3abe2020-06-12 16:22:34 +0200533 allowEmptyValue: false
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100534 responses:
535 '200':
PatrikBuhr2753ad52020-03-18 13:38:58 +0100536 description: 'Service supervision timer refreshed, OK'
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100537 schema:
538 type: string
539 '201':
540 description: Created
541 '401':
542 description: Unauthorized
543 '403':
544 description: Forbidden
545 '404':
546 description: 'The service is not found, needs re-registration'
547 deprecated: false
548 /status:
549 get:
550 tags:
PatrikBuhr6a8a0d52020-03-09 08:01:52 +0100551 - Health check
PatrikBuhrb40e1b42020-02-07 12:59:09 +0100552 summary: Returns status and statistics of this service
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100553 operationId: getStatusUsingGET
554 produces:
555 - '*/*'
556 responses:
557 '200':
558 description: Service is living
559 schema:
560 type: string
561 '401':
562 description: Unauthorized
563 '403':
564 description: Forbidden
565 '404':
566 description: Not Found
567 deprecated: false
568definitions:
PatrikBuhr6a8a0d52020-03-09 08:01:52 +0100569 Mono«ResponseEntity«object»»:
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100570 type: object
PatrikBuhr6a8a0d52020-03-09 08:01:52 +0100571 title: Mono«ResponseEntity«object»»
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100572 Mono«ResponseEntity«string»»:
573 type: object
574 title: Mono«ResponseEntity«string»»
575 PolicyInfo:
576 type: object
577 properties:
578 id:
579 type: string
580 description: identity of the policy
581 json:
PatrikBuhrb40e1b42020-02-07 12:59:09 +0100582 type: object
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100583 description: the configuration of the policy
584 lastModified:
585 type: string
586 description: 'timestamp, last modification time'
587 ric:
588 type: string
elinuxhenrike0fab9a2020-03-31 17:59:49 +0200589 description: identity of the target Near-RT RIC
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100590 service:
591 type: string
592 description: the name of the service owning the policy
593 type:
594 type: string
595 description: name of the policy type
596 title: PolicyInfo
597 RicInfo:
598 type: object
599 properties:
600 managedElementIds:
601 type: array
602 description: O1 identities for managed entities
603 items:
604 type: string
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100605 policyTypes:
606 type: array
607 description: supported policy types
608 items:
609 type: string
PatrikBuhr6a8a0d52020-03-09 08:01:52 +0100610 ricName:
611 type: string
612 description: identity of the ric
elinuxhenrike0efbee2020-04-09 09:28:07 +0200613 state:
614 type: string
615 description: state info
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100616 title: RicInfo
617 ServiceRegistrationInfo:
618 type: object
PatrikBuhrc5c25192020-03-11 14:15:50 +0100619 required:
620 - serviceName
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100621 properties:
622 callbackUrl:
623 type: string
elinuxhenrika2ad32a2020-03-18 10:04:13 +0100624 description: callback for notifying of RIC synchronization
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100625 keepAliveIntervalSeconds:
626 type: integer
627 format: int64
PatrikBuhr2753ad52020-03-18 13:38:58 +0100628 description: 'keep alive interval for the service. This is a heartbeat supervision of the service, which in regular intevals must invoke a ''keepAlive'' REST call. When a service does not invoke this call within the given time, it is considered unavailble. An unavailable service will be automatically deregistered and its policies will be deleted. Value 0 means no timeout supervision.'
PatrikBuhrb40e1b42020-02-07 12:59:09 +0100629 serviceName:
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100630 type: string
631 description: identity of the service
632 title: ServiceRegistrationInfo
633 ServiceStatus:
634 type: object
635 properties:
PatrikBuhr6a8a0d52020-03-09 08:01:52 +0100636 callbackUrl:
637 type: string
elinuxhenrika2ad32a2020-03-18 10:04:13 +0100638 description: callback for notifying of RIC synchronization
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100639 keepAliveIntervalSeconds:
640 type: integer
641 format: int64
642 description: policy keep alive timeout
PatrikBuhrb40e1b42020-02-07 12:59:09 +0100643 serviceName:
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100644 type: string
645 description: identity of the service
PatrikBuhr2753ad52020-03-18 13:38:58 +0100646 timeSinceLastActivitySeconds:
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100647 type: integer
648 format: int64
649 description: time since last invocation by the service
650 title: ServiceStatus