blob: 6d62b0c517b645987c9de9b4a577097f2161c62a [file] [log] [blame]
PatrikBuhr1122b012021-01-20 12:21:52 +01001openapi: 3.0.1
2info:
3 title: A1 Policy management service
PatrikBuhrfee99552021-02-02 14:06:44 +01004 description: <h2>General</h2><p>The O-RAN Non-RT RIC Policy Management Service provides
5 a REST API for management of A1 policices. <br/>The main tasks of the service
6 are:</p><ul><li>A1 Policy creation, modification and deletion.</li><li>Monitoring
7 and maintaining consistency of the SMO view of A1 policies and the Near-RT RICs</li><li>Maintaining
8 a view of supported Near-RT RIC policy types</li><li>Supervision of using services
9 (R-APPs). When a service is unavailble, its policies are removed.</li></ul><h2>APIs
10 provided by the service</h2><h3>A1 Policy Management</h3><p>This is an API for
11 management of A1 Policies.</p><ul><li>A1 Policy retrieval, creation, modification
12 and deletion.</li><li>Retrieval of supported A1 Policy types for a Near-RT RIC</li><li>Retrieval
13 of status for existing A1 policies</li></ul><h3>Management of configuration</h3><p>API
14 for updating and retrieval of the component configuration. Note that there other
15 ways to maintain the configuration.</p><h3>Callbacks</h3><p>These are endpoints
16 that are invoked by this service. The callbacks are registerred in this service
17 at service registration.</p><h3>NearRT-RIC Repository</h3><p>This is an API that
18 provides support for looking up a NearRT-RIC. Each A1 policy is targeted for one
19 Near-RT RIC.</p><h3>Health Check</h3><p>API used for supervision of the PMS component.</p><h3>Service
20 Registry and Supervision</h3><p>API used for registerring services that uses PMS.
21 Each A1 policy is owned by a service. PMS can supervise each registerred service
22 and will automatically remove policies for unavailable services.</p>
23 license:
24 name: Copyright (C) 2020 Nordix Foundation. Licensed under the Apache License.
25 url: http://www.apache.org/licenses/LICENSE-2.0
PatrikBuhr1122b012021-01-20 12:21:52 +010026 version: 1.1.0
PatrikBuhr1122b012021-01-20 12:21:52 +010027servers:
28- url: /
29tags:
PatrikBuhrfee99552021-02-02 14:06:44 +010030- name: A1 Policy Management V1.0
31 description: (deprecated primitves)
32- name: Management of configuration
33- name: A1 Policy Management
34- name: NearRT-RIC Repository
35- name: Service Registry and Supervision
36- name: Health Check
37- name: Callbacks
PatrikBuhr1122b012021-01-20 12:21:52 +010038paths:
39 /policy_types:
40 get:
41 tags:
PatrikBuhrfee99552021-02-02 14:06:44 +010042 - A1 Policy Management V1.0
PatrikBuhr3b916e42021-10-07 18:03:53 +020043 summary: Query policy type identities
PatrikBuhrfee99552021-02-02 14:06:44 +010044 operationId: getPolicyTypes
PatrikBuhr1122b012021-01-20 12:21:52 +010045 parameters:
46 - name: ric
47 in: query
48 description: The name of the Near-RT RIC to get types for.
PatrikBuhrfee99552021-02-02 14:06:44 +010049 required: false
50 style: form
51 explode: true
PatrikBuhr1122b012021-01-20 12:21:52 +010052 schema:
53 type: string
54 responses:
55 200:
PatrikBuhr3b916e42021-10-07 18:03:53 +020056 description: Policy type identities
PatrikBuhr1122b012021-01-20 12:21:52 +010057 content:
58 '*/*':
59 schema:
60 type: array
61 items:
62 type: string
PatrikBuhr1122b012021-01-20 12:21:52 +010063 404:
64 description: Near-RT RIC is not found
65 content:
66 '*/*':
67 schema:
68 $ref: '#/components/schemas/error_information'
PatrikBuhr1122b012021-01-20 12:21:52 +010069 /a1-policy/v2/policy-instances:
70 get:
71 tags:
PatrikBuhrfee99552021-02-02 14:06:44 +010072 - A1 Policy Management
PatrikBuhr1122b012021-01-20 12:21:52 +010073 summary: Query for A1 policy instances
74 description: Returns a list of A1 policies matching given search criteria. <br>If
75 several query parameters are defined, the policies matching all conditions
76 are returned.
PatrikBuhrfee99552021-02-02 14:06:44 +010077 operationId: getPolicyInstances
PatrikBuhr1122b012021-01-20 12:21:52 +010078 parameters:
79 - name: policytype_id
80 in: query
PatrikBuhr3b916e42021-10-07 18:03:53 +020081 description: Select policies with a given type identity.
PatrikBuhrfee99552021-02-02 14:06:44 +010082 required: false
83 style: form
84 explode: true
PatrikBuhr1122b012021-01-20 12:21:52 +010085 schema:
86 type: string
87 - name: ric_id
88 in: query
PatrikBuhr3b916e42021-10-07 18:03:53 +020089 description: Select policies for a given Near-RT RIC identity.
PatrikBuhrfee99552021-02-02 14:06:44 +010090 required: false
91 style: form
92 explode: true
PatrikBuhr1122b012021-01-20 12:21:52 +010093 schema:
94 type: string
95 - name: service_id
96 in: query
PatrikBuhr3b916e42021-10-07 18:03:53 +020097 description: Select policies owned by a given service.
98 required: false
99 style: form
100 explode: true
101 schema:
102 type: string
103 - name: type_name
104 in: query
105 description: Select policies of a given type name (type identity has the format
106 <typename_version>)
PatrikBuhrfee99552021-02-02 14:06:44 +0100107 required: false
108 style: form
109 explode: true
PatrikBuhr1122b012021-01-20 12:21:52 +0100110 schema:
111 type: string
112 responses:
113 200:
114 description: Policies
115 content:
116 application/json:
117 schema:
118 $ref: '#/components/schemas/policy_info_list_v2'
PatrikBuhr1122b012021-01-20 12:21:52 +0100119 404:
120 description: Near-RT RIC, policy type or service not found
121 content:
122 application/json:
123 schema:
124 $ref: '#/components/schemas/error_information'
PatrikBuhr1122b012021-01-20 12:21:52 +0100125 /a1-policy/v2/status:
126 get:
127 tags:
PatrikBuhrfee99552021-02-02 14:06:44 +0100128 - Health Check
PatrikBuhr1122b012021-01-20 12:21:52 +0100129 summary: Returns status and statistics of this service
PatrikBuhrfee99552021-02-02 14:06:44 +0100130 operationId: getStatus_1
PatrikBuhr1122b012021-01-20 12:21:52 +0100131 responses:
132 200:
133 description: Service is living
134 content:
135 application/json:
136 schema:
137 $ref: '#/components/schemas/status_info_v2'
PatrikBuhr1122b012021-01-20 12:21:52 +0100138 /services:
139 get:
140 tags:
PatrikBuhrfee99552021-02-02 14:06:44 +0100141 - A1 Policy Management V1.0
PatrikBuhr1122b012021-01-20 12:21:52 +0100142 summary: Returns service information
PatrikBuhrfee99552021-02-02 14:06:44 +0100143 operationId: getServices
PatrikBuhr1122b012021-01-20 12:21:52 +0100144 parameters:
145 - name: name
146 in: query
147 description: The name of the service
PatrikBuhrfee99552021-02-02 14:06:44 +0100148 required: false
149 style: form
150 explode: true
PatrikBuhr1122b012021-01-20 12:21:52 +0100151 schema:
152 type: string
153 responses:
154 200:
155 description: OK
156 content:
157 '*/*':
158 schema:
159 type: array
160 items:
161 $ref: '#/components/schemas/service_status_v1'
PatrikBuhr1122b012021-01-20 12:21:52 +0100162 404:
163 description: Service is not found
164 content:
165 '*/*':
166 schema:
167 type: string
PatrikBuhr1122b012021-01-20 12:21:52 +0100168 delete:
169 tags:
PatrikBuhrfee99552021-02-02 14:06:44 +0100170 - A1 Policy Management V1.0
PatrikBuhrb28e8112021-04-14 20:16:35 +0200171 summary: Unregister a service
PatrikBuhrfee99552021-02-02 14:06:44 +0100172 operationId: deleteService
PatrikBuhr1122b012021-01-20 12:21:52 +0100173 parameters:
174 - name: name
175 in: query
176 description: The name of the service
177 required: true
PatrikBuhrfee99552021-02-02 14:06:44 +0100178 style: form
179 explode: true
PatrikBuhr1122b012021-01-20 12:21:52 +0100180 schema:
181 type: string
182 responses:
PatrikBuhr1122b012021-01-20 12:21:52 +0100183 204:
PatrikBuhrb28e8112021-04-14 20:16:35 +0200184 description: Service unregistered
PatrikBuhr1122b012021-01-20 12:21:52 +0100185 content:
186 '*/*':
187 schema:
PatrikBuhrfee99552021-02-02 14:06:44 +0100188 $ref: '#/components/schemas/void'
PatrikBuhr1122b012021-01-20 12:21:52 +0100189 404:
190 description: Service not found
191 content:
192 '*/*':
193 schema:
194 type: string
PatrikBuhr1122b012021-01-20 12:21:52 +0100195 /a1-policy/v2/rics/ric:
196 get:
197 tags:
PatrikBuhrfee99552021-02-02 14:06:44 +0100198 - NearRT-RIC Repository
PatrikBuhr1122b012021-01-20 12:21:52 +0100199 summary: Returns info for one Near-RT RIC
200 description: Either a Near-RT RIC identity or a Mananged Element identity can
201 be specified.<br>The intention with Mananged Element identity is the ID used
202 in O1 for accessing the traffical element (such as the ID of CU).
PatrikBuhrfee99552021-02-02 14:06:44 +0100203 operationId: getRic_1
PatrikBuhr1122b012021-01-20 12:21:52 +0100204 parameters:
205 - name: managed_element_id
206 in: query
207 description: The identity of a Managed Element. If given, the Near-RT RIC
208 managing the ME is returned.
PatrikBuhrfee99552021-02-02 14:06:44 +0100209 required: false
210 style: form
211 explode: true
PatrikBuhr1122b012021-01-20 12:21:52 +0100212 schema:
213 type: string
214 - name: ric_id
215 in: query
216 description: The identity of a Near-RT RIC to get information for.
PatrikBuhrfee99552021-02-02 14:06:44 +0100217 required: false
218 style: form
219 explode: true
PatrikBuhr1122b012021-01-20 12:21:52 +0100220 schema:
221 type: string
222 responses:
223 200:
224 description: Near-RT RIC is found
225 content:
226 application/json:
227 schema:
228 $ref: '#/components/schemas/ric_info_v2'
PatrikBuhr1122b012021-01-20 12:21:52 +0100229 404:
230 description: Near-RT RIC is not found
231 content:
232 application/json:
233 schema:
234 $ref: '#/components/schemas/error_information'
PatrikBuhr1122b012021-01-20 12:21:52 +0100235 /a1-policy/v2/policy-types:
236 get:
237 tags:
PatrikBuhrfee99552021-02-02 14:06:44 +0100238 - A1 Policy Management
PatrikBuhr1122b012021-01-20 12:21:52 +0100239 summary: Query policy type identities
PatrikBuhrfee99552021-02-02 14:06:44 +0100240 operationId: getPolicyTypes_1
PatrikBuhr1122b012021-01-20 12:21:52 +0100241 parameters:
242 - name: ric_id
243 in: query
PatrikBuhr3b916e42021-10-07 18:03:53 +0200244 description: Select types for the given Near-RT RIC identity.
245 required: false
246 style: form
247 explode: true
248 schema:
249 type: string
250 - name: type_name
251 in: query
252 description: Select types with the given type name (type identity has the
253 format <typename_version>)
254 required: false
255 style: form
256 explode: true
257 schema:
258 type: string
259 - name: regexp
260 in: query
261 description: Select types with type identity that matches a regular expression.
262 required: false
263 style: form
264 explode: true
265 schema:
266 type: string
267 - name: compatible_with_version
268 in: query
269 description: Select types that are compatible with the given version. This
270 parameter is only applicable in conjunction with type_name. As an example
271 version 1.9.1 is compatible with 1.0.0 but not the other way around.
PatrikBuhrfee99552021-02-02 14:06:44 +0100272 required: false
273 style: form
274 explode: true
PatrikBuhr1122b012021-01-20 12:21:52 +0100275 schema:
276 type: string
277 responses:
278 200:
279 description: Policy type IDs
280 content:
281 application/json:
282 schema:
283 $ref: '#/components/schemas/policytype_id_list_v2'
PatrikBuhr1122b012021-01-20 12:21:52 +0100284 404:
285 description: Near-RT RIC is not found
286 content:
287 application/json:
288 schema:
289 $ref: '#/components/schemas/error_information'
PatrikBuhrfee99552021-02-02 14:06:44 +0100290 /a1-policy/v2/policies/{policy_id}:
291 get:
292 tags:
293 - A1 Policy Management
294 summary: Returns a policy
295 operationId: getPolicy_1
296 parameters:
297 - name: policy_id
298 in: path
299 required: true
300 style: simple
301 explode: false
302 schema:
303 type: string
304 responses:
305 200:
306 description: Policy found
307 content:
308 application/json:
309 schema:
310 $ref: '#/components/schemas/policy_info_v2'
311 404:
312 description: Policy is not found
313 content:
314 application/json:
315 schema:
316 $ref: '#/components/schemas/error_information'
317 delete:
318 tags:
319 - A1 Policy Management
320 summary: Delete a policy
321 operationId: deletePolicy_1
322 parameters:
323 - name: policy_id
324 in: path
325 required: true
326 style: simple
327 explode: false
328 schema:
329 type: string
330 responses:
331 200:
332 description: Not used
333 content:
334 '*/*':
335 schema:
336 $ref: '#/components/schemas/void'
337 423:
338 description: Near-RT RIC is not operational
339 content:
340 '*/*':
341 schema:
342 $ref: '#/components/schemas/error_information'
343 204:
344 description: Policy deleted
345 content:
346 '*/*':
347 schema:
348 $ref: '#/components/schemas/void'
349 404:
350 description: Policy is not found
351 content:
352 '*/*':
353 schema:
354 $ref: '#/components/schemas/error_information'
PatrikBuhr1122b012021-01-20 12:21:52 +0100355 /a1-policy/v2/configuration:
356 get:
357 tags:
PatrikBuhrfee99552021-02-02 14:06:44 +0100358 - Management of configuration
PatrikBuhr1122b012021-01-20 12:21:52 +0100359 summary: Returns the contents of the configuration file
360 description: Note that the file contents is not relevant if the Consul is used.
PatrikBuhrfee99552021-02-02 14:06:44 +0100361 operationId: getConfiguration
PatrikBuhr1122b012021-01-20 12:21:52 +0100362 responses:
363 200:
364 description: Configuration
365 content:
366 application/json:
367 schema:
368 type: object
PatrikBuhr1122b012021-01-20 12:21:52 +0100369 404:
370 description: File is not found or readable
371 content:
372 application/json:
373 schema:
374 $ref: '#/components/schemas/error_information'
PatrikBuhr1122b012021-01-20 12:21:52 +0100375 put:
376 tags:
PatrikBuhrfee99552021-02-02 14:06:44 +0100377 - Management of configuration
PatrikBuhr1122b012021-01-20 12:21:52 +0100378 summary: Replace the current configuration file with the given configuration
379 description: Note that the file is ignored if the Consul is used.
PatrikBuhrfee99552021-02-02 14:06:44 +0100380 operationId: putConfiguration
PatrikBuhr1122b012021-01-20 12:21:52 +0100381 requestBody:
PatrikBuhr1122b012021-01-20 12:21:52 +0100382 content:
383 application/json:
384 schema:
385 type: object
386 required: true
387 responses:
388 200:
389 description: Configuration updated
PatrikBuhrfee99552021-02-02 14:06:44 +0100390 content:
391 '*/*':
392 schema:
393 $ref: '#/components/schemas/void'
PatrikBuhr1122b012021-01-20 12:21:52 +0100394 400:
395 description: Invalid configuration provided
396 content:
397 '*/*':
398 schema:
399 $ref: '#/components/schemas/error_information'
PatrikBuhr1122b012021-01-20 12:21:52 +0100400 500:
401 description: Something went wrong when replacing the configuration. Try
402 again.
403 content:
404 '*/*':
405 schema:
406 $ref: '#/components/schemas/error_information'
PatrikBuhr1122b012021-01-20 12:21:52 +0100407 /policy:
408 get:
409 tags:
PatrikBuhrfee99552021-02-02 14:06:44 +0100410 - A1 Policy Management V1.0
PatrikBuhr1122b012021-01-20 12:21:52 +0100411 summary: Returns a policy configuration
PatrikBuhrfee99552021-02-02 14:06:44 +0100412 operationId: getPolicy
PatrikBuhr1122b012021-01-20 12:21:52 +0100413 parameters:
414 - name: id
415 in: query
416 description: The identity of the policy instance.
417 required: true
PatrikBuhrfee99552021-02-02 14:06:44 +0100418 style: form
419 explode: true
PatrikBuhr1122b012021-01-20 12:21:52 +0100420 schema:
421 type: string
422 responses:
423 200:
424 description: Policy found
425 content:
426 '*/*':
427 schema:
428 type: object
PatrikBuhr1122b012021-01-20 12:21:52 +0100429 404:
430 description: Policy is not found
431 content:
432 '*/*':
433 schema:
434 $ref: '#/components/schemas/error_information'
PatrikBuhr1122b012021-01-20 12:21:52 +0100435 put:
436 tags:
PatrikBuhrfee99552021-02-02 14:06:44 +0100437 - A1 Policy Management V1.0
PatrikBuhr1122b012021-01-20 12:21:52 +0100438 summary: Put a policy
PatrikBuhrfee99552021-02-02 14:06:44 +0100439 operationId: putPolicy
PatrikBuhr1122b012021-01-20 12:21:52 +0100440 parameters:
PatrikBuhrfee99552021-02-02 14:06:44 +0100441 - name: type
442 in: query
443 description: The name of the policy type.
444 required: false
445 style: form
446 explode: true
447 schema:
448 type: string
449 default: ""
PatrikBuhr1122b012021-01-20 12:21:52 +0100450 - name: id
451 in: query
452 description: The identity of the policy instance.
453 required: true
PatrikBuhrfee99552021-02-02 14:06:44 +0100454 style: form
455 explode: true
PatrikBuhr1122b012021-01-20 12:21:52 +0100456 schema:
457 type: string
458 - name: ric
459 in: query
460 description: The name of the Near-RT RIC where the policy will be created.
461 required: true
PatrikBuhrfee99552021-02-02 14:06:44 +0100462 style: form
463 explode: true
PatrikBuhr1122b012021-01-20 12:21:52 +0100464 schema:
465 type: string
466 - name: service
467 in: query
468 description: The name of the service creating the policy.
469 required: true
PatrikBuhrfee99552021-02-02 14:06:44 +0100470 style: form
471 explode: true
PatrikBuhr1122b012021-01-20 12:21:52 +0100472 schema:
473 type: string
474 - name: transient
475 in: query
476 description: If the policy is transient or not (boolean defaulted to false).
477 A policy is transient if it will be forgotten when the service needs to
478 reconnect to the Near-RT RIC.
PatrikBuhrfee99552021-02-02 14:06:44 +0100479 required: false
480 style: form
481 explode: true
PatrikBuhr1122b012021-01-20 12:21:52 +0100482 schema:
483 type: boolean
484 default: false
PatrikBuhr1122b012021-01-20 12:21:52 +0100485 requestBody:
PatrikBuhr1122b012021-01-20 12:21:52 +0100486 content:
487 application/json:
488 schema:
489 type: object
490 required: true
491 responses:
492 200:
493 description: Policy updated
PatrikBuhrfee99552021-02-02 14:06:44 +0100494 content:
495 '*/*':
496 schema:
497 $ref: '#/components/schemas/void'
PatrikBuhr1122b012021-01-20 12:21:52 +0100498 201:
499 description: Policy created
PatrikBuhrfee99552021-02-02 14:06:44 +0100500 content:
501 '*/*':
502 schema:
503 $ref: '#/components/schemas/void'
504 423:
505 description: Near-RT RIC is not operational
506 content:
507 '*/*':
508 schema:
509 type: string
PatrikBuhr1122b012021-01-20 12:21:52 +0100510 404:
511 description: Near-RT RIC or policy type is not found
512 content:
513 '*/*':
514 schema:
515 type: string
PatrikBuhrfee99552021-02-02 14:06:44 +0100516 delete:
517 tags:
518 - A1 Policy Management V1.0
519 summary: Delete a policy
520 operationId: deletePolicy
521 parameters:
522 - name: id
523 in: query
524 description: The identity of the policy instance.
525 required: true
526 style: form
527 explode: true
528 schema:
529 type: string
530 responses:
531 200:
532 description: Not used
533 content:
534 '*/*':
535 schema:
536 $ref: '#/components/schemas/void'
PatrikBuhr1122b012021-01-20 12:21:52 +0100537 423:
538 description: Near-RT RIC is not operational
539 content:
540 '*/*':
541 schema:
542 type: string
PatrikBuhr1122b012021-01-20 12:21:52 +0100543 204:
544 description: Policy deleted
PatrikBuhrfee99552021-02-02 14:06:44 +0100545 content:
546 '*/*':
547 schema:
548 $ref: '#/components/schemas/void'
PatrikBuhr1122b012021-01-20 12:21:52 +0100549 404:
550 description: Policy is not found
551 content:
552 '*/*':
553 schema:
554 type: string
PatrikBuhr1122b012021-01-20 12:21:52 +0100555 /policies:
556 get:
557 tags:
PatrikBuhrfee99552021-02-02 14:06:44 +0100558 - A1 Policy Management V1.0
PatrikBuhr1122b012021-01-20 12:21:52 +0100559 summary: Query policies
PatrikBuhrfee99552021-02-02 14:06:44 +0100560 operationId: getPolicies
PatrikBuhr1122b012021-01-20 12:21:52 +0100561 parameters:
PatrikBuhrfee99552021-02-02 14:06:44 +0100562 - name: type
563 in: query
564 description: The name of the policy type to get policies for.
565 required: false
566 style: form
567 explode: true
568 schema:
569 type: string
PatrikBuhr1122b012021-01-20 12:21:52 +0100570 - name: ric
571 in: query
572 description: The name of the Near-RT RIC to get policies for.
PatrikBuhrfee99552021-02-02 14:06:44 +0100573 required: false
574 style: form
575 explode: true
PatrikBuhr1122b012021-01-20 12:21:52 +0100576 schema:
577 type: string
578 - name: service
579 in: query
580 description: The name of the service to get policies for.
PatrikBuhrfee99552021-02-02 14:06:44 +0100581 required: false
582 style: form
583 explode: true
PatrikBuhr1122b012021-01-20 12:21:52 +0100584 schema:
585 type: string
586 responses:
587 200:
588 description: Policies
589 content:
590 '*/*':
591 schema:
592 type: array
593 items:
594 $ref: '#/components/schemas/policy_info_v1'
PatrikBuhr1122b012021-01-20 12:21:52 +0100595 404:
596 description: Near-RT RIC or type not found
597 content:
598 '*/*':
599 schema:
600 type: string
PatrikBuhr1122b012021-01-20 12:21:52 +0100601 /a1-policy/v2/services/{service_id}/keepalive:
602 put:
603 tags:
PatrikBuhrfee99552021-02-02 14:06:44 +0100604 - Service Registry and Supervision
PatrikBuhr1122b012021-01-20 12:21:52 +0100605 summary: Heartbeat indicates that the service is running
PatrikBuhrfee99552021-02-02 14:06:44 +0100606 description: A registerred service must call this in regular intervals to indicate
607 that it is in operation. Absence of this call will lead to that teh service
608 will be deregisterred and all its policies are removed.
609 operationId: keepAliveService_1
PatrikBuhr1122b012021-01-20 12:21:52 +0100610 parameters:
611 - name: service_id
612 in: path
PatrikBuhr1122b012021-01-20 12:21:52 +0100613 required: true
PatrikBuhrfee99552021-02-02 14:06:44 +0100614 style: simple
615 explode: false
PatrikBuhr1122b012021-01-20 12:21:52 +0100616 schema:
617 type: string
618 responses:
619 200:
620 description: Service supervision timer refreshed, OK
621 content:
622 '*/*':
623 schema:
624 type: object
PatrikBuhr1122b012021-01-20 12:21:52 +0100625 404:
626 description: The service is not found, needs re-registration
627 content:
628 '*/*':
629 schema:
630 $ref: '#/components/schemas/error_information'
PatrikBuhr1122b012021-01-20 12:21:52 +0100631 /rics:
632 get:
633 tags:
PatrikBuhrfee99552021-02-02 14:06:44 +0100634 - A1 Policy Management V1.0
PatrikBuhr1122b012021-01-20 12:21:52 +0100635 summary: Query Near-RT RIC information
PatrikBuhrfee99552021-02-02 14:06:44 +0100636 operationId: getRics
PatrikBuhr1122b012021-01-20 12:21:52 +0100637 parameters:
638 - name: policyType
639 in: query
640 description: The name of the policy type
PatrikBuhrfee99552021-02-02 14:06:44 +0100641 required: false
642 style: form
643 explode: true
PatrikBuhr1122b012021-01-20 12:21:52 +0100644 schema:
645 type: string
646 responses:
647 200:
648 description: OK
649 content:
650 '*/*':
651 schema:
652 type: array
653 items:
654 $ref: '#/components/schemas/ric_info_v1'
PatrikBuhr1122b012021-01-20 12:21:52 +0100655 404:
656 description: Policy type is not found
657 content:
658 '*/*':
659 schema:
660 type: string
PatrikBuhrfee99552021-02-02 14:06:44 +0100661 /policy_schema:
662 get:
663 tags:
664 - A1 Policy Management V1.0
665 summary: Returns one policy type schema definition
666 operationId: getPolicySchema
667 parameters:
668 - name: id
669 in: query
670 description: The identity of the policy type to get the definition for.
671 required: true
672 style: form
673 explode: true
674 schema:
675 type: string
676 responses:
677 200:
678 description: Policy schema
679 content:
680 '*/*':
681 schema:
682 type: object
683 404:
684 description: The policy type is not found
685 content:
686 '*/*':
687 schema:
688 $ref: '#/components/schemas/error_information'
PatrikBuhr1122b012021-01-20 12:21:52 +0100689 /policy_status:
690 get:
691 tags:
PatrikBuhrfee99552021-02-02 14:06:44 +0100692 - A1 Policy Management V1.0
PatrikBuhr1122b012021-01-20 12:21:52 +0100693 summary: Returns a policy status
PatrikBuhrfee99552021-02-02 14:06:44 +0100694 operationId: getPolicyStatus
PatrikBuhr1122b012021-01-20 12:21:52 +0100695 parameters:
696 - name: id
697 in: query
698 description: The identity of the policy.
699 required: true
PatrikBuhrfee99552021-02-02 14:06:44 +0100700 style: form
701 explode: true
PatrikBuhr1122b012021-01-20 12:21:52 +0100702 schema:
703 type: string
704 responses:
705 200:
706 description: Policy status
707 content:
708 '*/*':
709 schema:
710 type: object
PatrikBuhr1122b012021-01-20 12:21:52 +0100711 404:
712 description: Policy is not found
713 content:
714 '*/*':
715 schema:
716 type: string
PatrikBuhr1122b012021-01-20 12:21:52 +0100717 /a1-policy/v2/rics:
718 get:
719 tags:
PatrikBuhrfee99552021-02-02 14:06:44 +0100720 - NearRT-RIC Repository
PatrikBuhr1122b012021-01-20 12:21:52 +0100721 summary: Query Near-RT RIC information
722 description: The call returns all Near-RT RICs that supports a given policy
723 type identity
PatrikBuhrfee99552021-02-02 14:06:44 +0100724 operationId: getRics_1
PatrikBuhr1122b012021-01-20 12:21:52 +0100725 parameters:
726 - name: policytype_id
727 in: query
728 description: The identity of a policy type. If given, all Near-RT RICs supporteing
729 the policy type are returned
PatrikBuhrfee99552021-02-02 14:06:44 +0100730 required: false
731 style: form
732 explode: true
PatrikBuhr1122b012021-01-20 12:21:52 +0100733 schema:
734 type: string
735 responses:
736 200:
737 description: OK
738 content:
739 application/json:
740 schema:
741 $ref: '#/components/schemas/ric_info_list_v2'
PatrikBuhr1122b012021-01-20 12:21:52 +0100742 404:
743 description: Policy type is not found
744 content:
745 application/json:
746 schema:
747 $ref: '#/components/schemas/error_information'
PatrikBuhr1122b012021-01-20 12:21:52 +0100748 /policy_schemas:
749 get:
750 tags:
PatrikBuhrfee99552021-02-02 14:06:44 +0100751 - A1 Policy Management V1.0
PatrikBuhr1122b012021-01-20 12:21:52 +0100752 summary: Returns policy type schema definitions
PatrikBuhrfee99552021-02-02 14:06:44 +0100753 operationId: getPolicySchemas
PatrikBuhr1122b012021-01-20 12:21:52 +0100754 parameters:
755 - name: ric
756 in: query
757 description: The name of the Near-RT RIC to get the definitions for.
PatrikBuhrfee99552021-02-02 14:06:44 +0100758 required: false
759 style: form
760 explode: true
PatrikBuhr1122b012021-01-20 12:21:52 +0100761 schema:
762 type: string
763 responses:
764 200:
765 description: Policy schemas
766 content:
767 '*/*':
768 schema:
769 type: array
770 items:
771 type: object
PatrikBuhr1122b012021-01-20 12:21:52 +0100772 404:
773 description: Near-RT RIC is not found
774 content:
775 '*/*':
776 schema:
777 $ref: '#/components/schemas/error_information'
PatrikBuhrfee99552021-02-02 14:06:44 +0100778 /policy_ids:
779 get:
780 tags:
781 - A1 Policy Management V1.0
782 summary: Query policies, only policy identities returned
783 operationId: getPolicyIds
784 parameters:
785 - name: type
786 in: query
787 description: The name of the policy type to get policies for.
788 required: false
789 style: form
790 explode: true
791 schema:
792 type: string
793 - name: ric
794 in: query
795 description: The name of the Near-RT RIC to get policies for.
796 required: false
797 style: form
798 explode: true
799 schema:
800 type: string
801 - name: service
802 in: query
803 description: The name of the service to get policies for.
804 required: false
805 style: form
806 explode: true
807 schema:
808 type: string
809 responses:
810 200:
811 description: Policy identitiess
812 content:
813 '*/*':
814 schema:
815 type: array
816 items:
817 type: string
818 404:
819 description: Near-RT RIC or type not found
820 content:
821 '*/*':
822 schema:
823 type: string
PatrikBuhr1122b012021-01-20 12:21:52 +0100824 /a1-policy/v2/services:
825 get:
826 tags:
PatrikBuhrfee99552021-02-02 14:06:44 +0100827 - Service Registry and Supervision
PatrikBuhr1122b012021-01-20 12:21:52 +0100828 summary: Returns service information
829 description: Either information about a registered service with given identity
830 or all registered services are returned.
PatrikBuhrfee99552021-02-02 14:06:44 +0100831 operationId: getServices_1
PatrikBuhr1122b012021-01-20 12:21:52 +0100832 parameters:
833 - name: service_id
834 in: query
835 description: The identity of the service
PatrikBuhrfee99552021-02-02 14:06:44 +0100836 required: false
837 style: form
838 explode: true
PatrikBuhr1122b012021-01-20 12:21:52 +0100839 schema:
840 type: string
841 responses:
842 200:
843 description: OK
844 content:
845 application/json:
846 schema:
847 $ref: '#/components/schemas/service_list_v2'
PatrikBuhr1122b012021-01-20 12:21:52 +0100848 404:
849 description: Service is not found
850 content:
851 application/json:
852 schema:
853 $ref: '#/components/schemas/error_information'
PatrikBuhr1122b012021-01-20 12:21:52 +0100854 put:
855 tags:
PatrikBuhrfee99552021-02-02 14:06:44 +0100856 - Service Registry and Supervision
PatrikBuhr1122b012021-01-20 12:21:52 +0100857 summary: Register a service
858 description: Registering a service is needed to:<ul><li>Get callbacks.</li><li>Activate
859 supervision of the service. If a service is inactive, its policies will be
860 deleted.</li></ul>
PatrikBuhrfee99552021-02-02 14:06:44 +0100861 operationId: putService_1
PatrikBuhr1122b012021-01-20 12:21:52 +0100862 requestBody:
PatrikBuhr1122b012021-01-20 12:21:52 +0100863 content:
864 application/json:
865 schema:
866 $ref: '#/components/schemas/service_registration_info_v2'
867 required: true
868 responses:
869 200:
870 description: Service updated
871 content:
872 '*/*':
873 schema:
874 type: object
875 201:
876 description: Service created
877 content:
878 '*/*':
879 schema:
880 type: object
881 400:
882 description: The ServiceRegistrationInfo is not accepted
883 content:
884 '*/*':
885 schema:
886 $ref: '#/components/schemas/error_information'
PatrikBuhr1122b012021-01-20 12:21:52 +0100887 /ric:
888 get:
889 tags:
PatrikBuhrfee99552021-02-02 14:06:44 +0100890 - A1 Policy Management V1.0
PatrikBuhr1122b012021-01-20 12:21:52 +0100891 summary: Returns the name of a RIC managing one Mananged Element
PatrikBuhrfee99552021-02-02 14:06:44 +0100892 operationId: getRic
PatrikBuhr1122b012021-01-20 12:21:52 +0100893 parameters:
894 - name: managedElementId
895 in: query
896 description: The identity of the Managed Element
897 required: true
PatrikBuhrfee99552021-02-02 14:06:44 +0100898 style: form
899 explode: true
PatrikBuhr1122b012021-01-20 12:21:52 +0100900 schema:
901 type: string
902 responses:
903 200:
904 description: Near-RT RIC is found
905 content:
906 '*/*':
907 schema:
908 type: string
PatrikBuhr1122b012021-01-20 12:21:52 +0100909 404:
910 description: Near-RT RIC is not found
911 content:
912 '*/*':
913 schema:
914 type: string
PatrikBuhr1122b012021-01-20 12:21:52 +0100915 /services/keepalive:
916 put:
917 tags:
PatrikBuhrfee99552021-02-02 14:06:44 +0100918 - A1 Policy Management V1.0
PatrikBuhr1122b012021-01-20 12:21:52 +0100919 summary: Heartbeat from a service
PatrikBuhrfee99552021-02-02 14:06:44 +0100920 operationId: keepAliveService
PatrikBuhr1122b012021-01-20 12:21:52 +0100921 parameters:
922 - name: name
923 in: query
924 description: The name of the service
925 required: true
PatrikBuhrfee99552021-02-02 14:06:44 +0100926 style: form
927 explode: true
PatrikBuhr1122b012021-01-20 12:21:52 +0100928 schema:
929 type: string
930 responses:
931 200:
932 description: Service supervision timer refreshed, OK
933 content:
934 '*/*':
935 schema:
936 type: string
PatrikBuhr1122b012021-01-20 12:21:52 +0100937 404:
938 description: The service is not found, needs re-registration
PatrikBuhr1122b012021-01-20 12:21:52 +0100939 content:
PatrikBuhrfee99552021-02-02 14:06:44 +0100940 '*/*':
PatrikBuhr1122b012021-01-20 12:21:52 +0100941 schema:
PatrikBuhrfee99552021-02-02 14:06:44 +0100942 type: string
PatrikBuhr1122b012021-01-20 12:21:52 +0100943 /status:
944 get:
945 tags:
PatrikBuhrfee99552021-02-02 14:06:44 +0100946 - A1 Policy Management V1.0
PatrikBuhr1122b012021-01-20 12:21:52 +0100947 summary: Returns status and statistics of this service
PatrikBuhrfee99552021-02-02 14:06:44 +0100948 operationId: getStatus
PatrikBuhr1122b012021-01-20 12:21:52 +0100949 responses:
950 200:
951 description: Service is living
952 content:
953 '*/*':
954 schema:
955 type: string
PatrikBuhrfee99552021-02-02 14:06:44 +0100956 /a1-policy/v2/policy-types/{policytype_id}:
957 get:
958 tags:
959 - A1 Policy Management
960 summary: Returns a policy type definition
961 operationId: getPolicyType
962 parameters:
963 - name: policytype_id
964 in: path
965 required: true
966 style: simple
967 explode: false
968 schema:
969 type: string
970 responses:
971 200:
972 description: Policy type
973 content:
974 '*/*':
975 schema:
976 $ref: '#/components/schemas/policytype_v2'
PatrikBuhr1122b012021-01-20 12:21:52 +0100977 404:
PatrikBuhrfee99552021-02-02 14:06:44 +0100978 description: Policy type is not found
979 content:
980 '*/*':
981 schema:
982 $ref: '#/components/schemas/error_information'
PatrikBuhr1122b012021-01-20 12:21:52 +0100983 /a1-policy/v2/policies:
984 get:
985 tags:
PatrikBuhrfee99552021-02-02 14:06:44 +0100986 - A1 Policy Management
PatrikBuhr1122b012021-01-20 12:21:52 +0100987 summary: Query policy identities
988 description: Returns a list of A1 policies matching given search criteria. <br>If
989 several query parameters are defined, the policies matching all conditions
990 are returned.
PatrikBuhrfee99552021-02-02 14:06:44 +0100991 operationId: getPolicyIds_1
PatrikBuhr1122b012021-01-20 12:21:52 +0100992 parameters:
993 - name: policytype_id
994 in: query
PatrikBuhr3b916e42021-10-07 18:03:53 +0200995 description: Select policies of a given policy type identity.
PatrikBuhrfee99552021-02-02 14:06:44 +0100996 required: false
997 style: form
998 explode: true
PatrikBuhr1122b012021-01-20 12:21:52 +0100999 schema:
1000 type: string
1001 - name: ric_id
1002 in: query
PatrikBuhr3b916e42021-10-07 18:03:53 +02001003 description: Select policies of a given Near-RT RIC identity.
PatrikBuhrfee99552021-02-02 14:06:44 +01001004 required: false
1005 style: form
1006 explode: true
PatrikBuhr1122b012021-01-20 12:21:52 +01001007 schema:
1008 type: string
1009 - name: service_id
1010 in: query
PatrikBuhr3b916e42021-10-07 18:03:53 +02001011 description: Select policies owned by a given service.
1012 required: false
1013 style: form
1014 explode: true
1015 schema:
1016 type: string
1017 - name: type_name
1018 in: query
1019 description: Select policies of types with the given type name (type identity
1020 has the format <typename_version>)
PatrikBuhrfee99552021-02-02 14:06:44 +01001021 required: false
1022 style: form
1023 explode: true
PatrikBuhr1122b012021-01-20 12:21:52 +01001024 schema:
1025 type: string
1026 responses:
1027 200:
1028 description: Policy identities
1029 content:
1030 application/json:
1031 schema:
1032 $ref: '#/components/schemas/policy_id_list_v2'
PatrikBuhr1122b012021-01-20 12:21:52 +01001033 404:
1034 description: Near-RT RIC or type not found
1035 content:
1036 application/json:
1037 schema:
1038 $ref: '#/components/schemas/error_information'
PatrikBuhr1122b012021-01-20 12:21:52 +01001039 put:
1040 tags:
PatrikBuhrfee99552021-02-02 14:06:44 +01001041 - A1 Policy Management
PatrikBuhr1122b012021-01-20 12:21:52 +01001042 summary: Create or update a policy
PatrikBuhrfee99552021-02-02 14:06:44 +01001043 operationId: putPolicy_1
PatrikBuhr1122b012021-01-20 12:21:52 +01001044 requestBody:
PatrikBuhr1122b012021-01-20 12:21:52 +01001045 content:
1046 application/json:
1047 schema:
1048 $ref: '#/components/schemas/policy_info_v2'
1049 required: true
1050 responses:
1051 200:
1052 description: Policy updated
PatrikBuhr1122b012021-01-20 12:21:52 +01001053 content:
1054 application/json:
1055 schema:
PatrikBuhrfee99552021-02-02 14:06:44 +01001056 $ref: '#/components/schemas/void'
1057 201:
1058 description: Policy created
1059 content:
1060 application/json:
1061 schema:
1062 $ref: '#/components/schemas/void'
PatrikBuhr1122b012021-01-20 12:21:52 +01001063 423:
1064 description: Near-RT RIC is not operational
1065 content:
1066 application/json:
1067 schema:
1068 $ref: '#/components/schemas/error_information'
PatrikBuhrfee99552021-02-02 14:06:44 +01001069 404:
1070 description: Near-RT RIC or policy type is not found
1071 content:
1072 application/json:
1073 schema:
1074 $ref: '#/components/schemas/error_information'
1075 /r-app/near-rt-ric-status:
PatrikBuhr1122b012021-01-20 12:21:52 +01001076 post:
1077 tags:
PatrikBuhrfee99552021-02-02 14:06:44 +01001078 - Callbacks
PatrikBuhr1122b012021-01-20 12:21:52 +01001079 summary: Callback for Near-RT RIC status
1080 description: The URL to this call is registerred at Service registration.
PatrikBuhr25d78502021-04-28 08:42:13 +02001081 operationId: serviceCallback
PatrikBuhr1122b012021-01-20 12:21:52 +01001082 requestBody:
PatrikBuhr1122b012021-01-20 12:21:52 +01001083 content:
1084 application/json:
1085 schema:
1086 $ref: '#/components/schemas/service_callback_info_v2'
1087 required: true
1088 responses:
1089 200:
1090 description: OK
PatrikBuhr1122b012021-01-20 12:21:52 +01001091 content:
PatrikBuhrfee99552021-02-02 14:06:44 +01001092 application/json:
PatrikBuhr1122b012021-01-20 12:21:52 +01001093 schema:
PatrikBuhrfee99552021-02-02 14:06:44 +01001094 $ref: '#/components/schemas/void'
PatrikBuhr1122b012021-01-20 12:21:52 +01001095 /service:
1096 put:
1097 tags:
PatrikBuhrfee99552021-02-02 14:06:44 +01001098 - A1 Policy Management V1.0
PatrikBuhr1122b012021-01-20 12:21:52 +01001099 summary: Register a service
PatrikBuhrfee99552021-02-02 14:06:44 +01001100 operationId: putService
PatrikBuhr1122b012021-01-20 12:21:52 +01001101 requestBody:
PatrikBuhr1122b012021-01-20 12:21:52 +01001102 content:
1103 application/json:
1104 schema:
1105 $ref: '#/components/schemas/service_registration_info_v1'
1106 required: true
1107 responses:
1108 200:
1109 description: Service updated
1110 content:
1111 '*/*':
1112 schema:
1113 type: string
1114 201:
1115 description: Service created
1116 content:
1117 '*/*':
1118 schema:
1119 type: string
1120 400:
1121 description: The ServiceRegistrationInfo is not accepted
1122 content:
1123 '*/*':
1124 schema:
1125 type: string
PatrikBuhrfee99552021-02-02 14:06:44 +01001126 /a1-policy/v2/services/{service_id}:
1127 delete:
1128 tags:
1129 - Service Registry and Supervision
1130 summary: Unregister a service
1131 operationId: deleteService_1
1132 parameters:
1133 - name: service_id
1134 in: path
1135 required: true
1136 style: simple
1137 explode: false
1138 schema:
1139 type: string
1140 responses:
1141 200:
1142 description: Not used
1143 content:
1144 '*/*':
1145 schema:
1146 $ref: '#/components/schemas/void'
1147 204:
1148 description: Service unregistered
1149 content:
1150 '*/*':
1151 schema:
1152 type: object
PatrikBuhr1122b012021-01-20 12:21:52 +01001153 404:
PatrikBuhrfee99552021-02-02 14:06:44 +01001154 description: Service not found
1155 content:
1156 '*/*':
1157 schema:
1158 $ref: '#/components/schemas/error_information'
PatrikBuhr1122b012021-01-20 12:21:52 +01001159 /a1-policy/v2/policies/{policy_id}/status:
1160 get:
1161 tags:
PatrikBuhrfee99552021-02-02 14:06:44 +01001162 - A1 Policy Management
PatrikBuhr1122b012021-01-20 12:21:52 +01001163 summary: Returns a policy status
PatrikBuhrfee99552021-02-02 14:06:44 +01001164 operationId: getPolicyStatus_1
PatrikBuhr1122b012021-01-20 12:21:52 +01001165 parameters:
1166 - name: policy_id
1167 in: path
PatrikBuhr1122b012021-01-20 12:21:52 +01001168 required: true
PatrikBuhrfee99552021-02-02 14:06:44 +01001169 style: simple
1170 explode: false
PatrikBuhr1122b012021-01-20 12:21:52 +01001171 schema:
1172 type: string
1173 responses:
1174 200:
1175 description: Policy status
1176 content:
1177 application/json:
1178 schema:
1179 $ref: '#/components/schemas/policy_status_info_v2'
PatrikBuhr1122b012021-01-20 12:21:52 +01001180 404:
1181 description: Policy is not found
1182 content:
1183 application/json:
1184 schema:
1185 $ref: '#/components/schemas/error_information'
PatrikBuhr1122b012021-01-20 12:21:52 +01001186components:
1187 schemas:
1188 error_information:
PatrikBuhr1122b012021-01-20 12:21:52 +01001189 type: object
1190 properties:
1191 detail:
1192 type: string
1193 description: ' A human-readable explanation specific to this occurrence
1194 of the problem.'
1195 example: Policy type not found
1196 status:
1197 type: integer
1198 description: 'The HTTP status code generated by the origin server for this
1199 occurrence of the problem. '
1200 format: int32
PatrikBuhr3b916e42021-10-07 18:03:53 +02001201 example: 404
PatrikBuhr1122b012021-01-20 12:21:52 +01001202 description: Problem as defined in https://tools.ietf.org/html/rfc7807
PatrikBuhrfee99552021-02-02 14:06:44 +01001203 void:
1204 type: object
1205 description: Void/empty
PatrikBuhr1122b012021-01-20 12:21:52 +01001206 status_info_v2:
PatrikBuhr1122b012021-01-20 12:21:52 +01001207 type: object
1208 properties:
1209 status:
1210 type: string
1211 description: status text
1212 policy_info_v1:
PatrikBuhr1122b012021-01-20 12:21:52 +01001213 type: object
1214 properties:
1215 service:
1216 type: string
1217 description: the name of the service owning the policy
1218 json:
1219 type: object
PatrikBuhr1122b012021-01-20 12:21:52 +01001220 description: the configuration of the policy
1221 id:
1222 type: string
1223 description: identity of the policy
1224 lastModified:
1225 type: string
1226 description: timestamp, last modification time
1227 type:
1228 type: string
1229 description: name of the policy type
1230 ric:
1231 type: string
1232 description: identity of the target Near-RT RIC
PatrikBuhr1122b012021-01-20 12:21:52 +01001233 service_registration_info_v1:
PatrikBuhr1122b012021-01-20 12:21:52 +01001234 type: object
1235 properties:
1236 keepAliveIntervalSeconds:
1237 type: integer
1238 description: keep alive interval for the service. This is a heartbeat supervision
1239 of the service, which in regular intevals must invoke a 'keepAlive' REST
1240 call. When a service does not invoke this call within the given time,
1241 it is considered unavailble. An unavailable service will be automatically
1242 deregistered and its policies will be deleted. Value 0 means no timeout
1243 supervision.
1244 format: int64
1245 callbackUrl:
1246 type: string
1247 description: callback for notifying of RIC synchronization
1248 serviceName:
1249 type: string
PatrikBuhrfee99552021-02-02 14:06:44 +01001250 ric_info_v2:
PatrikBuhr1122b012021-01-20 12:21:52 +01001251 type: object
1252 properties:
PatrikBuhrfee99552021-02-02 14:06:44 +01001253 ric_id:
1254 type: string
1255 description: identity of the Near-RT RIC
1256 managed_element_ids:
PatrikBuhr1122b012021-01-20 12:21:52 +01001257 type: array
PatrikBuhrfee99552021-02-02 14:06:44 +01001258 description: O1 identities for managed entities
PatrikBuhr1122b012021-01-20 12:21:52 +01001259 items:
PatrikBuhrfee99552021-02-02 14:06:44 +01001260 type: string
1261 description: O1 identities for managed entities
1262 state:
1263 type: string
1264 description: Represents the states for a Near-RT RIC
1265 enum:
1266 - UNAVAILABLE
1267 - AVAILABLE
1268 - SYNCHRONIZING
1269 - CONSISTENCY_CHECK
1270 policytype_ids:
1271 type: array
1272 description: supported policy types
1273 items:
1274 type: string
1275 description: supported policy types
1276 description: Information for a Near-RT RIC
PatrikBuhr1122b012021-01-20 12:21:52 +01001277 service_registration_info_v2:
PatrikBuhr1122b012021-01-20 12:21:52 +01001278 required:
1279 - service_id
1280 type: object
1281 properties:
1282 callback_url:
1283 type: string
1284 description: callback for notifying of Near-RT RIC state changes
1285 service_id:
1286 type: string
1287 description: identity of the service
1288 keep_alive_interval_seconds:
1289 type: integer
1290 description: keep alive interval for the service. This is a heartbeat supervision
PatrikBuhrfee99552021-02-02 14:06:44 +01001291 of the service, which in regular intevals must invoke a 'keepalive' REST
PatrikBuhr1122b012021-01-20 12:21:52 +01001292 call. When a service does not invoke this call within the given time,
1293 it is considered unavailble. An unavailable service will be automatically
1294 deregistered and its policies will be deleted. Value 0 means no timeout
1295 supervision.
1296 format: int64
1297 description: Information for one service
PatrikBuhrfee99552021-02-02 14:06:44 +01001298 policy_info_list_v2:
1299 type: object
1300 properties:
1301 policies:
1302 type: array
1303 description: List of policy information
1304 items:
1305 $ref: '#/components/schemas/policy_info_v2'
1306 description: List of policy information
PatrikBuhr1122b012021-01-20 12:21:52 +01001307 ric_info_v1:
PatrikBuhr1122b012021-01-20 12:21:52 +01001308 type: object
1309 properties:
1310 managedElementIds:
1311 type: array
1312 description: O1 identities for managed entities
1313 items:
1314 type: string
PatrikBuhrfee99552021-02-02 14:06:44 +01001315 description: O1 identities for managed entities
PatrikBuhr1122b012021-01-20 12:21:52 +01001316 policyTypes:
1317 type: array
1318 description: supported policy types
1319 items:
1320 type: string
PatrikBuhrfee99552021-02-02 14:06:44 +01001321 description: supported policy types
PatrikBuhr1122b012021-01-20 12:21:52 +01001322 state:
1323 type: string
1324 description: state info
1325 ricName:
1326 type: string
1327 description: identity of the Near-RT RIC
PatrikBuhrfee99552021-02-02 14:06:44 +01001328 service_status_v1:
1329 type: object
1330 properties:
1331 keepAliveIntervalSeconds:
1332 type: integer
1333 description: policy keep alive timeout
1334 format: int64
1335 timeSinceLastActivitySeconds:
1336 type: integer
1337 description: time since last invocation by the service
1338 format: int64
1339 callbackUrl:
1340 type: string
1341 description: callback for notifying of RIC synchronization
1342 serviceName:
1343 type: string
1344 description: identity of the service
PatrikBuhr1122b012021-01-20 12:21:52 +01001345 policy_status_info_v2:
PatrikBuhr1122b012021-01-20 12:21:52 +01001346 type: object
1347 properties:
1348 last_modified:
1349 type: string
1350 description: timestamp, last modification time
1351 status:
1352 type: object
PatrikBuhr1122b012021-01-20 12:21:52 +01001353 description: the Policy status
1354 description: Status for one A1-P Policy
PatrikBuhr1122b012021-01-20 12:21:52 +01001355 service_status_v2:
PatrikBuhr1122b012021-01-20 12:21:52 +01001356 type: object
1357 properties:
1358 callback_url:
1359 type: string
1360 description: callback for notifying of RIC synchronization
1361 service_id:
1362 type: string
1363 description: identity of the service
1364 keep_alive_interval_seconds:
1365 type: integer
1366 description: policy keep alive timeout
1367 format: int64
1368 time_since_last_activity_seconds:
1369 type: integer
1370 description: time since last invocation by the service
1371 format: int64
PatrikBuhrfee99552021-02-02 14:06:44 +01001372 description: List of service information
PatrikBuhr1122b012021-01-20 12:21:52 +01001373 ric_info_list_v2:
PatrikBuhr1122b012021-01-20 12:21:52 +01001374 type: object
1375 properties:
1376 rics:
1377 type: array
1378 description: List of Near-RT RIC information
1379 items:
1380 $ref: '#/components/schemas/ric_info_v2'
1381 description: List of Near-RT RIC information
PatrikBuhrfee99552021-02-02 14:06:44 +01001382 policytype_v2:
1383 type: object
1384 properties:
1385 policy_schema:
1386 type: object
1387 description: Policy type json scema. The schema is a json object following
1388 http://json-schema.org/draft-07/schema
1389 description: Policy type
PatrikBuhr1122b012021-01-20 12:21:52 +01001390 policytype_id_list_v2:
PatrikBuhr1122b012021-01-20 12:21:52 +01001391 type: object
1392 properties:
1393 policytype_ids:
1394 type: array
1395 description: Policy type identities
1396 items:
1397 type: string
PatrikBuhrfee99552021-02-02 14:06:44 +01001398 description: Policy type identities
PatrikBuhr1122b012021-01-20 12:21:52 +01001399 description: Information about policy types
PatrikBuhr1122b012021-01-20 12:21:52 +01001400 policy_info_v2:
PatrikBuhr1122b012021-01-20 12:21:52 +01001401 required:
1402 - policy_data
1403 - policy_id
1404 - policytype_id
1405 - ric_id
1406 - service_id
1407 type: object
1408 properties:
1409 ric_id:
1410 type: string
1411 description: identity of the target Near-RT RIC
1412 policy_id:
1413 type: string
1414 description: identity of the policy
1415 transient:
1416 type: boolean
1417 description: if true, the policy is deleted at RIC restart. If false, its
1418 value is maintained by this service until explicitly deleted. Default
1419 false.
1420 service_id:
1421 type: string
PatrikBuhr3b916e42021-10-07 18:03:53 +02001422 description: the identity of the service owning the policy
PatrikBuhr1122b012021-01-20 12:21:52 +01001423 policy_data:
1424 type: object
PatrikBuhr1122b012021-01-20 12:21:52 +01001425 description: the configuration of the policy
1426 status_notification_uri:
1427 type: string
1428 description: Callback URI for policy status updates
1429 policytype_id:
1430 type: string
1431 description: identity of the policy type
1432 description: Information for one A1-P Policy
PatrikBuhrfee99552021-02-02 14:06:44 +01001433 policy_id_list_v2:
1434 type: object
1435 properties:
1436 policy_ids:
1437 type: array
1438 description: Policy identities
1439 items:
1440 type: string
1441 description: Policy identities
1442 description: A list of policy identities
PatrikBuhr1122b012021-01-20 12:21:52 +01001443 service_list_v2:
PatrikBuhr1122b012021-01-20 12:21:52 +01001444 type: object
1445 properties:
1446 service_list:
1447 type: array
1448 description: List of service information
1449 items:
1450 $ref: '#/components/schemas/service_status_v2'
1451 description: List of service information
1452 service_callback_info_v2:
PatrikBuhr1122b012021-01-20 12:21:52 +01001453 required:
1454 - event_type
1455 - ric_id
1456 type: object
1457 properties:
1458 ric_id:
1459 type: string
1460 description: identity of a Near-RT RIC
1461 event_type:
1462 type: string
1463 description: |-
1464 values:
1465 AVAILABLE: the Near-RT RIC has become available for A1 Policy management
1466 enum:
1467 - AVAILABLE
1468 description: Information transferred as in Service callbacks (callback_url)