blob: 33fa5e186ec598bb9941854b73dfa3e627f778e5 [file] [log] [blame]
PatrikBuhr1122b012021-01-20 12:21:52 +01001{
PatrikBuhrfee99552021-02-02 14:06:44 +01002 "components": {"schemas": {
PatrikBuhr1122b012021-01-20 12:21:52 +01003 "error_information": {
4 "description": "Problem as defined in https://tools.ietf.org/html/rfc7807",
5 "type": "object",
PatrikBuhr1122b012021-01-20 12:21:52 +01006 "properties": {
7 "detail": {
8 "description": " A human-readable explanation specific to this occurrence of the problem.",
9 "type": "string",
10 "example": "Policy type not found"
11 },
12 "status": {
13 "format": "int32",
14 "description": "The HTTP status code generated by the origin server for this occurrence of the problem. ",
15 "type": "integer",
PatrikBuhr3b916e42021-10-07 18:03:53 +020016 "example": 404
PatrikBuhr1122b012021-01-20 12:21:52 +010017 }
JohnKeeney62abcd82023-03-01 19:04:58 +000018 }
PatrikBuhr1122b012021-01-20 12:21:52 +010019 },
PatrikBuhrfee99552021-02-02 14:06:44 +010020 "void": {
21 "description": "Void/empty",
JohnKeeney62abcd82023-03-01 19:04:58 +000022 "type": "object"
PatrikBuhrfee99552021-02-02 14:06:44 +010023 },
PatrikBuhr1122b012021-01-20 12:21:52 +010024 "status_info_v2": {
25 "type": "object",
PatrikBuhr1122b012021-01-20 12:21:52 +010026 "properties": {"status": {
27 "description": "status text",
JohnKeeney62abcd82023-03-01 19:04:58 +000028 "type": "string"
29 }}
PatrikBuhr1122b012021-01-20 12:21:52 +010030 },
PatrikBuhrf07e4b32023-04-05 14:40:07 +020031 "authorization_result": {
32 "description": "Result of authorization",
33 "type": "object",
34 "required": ["result"],
35 "properties": {"result": {
36 "description": "If true, the access is granted",
37 "type": "boolean"
38 }}
39 },
PatrikBuhrfee99552021-02-02 14:06:44 +010040 "ric_info_v2": {
41 "description": "Information for a Near-RT RIC",
PatrikBuhr1122b012021-01-20 12:21:52 +010042 "type": "object",
PatrikBuhrfee99552021-02-02 14:06:44 +010043 "properties": {
44 "ric_id": {
45 "description": "identity of the Near-RT RIC",
JohnKeeney62abcd82023-03-01 19:04:58 +000046 "type": "string"
PatrikBuhrfee99552021-02-02 14:06:44 +010047 },
48 "managed_element_ids": {
49 "description": "O1 identities for managed entities",
50 "type": "array",
51 "items": {
52 "description": "O1 identities for managed entities",
JohnKeeney62abcd82023-03-01 19:04:58 +000053 "type": "string"
54 }
PatrikBuhrfee99552021-02-02 14:06:44 +010055 },
56 "state": {
57 "description": "Represents the states for a Near-RT RIC",
58 "type": "string",
59 "enum": [
60 "UNAVAILABLE",
61 "AVAILABLE",
62 "SYNCHRONIZING",
63 "CONSISTENCY_CHECK"
JohnKeeney62abcd82023-03-01 19:04:58 +000064 ]
PatrikBuhrfee99552021-02-02 14:06:44 +010065 },
66 "policytype_ids": {
67 "description": "supported policy types",
68 "type": "array",
69 "items": {
70 "description": "supported policy types",
JohnKeeney62abcd82023-03-01 19:04:58 +000071 "type": "string"
72 }
PatrikBuhrfee99552021-02-02 14:06:44 +010073 }
JohnKeeney62abcd82023-03-01 19:04:58 +000074 }
PatrikBuhr1122b012021-01-20 12:21:52 +010075 },
76 "service_registration_info_v2": {
77 "description": "Information for one service",
78 "type": "object",
PatrikBuhr1122b012021-01-20 12:21:52 +010079 "required": ["service_id"],
80 "properties": {
81 "callback_url": {
82 "description": "callback for notifying of Near-RT RIC state changes",
JohnKeeney62abcd82023-03-01 19:04:58 +000083 "type": "string"
PatrikBuhr1122b012021-01-20 12:21:52 +010084 },
85 "service_id": {
86 "description": "identity of the service",
JohnKeeney62abcd82023-03-01 19:04:58 +000087 "type": "string"
PatrikBuhr1122b012021-01-20 12:21:52 +010088 },
89 "keep_alive_interval_seconds": {
90 "format": "int64",
JohnKeeney08486cf2022-05-24 12:34:49 +010091 "description": "keep alive interval for the service. This is used to enable optional heartbeat supervision of the service. If set (> 0) the registered service should regularly invoke a 'keepalive' REST call. When a service fails to invoke this 'keepalive' call within the configured time, the service is considered unavailable. An unavailable service will be automatically deregistered and its policies will be deleted. Value 0 means timeout supervision is disabled.",
JohnKeeney62abcd82023-03-01 19:04:58 +000092 "type": "integer"
PatrikBuhr1122b012021-01-20 12:21:52 +010093 }
JohnKeeney62abcd82023-03-01 19:04:58 +000094 }
PatrikBuhr1122b012021-01-20 12:21:52 +010095 },
PatrikBuhrfee99552021-02-02 14:06:44 +010096 "policy_info_list_v2": {
97 "description": "List of policy information",
98 "type": "object",
99 "properties": {"policies": {
100 "description": "List of policy information",
101 "type": "array",
JohnKeeney62abcd82023-03-01 19:04:58 +0000102 "items": {"$ref": "#/components/schemas/policy_info_v2"}
103 }}
PatrikBuhrfee99552021-02-02 14:06:44 +0100104 },
PatrikBuhr1122b012021-01-20 12:21:52 +0100105 "policy_status_info_v2": {
106 "description": "Status for one A1-P Policy",
107 "type": "object",
PatrikBuhr1122b012021-01-20 12:21:52 +0100108 "properties": {
109 "last_modified": {
110 "description": "timestamp, last modification time",
JohnKeeney62abcd82023-03-01 19:04:58 +0000111 "type": "string"
PatrikBuhr1122b012021-01-20 12:21:52 +0100112 },
113 "status": {
114 "description": "the Policy status",
JohnKeeney62abcd82023-03-01 19:04:58 +0000115 "type": "object"
PatrikBuhr1122b012021-01-20 12:21:52 +0100116 }
JohnKeeney62abcd82023-03-01 19:04:58 +0000117 }
PatrikBuhr1122b012021-01-20 12:21:52 +0100118 },
PatrikBuhr1122b012021-01-20 12:21:52 +0100119 "service_status_v2": {
PatrikBuhrfee99552021-02-02 14:06:44 +0100120 "description": "List of service information",
PatrikBuhr1122b012021-01-20 12:21:52 +0100121 "type": "object",
PatrikBuhr1122b012021-01-20 12:21:52 +0100122 "properties": {
123 "callback_url": {
124 "description": "callback for notifying of RIC synchronization",
JohnKeeney62abcd82023-03-01 19:04:58 +0000125 "type": "string"
PatrikBuhr1122b012021-01-20 12:21:52 +0100126 },
127 "service_id": {
128 "description": "identity of the service",
JohnKeeney62abcd82023-03-01 19:04:58 +0000129 "type": "string"
PatrikBuhr1122b012021-01-20 12:21:52 +0100130 },
131 "keep_alive_interval_seconds": {
132 "format": "int64",
133 "description": "policy keep alive timeout",
JohnKeeney62abcd82023-03-01 19:04:58 +0000134 "type": "integer"
PatrikBuhr1122b012021-01-20 12:21:52 +0100135 },
136 "time_since_last_activity_seconds": {
137 "format": "int64",
138 "description": "time since last invocation by the service",
JohnKeeney62abcd82023-03-01 19:04:58 +0000139 "type": "integer"
PatrikBuhr1122b012021-01-20 12:21:52 +0100140 }
JohnKeeney62abcd82023-03-01 19:04:58 +0000141 }
PatrikBuhr1122b012021-01-20 12:21:52 +0100142 },
PatrikBuhrfee99552021-02-02 14:06:44 +0100143 "ric_info_list_v2": {
144 "description": "List of Near-RT RIC information",
145 "type": "object",
146 "properties": {"rics": {
147 "description": "List of Near-RT RIC information",
148 "type": "array",
JohnKeeney62abcd82023-03-01 19:04:58 +0000149 "items": {"$ref": "#/components/schemas/ric_info_v2"}
150 }}
PatrikBuhrfee99552021-02-02 14:06:44 +0100151 },
PatrikBuhr1122b012021-01-20 12:21:52 +0100152 "policytype_v2": {
153 "description": "Policy type",
154 "type": "object",
PatrikBuhr1122b012021-01-20 12:21:52 +0100155 "properties": {"policy_schema": {
JohnKeeney069b4692022-05-12 22:15:14 +0100156 "description": "Policy type json schema. The schema is a json object following http://json-schema.org/draft-07/schema",
JohnKeeney62abcd82023-03-01 19:04:58 +0000157 "type": "object"
158 }}
PatrikBuhr1122b012021-01-20 12:21:52 +0100159 },
PatrikBuhrf07e4b32023-04-05 14:40:07 +0200160 "input": {
161 "description": "input",
162 "type": "object",
163 "required": [
164 "access_type",
165 "auth_token",
166 "policy_type_id"
167 ],
168 "properties": {
169 "access_type": {
170 "description": "Access type",
171 "type": "string",
172 "enum": [
173 "READ",
174 "WRITE",
175 "DELETE"
176 ]
177 },
178 "auth_token": {
179 "description": "Authorization token",
180 "type": "string"
181 },
182 "policy_type_id": {
183 "description": "Policy type identifier",
184 "type": "string"
185 }
186 }
187 },
188 "policy_authorization": {
189 "description": "Authorization request for A1 policy requests",
190 "type": "object",
191 "required": ["input"],
192 "properties": {"input": {"$ref": "#/components/schemas/input"}}
193 },
PatrikBuhr1122b012021-01-20 12:21:52 +0100194 "policytype_id_list_v2": {
195 "description": "Information about policy types",
196 "type": "object",
PatrikBuhr1122b012021-01-20 12:21:52 +0100197 "properties": {"policytype_ids": {
198 "description": "Policy type identities",
199 "type": "array",
PatrikBuhrfee99552021-02-02 14:06:44 +0100200 "items": {
201 "description": "Policy type identities",
JohnKeeney62abcd82023-03-01 19:04:58 +0000202 "type": "string"
203 }
204 }}
PatrikBuhr1122b012021-01-20 12:21:52 +0100205 },
206 "policy_info_v2": {
207 "description": "Information for one A1-P Policy",
208 "type": "object",
PatrikBuhr1122b012021-01-20 12:21:52 +0100209 "required": [
210 "policy_data",
211 "policy_id",
212 "policytype_id",
PatrikBuhrc7f757e2022-11-28 09:40:36 +0100213 "ric_id"
PatrikBuhr1122b012021-01-20 12:21:52 +0100214 ],
215 "properties": {
216 "ric_id": {
217 "description": "identity of the target Near-RT RIC",
JohnKeeney62abcd82023-03-01 19:04:58 +0000218 "type": "string"
PatrikBuhr1122b012021-01-20 12:21:52 +0100219 },
220 "policy_id": {
221 "description": "identity of the policy",
JohnKeeney62abcd82023-03-01 19:04:58 +0000222 "type": "string"
PatrikBuhr1122b012021-01-20 12:21:52 +0100223 },
224 "transient": {
PatrikBuhrc7f757e2022-11-28 09:40:36 +0100225 "default": false,
PatrikBuhr1122b012021-01-20 12:21:52 +0100226 "description": "if true, the policy is deleted at RIC restart. If false, its value is maintained by this service until explicitly deleted. Default false.",
PatrikBuhre3693cf2022-10-14 11:38:22 +0200227 "type": "boolean",
PatrikBuhrc7f757e2022-11-28 09:40:36 +0100228 "example": false
PatrikBuhr1122b012021-01-20 12:21:52 +0100229 },
230 "service_id": {
PatrikBuhr44499d02023-04-04 10:06:22 +0200231 "description": "the identity of the service owning the policy. This can be used to group the policies (it is possible to get all policies associated to a service). Note that the service does not need to be registered.",
JohnKeeney62abcd82023-03-01 19:04:58 +0000232 "type": "string"
PatrikBuhr1122b012021-01-20 12:21:52 +0100233 },
234 "policy_data": {
235 "description": "the configuration of the policy",
JohnKeeney62abcd82023-03-01 19:04:58 +0000236 "type": "object"
PatrikBuhr1122b012021-01-20 12:21:52 +0100237 },
238 "status_notification_uri": {
239 "description": "Callback URI for policy status updates",
JohnKeeney62abcd82023-03-01 19:04:58 +0000240 "type": "string"
PatrikBuhr1122b012021-01-20 12:21:52 +0100241 },
242 "policytype_id": {
243 "description": "identity of the policy type",
JohnKeeney62abcd82023-03-01 19:04:58 +0000244 "type": "string"
PatrikBuhr1122b012021-01-20 12:21:52 +0100245 }
JohnKeeney62abcd82023-03-01 19:04:58 +0000246 }
PatrikBuhr1122b012021-01-20 12:21:52 +0100247 },
PatrikBuhrfee99552021-02-02 14:06:44 +0100248 "policy_id_list_v2": {
249 "description": "A list of policy identities",
250 "type": "object",
251 "properties": {"policy_ids": {
252 "description": "Policy identities",
253 "type": "array",
254 "items": {
255 "description": "Policy identities",
JohnKeeney62abcd82023-03-01 19:04:58 +0000256 "type": "string"
257 }
258 }}
PatrikBuhrfee99552021-02-02 14:06:44 +0100259 },
PatrikBuhr1122b012021-01-20 12:21:52 +0100260 "service_list_v2": {
261 "description": "List of service information",
262 "type": "object",
PatrikBuhr1122b012021-01-20 12:21:52 +0100263 "properties": {"service_list": {
264 "description": "List of service information",
265 "type": "array",
JohnKeeney62abcd82023-03-01 19:04:58 +0000266 "items": {"$ref": "#/components/schemas/service_status_v2"}
267 }}
PatrikBuhr1122b012021-01-20 12:21:52 +0100268 },
269 "service_callback_info_v2": {
270 "description": "Information transferred as in Service callbacks (callback_url)",
271 "type": "object",
PatrikBuhr1122b012021-01-20 12:21:52 +0100272 "required": [
273 "event_type",
274 "ric_id"
275 ],
276 "properties": {
277 "ric_id": {
278 "description": "identity of a Near-RT RIC",
JohnKeeney62abcd82023-03-01 19:04:58 +0000279 "type": "string"
PatrikBuhr1122b012021-01-20 12:21:52 +0100280 },
281 "event_type": {
282 "description": "values:\nAVAILABLE: the Near-RT RIC has become available for A1 Policy management",
283 "type": "string",
JohnKeeney62abcd82023-03-01 19:04:58 +0000284 "enum": ["AVAILABLE"]
PatrikBuhr1122b012021-01-20 12:21:52 +0100285 }
JohnKeeney62abcd82023-03-01 19:04:58 +0000286 }
PatrikBuhr2b277642021-12-27 11:32:58 +0100287 },
288 "Link": {
289 "type": "object",
290 "properties": {
JohnKeeney62abcd82023-03-01 19:04:58 +0000291 "templated": {"type": "boolean"},
292 "href": {"type": "string"}
293 }
PatrikBuhr1122b012021-01-20 12:21:52 +0100294 }
PatrikBuhrfee99552021-02-02 14:06:44 +0100295 }},
296 "openapi": "3.0.1",
297 "paths": {
PatrikBuhrfee99552021-02-02 14:06:44 +0100298 "/a1-policy/v2/policy-instances": {"get": {
299 "summary": "Query for A1 policy instances",
300 "description": "Returns a list of A1 policies matching given search criteria. <br>If several query parameters are defined, the policies matching all conditions are returned.",
301 "operationId": "getPolicyInstances",
302 "responses": {
303 "200": {
304 "description": "Policies",
JohnKeeney62abcd82023-03-01 19:04:58 +0000305 "content": {"application/json": {"schema": {"$ref": "#/components/schemas/policy_info_list_v2"}}}
PatrikBuhrfee99552021-02-02 14:06:44 +0100306 },
307 "404": {
308 "description": "Near-RT RIC, policy type or service not found",
JohnKeeney62abcd82023-03-01 19:04:58 +0000309 "content": {"application/json": {"schema": {"$ref": "#/components/schemas/error_information"}}}
PatrikBuhrfee99552021-02-02 14:06:44 +0100310 }
311 },
312 "parameters": [
313 {
JohnKeeney62abcd82023-03-01 19:04:58 +0000314 "schema": {"type": "string"},
PatrikBuhrfee99552021-02-02 14:06:44 +0100315 "in": "query",
316 "name": "policytype_id",
PatrikBuhr3b916e42021-10-07 18:03:53 +0200317 "description": "Select policies with a given type identity.",
PatrikBuhrfee99552021-02-02 14:06:44 +0100318 "required": false
319 },
320 {
JohnKeeney62abcd82023-03-01 19:04:58 +0000321 "schema": {"type": "string"},
PatrikBuhrfee99552021-02-02 14:06:44 +0100322 "in": "query",
323 "name": "ric_id",
PatrikBuhr3b916e42021-10-07 18:03:53 +0200324 "description": "Select policies for a given Near-RT RIC identity.",
PatrikBuhrfee99552021-02-02 14:06:44 +0100325 "required": false
326 },
327 {
JohnKeeney62abcd82023-03-01 19:04:58 +0000328 "schema": {"type": "string"},
PatrikBuhrfee99552021-02-02 14:06:44 +0100329 "in": "query",
330 "name": "service_id",
PatrikBuhr3b916e42021-10-07 18:03:53 +0200331 "description": "Select policies owned by a given service.",
332 "required": false
333 },
334 {
JohnKeeney62abcd82023-03-01 19:04:58 +0000335 "schema": {"type": "string"},
PatrikBuhr3b916e42021-10-07 18:03:53 +0200336 "in": "query",
337 "name": "type_name",
338 "description": "Select policies of a given type name (type identity has the format <typename_version>)",
PatrikBuhrfee99552021-02-02 14:06:44 +0100339 "required": false
340 }
341 ],
342 "tags": ["A1 Policy Management"]
343 }},
PatrikBuhrf07e4b32023-04-05 14:40:07 +0200344 "/example-authz-check": {"post": {
345 "summary": "Request for access authorization.",
346 "requestBody": {
347 "content": {"application/json": {"schema": {"$ref": "#/components/schemas/policy_authorization"}}},
348 "required": true
349 },
350 "description": "The authorization function decides if access is granted.",
351 "operationId": "performAccessControl",
352 "responses": {"200": {
353 "description": "OK",
354 "content": {"application/json": {"schema": {"$ref": "#/components/schemas/authorization_result"}}}
355 }},
356 "tags": ["Authorization API"]
357 }},
PatrikBuhrde7a5732022-03-31 12:08:56 +0200358 "/actuator/threaddump": {"get": {
359 "summary": "Actuator web endpoint 'threaddump'",
JohnKeeney62abcd82023-03-01 19:04:58 +0000360 "operationId": "threaddump",
PatrikBuhrde7a5732022-03-31 12:08:56 +0200361 "responses": {"200": {
362 "description": "OK",
JohnKeeney62abcd82023-03-01 19:04:58 +0000363 "content": {
364 "text/plain;charset=UTF-8": {"schema": {"type": "object"}},
365 "application/vnd.spring-boot.actuator.v3+json": {"schema": {"type": "object"}},
366 "application/json": {"schema": {"type": "object"}},
367 "application/vnd.spring-boot.actuator.v2+json": {"schema": {"type": "object"}}
368 }
PatrikBuhrde7a5732022-03-31 12:08:56 +0200369 }},
370 "tags": ["Actuator"]
371 }},
PatrikBuhrfee99552021-02-02 14:06:44 +0100372 "/a1-policy/v2/status": {"get": {
373 "summary": "Returns status and statistics of this service",
PatrikBuhr2a56cf72021-12-28 13:14:46 +0100374 "operationId": "getStatus",
PatrikBuhrfee99552021-02-02 14:06:44 +0100375 "responses": {"200": {
376 "description": "Service is living",
JohnKeeney62abcd82023-03-01 19:04:58 +0000377 "content": {"application/json": {"schema": {"$ref": "#/components/schemas/status_info_v2"}}}
PatrikBuhrfee99552021-02-02 14:06:44 +0100378 }},
379 "tags": ["Health Check"]
380 }},
PatrikBuhrde7a5732022-03-31 12:08:56 +0200381 "/actuator/loggers": {"get": {
382 "summary": "Actuator web endpoint 'loggers'",
383 "operationId": "loggers",
384 "responses": {"200": {
385 "description": "OK",
JohnKeeney62abcd82023-03-01 19:04:58 +0000386 "content": {
387 "application/vnd.spring-boot.actuator.v3+json": {"schema": {"type": "object"}},
388 "application/json": {"schema": {"type": "object"}},
389 "application/vnd.spring-boot.actuator.v2+json": {"schema": {"type": "object"}}
390 }
PatrikBuhrde7a5732022-03-31 12:08:56 +0200391 }},
392 "tags": ["Actuator"]
393 }},
394 "/actuator/health/**": {"get": {
395 "summary": "Actuator web endpoint 'health-path'",
396 "operationId": "health-path",
PatrikBuhr2b277642021-12-27 11:32:58 +0100397 "responses": {"200": {
398 "description": "OK",
JohnKeeney62abcd82023-03-01 19:04:58 +0000399 "content": {
400 "application/vnd.spring-boot.actuator.v3+json": {"schema": {"type": "object"}},
401 "application/json": {"schema": {"type": "object"}},
402 "application/vnd.spring-boot.actuator.v2+json": {"schema": {"type": "object"}}
403 }
PatrikBuhr2b277642021-12-27 11:32:58 +0100404 }},
405 "tags": ["Actuator"]
406 }},
PatrikBuhrfee99552021-02-02 14:06:44 +0100407 "/a1-policy/v2/rics/ric": {"get": {
408 "summary": "Returns info for one Near-RT RIC",
JohnKeeney069b4692022-05-12 22:15:14 +0100409 "description": "Either a Near-RT RIC identity or a Managed Element identity can be specified.<br>The intention with Managed Element identity is the ID used in O1 for accessing the traffical element (such as the ID of CU).",
PatrikBuhr2a56cf72021-12-28 13:14:46 +0100410 "operationId": "getRic",
PatrikBuhrfee99552021-02-02 14:06:44 +0100411 "responses": {
412 "200": {
413 "description": "Near-RT RIC is found",
JohnKeeney62abcd82023-03-01 19:04:58 +0000414 "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ric_info_v2"}}}
PatrikBuhrfee99552021-02-02 14:06:44 +0100415 },
416 "404": {
417 "description": "Near-RT RIC is not found",
JohnKeeney62abcd82023-03-01 19:04:58 +0000418 "content": {"application/json": {"schema": {"$ref": "#/components/schemas/error_information"}}}
PatrikBuhrfee99552021-02-02 14:06:44 +0100419 }
420 },
421 "parameters": [
422 {
JohnKeeney62abcd82023-03-01 19:04:58 +0000423 "schema": {"type": "string"},
PatrikBuhrfee99552021-02-02 14:06:44 +0100424 "in": "query",
425 "name": "managed_element_id",
426 "description": "The identity of a Managed Element. If given, the Near-RT RIC managing the ME is returned.",
427 "required": false
428 },
429 {
JohnKeeney62abcd82023-03-01 19:04:58 +0000430 "schema": {"type": "string"},
PatrikBuhrfee99552021-02-02 14:06:44 +0100431 "in": "query",
432 "name": "ric_id",
433 "description": "The identity of a Near-RT RIC to get information for.",
434 "required": false
435 }
436 ],
437 "tags": ["NearRT-RIC Repository"]
438 }},
PatrikBuhrc0218ad2022-11-28 09:40:36 +0100439 "/actuator/shutdown": {"post": {
440 "summary": "Actuator web endpoint 'shutdown'",
441 "operationId": "shutdown",
442 "responses": {"200": {
443 "description": "OK",
JohnKeeney62abcd82023-03-01 19:04:58 +0000444 "content": {
445 "application/vnd.spring-boot.actuator.v3+json": {"schema": {"type": "object"}},
446 "application/json": {"schema": {"type": "object"}},
447 "application/vnd.spring-boot.actuator.v2+json": {"schema": {"type": "object"}}
448 }
PatrikBuhrc0218ad2022-11-28 09:40:36 +0100449 }},
450 "tags": ["Actuator"]
451 }},
PatrikBuhrfee99552021-02-02 14:06:44 +0100452 "/a1-policy/v2/policy-types": {"get": {
453 "summary": "Query policy type identities",
PatrikBuhr2a56cf72021-12-28 13:14:46 +0100454 "operationId": "getPolicyTypes",
PatrikBuhrfee99552021-02-02 14:06:44 +0100455 "responses": {
456 "200": {
457 "description": "Policy type IDs",
JohnKeeney62abcd82023-03-01 19:04:58 +0000458 "content": {"application/json": {"schema": {"$ref": "#/components/schemas/policytype_id_list_v2"}}}
PatrikBuhrfee99552021-02-02 14:06:44 +0100459 },
460 "404": {
461 "description": "Near-RT RIC is not found",
JohnKeeney62abcd82023-03-01 19:04:58 +0000462 "content": {"application/json": {"schema": {"$ref": "#/components/schemas/error_information"}}}
PatrikBuhrfee99552021-02-02 14:06:44 +0100463 }
464 },
PatrikBuhr3b916e42021-10-07 18:03:53 +0200465 "parameters": [
466 {
JohnKeeney62abcd82023-03-01 19:04:58 +0000467 "schema": {"type": "string"},
PatrikBuhr3b916e42021-10-07 18:03:53 +0200468 "in": "query",
469 "name": "ric_id",
470 "description": "Select types for the given Near-RT RIC identity.",
471 "required": false
472 },
473 {
JohnKeeney62abcd82023-03-01 19:04:58 +0000474 "schema": {"type": "string"},
PatrikBuhr3b916e42021-10-07 18:03:53 +0200475 "in": "query",
476 "name": "type_name",
477 "description": "Select types with the given type name (type identity has the format <typename_version>)",
478 "required": false
479 },
480 {
JohnKeeney62abcd82023-03-01 19:04:58 +0000481 "schema": {"type": "string"},
PatrikBuhr3b916e42021-10-07 18:03:53 +0200482 "in": "query",
PatrikBuhr3b916e42021-10-07 18:03:53 +0200483 "name": "compatible_with_version",
PatrikBuhrc1b62222021-12-28 13:07:14 +0100484 "description": "Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order.",
PatrikBuhr3b916e42021-10-07 18:03:53 +0200485 "required": false
486 }
487 ],
PatrikBuhrfee99552021-02-02 14:06:44 +0100488 "tags": ["A1 Policy Management"]
489 }},
490 "/a1-policy/v2/policies/{policy_id}": {
491 "get": {
492 "summary": "Returns a policy",
PatrikBuhr2a56cf72021-12-28 13:14:46 +0100493 "operationId": "getPolicy",
PatrikBuhrfee99552021-02-02 14:06:44 +0100494 "responses": {
495 "200": {
496 "description": "Policy found",
JohnKeeney62abcd82023-03-01 19:04:58 +0000497 "content": {"application/json": {"schema": {"$ref": "#/components/schemas/policy_info_v2"}}}
PatrikBuhrfee99552021-02-02 14:06:44 +0100498 },
499 "404": {
500 "description": "Policy is not found",
JohnKeeney62abcd82023-03-01 19:04:58 +0000501 "content": {"application/json": {"schema": {"$ref": "#/components/schemas/error_information"}}}
PatrikBuhrfee99552021-02-02 14:06:44 +0100502 }
503 },
504 "parameters": [{
JohnKeeney62abcd82023-03-01 19:04:58 +0000505 "schema": {"type": "string"},
PatrikBuhrfee99552021-02-02 14:06:44 +0100506 "in": "path",
507 "name": "policy_id",
508 "required": true
509 }],
510 "tags": ["A1 Policy Management"]
511 },
512 "delete": {
513 "summary": "Delete a policy",
PatrikBuhr2a56cf72021-12-28 13:14:46 +0100514 "operationId": "deletePolicy",
PatrikBuhrfee99552021-02-02 14:06:44 +0100515 "responses": {
516 "200": {
517 "description": "Not used",
JohnKeeney62abcd82023-03-01 19:04:58 +0000518 "content": {"*/*": {"schema": {"$ref": "#/components/schemas/void"}}}
PatrikBuhrfee99552021-02-02 14:06:44 +0100519 },
520 "423": {
521 "description": "Near-RT RIC is not operational",
JohnKeeney62abcd82023-03-01 19:04:58 +0000522 "content": {"*/*": {"schema": {"$ref": "#/components/schemas/error_information"}}}
PatrikBuhrfee99552021-02-02 14:06:44 +0100523 },
524 "204": {
525 "description": "Policy deleted",
JohnKeeney62abcd82023-03-01 19:04:58 +0000526 "content": {"*/*": {"schema": {"$ref": "#/components/schemas/void"}}}
PatrikBuhrfee99552021-02-02 14:06:44 +0100527 },
528 "404": {
529 "description": "Policy is not found",
JohnKeeney62abcd82023-03-01 19:04:58 +0000530 "content": {"*/*": {"schema": {"$ref": "#/components/schemas/error_information"}}}
PatrikBuhrfee99552021-02-02 14:06:44 +0100531 }
532 },
533 "parameters": [{
JohnKeeney62abcd82023-03-01 19:04:58 +0000534 "schema": {"type": "string"},
PatrikBuhrfee99552021-02-02 14:06:44 +0100535 "in": "path",
536 "name": "policy_id",
537 "required": true
538 }],
539 "tags": ["A1 Policy Management"]
540 }
541 },
PatrikBuhr2b277642021-12-27 11:32:58 +0100542 "/actuator/metrics/{requiredMetricName}": {"get": {
543 "summary": "Actuator web endpoint 'metrics-requiredMetricName'",
PatrikBuhrde7a5732022-03-31 12:08:56 +0200544 "operationId": "metrics-requiredMetricName",
PatrikBuhr2b277642021-12-27 11:32:58 +0100545 "responses": {"200": {
546 "description": "OK",
JohnKeeney62abcd82023-03-01 19:04:58 +0000547 "content": {
548 "application/vnd.spring-boot.actuator.v3+json": {"schema": {"type": "object"}},
549 "application/json": {"schema": {"type": "object"}},
550 "application/vnd.spring-boot.actuator.v2+json": {"schema": {"type": "object"}}
551 }
PatrikBuhr2b277642021-12-27 11:32:58 +0100552 }},
553 "parameters": [{
JohnKeeney62abcd82023-03-01 19:04:58 +0000554 "schema": {"type": "string"},
PatrikBuhr2b277642021-12-27 11:32:58 +0100555 "in": "path",
556 "name": "requiredMetricName",
557 "required": true
558 }],
559 "tags": ["Actuator"]
560 }},
PatrikBuhrfee99552021-02-02 14:06:44 +0100561 "/a1-policy/v2/configuration": {
562 "get": {
PatrikBuhr0f8b2052021-12-20 13:40:14 +0100563 "summary": "Returns the contents of the application configuration file",
PatrikBuhrfee99552021-02-02 14:06:44 +0100564 "operationId": "getConfiguration",
565 "responses": {
566 "200": {
567 "description": "Configuration",
JohnKeeney62abcd82023-03-01 19:04:58 +0000568 "content": {"application/json": {"schema": {"type": "object"}}}
PatrikBuhrfee99552021-02-02 14:06:44 +0100569 },
570 "404": {
571 "description": "File is not found or readable",
JohnKeeney62abcd82023-03-01 19:04:58 +0000572 "content": {"application/json": {"schema": {"$ref": "#/components/schemas/error_information"}}}
PatrikBuhrfee99552021-02-02 14:06:44 +0100573 }
574 },
575 "tags": ["Management of configuration"]
576 },
577 "put": {
578 "summary": "Replace the current configuration file with the given configuration",
579 "requestBody": {
JohnKeeney62abcd82023-03-01 19:04:58 +0000580 "content": {"application/json": {"schema": {"type": "object"}}},
PatrikBuhrfee99552021-02-02 14:06:44 +0100581 "required": true
582 },
PatrikBuhrfee99552021-02-02 14:06:44 +0100583 "operationId": "putConfiguration",
584 "responses": {
585 "200": {
586 "description": "Configuration updated",
JohnKeeney62abcd82023-03-01 19:04:58 +0000587 "content": {"*/*": {"schema": {"$ref": "#/components/schemas/void"}}}
PatrikBuhrfee99552021-02-02 14:06:44 +0100588 },
589 "400": {
590 "description": "Invalid configuration provided",
JohnKeeney62abcd82023-03-01 19:04:58 +0000591 "content": {"*/*": {"schema": {"$ref": "#/components/schemas/error_information"}}}
PatrikBuhrfee99552021-02-02 14:06:44 +0100592 },
593 "500": {
594 "description": "Something went wrong when replacing the configuration. Try again.",
JohnKeeney62abcd82023-03-01 19:04:58 +0000595 "content": {"*/*": {"schema": {"$ref": "#/components/schemas/error_information"}}}
PatrikBuhrfee99552021-02-02 14:06:44 +0100596 }
597 },
598 "tags": ["Management of configuration"]
599 }
600 },
PatrikBuhr2b277642021-12-27 11:32:58 +0100601 "/actuator": {"get": {
602 "summary": "Actuator root web endpoint",
PatrikBuhrde7a5732022-03-31 12:08:56 +0200603 "operationId": "links",
PatrikBuhr2b277642021-12-27 11:32:58 +0100604 "responses": {"200": {
605 "description": "OK",
JohnKeeney62abcd82023-03-01 19:04:58 +0000606 "content": {
607 "application/vnd.spring-boot.actuator.v3+json": {"schema": {
PatrikBuhre3693cf2022-10-14 11:38:22 +0200608 "additionalProperties": {
609 "additionalProperties": {"$ref": "#/components/schemas/Link"},
JohnKeeney62abcd82023-03-01 19:04:58 +0000610 "type": "object"
PatrikBuhre3693cf2022-10-14 11:38:22 +0200611 },
JohnKeeney62abcd82023-03-01 19:04:58 +0000612 "type": "object"
613 }},
614 "application/json": {"schema": {
615 "additionalProperties": {
616 "additionalProperties": {"$ref": "#/components/schemas/Link"},
617 "type": "object"
618 },
619 "type": "object"
620 }},
621 "application/vnd.spring-boot.actuator.v2+json": {"schema": {
622 "additionalProperties": {
623 "additionalProperties": {"$ref": "#/components/schemas/Link"},
624 "type": "object"
625 },
626 "type": "object"
627 }}
628 }
PatrikBuhr2b277642021-12-27 11:32:58 +0100629 }},
630 "tags": ["Actuator"]
631 }},
PatrikBuhr2b277642021-12-27 11:32:58 +0100632 "/actuator/loggers/{name}": {
633 "post": {
634 "summary": "Actuator web endpoint 'loggers-name'",
JohnKeeney62abcd82023-03-01 19:04:58 +0000635 "requestBody": {"content": {"application/json": {"schema": {
636 "type": "string",
637 "enum": [
638 "TRACE",
639 "DEBUG",
640 "INFO",
641 "WARN",
642 "ERROR",
643 "FATAL",
644 "OFF"
645 ]
646 }}}},
647 "operationId": "loggers-name_2",
PatrikBuhr2b277642021-12-27 11:32:58 +0100648 "responses": {"200": {
649 "description": "OK",
JohnKeeney62abcd82023-03-01 19:04:58 +0000650 "content": {"*/*": {"schema": {"type": "object"}}}
PatrikBuhr2b277642021-12-27 11:32:58 +0100651 }},
652 "parameters": [{
JohnKeeney62abcd82023-03-01 19:04:58 +0000653 "schema": {"type": "string"},
PatrikBuhr2b277642021-12-27 11:32:58 +0100654 "in": "path",
655 "name": "name",
656 "required": true
657 }],
658 "tags": ["Actuator"]
659 },
660 "get": {
661 "summary": "Actuator web endpoint 'loggers-name'",
JohnKeeney62abcd82023-03-01 19:04:58 +0000662 "operationId": "loggers-name",
PatrikBuhr2b277642021-12-27 11:32:58 +0100663 "responses": {"200": {
664 "description": "OK",
JohnKeeney62abcd82023-03-01 19:04:58 +0000665 "content": {
666 "application/vnd.spring-boot.actuator.v3+json": {"schema": {"type": "object"}},
667 "application/json": {"schema": {"type": "object"}},
668 "application/vnd.spring-boot.actuator.v2+json": {"schema": {"type": "object"}}
669 }
PatrikBuhr2b277642021-12-27 11:32:58 +0100670 }},
671 "parameters": [{
JohnKeeney62abcd82023-03-01 19:04:58 +0000672 "schema": {"type": "string"},
PatrikBuhr2b277642021-12-27 11:32:58 +0100673 "in": "path",
674 "name": "name",
675 "required": true
676 }],
677 "tags": ["Actuator"]
678 }
679 },
PatrikBuhrfee99552021-02-02 14:06:44 +0100680 "/a1-policy/v2/services/{service_id}/keepalive": {"put": {
681 "summary": "Heartbeat indicates that the service is running",
JohnKeeney08486cf2022-05-24 12:34:49 +0100682 "description": "A registered service should invoke this operation regularly to indicate that it is still alive. If a registered service fails to invoke this operation before the end of a timeout period the service will be deregistered and all its A1 policies wil be removed. (This timeout can be set or disabled when each service is initially registered)",
PatrikBuhr2a56cf72021-12-28 13:14:46 +0100683 "operationId": "keepAliveService",
PatrikBuhrfee99552021-02-02 14:06:44 +0100684 "responses": {
685 "200": {
686 "description": "Service supervision timer refreshed, OK",
JohnKeeney62abcd82023-03-01 19:04:58 +0000687 "content": {"*/*": {"schema": {"type": "object"}}}
PatrikBuhrfee99552021-02-02 14:06:44 +0100688 },
689 "404": {
690 "description": "The service is not found, needs re-registration",
JohnKeeney62abcd82023-03-01 19:04:58 +0000691 "content": {"*/*": {"schema": {"$ref": "#/components/schemas/error_information"}}}
PatrikBuhrfee99552021-02-02 14:06:44 +0100692 }
693 },
694 "parameters": [{
JohnKeeney62abcd82023-03-01 19:04:58 +0000695 "schema": {"type": "string"},
PatrikBuhrfee99552021-02-02 14:06:44 +0100696 "in": "path",
697 "name": "service_id",
698 "required": true
699 }],
700 "tags": ["Service Registry and Supervision"]
701 }},
PatrikBuhr2b277642021-12-27 11:32:58 +0100702 "/actuator/metrics": {"get": {
703 "summary": "Actuator web endpoint 'metrics'",
PatrikBuhrde7a5732022-03-31 12:08:56 +0200704 "operationId": "metrics",
PatrikBuhr2b277642021-12-27 11:32:58 +0100705 "responses": {"200": {
706 "description": "OK",
JohnKeeney62abcd82023-03-01 19:04:58 +0000707 "content": {
708 "application/vnd.spring-boot.actuator.v3+json": {"schema": {"type": "object"}},
709 "application/json": {"schema": {"type": "object"}},
710 "application/vnd.spring-boot.actuator.v2+json": {"schema": {"type": "object"}}
711 }
PatrikBuhr2b277642021-12-27 11:32:58 +0100712 }},
713 "tags": ["Actuator"]
714 }},
PatrikBuhrfee99552021-02-02 14:06:44 +0100715 "/a1-policy/v2/rics": {"get": {
716 "summary": "Query Near-RT RIC information",
717 "description": "The call returns all Near-RT RICs that supports a given policy type identity",
PatrikBuhr2a56cf72021-12-28 13:14:46 +0100718 "operationId": "getRics",
PatrikBuhrfee99552021-02-02 14:06:44 +0100719 "responses": {
720 "200": {
721 "description": "OK",
JohnKeeney62abcd82023-03-01 19:04:58 +0000722 "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ric_info_list_v2"}}}
PatrikBuhrfee99552021-02-02 14:06:44 +0100723 },
724 "404": {
725 "description": "Policy type is not found",
JohnKeeney62abcd82023-03-01 19:04:58 +0000726 "content": {"application/json": {"schema": {"$ref": "#/components/schemas/error_information"}}}
PatrikBuhrfee99552021-02-02 14:06:44 +0100727 }
728 },
729 "parameters": [{
JohnKeeney62abcd82023-03-01 19:04:58 +0000730 "schema": {"type": "string"},
PatrikBuhrfee99552021-02-02 14:06:44 +0100731 "in": "query",
732 "name": "policytype_id",
PatrikBuhr0f8b2052021-12-20 13:40:14 +0100733 "description": "The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned",
PatrikBuhrfee99552021-02-02 14:06:44 +0100734 "required": false
735 }],
736 "tags": ["NearRT-RIC Repository"]
737 }},
PatrikBuhrfee99552021-02-02 14:06:44 +0100738 "/a1-policy/v2/services": {
739 "get": {
740 "summary": "Returns service information",
741 "description": "Either information about a registered service with given identity or all registered services are returned.",
PatrikBuhr2a56cf72021-12-28 13:14:46 +0100742 "operationId": "getServices",
PatrikBuhrfee99552021-02-02 14:06:44 +0100743 "responses": {
744 "200": {
745 "description": "OK",
JohnKeeney62abcd82023-03-01 19:04:58 +0000746 "content": {"application/json": {"schema": {"$ref": "#/components/schemas/service_list_v2"}}}
PatrikBuhrfee99552021-02-02 14:06:44 +0100747 },
748 "404": {
749 "description": "Service is not found",
JohnKeeney62abcd82023-03-01 19:04:58 +0000750 "content": {"application/json": {"schema": {"$ref": "#/components/schemas/error_information"}}}
PatrikBuhrfee99552021-02-02 14:06:44 +0100751 }
752 },
753 "parameters": [{
JohnKeeney62abcd82023-03-01 19:04:58 +0000754 "schema": {"type": "string"},
PatrikBuhrfee99552021-02-02 14:06:44 +0100755 "in": "query",
756 "name": "service_id",
757 "description": "The identity of the service",
758 "required": false
759 }],
760 "tags": ["Service Registry and Supervision"]
761 },
762 "put": {
763 "summary": "Register a service",
764 "requestBody": {
JohnKeeney62abcd82023-03-01 19:04:58 +0000765 "content": {"application/json": {"schema": {"$ref": "#/components/schemas/service_registration_info_v2"}}},
PatrikBuhrfee99552021-02-02 14:06:44 +0100766 "required": true
767 },
PatrikBuhrc7f757e2022-11-28 09:40:36 +0100768 "description": "Registering a service is needed to:<ul><li>Get callbacks about available NearRT RICs.<\/li><li>Activate supervision of the service. If a service is inactive, its policies will automatically be deleted.<\/li><\/ul>Policies can be created even if the service is not registerred. This is a feature which it is optional to use.",
PatrikBuhr2a56cf72021-12-28 13:14:46 +0100769 "operationId": "putService",
PatrikBuhrfee99552021-02-02 14:06:44 +0100770 "responses": {
771 "200": {
772 "description": "Service updated",
JohnKeeney62abcd82023-03-01 19:04:58 +0000773 "content": {"*/*": {"schema": {"type": "object"}}}
PatrikBuhrfee99552021-02-02 14:06:44 +0100774 },
775 "201": {
776 "description": "Service created",
JohnKeeney62abcd82023-03-01 19:04:58 +0000777 "content": {"*/*": {"schema": {"type": "object"}}}
PatrikBuhrfee99552021-02-02 14:06:44 +0100778 },
779 "400": {
780 "description": "The ServiceRegistrationInfo is not accepted",
JohnKeeney62abcd82023-03-01 19:04:58 +0000781 "content": {"*/*": {"schema": {"$ref": "#/components/schemas/error_information"}}}
PatrikBuhrfee99552021-02-02 14:06:44 +0100782 }
783 },
784 "tags": ["Service Registry and Supervision"]
785 }
786 },
PatrikBuhr2b277642021-12-27 11:32:58 +0100787 "/actuator/info": {"get": {
788 "summary": "Actuator web endpoint 'info'",
PatrikBuhrde7a5732022-03-31 12:08:56 +0200789 "operationId": "info",
PatrikBuhr2b277642021-12-27 11:32:58 +0100790 "responses": {"200": {
791 "description": "OK",
JohnKeeney62abcd82023-03-01 19:04:58 +0000792 "content": {
793 "application/vnd.spring-boot.actuator.v3+json": {"schema": {"type": "object"}},
794 "application/json": {"schema": {"type": "object"}},
795 "application/vnd.spring-boot.actuator.v2+json": {"schema": {"type": "object"}}
796 }
PatrikBuhr2b277642021-12-27 11:32:58 +0100797 }},
798 "tags": ["Actuator"]
799 }},
PatrikBuhrfee99552021-02-02 14:06:44 +0100800 "/status": {"get": {
801 "summary": "Returns status and statistics of this service",
PatrikBuhr2a56cf72021-12-28 13:14:46 +0100802 "operationId": "getStatusV1",
PatrikBuhrfee99552021-02-02 14:06:44 +0100803 "responses": {"200": {
804 "description": "Service is living",
JohnKeeney62abcd82023-03-01 19:04:58 +0000805 "content": {"*/*": {"schema": {"type": "string"}}}
PatrikBuhrfee99552021-02-02 14:06:44 +0100806 }},
PatrikBuhr2a56cf72021-12-28 13:14:46 +0100807 "tags": ["Health Check"]
PatrikBuhrfee99552021-02-02 14:06:44 +0100808 }},
809 "/a1-policy/v2/policy-types/{policytype_id}": {"get": {
810 "summary": "Returns a policy type definition",
811 "operationId": "getPolicyType",
812 "responses": {
813 "200": {
814 "description": "Policy type",
JohnKeeney62abcd82023-03-01 19:04:58 +0000815 "content": {"*/*": {"schema": {"$ref": "#/components/schemas/policytype_v2"}}}
PatrikBuhrfee99552021-02-02 14:06:44 +0100816 },
817 "404": {
818 "description": "Policy type is not found",
JohnKeeney62abcd82023-03-01 19:04:58 +0000819 "content": {"*/*": {"schema": {"$ref": "#/components/schemas/error_information"}}}
PatrikBuhrfee99552021-02-02 14:06:44 +0100820 }
821 },
822 "parameters": [{
JohnKeeney62abcd82023-03-01 19:04:58 +0000823 "schema": {"type": "string"},
PatrikBuhrfee99552021-02-02 14:06:44 +0100824 "in": "path",
825 "name": "policytype_id",
826 "required": true
827 }],
828 "tags": ["A1 Policy Management"]
829 }},
PatrikBuhr2b277642021-12-27 11:32:58 +0100830 "/actuator/logfile": {"get": {
831 "summary": "Actuator web endpoint 'logfile'",
PatrikBuhrde7a5732022-03-31 12:08:56 +0200832 "operationId": "logfile",
PatrikBuhr2b277642021-12-27 11:32:58 +0100833 "responses": {"200": {
834 "description": "OK",
JohnKeeney62abcd82023-03-01 19:04:58 +0000835 "content": {"text/plain;charset=UTF-8": {"schema": {"type": "object"}}}
PatrikBuhr2b277642021-12-27 11:32:58 +0100836 }},
837 "tags": ["Actuator"]
838 }},
839 "/actuator/health": {"get": {
840 "summary": "Actuator web endpoint 'health'",
PatrikBuhrde7a5732022-03-31 12:08:56 +0200841 "operationId": "health",
PatrikBuhr2b277642021-12-27 11:32:58 +0100842 "responses": {"200": {
843 "description": "OK",
JohnKeeney62abcd82023-03-01 19:04:58 +0000844 "content": {
845 "application/vnd.spring-boot.actuator.v3+json": {"schema": {"type": "object"}},
846 "application/json": {"schema": {"type": "object"}},
847 "application/vnd.spring-boot.actuator.v2+json": {"schema": {"type": "object"}}
848 }
PatrikBuhr2b277642021-12-27 11:32:58 +0100849 }},
850 "tags": ["Actuator"]
851 }},
PatrikBuhrfee99552021-02-02 14:06:44 +0100852 "/a1-policy/v2/policies": {
853 "get": {
854 "summary": "Query policy identities",
855 "description": "Returns a list of A1 policies matching given search criteria. <br>If several query parameters are defined, the policies matching all conditions are returned.",
PatrikBuhr2a56cf72021-12-28 13:14:46 +0100856 "operationId": "getPolicyIds",
PatrikBuhrfee99552021-02-02 14:06:44 +0100857 "responses": {
858 "200": {
859 "description": "Policy identities",
JohnKeeney62abcd82023-03-01 19:04:58 +0000860 "content": {"application/json": {"schema": {"$ref": "#/components/schemas/policy_id_list_v2"}}}
PatrikBuhrfee99552021-02-02 14:06:44 +0100861 },
862 "404": {
863 "description": "Near-RT RIC or type not found",
JohnKeeney62abcd82023-03-01 19:04:58 +0000864 "content": {"application/json": {"schema": {"$ref": "#/components/schemas/error_information"}}}
PatrikBuhrfee99552021-02-02 14:06:44 +0100865 }
866 },
867 "parameters": [
868 {
JohnKeeney62abcd82023-03-01 19:04:58 +0000869 "schema": {"type": "string"},
PatrikBuhrfee99552021-02-02 14:06:44 +0100870 "in": "query",
871 "name": "policytype_id",
PatrikBuhr3b916e42021-10-07 18:03:53 +0200872 "description": "Select policies of a given policy type identity.",
PatrikBuhrfee99552021-02-02 14:06:44 +0100873 "required": false
874 },
875 {
JohnKeeney62abcd82023-03-01 19:04:58 +0000876 "schema": {"type": "string"},
PatrikBuhrfee99552021-02-02 14:06:44 +0100877 "in": "query",
878 "name": "ric_id",
PatrikBuhr3b916e42021-10-07 18:03:53 +0200879 "description": "Select policies of a given Near-RT RIC identity.",
PatrikBuhrfee99552021-02-02 14:06:44 +0100880 "required": false
881 },
882 {
JohnKeeney62abcd82023-03-01 19:04:58 +0000883 "schema": {"type": "string"},
PatrikBuhrfee99552021-02-02 14:06:44 +0100884 "in": "query",
885 "name": "service_id",
PatrikBuhr3b916e42021-10-07 18:03:53 +0200886 "description": "Select policies owned by a given service.",
887 "required": false
888 },
889 {
JohnKeeney62abcd82023-03-01 19:04:58 +0000890 "schema": {"type": "string"},
PatrikBuhr3b916e42021-10-07 18:03:53 +0200891 "in": "query",
892 "name": "type_name",
893 "description": "Select policies of types with the given type name (type identity has the format <typename_version>)",
PatrikBuhrfee99552021-02-02 14:06:44 +0100894 "required": false
895 }
896 ],
897 "tags": ["A1 Policy Management"]
898 },
899 "put": {
900 "summary": "Create or update a policy",
901 "requestBody": {
JohnKeeney62abcd82023-03-01 19:04:58 +0000902 "content": {"application/json": {"schema": {"$ref": "#/components/schemas/policy_info_v2"}}},
PatrikBuhrfee99552021-02-02 14:06:44 +0100903 "required": true
904 },
PatrikBuhr2a56cf72021-12-28 13:14:46 +0100905 "operationId": "putPolicy",
PatrikBuhrfee99552021-02-02 14:06:44 +0100906 "responses": {
907 "200": {
908 "description": "Policy updated",
JohnKeeney62abcd82023-03-01 19:04:58 +0000909 "content": {"application/json": {"schema": {"$ref": "#/components/schemas/void"}}}
PatrikBuhrfee99552021-02-02 14:06:44 +0100910 },
911 "201": {
912 "description": "Policy created",
JohnKeeney62abcd82023-03-01 19:04:58 +0000913 "content": {"application/json": {"schema": {"$ref": "#/components/schemas/void"}}}
PatrikBuhrfee99552021-02-02 14:06:44 +0100914 },
915 "423": {
916 "description": "Near-RT RIC is not operational",
JohnKeeney62abcd82023-03-01 19:04:58 +0000917 "content": {"application/json": {"schema": {"$ref": "#/components/schemas/error_information"}}}
PatrikBuhrfee99552021-02-02 14:06:44 +0100918 },
919 "404": {
920 "description": "Near-RT RIC or policy type is not found",
JohnKeeney62abcd82023-03-01 19:04:58 +0000921 "content": {"application/json": {"schema": {"$ref": "#/components/schemas/error_information"}}}
PatrikBuhrfee99552021-02-02 14:06:44 +0100922 }
923 },
924 "tags": ["A1 Policy Management"]
925 }
926 },
927 "/r-app/near-rt-ric-status": {"post": {
928 "summary": "Callback for Near-RT RIC status",
929 "requestBody": {
JohnKeeney62abcd82023-03-01 19:04:58 +0000930 "content": {"application/json": {"schema": {"$ref": "#/components/schemas/service_callback_info_v2"}}},
PatrikBuhrfee99552021-02-02 14:06:44 +0100931 "required": true
932 },
JohnKeeney069b4692022-05-12 22:15:14 +0100933 "description": "The URL to this call is registered at Service registration.",
PatrikBuhr25d78502021-04-28 08:42:13 +0200934 "operationId": "serviceCallback",
PatrikBuhrfee99552021-02-02 14:06:44 +0100935 "responses": {"200": {
936 "description": "OK",
JohnKeeney62abcd82023-03-01 19:04:58 +0000937 "content": {"application/json": {"schema": {"$ref": "#/components/schemas/void"}}}
PatrikBuhrfee99552021-02-02 14:06:44 +0100938 }},
PatrikBuhr9f1d9492023-04-17 13:00:15 +0200939 "tags": ["Service callbacks"]
PatrikBuhrfee99552021-02-02 14:06:44 +0100940 }},
PatrikBuhrfee99552021-02-02 14:06:44 +0100941 "/a1-policy/v2/services/{service_id}": {"delete": {
942 "summary": "Unregister a service",
PatrikBuhr2a56cf72021-12-28 13:14:46 +0100943 "operationId": "deleteService",
PatrikBuhrfee99552021-02-02 14:06:44 +0100944 "responses": {
945 "200": {
946 "description": "Not used",
JohnKeeney62abcd82023-03-01 19:04:58 +0000947 "content": {"*/*": {"schema": {"$ref": "#/components/schemas/void"}}}
PatrikBuhrfee99552021-02-02 14:06:44 +0100948 },
949 "204": {
950 "description": "Service unregistered",
JohnKeeney62abcd82023-03-01 19:04:58 +0000951 "content": {"*/*": {"schema": {"type": "object"}}}
PatrikBuhrfee99552021-02-02 14:06:44 +0100952 },
953 "404": {
954 "description": "Service not found",
JohnKeeney62abcd82023-03-01 19:04:58 +0000955 "content": {"*/*": {"schema": {"$ref": "#/components/schemas/error_information"}}}
PatrikBuhrfee99552021-02-02 14:06:44 +0100956 }
957 },
958 "parameters": [{
JohnKeeney62abcd82023-03-01 19:04:58 +0000959 "schema": {"type": "string"},
PatrikBuhrfee99552021-02-02 14:06:44 +0100960 "in": "path",
961 "name": "service_id",
962 "required": true
963 }],
964 "tags": ["Service Registry and Supervision"]
965 }},
PatrikBuhrde7a5732022-03-31 12:08:56 +0200966 "/actuator/heapdump": {"get": {
967 "summary": "Actuator web endpoint 'heapdump'",
968 "operationId": "heapdump",
969 "responses": {"200": {
970 "description": "OK",
JohnKeeney62abcd82023-03-01 19:04:58 +0000971 "content": {"application/octet-stream": {"schema": {"type": "object"}}}
PatrikBuhrde7a5732022-03-31 12:08:56 +0200972 }},
973 "tags": ["Actuator"]
974 }},
PatrikBuhrfee99552021-02-02 14:06:44 +0100975 "/a1-policy/v2/policies/{policy_id}/status": {"get": {
976 "summary": "Returns a policy status",
PatrikBuhr2a56cf72021-12-28 13:14:46 +0100977 "operationId": "getPolicyStatus",
PatrikBuhrfee99552021-02-02 14:06:44 +0100978 "responses": {
979 "200": {
980 "description": "Policy status",
JohnKeeney62abcd82023-03-01 19:04:58 +0000981 "content": {"application/json": {"schema": {"$ref": "#/components/schemas/policy_status_info_v2"}}}
PatrikBuhrfee99552021-02-02 14:06:44 +0100982 },
983 "404": {
984 "description": "Policy is not found",
JohnKeeney62abcd82023-03-01 19:04:58 +0000985 "content": {"application/json": {"schema": {"$ref": "#/components/schemas/error_information"}}}
PatrikBuhrfee99552021-02-02 14:06:44 +0100986 }
987 },
988 "parameters": [{
JohnKeeney62abcd82023-03-01 19:04:58 +0000989 "schema": {"type": "string"},
PatrikBuhrfee99552021-02-02 14:06:44 +0100990 "in": "path",
991 "name": "policy_id",
992 "required": true
993 }],
994 "tags": ["A1 Policy Management"]
995 }}
996 },
997 "info": {
998 "license": {
PatrikBuhrc0218ad2022-11-28 09:40:36 +0100999 "name": "Copyright (C) 2020-2023 Nordix Foundation. Licensed under the Apache License.",
PatrikBuhrfee99552021-02-02 14:06:44 +01001000 "url": "http://www.apache.org/licenses/LICENSE-2.0"
1001 },
PatrikBuhr9f1d9492023-04-17 13:00:15 +02001002 "description": "<h2>General<\/h2><p>The O-RAN Non-RT RIC Policy Management Service provides a REST API for management of A1 policies. <br/>The main tasks of the service are:<\/p><ul><li>A1 Policy creation, modification and deletion.<\/li><li>Monitoring and maintaining consistency of the SMO view of A1 policies and the Near-RT RICs<\/li><li>Maintaining a view of supported Near-RT RIC policy types<\/li><li>Supervision of using services (R-APPs). When a service is unavailable, its policies are removed.<\/li><\/ul><h2>APIs provided or defined by the service<\/h2><h3>A1 Policy Management<\/h3><p>This is an API for management of A1 Policies.<\/p><ul><li>A1 Policy retrieval, creation, modification and deletion.<\/li><li>Retrieval of supported A1 Policy types for a Near-RT RIC<\/li><li>Retrieval of status for existing A1 policies<\/li><\/ul><h3>Management of configuration<\/h3><p>API for updating and retrieval of the component configuration. Note that there other ways to maintain the configuration.<\/p><h3>Service callbacks<\/h3><p>These are endpoints that are invoked by this service. The callbacks are registered in this service at service registration.<\/p><h3>NearRT-RIC Repository<\/h3><p>This is an API that provides support for looking up a NearRT-RIC. Each A1 policy is targeted for one Near-RT RIC.<\/p><h3>Health Check<\/h3><p>API used for supervision of the PMS component.<\/p><h3>Service Registry and Supervision<\/h3><p>API used for registering services that uses PMS. Each A1 policy is optionally owned by a service. PMS can supervise each registered service by a heart-beat supervision and will automatically remove policies for unavailable services. Note that a service does not need to be registered in order to create A1 Policies. This is a feature that is optional to use.<\/p><h3>Authorization API<\/h3><p>API used for access control of A1 Policy access. If configured, an external authorization provider is requested to grant access to the A1 Policy type.<\/p><h3>Spring Boot Actuator<\/h3><p>Provides generic functions used to monitor and manage the Spring web application.<\/p>",
JohnKeeney08486cf2022-05-24 12:34:49 +01001003 "title": "A1 Policy Management Service",
PatrikBuhr9f1d9492023-04-17 13:00:15 +02001004 "version": "1.2.0"
PatrikBuhr1122b012021-01-20 12:21:52 +01001005 },
PatrikBuhrf07e4b32023-04-05 14:40:07 +02001006 "tags": [
1007 {
1008 "name": "Authorization API",
1009 "description": "API used for authorization of information A1 policy access (this is provided by an authorization producer such as OPA).\nNote that this API is called by PMS, it is not provided.\n"
1010 },
1011 {
1012 "name": "Actuator",
1013 "description": "Monitor and interact",
1014 "externalDocs": {
1015 "description": "Spring Boot Actuator Web API Documentation",
1016 "url": "https://docs.spring.io/spring-boot/docs/current/actuator-api/html/"
1017 }
JohnKeeney62abcd82023-03-01 19:04:58 +00001018 }
PatrikBuhrf07e4b32023-04-05 14:40:07 +02001019 ]
PatrikBuhr1122b012021-01-20 12:21:52 +01001020}