blob: 3633bcac576e7f55a319de49f3e0da3b481281f5 [file] [log] [blame]
raviteja.karumuria4687d92023-09-14 12:38:49 +01001# ============LICENSE_START=======================================================
2# Copyright (C) 2020-2023 Nordix Foundation
3# Modifications Copyright (C) 2021 Pantheon.tech
4# Modifications Copyright (C) 2021 Bell Canada
5# ================================================================================
6# Licensed under the Apache License, Version 2.0 (the "License");
7# you may not use this file except in compliance with the License.
8# You may obtain a copy of the License at
9#
10# http://www.apache.org/licenses/LICENSE-2.0
11#
12# Unless required by applicable law or agreed to in writing, software
13# distributed under the License is distributed on an "AS IS" BASIS,
14# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15# See the License for the specific language governing permissions and
16# limitations under the License.
17#
18# SPDX-License-Identifier: Apache-2.0
19# ============LICENSE_END=========================================================
20
21openapi: 3.0.3
elinuxhenrikf28594d2020-12-07 14:54:19 +010022info:
JohnKeeneye251d0c2023-02-20 18:00:44 +000023 description: "<h2>General</h2><p>The O-RAN Non-RT RIC Policy Management Service\
24 \ provides a REST API for management of A1 policies. <br/>The main tasks of the\
25 \ service are:</p><ul><li>A1 Policy creation, modification and deletion.</li><li>Monitoring\
26 \ and maintaining consistency of the SMO view of A1 policies and the Near-RT RICs</li><li>Maintaining\
27 \ a view of supported Near-RT RIC policy types</li><li>Supervision of using services\
28 \ (R-APPs). When a service is unavailable, its policies are removed.</li></ul><h2>APIs\
PatrikBuhr9f1d9492023-04-17 13:00:15 +020029 \ provided or defined by the service</h2><h3>A1 Policy Management</h3><p>This\
30 \ is an API for management of A1 Policies.</p><ul><li>A1 Policy retrieval, creation,\
31 \ modification and deletion.</li><li>Retrieval of supported A1 Policy types for\
32 \ a Near-RT RIC</li><li>Retrieval of status for existing A1 policies</li></ul><h3>Management\
33 \ of configuration</h3><p>API for updating and retrieval of the component configuration.\
34 \ Note that there other ways to maintain the configuration.</p><h3>Service callbacks</h3><p>These\
35 \ are endpoints that are invoked by this service. The callbacks are registered\
36 \ in this service at service registration.</p><h3>NearRT-RIC Repository</h3><p>This\
37 \ is an API that provides support for looking up a NearRT-RIC. Each A1 policy\
38 \ is targeted for one Near-RT RIC.</p><h3>Health Check</h3><p>API used for supervision\
39 \ of the PMS component.</p><h3>Service Registry and Supervision</h3><p>API used\
40 \ for registering services that uses PMS. Each A1 policy is optionally owned by\
41 \ a service. PMS can supervise each registered service by a heart-beat supervision\
JohnKeeneye251d0c2023-02-20 18:00:44 +000042 \ and will automatically remove policies for unavailable services. Note that a\
43 \ service does not need to be registered in order to create A1 Policies. This\
PatrikBuhr9f1d9492023-04-17 13:00:15 +020044 \ is a feature that is optional to use.</p><h3>Authorization API</h3><p>API used\
45 \ for access control of A1 Policy access. If configured, an external authorization\
46 \ provider is requested to grant access to the A1 Policy type.</p><h3>Spring Boot\
47 \ Actuator</h3><p>Provides generic functions used to monitor and manage the Spring\
48 \ web application.</p>"
PatrikBuhrfee99552021-02-02 14:06:44 +010049 license:
PatrikBuhrc0218ad2022-11-28 09:40:36 +010050 name: Copyright (C) 2020-2023 Nordix Foundation. Licensed under the Apache License.
PatrikBuhrfee99552021-02-02 14:06:44 +010051 url: http://www.apache.org/licenses/LICENSE-2.0
JohnKeeneye251d0c2023-02-20 18:00:44 +000052 title: A1 Policy Management Service
PatrikBuhr9f1d9492023-04-17 13:00:15 +020053 version: 1.2.0
elinuxhenrikf28594d2020-12-07 14:54:19 +010054servers:
raviteja.karumuria4687d92023-09-14 12:38:49 +010055 - url: /
elinuxhenrikf28594d2020-12-07 14:54:19 +010056tags:
raviteja.karumuria4687d92023-09-14 12:38:49 +010057 - description: "API used for authorization of information A1 policy access (this is
58 provided by an authorization producer such as OPA). <br> Note that this API is called
59 by PMS, it is not provided."
60 name: Authorization API
61 - description: Monitor and interact
62 externalDocs:
63 description: Spring Boot Actuator Web API Documentation
64 url: https://docs.spring.io/spring-boot/docs/current/actuator-api/html/
65 name: Actuator
elinuxhenrikf28594d2020-12-07 14:54:19 +010066paths:
PatrikBuhrbe0ae3e2021-01-14 15:31:39 +010067 /a1-policy/v2/policy-instances:
68 get:
JohnKeeneye251d0c2023-02-20 18:00:44 +000069 description: "Returns a list of A1 policies matching given search criteria.\
70 \ <br>If several query parameters are defined, the policies matching all conditions\
71 \ are returned."
PatrikBuhrfee99552021-02-02 14:06:44 +010072 operationId: getPolicyInstances
PatrikBuhrbe0ae3e2021-01-14 15:31:39 +010073 parameters:
raviteja.karumuria4687d92023-09-14 12:38:49 +010074 - description: Select policies with a given type identity.
75 explode: true
76 in: query
77 name: policytype_id
78 required: false
79 schema:
80 type: string
81 style: form
82 - description: Select policies for a given Near-RT RIC identity.
83 explode: true
84 in: query
85 name: ric_id
86 required: false
87 schema:
88 type: string
89 style: form
90 - description: Select policies owned by a given service.
91 explode: true
92 in: query
93 name: service_id
94 required: false
95 schema:
96 type: string
97 style: form
98 - description: Select policies of a given type name (type identity has the format
99 <typename_version>)
100 explode: true
101 in: query
102 name: type_name
103 required: false
104 schema:
105 type: string
106 style: form
PatrikBuhrbe0ae3e2021-01-14 15:31:39 +0100107 responses:
JohnKeeneye251d0c2023-02-20 18:00:44 +0000108 "200":
PatrikBuhrbe0ae3e2021-01-14 15:31:39 +0100109 content:
110 application/json:
raviteja.karumuria4687d92023-09-14 12:38:49 +0100111 examples:
112 policy_info_list:
113 $ref: '#/components/examples/policy_info_list'
PatrikBuhrbe0ae3e2021-01-14 15:31:39 +0100114 schema:
raviteja.karumuria4687d92023-09-14 12:38:49 +0100115 type: object
JohnKeeneye251d0c2023-02-20 18:00:44 +0000116 description: Policies
117 "404":
PatrikBuhrbe0ae3e2021-01-14 15:31:39 +0100118 content:
119 application/json:
120 schema:
121 $ref: '#/components/schemas/error_information'
JohnKeeneye251d0c2023-02-20 18:00:44 +0000122 description: "Near-RT RIC, policy type or service not found"
123 summary: Query for A1 policy instances
124 tags:
raviteja.karumuria4687d92023-09-14 12:38:49 +0100125 - A1 Policy Management
PatrikBuhrf07e4b32023-04-05 14:40:07 +0200126 /example-authz-check:
127 post:
128 description: The authorization function decides if access is granted.
129 operationId: performAccessControl
130 requestBody:
131 content:
132 application/json:
133 schema:
134 $ref: '#/components/schemas/policy_authorization'
135 required: true
136 responses:
137 "200":
138 content:
139 application/json:
140 schema:
141 $ref: '#/components/schemas/authorization_result'
142 description: OK
143 summary: Request for access authorization.
144 tags:
raviteja.karumuria4687d92023-09-14 12:38:49 +0100145 - Authorization API
PatrikBuhr62c25962022-03-25 15:39:06 +0100146 /actuator/threaddump:
147 get:
JohnKeeney62abcd82023-03-01 19:04:58 +0000148 operationId: threaddump
PatrikBuhr62c25962022-03-25 15:39:06 +0100149 responses:
JohnKeeneye251d0c2023-02-20 18:00:44 +0000150 "200":
PatrikBuhr62c25962022-03-25 15:39:06 +0100151 content:
JohnKeeney62abcd82023-03-01 19:04:58 +0000152 text/plain;charset=UTF-8:
153 schema:
154 type: object
155 application/vnd.spring-boot.actuator.v3+json:
156 schema:
157 type: object
158 application/json:
159 schema:
160 type: object
161 application/vnd.spring-boot.actuator.v2+json:
PatrikBuhr62c25962022-03-25 15:39:06 +0100162 schema:
163 type: object
JohnKeeneye251d0c2023-02-20 18:00:44 +0000164 description: OK
165 summary: Actuator web endpoint 'threaddump'
166 tags:
raviteja.karumuria4687d92023-09-14 12:38:49 +0100167 - Actuator
PatrikBuhrbe0ae3e2021-01-14 15:31:39 +0100168 /a1-policy/v2/status:
elinuxhenrikf28594d2020-12-07 14:54:19 +0100169 get:
PatrikBuhr2a56cf72021-12-28 13:14:46 +0100170 operationId: getStatus
elinuxhenrikf28594d2020-12-07 14:54:19 +0100171 responses:
JohnKeeneye251d0c2023-02-20 18:00:44 +0000172 "200":
elinuxhenrikf28594d2020-12-07 14:54:19 +0100173 content:
174 application/json:
175 schema:
raviteja.karumuria4687d92023-09-14 12:38:49 +0100176 type: object
177 examples:
178 status_info:
179 $ref: '#/components/examples/status_info'
JohnKeeneye251d0c2023-02-20 18:00:44 +0000180 description: Service is living
181 summary: Returns status and statistics of this service
182 tags:
raviteja.karumuria4687d92023-09-14 12:38:49 +0100183 - Health Check
PatrikBuhr62c25962022-03-25 15:39:06 +0100184 /actuator/loggers:
PatrikBuhr6e318742021-11-30 11:25:17 +0100185 get:
PatrikBuhr62c25962022-03-25 15:39:06 +0100186 operationId: loggers
187 responses:
JohnKeeneye251d0c2023-02-20 18:00:44 +0000188 "200":
PatrikBuhr62c25962022-03-25 15:39:06 +0100189 content:
JohnKeeney62abcd82023-03-01 19:04:58 +0000190 application/vnd.spring-boot.actuator.v3+json:
191 schema:
192 type: object
193 application/json:
194 schema:
195 type: object
196 application/vnd.spring-boot.actuator.v2+json:
PatrikBuhr62c25962022-03-25 15:39:06 +0100197 schema:
198 type: object
JohnKeeneye251d0c2023-02-20 18:00:44 +0000199 description: OK
200 summary: Actuator web endpoint 'loggers'
PatrikBuhr62c25962022-03-25 15:39:06 +0100201 tags:
raviteja.karumuria4687d92023-09-14 12:38:49 +0100202 - Actuator
JohnKeeneye251d0c2023-02-20 18:00:44 +0000203 /actuator/health/**:
204 get:
PatrikBuhr62c25962022-03-25 15:39:06 +0100205 operationId: health-path
PatrikBuhr6e318742021-11-30 11:25:17 +0100206 responses:
JohnKeeneye251d0c2023-02-20 18:00:44 +0000207 "200":
PatrikBuhr6e318742021-11-30 11:25:17 +0100208 content:
JohnKeeney62abcd82023-03-01 19:04:58 +0000209 application/vnd.spring-boot.actuator.v3+json:
210 schema:
211 type: object
212 application/json:
213 schema:
214 type: object
215 application/vnd.spring-boot.actuator.v2+json:
PatrikBuhr6e318742021-11-30 11:25:17 +0100216 schema:
217 type: object
JohnKeeneye251d0c2023-02-20 18:00:44 +0000218 description: OK
219 summary: Actuator web endpoint 'health-path'
220 tags:
raviteja.karumuria4687d92023-09-14 12:38:49 +0100221 - Actuator
PatrikBuhrbe0ae3e2021-01-14 15:31:39 +0100222 /a1-policy/v2/rics/ric:
223 get:
JohnKeeney069b4692022-05-12 22:15:14 +0100224 description: Either a Near-RT RIC identity or a Managed Element identity can
225 be specified.<br>The intention with Managed Element identity is the ID used
PatrikBuhrbe0ae3e2021-01-14 15:31:39 +0100226 in O1 for accessing the traffical element (such as the ID of CU).
PatrikBuhr2a56cf72021-12-28 13:14:46 +0100227 operationId: getRic
PatrikBuhrbe0ae3e2021-01-14 15:31:39 +0100228 parameters:
raviteja.karumuria4687d92023-09-14 12:38:49 +0100229 - description: "The identity of a Managed Element. If given, the Near-RT RIC\
JohnKeeneye251d0c2023-02-20 18:00:44 +0000230 \ managing the ME is returned."
raviteja.karumuria4687d92023-09-14 12:38:49 +0100231 explode: true
232 in: query
233 name: managed_element_id
234 required: false
235 schema:
236 type: string
237 style: form
238 - description: The identity of a Near-RT RIC to get information for.
239 explode: true
240 in: query
241 name: ric_id
242 required: false
243 schema:
244 type: string
245 style: form
PatrikBuhrbe0ae3e2021-01-14 15:31:39 +0100246 responses:
JohnKeeneye251d0c2023-02-20 18:00:44 +0000247 "200":
PatrikBuhrbe0ae3e2021-01-14 15:31:39 +0100248 content:
249 application/json:
250 schema:
raviteja.karumuria4687d92023-09-14 12:38:49 +0100251 type: object
252 examples:
253 ric_info:
254 $ref: '#/components/examples/ric_info'
JohnKeeneye251d0c2023-02-20 18:00:44 +0000255 description: Near-RT RIC is found
256 "404":
PatrikBuhrbe0ae3e2021-01-14 15:31:39 +0100257 content:
258 application/json:
259 schema:
260 $ref: '#/components/schemas/error_information'
JohnKeeneye251d0c2023-02-20 18:00:44 +0000261 description: Near-RT RIC is not found
262 summary: Returns info for one Near-RT RIC
263 tags:
raviteja.karumuria4687d92023-09-14 12:38:49 +0100264 - NearRT-RIC Repository
PatrikBuhrc0218ad2022-11-28 09:40:36 +0100265 /actuator/shutdown:
266 post:
PatrikBuhrc0218ad2022-11-28 09:40:36 +0100267 operationId: shutdown
268 responses:
JohnKeeneye251d0c2023-02-20 18:00:44 +0000269 "200":
PatrikBuhrc0218ad2022-11-28 09:40:36 +0100270 content:
JohnKeeney62abcd82023-03-01 19:04:58 +0000271 application/vnd.spring-boot.actuator.v3+json:
272 schema:
273 type: object
274 application/json:
275 schema:
276 type: object
277 application/vnd.spring-boot.actuator.v2+json:
PatrikBuhrc0218ad2022-11-28 09:40:36 +0100278 schema:
279 type: object
JohnKeeneye251d0c2023-02-20 18:00:44 +0000280 description: OK
281 summary: Actuator web endpoint 'shutdown'
282 tags:
raviteja.karumuria4687d92023-09-14 12:38:49 +0100283 - Actuator
PatrikBuhrbe0ae3e2021-01-14 15:31:39 +0100284 /a1-policy/v2/policy-types:
285 get:
PatrikBuhr2a56cf72021-12-28 13:14:46 +0100286 operationId: getPolicyTypes
PatrikBuhrbe0ae3e2021-01-14 15:31:39 +0100287 parameters:
raviteja.karumuria4687d92023-09-14 12:38:49 +0100288 - description: Select types for the given Near-RT RIC identity.
289 explode: true
290 in: query
291 name: ric_id
292 required: false
293 schema:
294 type: string
295 style: form
296 - description: Select types with the given type name (type identity has the
297 format <typename_version>)
298 explode: true
299 in: query
300 name: type_name
301 required: false
302 schema:
303 type: string
304 style: form
305 - description: Select types that are compatible with the given version. This
306 parameter is only applicable in conjunction with type_name. As an example
307 version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching
308 types will be returned sorted in ascending order.
309 explode: true
310 in: query
311 name: compatible_with_version
312 required: false
313 schema:
314 type: string
315 style: form
PatrikBuhrbe0ae3e2021-01-14 15:31:39 +0100316 responses:
JohnKeeneye251d0c2023-02-20 18:00:44 +0000317 "200":
PatrikBuhrbe0ae3e2021-01-14 15:31:39 +0100318 content:
319 application/json:
raviteja.karumuria4687d92023-09-14 12:38:49 +0100320 examples:
321 policy_type_id_list:
322 $ref: '#/components/examples/policy_type_id_list'
PatrikBuhrbe0ae3e2021-01-14 15:31:39 +0100323 schema:
raviteja.karumuria4687d92023-09-14 12:38:49 +0100324 type: object
JohnKeeneye251d0c2023-02-20 18:00:44 +0000325 description: Policy type IDs
326 "404":
PatrikBuhrbe0ae3e2021-01-14 15:31:39 +0100327 content:
328 application/json:
329 schema:
330 $ref: '#/components/schemas/error_information'
JohnKeeneye251d0c2023-02-20 18:00:44 +0000331 description: Near-RT RIC is not found
332 summary: Query policy type identities
PatrikBuhrfee99552021-02-02 14:06:44 +0100333 tags:
raviteja.karumuria4687d92023-09-14 12:38:49 +0100334 - A1 Policy Management
JohnKeeneye251d0c2023-02-20 18:00:44 +0000335 /a1-policy/v2/policies/{policy_id}:
336 delete:
337 operationId: deletePolicy
PatrikBuhrfee99552021-02-02 14:06:44 +0100338 parameters:
raviteja.karumuria4687d92023-09-14 12:38:49 +0100339 - explode: false
340 in: path
341 name: policy_id
342 required: true
343 schema:
344 type: string
345 style: simple
PatrikBuhrfee99552021-02-02 14:06:44 +0100346 responses:
JohnKeeneye251d0c2023-02-20 18:00:44 +0000347 "200":
348 content:
349 '*/*':
350 schema:
351 $ref: '#/components/schemas/void'
352 description: Not used
353 "423":
354 content:
355 '*/*':
356 schema:
357 $ref: '#/components/schemas/error_information'
358 description: Near-RT RIC is not operational
359 "204":
360 content:
361 '*/*':
362 schema:
363 $ref: '#/components/schemas/void'
364 description: Policy deleted
365 "404":
366 content:
367 '*/*':
368 schema:
369 $ref: '#/components/schemas/error_information'
370 description: Policy is not found
371 summary: Delete a policy
372 tags:
raviteja.karumuria4687d92023-09-14 12:38:49 +0100373 - A1 Policy Management
JohnKeeneye251d0c2023-02-20 18:00:44 +0000374 get:
375 operationId: getPolicy
376 parameters:
raviteja.karumuria4687d92023-09-14 12:38:49 +0100377 - explode: false
378 in: path
379 name: policy_id
380 required: true
381 schema:
382 type: string
383 style: simple
JohnKeeneye251d0c2023-02-20 18:00:44 +0000384 responses:
385 "200":
PatrikBuhrfee99552021-02-02 14:06:44 +0100386 content:
387 application/json:
388 schema:
raviteja.karumuria4687d92023-09-14 12:38:49 +0100389 type: object
390 examples:
391 policy_info:
392 $ref: '#/components/examples/policy_info'
JohnKeeneye251d0c2023-02-20 18:00:44 +0000393 description: Policy found
394 "404":
PatrikBuhrfee99552021-02-02 14:06:44 +0100395 content:
396 application/json:
397 schema:
398 $ref: '#/components/schemas/error_information'
JohnKeeneye251d0c2023-02-20 18:00:44 +0000399 description: Policy is not found
400 summary: Returns a policy
PatrikBuhrfee99552021-02-02 14:06:44 +0100401 tags:
raviteja.karumuria4687d92023-09-14 12:38:49 +0100402 - A1 Policy Management
PatrikBuhr6e318742021-11-30 11:25:17 +0100403 /actuator/metrics/{requiredMetricName}:
404 get:
PatrikBuhr62c25962022-03-25 15:39:06 +0100405 operationId: metrics-requiredMetricName
PatrikBuhr6e318742021-11-30 11:25:17 +0100406 parameters:
raviteja.karumuria4687d92023-09-14 12:38:49 +0100407 - explode: false
408 in: path
409 name: requiredMetricName
410 required: true
411 schema:
412 type: string
413 style: simple
PatrikBuhr6e318742021-11-30 11:25:17 +0100414 responses:
JohnKeeneye251d0c2023-02-20 18:00:44 +0000415 "200":
PatrikBuhr6e318742021-11-30 11:25:17 +0100416 content:
JohnKeeney62abcd82023-03-01 19:04:58 +0000417 application/vnd.spring-boot.actuator.v3+json:
418 schema:
419 type: object
420 application/json:
421 schema:
422 type: object
423 application/vnd.spring-boot.actuator.v2+json:
PatrikBuhr6e318742021-11-30 11:25:17 +0100424 schema:
425 type: object
JohnKeeneye251d0c2023-02-20 18:00:44 +0000426 description: OK
427 summary: Actuator web endpoint 'metrics-requiredMetricName'
428 tags:
raviteja.karumuria4687d92023-09-14 12:38:49 +0100429 - Actuator
PatrikBuhrbe0ae3e2021-01-14 15:31:39 +0100430 /a1-policy/v2/configuration:
431 get:
PatrikBuhrfee99552021-02-02 14:06:44 +0100432 operationId: getConfiguration
PatrikBuhrbe0ae3e2021-01-14 15:31:39 +0100433 responses:
JohnKeeneye251d0c2023-02-20 18:00:44 +0000434 "200":
PatrikBuhrbe0ae3e2021-01-14 15:31:39 +0100435 content:
436 application/json:
437 schema:
elinuxhenrikf28594d2020-12-07 14:54:19 +0100438 type: object
JohnKeeneye251d0c2023-02-20 18:00:44 +0000439 description: Configuration
440 "404":
PatrikBuhrbe0ae3e2021-01-14 15:31:39 +0100441 content:
442 application/json:
443 schema:
444 $ref: '#/components/schemas/error_information'
JohnKeeneye251d0c2023-02-20 18:00:44 +0000445 description: File is not found or readable
446 summary: Returns the contents of the application configuration file
PatrikBuhrbe0ae3e2021-01-14 15:31:39 +0100447 tags:
raviteja.karumuria4687d92023-09-14 12:38:49 +0100448 - configuration
JohnKeeneye251d0c2023-02-20 18:00:44 +0000449 put:
PatrikBuhrfee99552021-02-02 14:06:44 +0100450 operationId: putConfiguration
PatrikBuhrbe0ae3e2021-01-14 15:31:39 +0100451 requestBody:
PatrikBuhrbe0ae3e2021-01-14 15:31:39 +0100452 content:
453 application/json:
454 schema:
455 type: object
456 required: true
457 responses:
JohnKeeneye251d0c2023-02-20 18:00:44 +0000458 "200":
PatrikBuhrfee99552021-02-02 14:06:44 +0100459 content:
460 '*/*':
461 schema:
462 $ref: '#/components/schemas/void'
JohnKeeneye251d0c2023-02-20 18:00:44 +0000463 description: Configuration updated
464 "400":
PatrikBuhrbe0ae3e2021-01-14 15:31:39 +0100465 content:
466 '*/*':
467 schema:
468 $ref: '#/components/schemas/error_information'
JohnKeeneye251d0c2023-02-20 18:00:44 +0000469 description: Invalid configuration provided
470 "500":
471 content:
472 '*/*':
473 schema:
474 $ref: '#/components/schemas/error_information'
PatrikBuhrbe0ae3e2021-01-14 15:31:39 +0100475 description: Something went wrong when replacing the configuration. Try
476 again.
JohnKeeneye251d0c2023-02-20 18:00:44 +0000477 summary: Replace the current configuration file with the given configuration
478 tags:
raviteja.karumuria4687d92023-09-14 12:38:49 +0100479 - configuration
PatrikBuhr6e318742021-11-30 11:25:17 +0100480 /actuator:
481 get:
PatrikBuhr62c25962022-03-25 15:39:06 +0100482 operationId: links
PatrikBuhr6e318742021-11-30 11:25:17 +0100483 responses:
JohnKeeneye251d0c2023-02-20 18:00:44 +0000484 "200":
PatrikBuhr6e318742021-11-30 11:25:17 +0100485 content:
JohnKeeney62abcd82023-03-01 19:04:58 +0000486 application/vnd.spring-boot.actuator.v3+json:
487 schema:
488 additionalProperties:
489 additionalProperties:
490 $ref: '#/components/schemas/Link'
491 type: object
492 type: object
493 application/json:
494 schema:
495 additionalProperties:
496 additionalProperties:
497 $ref: '#/components/schemas/Link'
498 type: object
499 type: object
500 application/vnd.spring-boot.actuator.v2+json:
PatrikBuhr6e318742021-11-30 11:25:17 +0100501 schema:
PatrikBuhr6e318742021-11-30 11:25:17 +0100502 additionalProperties:
PatrikBuhr6e318742021-11-30 11:25:17 +0100503 additionalProperties:
504 $ref: '#/components/schemas/Link'
JohnKeeneye251d0c2023-02-20 18:00:44 +0000505 type: object
506 type: object
507 description: OK
508 summary: Actuator root web endpoint
509 tags:
raviteja.karumuria4687d92023-09-14 12:38:49 +0100510 - Actuator
PatrikBuhr6e318742021-11-30 11:25:17 +0100511 /actuator/loggers/{name}:
512 get:
JohnKeeney62abcd82023-03-01 19:04:58 +0000513 operationId: loggers-name
PatrikBuhr6e318742021-11-30 11:25:17 +0100514 parameters:
raviteja.karumuria4687d92023-09-14 12:38:49 +0100515 - explode: false
516 in: path
517 name: name
518 required: true
519 schema:
520 type: string
521 style: simple
PatrikBuhr6e318742021-11-30 11:25:17 +0100522 responses:
JohnKeeneye251d0c2023-02-20 18:00:44 +0000523 "200":
PatrikBuhr6e318742021-11-30 11:25:17 +0100524 content:
JohnKeeney62abcd82023-03-01 19:04:58 +0000525 application/vnd.spring-boot.actuator.v3+json:
526 schema:
527 type: object
528 application/json:
529 schema:
530 type: object
531 application/vnd.spring-boot.actuator.v2+json:
PatrikBuhr6e318742021-11-30 11:25:17 +0100532 schema:
533 type: object
JohnKeeneye251d0c2023-02-20 18:00:44 +0000534 description: OK
535 summary: Actuator web endpoint 'loggers-name'
PatrikBuhr6e318742021-11-30 11:25:17 +0100536 tags:
raviteja.karumuria4687d92023-09-14 12:38:49 +0100537 - Actuator
JohnKeeneye251d0c2023-02-20 18:00:44 +0000538 post:
JohnKeeney62abcd82023-03-01 19:04:58 +0000539 operationId: loggers-name_2
PatrikBuhr6e318742021-11-30 11:25:17 +0100540 parameters:
raviteja.karumuria4687d92023-09-14 12:38:49 +0100541 - explode: false
542 in: path
543 name: name
544 required: true
545 schema:
546 type: string
547 style: simple
JohnKeeney62abcd82023-03-01 19:04:58 +0000548 requestBody:
549 content:
550 application/json:
551 schema:
552 enum:
raviteja.karumuria4687d92023-09-14 12:38:49 +0100553 - TRACE
554 - DEBUG
555 - INFO
556 - WARN
557 - ERROR
558 - FATAL
559 - "OFF"
JohnKeeney62abcd82023-03-01 19:04:58 +0000560 type: string
PatrikBuhr6e318742021-11-30 11:25:17 +0100561 responses:
JohnKeeneye251d0c2023-02-20 18:00:44 +0000562 "200":
PatrikBuhr6e318742021-11-30 11:25:17 +0100563 content:
564 '*/*':
565 schema:
566 type: object
JohnKeeneye251d0c2023-02-20 18:00:44 +0000567 description: OK
568 summary: Actuator web endpoint 'loggers-name'
569 tags:
raviteja.karumuria4687d92023-09-14 12:38:49 +0100570 - Actuator
PatrikBuhrbe0ae3e2021-01-14 15:31:39 +0100571 /a1-policy/v2/services/{service_id}/keepalive:
572 put:
JohnKeeney08486cf2022-05-24 12:34:49 +0100573 description: A registered service should invoke this operation regularly to
574 indicate that it is still alive. If a registered service fails to invoke this
575 operation before the end of a timeout period the service will be deregistered
576 and all its A1 policies wil be removed. (This timeout can be set or disabled
577 when each service is initially registered)
PatrikBuhr2a56cf72021-12-28 13:14:46 +0100578 operationId: keepAliveService
elinuxhenrikf28594d2020-12-07 14:54:19 +0100579 parameters:
raviteja.karumuria4687d92023-09-14 12:38:49 +0100580 - explode: false
581 in: path
582 name: service_id
583 required: true
584 schema:
585 type: string
586 style: simple
elinuxhenrikf28594d2020-12-07 14:54:19 +0100587 responses:
JohnKeeneye251d0c2023-02-20 18:00:44 +0000588 "200":
elinuxhenrikf28594d2020-12-07 14:54:19 +0100589 content:
590 '*/*':
591 schema:
PatrikBuhrbe0ae3e2021-01-14 15:31:39 +0100592 type: object
JohnKeeneye251d0c2023-02-20 18:00:44 +0000593 description: "Service supervision timer refreshed, OK"
594 "404":
elinuxhenrikf28594d2020-12-07 14:54:19 +0100595 content:
596 '*/*':
597 schema:
598 $ref: '#/components/schemas/error_information'
JohnKeeneye251d0c2023-02-20 18:00:44 +0000599 description: "The service is not found, needs re-registration"
600 summary: Heartbeat indicates that the service is running
601 tags:
raviteja.karumuria4687d92023-09-14 12:38:49 +0100602 - Service Registry and Supervision
PatrikBuhr6e318742021-11-30 11:25:17 +0100603 /actuator/metrics:
604 get:
PatrikBuhr62c25962022-03-25 15:39:06 +0100605 operationId: metrics
PatrikBuhr6e318742021-11-30 11:25:17 +0100606 responses:
JohnKeeneye251d0c2023-02-20 18:00:44 +0000607 "200":
PatrikBuhr6e318742021-11-30 11:25:17 +0100608 content:
JohnKeeney62abcd82023-03-01 19:04:58 +0000609 application/vnd.spring-boot.actuator.v3+json:
610 schema:
611 type: object
612 application/json:
613 schema:
614 type: object
615 application/vnd.spring-boot.actuator.v2+json:
PatrikBuhr6e318742021-11-30 11:25:17 +0100616 schema:
617 type: object
JohnKeeneye251d0c2023-02-20 18:00:44 +0000618 description: OK
619 summary: Actuator web endpoint 'metrics'
620 tags:
raviteja.karumuria4687d92023-09-14 12:38:49 +0100621 - Actuator
PatrikBuhrbe0ae3e2021-01-14 15:31:39 +0100622 /a1-policy/v2/rics:
elinuxhenrikf28594d2020-12-07 14:54:19 +0100623 get:
elinuxhenrikf28594d2020-12-07 14:54:19 +0100624 description: The call returns all Near-RT RICs that supports a given policy
625 type identity
PatrikBuhr2a56cf72021-12-28 13:14:46 +0100626 operationId: getRics
elinuxhenrikf28594d2020-12-07 14:54:19 +0100627 parameters:
raviteja.karumuria4687d92023-09-14 12:38:49 +0100628 - description: "The identity of a policy type. If given, all Near-RT RICs supporting\
JohnKeeneye251d0c2023-02-20 18:00:44 +0000629 \ the policy type are returned"
raviteja.karumuria4687d92023-09-14 12:38:49 +0100630 explode: true
631 in: query
632 name: policytype_id
633 required: false
634 schema:
635 type: string
636 style: form
elinuxhenrikf28594d2020-12-07 14:54:19 +0100637 responses:
JohnKeeneye251d0c2023-02-20 18:00:44 +0000638 "200":
elinuxhenrikf28594d2020-12-07 14:54:19 +0100639 content:
640 application/json:
641 schema:
raviteja.karumuria4687d92023-09-14 12:38:49 +0100642 type: object
643 examples:
644 ric_info_list:
645 $ref: '#/components/examples/ric_info_list'
JohnKeeneye251d0c2023-02-20 18:00:44 +0000646 description: OK
647 "404":
elinuxhenrikf28594d2020-12-07 14:54:19 +0100648 content:
649 application/json:
650 schema:
651 $ref: '#/components/schemas/error_information'
JohnKeeneye251d0c2023-02-20 18:00:44 +0000652 description: Policy type is not found
653 summary: Query Near-RT RIC information
654 tags:
raviteja.karumuria4687d92023-09-14 12:38:49 +0100655 - NearRT-RIC Repository
PatrikBuhrbe0ae3e2021-01-14 15:31:39 +0100656 /a1-policy/v2/services:
elinuxhenrikf28594d2020-12-07 14:54:19 +0100657 get:
elinuxhenrikf28594d2020-12-07 14:54:19 +0100658 description: Either information about a registered service with given identity
659 or all registered services are returned.
PatrikBuhr2a56cf72021-12-28 13:14:46 +0100660 operationId: getServices
elinuxhenrikf28594d2020-12-07 14:54:19 +0100661 parameters:
raviteja.karumuria4687d92023-09-14 12:38:49 +0100662 - description: The identity of the service
663 explode: true
664 in: query
665 name: service_id
666 required: false
667 schema:
668 type: string
669 style: form
elinuxhenrikf28594d2020-12-07 14:54:19 +0100670 responses:
JohnKeeneye251d0c2023-02-20 18:00:44 +0000671 "200":
elinuxhenrikf28594d2020-12-07 14:54:19 +0100672 content:
673 application/json:
674 schema:
raviteja.karumuria4687d92023-09-14 12:38:49 +0100675 type: object
676 examples:
677 service_status_list:
678 $ref: '#/components/examples/service_status_list'
JohnKeeneye251d0c2023-02-20 18:00:44 +0000679 description: OK
680 "404":
elinuxhenrikf28594d2020-12-07 14:54:19 +0100681 content:
682 application/json:
683 schema:
684 $ref: '#/components/schemas/error_information'
JohnKeeneye251d0c2023-02-20 18:00:44 +0000685 description: Service is not found
686 summary: Returns service information
elinuxhenrikf28594d2020-12-07 14:54:19 +0100687 tags:
raviteja.karumuria4687d92023-09-14 12:38:49 +0100688 - Service Registry and Supervision
JohnKeeneye251d0c2023-02-20 18:00:44 +0000689 put:
690 description: "Registering a service is needed to:<ul><li>Get callbacks about\
691 \ available NearRT RICs.</li><li>Activate supervision of the service. If a\
692 \ service is inactive, its policies will automatically be deleted.</li></ul>Policies\
693 \ can be created even if the service is not registerred. This is a feature\
694 \ which it is optional to use."
PatrikBuhr2a56cf72021-12-28 13:14:46 +0100695 operationId: putService
elinuxhenrikf28594d2020-12-07 14:54:19 +0100696 requestBody:
elinuxhenrikf28594d2020-12-07 14:54:19 +0100697 content:
698 application/json:
699 schema:
raviteja.karumuria4687d92023-09-14 12:38:49 +0100700 $ref: '#/components/schemas/service_registration_info'
elinuxhenrikf28594d2020-12-07 14:54:19 +0100701 required: true
702 responses:
JohnKeeneye251d0c2023-02-20 18:00:44 +0000703 "200":
704 content:
705 '*/*':
706 schema:
707 type: object
elinuxhenrikf28594d2020-12-07 14:54:19 +0100708 description: Service updated
JohnKeeneye251d0c2023-02-20 18:00:44 +0000709 "201":
elinuxhenrikf28594d2020-12-07 14:54:19 +0100710 content:
711 '*/*':
712 schema:
713 type: object
elinuxhenrikf28594d2020-12-07 14:54:19 +0100714 description: Service created
JohnKeeneye251d0c2023-02-20 18:00:44 +0000715 "400":
elinuxhenrikf28594d2020-12-07 14:54:19 +0100716 content:
717 '*/*':
718 schema:
719 $ref: '#/components/schemas/error_information'
JohnKeeneye251d0c2023-02-20 18:00:44 +0000720 description: The ServiceRegistrationInfo is not accepted
721 summary: Register a service
722 tags:
raviteja.karumuria4687d92023-09-14 12:38:49 +0100723 - Service Registry and Supervision
PatrikBuhr6e318742021-11-30 11:25:17 +0100724 /actuator/info:
725 get:
PatrikBuhr62c25962022-03-25 15:39:06 +0100726 operationId: info
PatrikBuhr6e318742021-11-30 11:25:17 +0100727 responses:
JohnKeeneye251d0c2023-02-20 18:00:44 +0000728 "200":
PatrikBuhr6e318742021-11-30 11:25:17 +0100729 content:
JohnKeeney62abcd82023-03-01 19:04:58 +0000730 application/vnd.spring-boot.actuator.v3+json:
731 schema:
732 type: object
733 application/json:
734 schema:
735 type: object
736 application/vnd.spring-boot.actuator.v2+json:
PatrikBuhr6e318742021-11-30 11:25:17 +0100737 schema:
738 type: object
JohnKeeneye251d0c2023-02-20 18:00:44 +0000739 description: OK
740 summary: Actuator web endpoint 'info'
741 tags:
raviteja.karumuria4687d92023-09-14 12:38:49 +0100742 - Actuator
elinuxhenrikf28594d2020-12-07 14:54:19 +0100743 /status:
744 get:
PatrikBuhr2a56cf72021-12-28 13:14:46 +0100745 operationId: getStatusV1
elinuxhenrikf28594d2020-12-07 14:54:19 +0100746 responses:
JohnKeeneye251d0c2023-02-20 18:00:44 +0000747 "200":
elinuxhenrikf28594d2020-12-07 14:54:19 +0100748 content:
749 '*/*':
750 schema:
751 type: string
JohnKeeneye251d0c2023-02-20 18:00:44 +0000752 description: Service is living
753 summary: Returns status and statistics of this service
754 tags:
raviteja.karumuria4687d92023-09-14 12:38:49 +0100755 - Health Check
PatrikBuhrfee99552021-02-02 14:06:44 +0100756 /a1-policy/v2/policy-types/{policytype_id}:
757 get:
raviteja.karumuria4687d92023-09-14 12:38:49 +0100758 operationId: getPolicyTypeDefinition
PatrikBuhrfee99552021-02-02 14:06:44 +0100759 parameters:
raviteja.karumuria4687d92023-09-14 12:38:49 +0100760 - explode: false
761 in: path
762 name: policytype_id
763 required: true
764 schema:
765 type: string
766 style: simple
PatrikBuhrfee99552021-02-02 14:06:44 +0100767 responses:
JohnKeeneye251d0c2023-02-20 18:00:44 +0000768 "200":
PatrikBuhrfee99552021-02-02 14:06:44 +0100769 content:
raviteja.karumuria4687d92023-09-14 12:38:49 +0100770 application/json:
PatrikBuhrfee99552021-02-02 14:06:44 +0100771 schema:
raviteja.karumuria4687d92023-09-14 12:38:49 +0100772 type: object
773 examples:
774 policy_type_definition:
775 $ref: '#/components/examples/policy_type_definition'
776 description: schema of the given policy type
JohnKeeneye251d0c2023-02-20 18:00:44 +0000777 "404":
PatrikBuhrfee99552021-02-02 14:06:44 +0100778 content:
raviteja.karumuria4687d92023-09-14 12:38:49 +0100779 application/json:
PatrikBuhrfee99552021-02-02 14:06:44 +0100780 schema:
781 $ref: '#/components/schemas/error_information'
JohnKeeneye251d0c2023-02-20 18:00:44 +0000782 description: Policy type is not found
783 summary: Returns a policy type definition
elinuxhenrikf28594d2020-12-07 14:54:19 +0100784 tags:
raviteja.karumuria4687d92023-09-14 12:38:49 +0100785 - A1 Policy Management
JohnKeeneye251d0c2023-02-20 18:00:44 +0000786 /actuator/logfile:
787 get:
788 operationId: logfile
789 responses:
790 "200":
791 content:
JohnKeeney62abcd82023-03-01 19:04:58 +0000792 text/plain;charset=UTF-8:
JohnKeeneye251d0c2023-02-20 18:00:44 +0000793 schema:
794 type: object
795 description: OK
796 summary: Actuator web endpoint 'logfile'
797 tags:
raviteja.karumuria4687d92023-09-14 12:38:49 +0100798 - Actuator
JohnKeeneye251d0c2023-02-20 18:00:44 +0000799 /actuator/health:
800 get:
801 operationId: health
802 responses:
803 "200":
804 content:
JohnKeeney62abcd82023-03-01 19:04:58 +0000805 application/vnd.spring-boot.actuator.v3+json:
806 schema:
807 type: object
808 application/json:
809 schema:
810 type: object
811 application/vnd.spring-boot.actuator.v2+json:
JohnKeeneye251d0c2023-02-20 18:00:44 +0000812 schema:
813 type: object
814 description: OK
815 summary: Actuator web endpoint 'health'
816 tags:
raviteja.karumuria4687d92023-09-14 12:38:49 +0100817 - Actuator
JohnKeeneye251d0c2023-02-20 18:00:44 +0000818 /a1-policy/v2/policies:
819 get:
820 description: "Returns a list of A1 policies matching given search criteria.\
821 \ <br>If several query parameters are defined, the policies matching all conditions\
822 \ are returned."
PatrikBuhr2a56cf72021-12-28 13:14:46 +0100823 operationId: getPolicyIds
elinuxhenrikf28594d2020-12-07 14:54:19 +0100824 parameters:
raviteja.karumuria4687d92023-09-14 12:38:49 +0100825 - description: Select policies of a given policy type identity.
826 explode: true
827 in: query
828 name: policytype_id
829 required: false
830 schema:
831 type: string
832 style: form
833 - description: Select policies of a given Near-RT RIC identity.
834 explode: true
835 in: query
836 name: ric_id
837 required: false
838 schema:
839 type: string
840 style: form
841 - description: Select policies owned by a given service.
842 explode: true
843 in: query
844 name: service_id
845 required: false
846 schema:
847 type: string
848 style: form
849 - description: Select policies of types with the given type name (type identity
850 has the format <typename_version>)
851 explode: true
852 in: query
853 name: type_name
854 required: false
855 schema:
856 type: string
857 style: form
elinuxhenrikf28594d2020-12-07 14:54:19 +0100858 responses:
JohnKeeneye251d0c2023-02-20 18:00:44 +0000859 "200":
elinuxhenrikf28594d2020-12-07 14:54:19 +0100860 content:
861 application/json:
raviteja.karumuria4687d92023-09-14 12:38:49 +0100862 examples:
863 policy_id_list:
864 $ref: '#/components/examples/policy_id_list'
elinuxhenrikf28594d2020-12-07 14:54:19 +0100865 schema:
raviteja.karumuria4687d92023-09-14 12:38:49 +0100866 type: object
JohnKeeneye251d0c2023-02-20 18:00:44 +0000867 description: Policy identities
868 "404":
PatrikBuhrbe0ae3e2021-01-14 15:31:39 +0100869 content:
870 application/json:
871 schema:
872 $ref: '#/components/schemas/error_information'
JohnKeeneye251d0c2023-02-20 18:00:44 +0000873 description: Near-RT RIC or type not found
874 summary: Query policy identities
PatrikBuhrbe0ae3e2021-01-14 15:31:39 +0100875 tags:
raviteja.karumuria4687d92023-09-14 12:38:49 +0100876 - A1 Policy Management
JohnKeeneye251d0c2023-02-20 18:00:44 +0000877 put:
PatrikBuhr2a56cf72021-12-28 13:14:46 +0100878 operationId: putPolicy
PatrikBuhrbe0ae3e2021-01-14 15:31:39 +0100879 requestBody:
PatrikBuhrbe0ae3e2021-01-14 15:31:39 +0100880 content:
881 application/json:
882 schema:
raviteja.karumuria4687d92023-09-14 12:38:49 +0100883 $ref: '#/components/schemas/policy_info'
PatrikBuhrbe0ae3e2021-01-14 15:31:39 +0100884 required: true
885 responses:
JohnKeeneye251d0c2023-02-20 18:00:44 +0000886 "200":
887 content:
888 application/json:
889 schema:
890 $ref: '#/components/schemas/void'
PatrikBuhrbe0ae3e2021-01-14 15:31:39 +0100891 description: Policy updated
JohnKeeneye251d0c2023-02-20 18:00:44 +0000892 "201":
PatrikBuhrbe0ae3e2021-01-14 15:31:39 +0100893 content:
894 application/json:
895 schema:
PatrikBuhrfee99552021-02-02 14:06:44 +0100896 $ref: '#/components/schemas/void'
PatrikBuhrfee99552021-02-02 14:06:44 +0100897 description: Policy created
JohnKeeneye251d0c2023-02-20 18:00:44 +0000898 "423":
PatrikBuhrfee99552021-02-02 14:06:44 +0100899 content:
900 application/json:
901 schema:
JohnKeeneye251d0c2023-02-20 18:00:44 +0000902 $ref: '#/components/schemas/error_information'
PatrikBuhrbe0ae3e2021-01-14 15:31:39 +0100903 description: Near-RT RIC is not operational
JohnKeeneye251d0c2023-02-20 18:00:44 +0000904 "404":
elinuxhenrikf28594d2020-12-07 14:54:19 +0100905 content:
906 application/json:
907 schema:
908 $ref: '#/components/schemas/error_information'
PatrikBuhrfee99552021-02-02 14:06:44 +0100909 description: Near-RT RIC or policy type is not found
JohnKeeneye251d0c2023-02-20 18:00:44 +0000910 summary: Create or update a policy
911 tags:
raviteja.karumuria4687d92023-09-14 12:38:49 +0100912 - A1 Policy Management
PatrikBuhrfee99552021-02-02 14:06:44 +0100913 /r-app/near-rt-ric-status:
elinuxhenrikf28594d2020-12-07 14:54:19 +0100914 post:
JohnKeeney069b4692022-05-12 22:15:14 +0100915 description: The URL to this call is registered at Service registration.
PatrikBuhr25d78502021-04-28 08:42:13 +0200916 operationId: serviceCallback
elinuxhenrikf28594d2020-12-07 14:54:19 +0100917 requestBody:
elinuxhenrikf28594d2020-12-07 14:54:19 +0100918 content:
919 application/json:
920 schema:
921 $ref: '#/components/schemas/service_callback_info_v2'
922 required: true
923 responses:
JohnKeeneye251d0c2023-02-20 18:00:44 +0000924 "200":
elinuxhenrikf28594d2020-12-07 14:54:19 +0100925 content:
PatrikBuhrfee99552021-02-02 14:06:44 +0100926 application/json:
elinuxhenrikf28594d2020-12-07 14:54:19 +0100927 schema:
PatrikBuhrfee99552021-02-02 14:06:44 +0100928 $ref: '#/components/schemas/void'
JohnKeeneye251d0c2023-02-20 18:00:44 +0000929 description: OK
930 summary: Callback for Near-RT RIC status
931 tags:
raviteja.karumuria4687d92023-09-14 12:38:49 +0100932 - Service callbacks
PatrikBuhrfee99552021-02-02 14:06:44 +0100933 /a1-policy/v2/services/{service_id}:
934 delete:
PatrikBuhr2a56cf72021-12-28 13:14:46 +0100935 operationId: deleteService
PatrikBuhrfee99552021-02-02 14:06:44 +0100936 parameters:
raviteja.karumuria4687d92023-09-14 12:38:49 +0100937 - explode: false
938 in: path
939 name: service_id
940 required: true
941 schema:
942 type: string
943 style: simple
PatrikBuhrfee99552021-02-02 14:06:44 +0100944 responses:
JohnKeeneye251d0c2023-02-20 18:00:44 +0000945 "200":
PatrikBuhrfee99552021-02-02 14:06:44 +0100946 content:
947 '*/*':
948 schema:
949 $ref: '#/components/schemas/void'
JohnKeeneye251d0c2023-02-20 18:00:44 +0000950 description: Not used
951 "204":
PatrikBuhrfee99552021-02-02 14:06:44 +0100952 content:
953 '*/*':
954 schema:
955 type: object
JohnKeeneye251d0c2023-02-20 18:00:44 +0000956 description: Service unregistered
957 "404":
PatrikBuhrfee99552021-02-02 14:06:44 +0100958 content:
959 '*/*':
960 schema:
961 $ref: '#/components/schemas/error_information'
JohnKeeneye251d0c2023-02-20 18:00:44 +0000962 description: Service not found
963 summary: Unregister a service
964 tags:
raviteja.karumuria4687d92023-09-14 12:38:49 +0100965 - Service Registry and Supervision
PatrikBuhr62c25962022-03-25 15:39:06 +0100966 /actuator/heapdump:
967 get:
PatrikBuhr62c25962022-03-25 15:39:06 +0100968 operationId: heapdump
969 responses:
JohnKeeneye251d0c2023-02-20 18:00:44 +0000970 "200":
PatrikBuhr62c25962022-03-25 15:39:06 +0100971 content:
JohnKeeney62abcd82023-03-01 19:04:58 +0000972 application/octet-stream:
PatrikBuhr62c25962022-03-25 15:39:06 +0100973 schema:
974 type: object
JohnKeeneye251d0c2023-02-20 18:00:44 +0000975 description: OK
976 summary: Actuator web endpoint 'heapdump'
977 tags:
raviteja.karumuria4687d92023-09-14 12:38:49 +0100978 - Actuator
PatrikBuhrbe0ae3e2021-01-14 15:31:39 +0100979 /a1-policy/v2/policies/{policy_id}/status:
elinuxhenrikf28594d2020-12-07 14:54:19 +0100980 get:
PatrikBuhr2a56cf72021-12-28 13:14:46 +0100981 operationId: getPolicyStatus
elinuxhenrikf28594d2020-12-07 14:54:19 +0100982 parameters:
raviteja.karumuria4687d92023-09-14 12:38:49 +0100983 - explode: false
984 in: path
985 name: policy_id
986 required: true
987 schema:
988 type: string
989 style: simple
elinuxhenrikf28594d2020-12-07 14:54:19 +0100990 responses:
JohnKeeneye251d0c2023-02-20 18:00:44 +0000991 "200":
PatrikBuhrbe0ae3e2021-01-14 15:31:39 +0100992 content:
993 application/json:
raviteja.karumuria4687d92023-09-14 12:38:49 +0100994 examples:
995 policy_status_info:
996 $ref: '#/components/examples/policy_status_info'
PatrikBuhrbe0ae3e2021-01-14 15:31:39 +0100997 schema:
raviteja.karumuria4687d92023-09-14 12:38:49 +0100998 type: object
JohnKeeneye251d0c2023-02-20 18:00:44 +0000999 description: Policy status
1000 "404":
elinuxhenrikf28594d2020-12-07 14:54:19 +01001001 content:
1002 application/json:
1003 schema:
1004 $ref: '#/components/schemas/error_information'
JohnKeeneye251d0c2023-02-20 18:00:44 +00001005 description: Policy is not found
1006 summary: Returns a policy status
1007 tags:
raviteja.karumuria4687d92023-09-14 12:38:49 +01001008 - A1 Policy Management
elinuxhenrikf28594d2020-12-07 14:54:19 +01001009components:
raviteja.karumuria4687d92023-09-14 12:38:49 +01001010 examples:
1011 service_status:
1012 description: List of service information
1013 value:
1014 callback_url: callback_url
1015 service_id: service_id
1016 keep_alive_interval_seconds: 0
1017 time_since_last_activity_seconds: 6
1018 service_status_list:
1019 description: List of service information
1020 value:
1021 service_list:
1022 - callback_url: callback_url
1023 service_id: service_id
1024 keep_alive_interval_seconds: 0
1025 time_since_last_activity_seconds: 6
1026 - callback_url: callback_url
1027 service_id: service_id
1028 keep_alive_interval_seconds: 0
1029 time_since_last_activity_seconds: 6
1030 policy_type_definition:
1031 description: Schema of the given Policy type
1032 value:
1033 policy_schema: "{}"
1034 policy_type_id_list:
1035 description: Array of policy type id's
1036 value:
1037 policy_type_id_list:
1038 - policytype_id
1039 - policytype_id
1040 policy_info:
1041 description: Policy information of one A1-P policy
1042 value:
1043 ric_id: ric_id
1044 policy_id: policy_id
1045 transient: false
1046 service_id: service_id
1047 policy_data: "{}"
1048 status_notification_uri: status_notification_uri
1049 policytype_id: policytype_id
1050 policy_info_list:
1051 description: List of policy information
1052 value:
1053 policies:
1054 - ric_id: ric_id
1055 policy_id: policy_id
1056 transient: false
1057 service_id: service_id
1058 policy_data: "{}"
1059 status_notification_uri: status_notification_uri
1060 policytype_id: policytype_id
1061 - ric_id: ric_id
1062 policy_id: policy_id
1063 transient: false
1064 service_id: service_id
1065 policy_data: "{}"
1066 status_notification_uri: status_notification_uri
1067 policytype_id: policytype_id
1068 policy_id_list:
1069 description: A list of policy identities
1070 value:
1071 policy_ids:
1072 - policy_ids
1073 - policy_ids
1074 policy_status_info:
1075 description: Status for one A1-P Policy
1076 value:
1077 last_modified: last_modified
1078 status: "{}"
1079 status_info:
1080 value:
1081 status: status
1082 ric_info:
1083 value:
1084 ric_id: ric_id
1085 managed_element_ids:
1086 - managed_element_ids
1087 - managed_element_ids
1088 state: UNAVAILABLE
1089 policytype_ids:
1090 - policytype_ids
1091 - policytype_ids
1092 ric_info_list:
1093 value:
1094 rics:
1095 - ric_id: ric_id
1096 managed_element_ids:
1097 - managed_element_ids
1098 - managed_element_ids
1099 state: UNAVAILABLE
1100 policytype_ids:
1101 - policytype_ids
1102 - policytype_ids
1103 - ric_id: ric_id
1104 managed_element_ids:
1105 - managed_element_ids
1106 - managed_element_ids
1107 state: UNAVAILABLE
1108 policytype_ids:
1109 - policytype_ids
1110 - policytype_ids
elinuxhenrikf28594d2020-12-07 14:54:19 +01001111 schemas:
raviteja.karumuria4687d92023-09-14 12:38:49 +01001112 policy_type_definition:
1113 description: Contains policy type schema definition
1114 type: object
1115 properties:
1116 policy_schema:
1117 description: Policy type json schema. The schema is a json object following
1118 http://json-schema.org/draft-07/schema
1119 type: object
elinuxhenrikf28594d2020-12-07 14:54:19 +01001120 error_information:
JohnKeeneye251d0c2023-02-20 18:00:44 +00001121 description: Problem as defined in https://tools.ietf.org/html/rfc7807
elinuxhenrikf28594d2020-12-07 14:54:19 +01001122 properties:
1123 detail:
elinuxhenrikf28594d2020-12-07 14:54:19 +01001124 description: ' A human-readable explanation specific to this occurrence
1125 of the problem.'
1126 example: Policy type not found
JohnKeeneye251d0c2023-02-20 18:00:44 +00001127 type: string
elinuxhenrikf28594d2020-12-07 14:54:19 +01001128 status:
elinuxhenrikf28594d2020-12-07 14:54:19 +01001129 description: 'The HTTP status code generated by the origin server for this
1130 occurrence of the problem. '
PatrikBuhr3b916e42021-10-07 18:03:53 +02001131 example: 404
JohnKeeneye251d0c2023-02-20 18:00:44 +00001132 format: int32
1133 type: integer
1134 type: object
PatrikBuhrfee99552021-02-02 14:06:44 +01001135 void:
PatrikBuhrfee99552021-02-02 14:06:44 +01001136 description: Void/empty
elinuxhenrikf28594d2020-12-07 14:54:19 +01001137 type: object
raviteja.karumuria4687d92023-09-14 12:38:49 +01001138 status_info:
elinuxhenrikf28594d2020-12-07 14:54:19 +01001139 properties:
1140 status:
elinuxhenrikf28594d2020-12-07 14:54:19 +01001141 description: status text
JohnKeeneye251d0c2023-02-20 18:00:44 +00001142 type: string
elinuxhenrikf28594d2020-12-07 14:54:19 +01001143 type: object
PatrikBuhrf07e4b32023-04-05 14:40:07 +02001144 authorization_result:
1145 description: Result of authorization
1146 example:
1147 result: true
1148 properties:
1149 result:
1150 description: "If true, the access is granted"
1151 type: boolean
1152 required:
raviteja.karumuria4687d92023-09-14 12:38:49 +01001153 - result
PatrikBuhrf07e4b32023-04-05 14:40:07 +02001154 type: object
raviteja.karumuria4687d92023-09-14 12:38:49 +01001155 ric_info:
JohnKeeneye251d0c2023-02-20 18:00:44 +00001156 description: Information for a Near-RT RIC
elinuxhenrikf28594d2020-12-07 14:54:19 +01001157 properties:
PatrikBuhrfee99552021-02-02 14:06:44 +01001158 ric_id:
PatrikBuhrfee99552021-02-02 14:06:44 +01001159 description: identity of the Near-RT RIC
JohnKeeneye251d0c2023-02-20 18:00:44 +00001160 type: string
PatrikBuhrfee99552021-02-02 14:06:44 +01001161 managed_element_ids:
PatrikBuhrfee99552021-02-02 14:06:44 +01001162 description: O1 identities for managed entities
elinuxhenrikf28594d2020-12-07 14:54:19 +01001163 items:
PatrikBuhrfee99552021-02-02 14:06:44 +01001164 description: O1 identities for managed entities
JohnKeeneye251d0c2023-02-20 18:00:44 +00001165 type: string
1166 type: array
PatrikBuhrfee99552021-02-02 14:06:44 +01001167 state:
PatrikBuhrfee99552021-02-02 14:06:44 +01001168 description: Represents the states for a Near-RT RIC
1169 enum:
raviteja.karumuria4687d92023-09-14 12:38:49 +01001170 - UNAVAILABLE
1171 - AVAILABLE
1172 - SYNCHRONIZING
1173 - CONSISTENCY_CHECK
JohnKeeneye251d0c2023-02-20 18:00:44 +00001174 type: string
PatrikBuhrfee99552021-02-02 14:06:44 +01001175 policytype_ids:
PatrikBuhrfee99552021-02-02 14:06:44 +01001176 description: supported policy types
1177 items:
PatrikBuhrfee99552021-02-02 14:06:44 +01001178 description: supported policy types
JohnKeeneye251d0c2023-02-20 18:00:44 +00001179 type: string
1180 type: array
1181 type: object
raviteja.karumuria4687d92023-09-14 12:38:49 +01001182 service_registration_info:
JohnKeeneye251d0c2023-02-20 18:00:44 +00001183 description: Information for one service
1184 properties:
1185 callback_url:
1186 description: callback for notifying of Near-RT RIC state changes
1187 type: string
1188 service_id:
1189 description: identity of the service
1190 type: string
1191 keep_alive_interval_seconds:
1192 description: "keep alive interval for the service. This is used to enable\
1193 \ optional heartbeat supervision of the service. If set (> 0) the registered\
1194 \ service should regularly invoke a 'keepalive' REST call. When a service\
1195 \ fails to invoke this 'keepalive' call within the configured time, the\
1196 \ service is considered unavailable. An unavailable service will be automatically\
1197 \ deregistered and its policies will be deleted. Value 0 means timeout\
1198 \ supervision is disabled."
1199 format: int64
1200 type: integer
elinuxhenrikf28594d2020-12-07 14:54:19 +01001201 required:
raviteja.karumuria4687d92023-09-14 12:38:49 +01001202 - service_id
elinuxhenrikf28594d2020-12-07 14:54:19 +01001203 type: object
raviteja.karumuria4687d92023-09-14 12:38:49 +01001204 policy_info_list:
JohnKeeneye251d0c2023-02-20 18:00:44 +00001205 description: List of policy information
PatrikBuhrfee99552021-02-02 14:06:44 +01001206 properties:
1207 policies:
PatrikBuhrfee99552021-02-02 14:06:44 +01001208 description: List of policy information
1209 items:
raviteja.karumuria4687d92023-09-14 12:38:49 +01001210 $ref: '#/components/schemas/policy_info'
JohnKeeneye251d0c2023-02-20 18:00:44 +00001211 type: array
elinuxhenrikf28594d2020-12-07 14:54:19 +01001212 type: object
raviteja.karumuria4687d92023-09-14 12:38:49 +01001213 policy_status_info:
JohnKeeneye251d0c2023-02-20 18:00:44 +00001214 description: Status for one A1-P Policy
elinuxhenrikf28594d2020-12-07 14:54:19 +01001215 properties:
1216 last_modified:
JohnKeeneye251d0c2023-02-20 18:00:44 +00001217 description: "timestamp, last modification time"
elinuxhenrikf28594d2020-12-07 14:54:19 +01001218 type: string
elinuxhenrikf28594d2020-12-07 14:54:19 +01001219 status:
elinuxhenrikf28594d2020-12-07 14:54:19 +01001220 description: the Policy status
JohnKeeneye251d0c2023-02-20 18:00:44 +00001221 type: object
elinuxhenrikf28594d2020-12-07 14:54:19 +01001222 type: object
raviteja.karumuria4687d92023-09-14 12:38:49 +01001223 service_status:
elinuxhenrikf28594d2020-12-07 14:54:19 +01001224 properties:
1225 callback_url:
elinuxhenrikf28594d2020-12-07 14:54:19 +01001226 description: callback for notifying of RIC synchronization
elinuxhenrikf28594d2020-12-07 14:54:19 +01001227 type: string
JohnKeeneye251d0c2023-02-20 18:00:44 +00001228 service_id:
elinuxhenrikf28594d2020-12-07 14:54:19 +01001229 description: identity of the service
JohnKeeneye251d0c2023-02-20 18:00:44 +00001230 type: string
elinuxhenrikf28594d2020-12-07 14:54:19 +01001231 keep_alive_interval_seconds:
elinuxhenrikf28594d2020-12-07 14:54:19 +01001232 description: policy keep alive timeout
1233 format: int64
elinuxhenrikf28594d2020-12-07 14:54:19 +01001234 type: integer
JohnKeeneye251d0c2023-02-20 18:00:44 +00001235 time_since_last_activity_seconds:
elinuxhenrikf28594d2020-12-07 14:54:19 +01001236 description: time since last invocation by the service
1237 format: int64
JohnKeeneye251d0c2023-02-20 18:00:44 +00001238 type: integer
elinuxhenrikf28594d2020-12-07 14:54:19 +01001239 type: object
raviteja.karumuria4687d92023-09-14 12:38:49 +01001240 ric_info_list:
JohnKeeneye251d0c2023-02-20 18:00:44 +00001241 description: List of Near-RT RIC information
elinuxhenrikf28594d2020-12-07 14:54:19 +01001242 properties:
1243 rics:
elinuxhenrikf28594d2020-12-07 14:54:19 +01001244 description: List of Near-RT RIC information
1245 items:
raviteja.karumuria4687d92023-09-14 12:38:49 +01001246 $ref: '#/components/schemas/ric_info'
JohnKeeneye251d0c2023-02-20 18:00:44 +00001247 type: array
PatrikBuhrfee99552021-02-02 14:06:44 +01001248 type: object
PatrikBuhrf07e4b32023-04-05 14:40:07 +02001249 input:
1250 description: input
1251 properties:
1252 access_type:
1253 description: Access type
1254 enum:
raviteja.karumuria4687d92023-09-14 12:38:49 +01001255 - READ
1256 - WRITE
1257 - DELETE
PatrikBuhrf07e4b32023-04-05 14:40:07 +02001258 type: string
1259 auth_token:
1260 description: Authorization token
1261 type: string
1262 policy_type_id:
1263 description: Policy type identifier
1264 type: string
1265 required:
raviteja.karumuria4687d92023-09-14 12:38:49 +01001266 - access_type
1267 - auth_token
1268 - policy_type_id
PatrikBuhrf07e4b32023-04-05 14:40:07 +02001269 type: object
1270 policy_authorization:
1271 description: Authorization request for A1 policy requests
1272 properties:
1273 input:
1274 $ref: '#/components/schemas/input'
1275 required:
raviteja.karumuria4687d92023-09-14 12:38:49 +01001276 - input
PatrikBuhrf07e4b32023-04-05 14:40:07 +02001277 type: object
raviteja.karumuria4687d92023-09-14 12:38:49 +01001278 policy_type_id_list:
JohnKeeneye251d0c2023-02-20 18:00:44 +00001279 description: Information about policy types
elinuxhenrikf28594d2020-12-07 14:54:19 +01001280 properties:
1281 policytype_ids:
elinuxhenrikf28594d2020-12-07 14:54:19 +01001282 description: Policy type identities
1283 items:
PatrikBuhrfee99552021-02-02 14:06:44 +01001284 description: Policy type identities
JohnKeeneye251d0c2023-02-20 18:00:44 +00001285 type: string
1286 type: array
1287 type: object
raviteja.karumuria4687d92023-09-14 12:38:49 +01001288 policy_info:
JohnKeeneye251d0c2023-02-20 18:00:44 +00001289 description: Information for one A1-P Policy
JohnKeeneye251d0c2023-02-20 18:00:44 +00001290 properties:
1291 ric_id:
1292 description: identity of the target Near-RT RIC
1293 type: string
1294 policy_id:
1295 description: identity of the policy
1296 type: string
1297 transient:
1298 default: false
1299 description: "if true, the policy is deleted at RIC restart. If false, its\
1300 \ value is maintained by this service until explicitly deleted. Default\
1301 \ false."
1302 example: false
raviteja.karumuria4687d92023-09-14 12:38:49 +01001303 nullable: false
JohnKeeneye251d0c2023-02-20 18:00:44 +00001304 type: boolean
1305 service_id:
1306 description: the identity of the service owning the policy. This can be
1307 used to group the policies (it is possible to get all policies associated
PatrikBuhr44499d02023-04-04 10:06:22 +02001308 to a service). Note that the service does not need to be registered.
JohnKeeneye251d0c2023-02-20 18:00:44 +00001309 type: string
1310 policy_data:
1311 description: the configuration of the policy
1312 type: object
1313 status_notification_uri:
1314 description: Callback URI for policy status updates
1315 type: string
1316 policytype_id:
1317 description: identity of the policy type
1318 type: string
elinuxhenrikf28594d2020-12-07 14:54:19 +01001319 required:
raviteja.karumuria4687d92023-09-14 12:38:49 +01001320 - ric_id
1321 - policy_id
1322 - service_id
1323 - policy_data
1324 - policytype_id
elinuxhenrikf28594d2020-12-07 14:54:19 +01001325 type: object
raviteja.karumuria4687d92023-09-14 12:38:49 +01001326 policy_id_list:
JohnKeeneye251d0c2023-02-20 18:00:44 +00001327 description: A list of policy identities
1328 example:
1329 policy_ids:
raviteja.karumuria4687d92023-09-14 12:38:49 +01001330 - policy_ids
1331 - policy_ids
PatrikBuhrfee99552021-02-02 14:06:44 +01001332 properties:
1333 policy_ids:
PatrikBuhrfee99552021-02-02 14:06:44 +01001334 description: Policy identities
1335 items:
PatrikBuhrfee99552021-02-02 14:06:44 +01001336 description: Policy identities
JohnKeeneye251d0c2023-02-20 18:00:44 +00001337 type: string
1338 type: array
elinuxhenrikf28594d2020-12-07 14:54:19 +01001339 type: object
raviteja.karumuria4687d92023-09-14 12:38:49 +01001340 service_status_list:
elinuxhenrikf28594d2020-12-07 14:54:19 +01001341 properties:
1342 service_list:
elinuxhenrikf28594d2020-12-07 14:54:19 +01001343 description: List of service information
1344 items:
raviteja.karumuria4687d92023-09-14 12:38:49 +01001345 $ref: '#/components/schemas/service_status'
JohnKeeneye251d0c2023-02-20 18:00:44 +00001346 type: array
1347 type: object
elinuxhenrikf28594d2020-12-07 14:54:19 +01001348 service_callback_info_v2:
JohnKeeneye251d0c2023-02-20 18:00:44 +00001349 description: Information transferred as in Service callbacks (callback_url)
1350 properties:
1351 ric_id:
1352 description: identity of a Near-RT RIC
1353 type: string
1354 event_type:
1355 description: "values:\nAVAILABLE: the Near-RT RIC has become available\
1356 \ for A1 Policy management"
1357 enum:
raviteja.karumuria4687d92023-09-14 12:38:49 +01001358 - AVAILABLE
JohnKeeneye251d0c2023-02-20 18:00:44 +00001359 type: string
elinuxhenrikf28594d2020-12-07 14:54:19 +01001360 required:
raviteja.karumuria4687d92023-09-14 12:38:49 +01001361 - event_type
1362 - ric_id
elinuxhenrikf28594d2020-12-07 14:54:19 +01001363 type: object
PatrikBuhr6e318742021-11-30 11:25:17 +01001364 Link:
PatrikBuhr6e318742021-11-30 11:25:17 +01001365 properties:
1366 templated:
1367 type: boolean
1368 href:
1369 type: string
JohnKeeneye251d0c2023-02-20 18:00:44 +00001370 type: object