elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 1 | openapi: 3.0.1 |
| 2 | info: |
| 3 | title: A1 Policy management service |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 4 | description: <h2>General</h2><p>The O-RAN Non-RT RIC Policy Management Service provides |
| 5 | a REST API for management of A1 policices. <br/>The main tasks of the service |
| 6 | are:</p><ul><li>A1 Policy creation, modification and deletion.</li><li>Monitoring |
| 7 | and maintaining consistency of the SMO view of A1 policies and the Near-RT RICs</li><li>Maintaining |
| 8 | a view of supported Near-RT RIC policy types</li><li>Supervision of using services |
| 9 | (R-APPs). When a service is unavailble, its policies are removed.</li></ul><h2>APIs |
| 10 | provided by the service</h2><h3>A1 Policy Management</h3><p>This is an API for |
| 11 | management of A1 Policies.</p><ul><li>A1 Policy retrieval, creation, modification |
| 12 | and deletion.</li><li>Retrieval of supported A1 Policy types for a Near-RT RIC</li><li>Retrieval |
| 13 | of status for existing A1 policies</li></ul><h3>Management of configuration</h3><p>API |
| 14 | for updating and retrieval of the component configuration. Note that there other |
| 15 | ways to maintain the configuration.</p><h3>Callbacks</h3><p>These are endpoints |
| 16 | that are invoked by this service. The callbacks are registerred in this service |
| 17 | at service registration.</p><h3>NearRT-RIC Repository</h3><p>This is an API that |
| 18 | provides support for looking up a NearRT-RIC. Each A1 policy is targeted for one |
| 19 | Near-RT RIC.</p><h3>Health Check</h3><p>API used for supervision of the PMS component.</p><h3>Service |
| 20 | Registry and Supervision</h3><p>API used for registerring services that uses PMS. |
| 21 | Each A1 policy is owned by a service. PMS can supervise each registerred service |
| 22 | and will automatically remove policies for unavailable services.</p> |
| 23 | license: |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame] | 24 | name: Copyright (C) 2020-2022 Nordix Foundation. Licensed under the Apache License. |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 25 | url: http://www.apache.org/licenses/LICENSE-2.0 |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 26 | version: 1.1.0 |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 27 | servers: |
PatrikBuhr | d7cc059 | 2020-12-14 13:33:06 +0100 | [diff] [blame] | 28 | - url: / |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 29 | tags: |
PatrikBuhr | c6cca20 | 2022-01-04 17:10:12 +0100 | [diff] [blame] | 30 | - name: Service Registry and Supervision |
| 31 | - name: A1 Policy Management |
PatrikBuhr | c6cca20 | 2022-01-04 17:10:12 +0100 | [diff] [blame] | 32 | - name: NearRT-RIC Repository |
| 33 | - name: Callbacks |
| 34 | - name: Health Check |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 35 | - name: Management of configuration |
PatrikBuhr | 6e31874 | 2021-11-30 11:25:17 +0100 | [diff] [blame] | 36 | - name: Actuator |
| 37 | description: Monitor and interact |
| 38 | externalDocs: |
| 39 | description: Spring Boot Actuator Web API Documentation |
| 40 | url: https://docs.spring.io/spring-boot/docs/current/actuator-api/html/ |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 41 | paths: |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 42 | /a1-policy/v2/policy-instances: |
| 43 | get: |
| 44 | tags: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 45 | - A1 Policy Management |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 46 | summary: Query for A1 policy instances |
| 47 | description: Returns a list of A1 policies matching given search criteria. <br>If |
| 48 | several query parameters are defined, the policies matching all conditions |
| 49 | are returned. |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 50 | operationId: getPolicyInstances |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 51 | parameters: |
| 52 | - name: policytype_id |
| 53 | in: query |
PatrikBuhr | 3b916e4 | 2021-10-07 18:03:53 +0200 | [diff] [blame] | 54 | description: Select policies with a given type identity. |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 55 | required: false |
| 56 | style: form |
| 57 | explode: true |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 58 | schema: |
| 59 | type: string |
| 60 | - name: ric_id |
| 61 | in: query |
PatrikBuhr | 3b916e4 | 2021-10-07 18:03:53 +0200 | [diff] [blame] | 62 | description: Select policies for a given Near-RT RIC identity. |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 63 | required: false |
| 64 | style: form |
| 65 | explode: true |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 66 | schema: |
| 67 | type: string |
| 68 | - name: service_id |
| 69 | in: query |
PatrikBuhr | 3b916e4 | 2021-10-07 18:03:53 +0200 | [diff] [blame] | 70 | description: Select policies owned by a given service. |
| 71 | required: false |
| 72 | style: form |
| 73 | explode: true |
| 74 | schema: |
| 75 | type: string |
| 76 | - name: type_name |
| 77 | in: query |
| 78 | description: Select policies of a given type name (type identity has the format |
| 79 | <typename_version>) |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 80 | required: false |
| 81 | style: form |
| 82 | explode: true |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 83 | schema: |
| 84 | type: string |
| 85 | responses: |
| 86 | 200: |
| 87 | description: Policies |
| 88 | content: |
| 89 | application/json: |
| 90 | schema: |
| 91 | $ref: '#/components/schemas/policy_info_list_v2' |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 92 | 404: |
| 93 | description: Near-RT RIC, policy type or service not found |
| 94 | content: |
| 95 | application/json: |
| 96 | schema: |
| 97 | $ref: '#/components/schemas/error_information' |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 98 | /a1-policy/v2/status: |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 99 | get: |
| 100 | tags: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 101 | - Health Check |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 102 | summary: Returns status and statistics of this service |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame] | 103 | operationId: getStatus |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 104 | responses: |
| 105 | 200: |
| 106 | description: Service is living |
| 107 | content: |
| 108 | application/json: |
| 109 | schema: |
| 110 | $ref: '#/components/schemas/status_info_v2' |
PatrikBuhr | 6e31874 | 2021-11-30 11:25:17 +0100 | [diff] [blame] | 111 | /actuator/threaddump: |
| 112 | get: |
| 113 | tags: |
| 114 | - Actuator |
| 115 | summary: Actuator web endpoint 'threaddump' |
PatrikBuhr | c6cca20 | 2022-01-04 17:10:12 +0100 | [diff] [blame] | 116 | operationId: threaddump_4 |
PatrikBuhr | 6e31874 | 2021-11-30 11:25:17 +0100 | [diff] [blame] | 117 | responses: |
| 118 | 200: |
| 119 | description: OK |
| 120 | content: |
| 121 | '*/*': |
| 122 | schema: |
| 123 | type: object |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 124 | /a1-policy/v2/rics/ric: |
| 125 | get: |
| 126 | tags: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 127 | - NearRT-RIC Repository |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 128 | summary: Returns info for one Near-RT RIC |
| 129 | description: Either a Near-RT RIC identity or a Mananged Element identity can |
| 130 | be specified.<br>The intention with Mananged Element identity is the ID used |
| 131 | in O1 for accessing the traffical element (such as the ID of CU). |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame] | 132 | operationId: getRic |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 133 | parameters: |
| 134 | - name: managed_element_id |
| 135 | in: query |
| 136 | description: The identity of a Managed Element. If given, the Near-RT RIC |
| 137 | managing the ME is returned. |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 138 | required: false |
| 139 | style: form |
| 140 | explode: true |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 141 | schema: |
| 142 | type: string |
| 143 | - name: ric_id |
| 144 | in: query |
| 145 | description: The identity of a Near-RT RIC to get information for. |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 146 | required: false |
| 147 | style: form |
| 148 | explode: true |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 149 | schema: |
| 150 | type: string |
| 151 | responses: |
| 152 | 200: |
| 153 | description: Near-RT RIC is found |
| 154 | content: |
| 155 | application/json: |
| 156 | schema: |
| 157 | $ref: '#/components/schemas/ric_info_v2' |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 158 | 404: |
| 159 | description: Near-RT RIC is not found |
| 160 | content: |
| 161 | application/json: |
| 162 | schema: |
| 163 | $ref: '#/components/schemas/error_information' |
PatrikBuhr | 6e31874 | 2021-11-30 11:25:17 +0100 | [diff] [blame] | 164 | /actuator/loggers: |
| 165 | get: |
| 166 | tags: |
| 167 | - Actuator |
| 168 | summary: Actuator web endpoint 'loggers' |
PatrikBuhr | c6cca20 | 2022-01-04 17:10:12 +0100 | [diff] [blame] | 169 | operationId: loggers_2 |
PatrikBuhr | 6e31874 | 2021-11-30 11:25:17 +0100 | [diff] [blame] | 170 | responses: |
| 171 | 200: |
| 172 | description: OK |
| 173 | content: |
| 174 | '*/*': |
| 175 | schema: |
| 176 | type: object |
| 177 | /actuator/health/**: |
| 178 | get: |
| 179 | tags: |
| 180 | - Actuator |
| 181 | summary: Actuator web endpoint 'health-path' |
PatrikBuhr | c6cca20 | 2022-01-04 17:10:12 +0100 | [diff] [blame] | 182 | operationId: health-path_2 |
PatrikBuhr | 6e31874 | 2021-11-30 11:25:17 +0100 | [diff] [blame] | 183 | responses: |
| 184 | 200: |
| 185 | description: OK |
| 186 | content: |
| 187 | '*/*': |
| 188 | schema: |
| 189 | type: object |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 190 | /a1-policy/v2/policy-types: |
| 191 | get: |
| 192 | tags: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 193 | - A1 Policy Management |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 194 | summary: Query policy type identities |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame] | 195 | operationId: getPolicyTypes |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 196 | parameters: |
| 197 | - name: ric_id |
| 198 | in: query |
PatrikBuhr | 3b916e4 | 2021-10-07 18:03:53 +0200 | [diff] [blame] | 199 | description: Select types for the given Near-RT RIC identity. |
| 200 | required: false |
| 201 | style: form |
| 202 | explode: true |
| 203 | schema: |
| 204 | type: string |
| 205 | - name: type_name |
| 206 | in: query |
| 207 | description: Select types with the given type name (type identity has the |
| 208 | format <typename_version>) |
| 209 | required: false |
| 210 | style: form |
| 211 | explode: true |
| 212 | schema: |
| 213 | type: string |
PatrikBuhr | 3b916e4 | 2021-10-07 18:03:53 +0200 | [diff] [blame] | 214 | - name: compatible_with_version |
| 215 | in: query |
| 216 | description: Select types that are compatible with the given version. This |
| 217 | parameter is only applicable in conjunction with type_name. As an example |
PatrikBuhr | c1b6222 | 2021-12-28 13:07:14 +0100 | [diff] [blame] | 218 | version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching |
| 219 | types will be returned sorted in ascending order. |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 220 | required: false |
| 221 | style: form |
| 222 | explode: true |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 223 | schema: |
| 224 | type: string |
| 225 | responses: |
| 226 | 200: |
| 227 | description: Policy type IDs |
| 228 | content: |
| 229 | application/json: |
| 230 | schema: |
| 231 | $ref: '#/components/schemas/policytype_id_list_v2' |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 232 | 404: |
| 233 | description: Near-RT RIC is not found |
| 234 | content: |
| 235 | application/json: |
| 236 | schema: |
| 237 | $ref: '#/components/schemas/error_information' |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 238 | /a1-policy/v2/policies/{policy_id}: |
| 239 | get: |
| 240 | tags: |
| 241 | - A1 Policy Management |
| 242 | summary: Returns a policy |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame] | 243 | operationId: getPolicy |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 244 | parameters: |
| 245 | - name: policy_id |
| 246 | in: path |
| 247 | required: true |
| 248 | style: simple |
| 249 | explode: false |
| 250 | schema: |
| 251 | type: string |
| 252 | responses: |
| 253 | 200: |
| 254 | description: Policy found |
| 255 | content: |
| 256 | application/json: |
| 257 | schema: |
| 258 | $ref: '#/components/schemas/policy_info_v2' |
| 259 | 404: |
| 260 | description: Policy is not found |
| 261 | content: |
| 262 | application/json: |
| 263 | schema: |
| 264 | $ref: '#/components/schemas/error_information' |
| 265 | delete: |
| 266 | tags: |
| 267 | - A1 Policy Management |
| 268 | summary: Delete a policy |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame] | 269 | operationId: deletePolicy |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 270 | parameters: |
| 271 | - name: policy_id |
| 272 | in: path |
| 273 | required: true |
| 274 | style: simple |
| 275 | explode: false |
| 276 | schema: |
| 277 | type: string |
| 278 | responses: |
| 279 | 200: |
| 280 | description: Not used |
| 281 | content: |
| 282 | '*/*': |
| 283 | schema: |
| 284 | $ref: '#/components/schemas/void' |
| 285 | 423: |
| 286 | description: Near-RT RIC is not operational |
| 287 | content: |
| 288 | '*/*': |
| 289 | schema: |
| 290 | $ref: '#/components/schemas/error_information' |
| 291 | 204: |
| 292 | description: Policy deleted |
| 293 | content: |
| 294 | '*/*': |
| 295 | schema: |
| 296 | $ref: '#/components/schemas/void' |
| 297 | 404: |
| 298 | description: Policy is not found |
| 299 | content: |
| 300 | '*/*': |
| 301 | schema: |
| 302 | $ref: '#/components/schemas/error_information' |
PatrikBuhr | 6e31874 | 2021-11-30 11:25:17 +0100 | [diff] [blame] | 303 | /actuator/metrics/{requiredMetricName}: |
| 304 | get: |
| 305 | tags: |
| 306 | - Actuator |
| 307 | summary: Actuator web endpoint 'metrics-requiredMetricName' |
PatrikBuhr | c6cca20 | 2022-01-04 17:10:12 +0100 | [diff] [blame] | 308 | operationId: metrics-requiredMetricName_2 |
PatrikBuhr | 6e31874 | 2021-11-30 11:25:17 +0100 | [diff] [blame] | 309 | parameters: |
| 310 | - name: requiredMetricName |
| 311 | in: path |
| 312 | required: true |
| 313 | style: simple |
| 314 | explode: false |
| 315 | schema: |
| 316 | type: string |
| 317 | responses: |
| 318 | 200: |
| 319 | description: OK |
| 320 | content: |
| 321 | '*/*': |
| 322 | schema: |
| 323 | type: object |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 324 | /a1-policy/v2/configuration: |
| 325 | get: |
| 326 | tags: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 327 | - Management of configuration |
PatrikBuhr | 0f8b205 | 2021-12-20 13:40:14 +0100 | [diff] [blame] | 328 | summary: Returns the contents of the application configuration file |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 329 | operationId: getConfiguration |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 330 | responses: |
| 331 | 200: |
| 332 | description: Configuration |
| 333 | content: |
| 334 | application/json: |
| 335 | schema: |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 336 | type: object |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 337 | 404: |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 338 | description: File is not found or readable |
| 339 | content: |
| 340 | application/json: |
| 341 | schema: |
| 342 | $ref: '#/components/schemas/error_information' |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 343 | put: |
| 344 | tags: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 345 | - Management of configuration |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 346 | summary: Replace the current configuration file with the given configuration |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 347 | operationId: putConfiguration |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 348 | requestBody: |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 349 | content: |
| 350 | application/json: |
| 351 | schema: |
| 352 | type: object |
| 353 | required: true |
| 354 | responses: |
| 355 | 200: |
| 356 | description: Configuration updated |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 357 | content: |
| 358 | '*/*': |
| 359 | schema: |
| 360 | $ref: '#/components/schemas/void' |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 361 | 400: |
| 362 | description: Invalid configuration provided |
| 363 | content: |
| 364 | '*/*': |
| 365 | schema: |
| 366 | $ref: '#/components/schemas/error_information' |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 367 | 500: |
| 368 | description: Something went wrong when replacing the configuration. Try |
| 369 | again. |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 370 | content: |
| 371 | '*/*': |
| 372 | schema: |
| 373 | $ref: '#/components/schemas/error_information' |
PatrikBuhr | 6e31874 | 2021-11-30 11:25:17 +0100 | [diff] [blame] | 374 | /actuator: |
| 375 | get: |
| 376 | tags: |
| 377 | - Actuator |
| 378 | summary: Actuator root web endpoint |
| 379 | operationId: links_1 |
| 380 | responses: |
| 381 | 200: |
| 382 | description: OK |
| 383 | content: |
| 384 | '*/*': |
| 385 | schema: |
| 386 | type: object |
| 387 | additionalProperties: |
| 388 | type: object |
| 389 | additionalProperties: |
| 390 | $ref: '#/components/schemas/Link' |
PatrikBuhr | 6e31874 | 2021-11-30 11:25:17 +0100 | [diff] [blame] | 391 | /actuator/loggers/{name}: |
| 392 | get: |
| 393 | tags: |
| 394 | - Actuator |
| 395 | summary: Actuator web endpoint 'loggers-name' |
PatrikBuhr | c6cca20 | 2022-01-04 17:10:12 +0100 | [diff] [blame] | 396 | operationId: loggers-name_4 |
PatrikBuhr | 6e31874 | 2021-11-30 11:25:17 +0100 | [diff] [blame] | 397 | parameters: |
| 398 | - name: name |
| 399 | in: path |
| 400 | required: true |
| 401 | style: simple |
| 402 | explode: false |
| 403 | schema: |
| 404 | type: string |
| 405 | responses: |
| 406 | 200: |
| 407 | description: OK |
| 408 | content: |
| 409 | '*/*': |
| 410 | schema: |
| 411 | type: object |
| 412 | post: |
| 413 | tags: |
| 414 | - Actuator |
| 415 | summary: Actuator web endpoint 'loggers-name' |
PatrikBuhr | c6cca20 | 2022-01-04 17:10:12 +0100 | [diff] [blame] | 416 | operationId: loggers-name_3 |
PatrikBuhr | 6e31874 | 2021-11-30 11:25:17 +0100 | [diff] [blame] | 417 | parameters: |
| 418 | - name: name |
| 419 | in: path |
| 420 | required: true |
| 421 | style: simple |
| 422 | explode: false |
| 423 | schema: |
| 424 | type: string |
| 425 | responses: |
| 426 | 200: |
| 427 | description: OK |
| 428 | content: |
| 429 | '*/*': |
| 430 | schema: |
| 431 | type: object |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 432 | /a1-policy/v2/services/{service_id}/keepalive: |
| 433 | put: |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 434 | tags: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 435 | - Service Registry and Supervision |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 436 | summary: Heartbeat indicates that the service is running |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 437 | description: A registerred service must call this in regular intervals to indicate |
PatrikBuhr | 82a6252 | 2022-02-09 13:36:57 +0100 | [diff] [blame^] | 438 | that it is in operation. Absence of this call will lead to that the service |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 439 | will be deregisterred and all its policies are removed. |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame] | 440 | operationId: keepAliveService |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 441 | parameters: |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 442 | - name: service_id |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 443 | in: path |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 444 | required: true |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 445 | style: simple |
| 446 | explode: false |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 447 | schema: |
| 448 | type: string |
| 449 | responses: |
| 450 | 200: |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 451 | description: Service supervision timer refreshed, OK |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 452 | content: |
| 453 | '*/*': |
| 454 | schema: |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 455 | type: object |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 456 | 404: |
| 457 | description: The service is not found, needs re-registration |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 458 | content: |
| 459 | '*/*': |
| 460 | schema: |
| 461 | $ref: '#/components/schemas/error_information' |
PatrikBuhr | 6e31874 | 2021-11-30 11:25:17 +0100 | [diff] [blame] | 462 | /actuator/metrics: |
| 463 | get: |
| 464 | tags: |
| 465 | - Actuator |
| 466 | summary: Actuator web endpoint 'metrics' |
PatrikBuhr | c6cca20 | 2022-01-04 17:10:12 +0100 | [diff] [blame] | 467 | operationId: metrics_2 |
PatrikBuhr | 6e31874 | 2021-11-30 11:25:17 +0100 | [diff] [blame] | 468 | responses: |
| 469 | 200: |
| 470 | description: OK |
| 471 | content: |
| 472 | '*/*': |
| 473 | schema: |
| 474 | type: object |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 475 | /a1-policy/v2/rics: |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 476 | get: |
| 477 | tags: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 478 | - NearRT-RIC Repository |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 479 | summary: Query Near-RT RIC information |
| 480 | description: The call returns all Near-RT RICs that supports a given policy |
| 481 | type identity |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame] | 482 | operationId: getRics |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 483 | parameters: |
| 484 | - name: policytype_id |
| 485 | in: query |
PatrikBuhr | 0f8b205 | 2021-12-20 13:40:14 +0100 | [diff] [blame] | 486 | description: The identity of a policy type. If given, all Near-RT RICs supporting |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 487 | the policy type are returned |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 488 | required: false |
| 489 | style: form |
| 490 | explode: true |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 491 | schema: |
| 492 | type: string |
| 493 | responses: |
| 494 | 200: |
| 495 | description: OK |
| 496 | content: |
| 497 | application/json: |
| 498 | schema: |
| 499 | $ref: '#/components/schemas/ric_info_list_v2' |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 500 | 404: |
| 501 | description: Policy type is not found |
| 502 | content: |
| 503 | application/json: |
| 504 | schema: |
| 505 | $ref: '#/components/schemas/error_information' |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 506 | /a1-policy/v2/services: |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 507 | get: |
| 508 | tags: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 509 | - Service Registry and Supervision |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 510 | summary: Returns service information |
| 511 | description: Either information about a registered service with given identity |
| 512 | or all registered services are returned. |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame] | 513 | operationId: getServices |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 514 | parameters: |
| 515 | - name: service_id |
| 516 | in: query |
| 517 | description: The identity of the service |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 518 | required: false |
| 519 | style: form |
| 520 | explode: true |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 521 | schema: |
| 522 | type: string |
| 523 | responses: |
| 524 | 200: |
| 525 | description: OK |
| 526 | content: |
| 527 | application/json: |
| 528 | schema: |
| 529 | $ref: '#/components/schemas/service_list_v2' |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 530 | 404: |
| 531 | description: Service is not found |
| 532 | content: |
| 533 | application/json: |
| 534 | schema: |
| 535 | $ref: '#/components/schemas/error_information' |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 536 | put: |
| 537 | tags: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 538 | - Service Registry and Supervision |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 539 | summary: Register a service |
| 540 | description: Registering a service is needed to:<ul><li>Get callbacks.</li><li>Activate |
| 541 | supervision of the service. If a service is inactive, its policies will be |
| 542 | deleted.</li></ul> |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame] | 543 | operationId: putService |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 544 | requestBody: |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 545 | content: |
| 546 | application/json: |
| 547 | schema: |
| 548 | $ref: '#/components/schemas/service_registration_info_v2' |
| 549 | required: true |
| 550 | responses: |
| 551 | 200: |
| 552 | description: Service updated |
| 553 | content: |
| 554 | '*/*': |
| 555 | schema: |
| 556 | type: object |
| 557 | 201: |
| 558 | description: Service created |
| 559 | content: |
| 560 | '*/*': |
| 561 | schema: |
| 562 | type: object |
| 563 | 400: |
| 564 | description: The ServiceRegistrationInfo is not accepted |
| 565 | content: |
| 566 | '*/*': |
| 567 | schema: |
| 568 | $ref: '#/components/schemas/error_information' |
PatrikBuhr | 6e31874 | 2021-11-30 11:25:17 +0100 | [diff] [blame] | 569 | /actuator/info: |
| 570 | get: |
| 571 | tags: |
| 572 | - Actuator |
| 573 | summary: Actuator web endpoint 'info' |
PatrikBuhr | c6cca20 | 2022-01-04 17:10:12 +0100 | [diff] [blame] | 574 | operationId: info_2 |
PatrikBuhr | 6e31874 | 2021-11-30 11:25:17 +0100 | [diff] [blame] | 575 | responses: |
| 576 | 200: |
| 577 | description: OK |
| 578 | content: |
| 579 | '*/*': |
| 580 | schema: |
| 581 | type: object |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 582 | /status: |
| 583 | get: |
| 584 | tags: |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame] | 585 | - Health Check |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 586 | summary: Returns status and statistics of this service |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame] | 587 | operationId: getStatusV1 |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 588 | responses: |
| 589 | 200: |
| 590 | description: Service is living |
| 591 | content: |
| 592 | '*/*': |
| 593 | schema: |
| 594 | type: string |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 595 | /a1-policy/v2/policy-types/{policytype_id}: |
| 596 | get: |
| 597 | tags: |
| 598 | - A1 Policy Management |
| 599 | summary: Returns a policy type definition |
| 600 | operationId: getPolicyType |
| 601 | parameters: |
| 602 | - name: policytype_id |
| 603 | in: path |
| 604 | required: true |
| 605 | style: simple |
| 606 | explode: false |
| 607 | schema: |
| 608 | type: string |
| 609 | responses: |
| 610 | 200: |
| 611 | description: Policy type |
| 612 | content: |
| 613 | '*/*': |
| 614 | schema: |
| 615 | $ref: '#/components/schemas/policytype_v2' |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 616 | 404: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 617 | description: Policy type is not found |
| 618 | content: |
| 619 | '*/*': |
| 620 | schema: |
| 621 | $ref: '#/components/schemas/error_information' |
PatrikBuhr | 6e31874 | 2021-11-30 11:25:17 +0100 | [diff] [blame] | 622 | /actuator/logfile: |
| 623 | get: |
| 624 | tags: |
| 625 | - Actuator |
| 626 | summary: Actuator web endpoint 'logfile' |
PatrikBuhr | c6cca20 | 2022-01-04 17:10:12 +0100 | [diff] [blame] | 627 | operationId: logfile_2 |
PatrikBuhr | 6e31874 | 2021-11-30 11:25:17 +0100 | [diff] [blame] | 628 | responses: |
| 629 | 200: |
| 630 | description: OK |
| 631 | content: |
| 632 | '*/*': |
| 633 | schema: |
| 634 | type: object |
| 635 | /actuator/health: |
| 636 | get: |
| 637 | tags: |
| 638 | - Actuator |
| 639 | summary: Actuator web endpoint 'health' |
PatrikBuhr | c6cca20 | 2022-01-04 17:10:12 +0100 | [diff] [blame] | 640 | operationId: health_2 |
PatrikBuhr | 6e31874 | 2021-11-30 11:25:17 +0100 | [diff] [blame] | 641 | responses: |
| 642 | 200: |
| 643 | description: OK |
| 644 | content: |
| 645 | '*/*': |
| 646 | schema: |
| 647 | type: object |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 648 | /a1-policy/v2/policies: |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 649 | get: |
| 650 | tags: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 651 | - A1 Policy Management |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 652 | summary: Query policy identities |
| 653 | description: Returns a list of A1 policies matching given search criteria. <br>If |
| 654 | several query parameters are defined, the policies matching all conditions |
| 655 | are returned. |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame] | 656 | operationId: getPolicyIds |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 657 | parameters: |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 658 | - name: policytype_id |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 659 | in: query |
PatrikBuhr | 3b916e4 | 2021-10-07 18:03:53 +0200 | [diff] [blame] | 660 | description: Select policies of a given policy type identity. |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 661 | required: false |
| 662 | style: form |
| 663 | explode: true |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 664 | schema: |
| 665 | type: string |
| 666 | - name: ric_id |
| 667 | in: query |
PatrikBuhr | 3b916e4 | 2021-10-07 18:03:53 +0200 | [diff] [blame] | 668 | description: Select policies of a given Near-RT RIC identity. |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 669 | required: false |
| 670 | style: form |
| 671 | explode: true |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 672 | schema: |
| 673 | type: string |
| 674 | - name: service_id |
| 675 | in: query |
PatrikBuhr | 3b916e4 | 2021-10-07 18:03:53 +0200 | [diff] [blame] | 676 | description: Select policies owned by a given service. |
| 677 | required: false |
| 678 | style: form |
| 679 | explode: true |
| 680 | schema: |
| 681 | type: string |
| 682 | - name: type_name |
| 683 | in: query |
| 684 | description: Select policies of types with the given type name (type identity |
| 685 | has the format <typename_version>) |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 686 | required: false |
| 687 | style: form |
| 688 | explode: true |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 689 | schema: |
| 690 | type: string |
| 691 | responses: |
| 692 | 200: |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 693 | description: Policy identities |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 694 | content: |
| 695 | application/json: |
| 696 | schema: |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 697 | $ref: '#/components/schemas/policy_id_list_v2' |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 698 | 404: |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 699 | description: Near-RT RIC or type not found |
| 700 | content: |
| 701 | application/json: |
| 702 | schema: |
| 703 | $ref: '#/components/schemas/error_information' |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 704 | put: |
| 705 | tags: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 706 | - A1 Policy Management |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 707 | summary: Create or update a policy |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame] | 708 | operationId: putPolicy |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 709 | requestBody: |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 710 | content: |
| 711 | application/json: |
| 712 | schema: |
| 713 | $ref: '#/components/schemas/policy_info_v2' |
| 714 | required: true |
| 715 | responses: |
| 716 | 200: |
| 717 | description: Policy updated |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 718 | content: |
| 719 | application/json: |
| 720 | schema: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 721 | $ref: '#/components/schemas/void' |
| 722 | 201: |
| 723 | description: Policy created |
| 724 | content: |
| 725 | application/json: |
| 726 | schema: |
| 727 | $ref: '#/components/schemas/void' |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 728 | 423: |
| 729 | description: Near-RT RIC is not operational |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 730 | content: |
| 731 | application/json: |
| 732 | schema: |
| 733 | $ref: '#/components/schemas/error_information' |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 734 | 404: |
| 735 | description: Near-RT RIC or policy type is not found |
| 736 | content: |
| 737 | application/json: |
| 738 | schema: |
| 739 | $ref: '#/components/schemas/error_information' |
| 740 | /r-app/near-rt-ric-status: |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 741 | post: |
| 742 | tags: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 743 | - Callbacks |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 744 | summary: Callback for Near-RT RIC status |
| 745 | description: The URL to this call is registerred at Service registration. |
PatrikBuhr | 25d7850 | 2021-04-28 08:42:13 +0200 | [diff] [blame] | 746 | operationId: serviceCallback |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 747 | requestBody: |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 748 | content: |
| 749 | application/json: |
| 750 | schema: |
| 751 | $ref: '#/components/schemas/service_callback_info_v2' |
| 752 | required: true |
| 753 | responses: |
| 754 | 200: |
| 755 | description: OK |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 756 | content: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 757 | application/json: |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 758 | schema: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 759 | $ref: '#/components/schemas/void' |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 760 | /a1-policy/v2/services/{service_id}: |
| 761 | delete: |
| 762 | tags: |
| 763 | - Service Registry and Supervision |
| 764 | summary: Unregister a service |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame] | 765 | operationId: deleteService |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 766 | parameters: |
| 767 | - name: service_id |
| 768 | in: path |
| 769 | required: true |
| 770 | style: simple |
| 771 | explode: false |
| 772 | schema: |
| 773 | type: string |
| 774 | responses: |
| 775 | 200: |
| 776 | description: Not used |
| 777 | content: |
| 778 | '*/*': |
| 779 | schema: |
| 780 | $ref: '#/components/schemas/void' |
| 781 | 204: |
| 782 | description: Service unregistered |
| 783 | content: |
| 784 | '*/*': |
| 785 | schema: |
| 786 | type: object |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 787 | 404: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 788 | description: Service not found |
| 789 | content: |
| 790 | '*/*': |
| 791 | schema: |
| 792 | $ref: '#/components/schemas/error_information' |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 793 | /a1-policy/v2/policies/{policy_id}/status: |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 794 | get: |
| 795 | tags: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 796 | - A1 Policy Management |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 797 | summary: Returns a policy status |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame] | 798 | operationId: getPolicyStatus |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 799 | parameters: |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 800 | - name: policy_id |
| 801 | in: path |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 802 | required: true |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 803 | style: simple |
| 804 | explode: false |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 805 | schema: |
| 806 | type: string |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 807 | responses: |
| 808 | 200: |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 809 | description: Policy status |
| 810 | content: |
| 811 | application/json: |
| 812 | schema: |
| 813 | $ref: '#/components/schemas/policy_status_info_v2' |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 814 | 404: |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 815 | description: Policy is not found |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 816 | content: |
| 817 | application/json: |
| 818 | schema: |
| 819 | $ref: '#/components/schemas/error_information' |
PatrikBuhr | 6e31874 | 2021-11-30 11:25:17 +0100 | [diff] [blame] | 820 | /actuator/heapdump: |
| 821 | get: |
| 822 | tags: |
| 823 | - Actuator |
| 824 | summary: Actuator web endpoint 'heapdump' |
PatrikBuhr | c6cca20 | 2022-01-04 17:10:12 +0100 | [diff] [blame] | 825 | operationId: heapdump_2 |
PatrikBuhr | 6e31874 | 2021-11-30 11:25:17 +0100 | [diff] [blame] | 826 | responses: |
| 827 | 200: |
| 828 | description: OK |
| 829 | content: |
| 830 | '*/*': |
| 831 | schema: |
| 832 | type: object |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 833 | components: |
| 834 | schemas: |
| 835 | error_information: |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 836 | type: object |
| 837 | properties: |
| 838 | detail: |
| 839 | type: string |
| 840 | description: ' A human-readable explanation specific to this occurrence |
| 841 | of the problem.' |
| 842 | example: Policy type not found |
| 843 | status: |
| 844 | type: integer |
| 845 | description: 'The HTTP status code generated by the origin server for this |
| 846 | occurrence of the problem. ' |
| 847 | format: int32 |
PatrikBuhr | 3b916e4 | 2021-10-07 18:03:53 +0200 | [diff] [blame] | 848 | example: 404 |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 849 | description: Problem as defined in https://tools.ietf.org/html/rfc7807 |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 850 | void: |
| 851 | type: object |
| 852 | description: Void/empty |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 853 | status_info_v2: |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 854 | type: object |
| 855 | properties: |
| 856 | status: |
| 857 | type: string |
| 858 | description: status text |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 859 | ric_info_v2: |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 860 | type: object |
| 861 | properties: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 862 | ric_id: |
| 863 | type: string |
| 864 | description: identity of the Near-RT RIC |
| 865 | managed_element_ids: |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 866 | type: array |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 867 | description: O1 identities for managed entities |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 868 | items: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 869 | type: string |
| 870 | description: O1 identities for managed entities |
| 871 | state: |
| 872 | type: string |
| 873 | description: Represents the states for a Near-RT RIC |
| 874 | enum: |
| 875 | - UNAVAILABLE |
| 876 | - AVAILABLE |
| 877 | - SYNCHRONIZING |
| 878 | - CONSISTENCY_CHECK |
| 879 | policytype_ids: |
| 880 | type: array |
| 881 | description: supported policy types |
| 882 | items: |
| 883 | type: string |
| 884 | description: supported policy types |
| 885 | description: Information for a Near-RT RIC |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 886 | service_registration_info_v2: |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 887 | required: |
| 888 | - service_id |
| 889 | type: object |
| 890 | properties: |
| 891 | callback_url: |
| 892 | type: string |
| 893 | description: callback for notifying of Near-RT RIC state changes |
| 894 | service_id: |
| 895 | type: string |
| 896 | description: identity of the service |
| 897 | keep_alive_interval_seconds: |
| 898 | type: integer |
| 899 | description: keep alive interval for the service. This is a heartbeat supervision |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 900 | of the service, which in regular intevals must invoke a 'keepalive' REST |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 901 | call. When a service does not invoke this call within the given time, |
| 902 | it is considered unavailble. An unavailable service will be automatically |
| 903 | deregistered and its policies will be deleted. Value 0 means no timeout |
| 904 | supervision. |
| 905 | format: int64 |
| 906 | description: Information for one service |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 907 | policy_info_list_v2: |
| 908 | type: object |
| 909 | properties: |
| 910 | policies: |
| 911 | type: array |
| 912 | description: List of policy information |
| 913 | items: |
| 914 | $ref: '#/components/schemas/policy_info_v2' |
| 915 | description: List of policy information |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 916 | policy_status_info_v2: |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 917 | type: object |
| 918 | properties: |
| 919 | last_modified: |
| 920 | type: string |
| 921 | description: timestamp, last modification time |
| 922 | status: |
| 923 | type: object |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 924 | description: the Policy status |
| 925 | description: Status for one A1-P Policy |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 926 | service_status_v2: |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 927 | type: object |
| 928 | properties: |
| 929 | callback_url: |
| 930 | type: string |
| 931 | description: callback for notifying of RIC synchronization |
| 932 | service_id: |
| 933 | type: string |
| 934 | description: identity of the service |
| 935 | keep_alive_interval_seconds: |
| 936 | type: integer |
| 937 | description: policy keep alive timeout |
| 938 | format: int64 |
| 939 | time_since_last_activity_seconds: |
| 940 | type: integer |
| 941 | description: time since last invocation by the service |
| 942 | format: int64 |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 943 | description: List of service information |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 944 | ric_info_list_v2: |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 945 | type: object |
| 946 | properties: |
| 947 | rics: |
| 948 | type: array |
| 949 | description: List of Near-RT RIC information |
| 950 | items: |
| 951 | $ref: '#/components/schemas/ric_info_v2' |
| 952 | description: List of Near-RT RIC information |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 953 | policytype_v2: |
| 954 | type: object |
| 955 | properties: |
| 956 | policy_schema: |
| 957 | type: object |
| 958 | description: Policy type json scema. The schema is a json object following |
| 959 | http://json-schema.org/draft-07/schema |
| 960 | description: Policy type |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 961 | policytype_id_list_v2: |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 962 | type: object |
| 963 | properties: |
| 964 | policytype_ids: |
| 965 | type: array |
| 966 | description: Policy type identities |
| 967 | items: |
| 968 | type: string |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 969 | description: Policy type identities |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 970 | description: Information about policy types |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 971 | policy_info_v2: |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 972 | required: |
| 973 | - policy_data |
| 974 | - policy_id |
| 975 | - policytype_id |
| 976 | - ric_id |
| 977 | - service_id |
| 978 | type: object |
| 979 | properties: |
| 980 | ric_id: |
| 981 | type: string |
| 982 | description: identity of the target Near-RT RIC |
| 983 | policy_id: |
| 984 | type: string |
| 985 | description: identity of the policy |
| 986 | transient: |
| 987 | type: boolean |
| 988 | description: if true, the policy is deleted at RIC restart. If false, its |
| 989 | value is maintained by this service until explicitly deleted. Default |
| 990 | false. |
| 991 | service_id: |
| 992 | type: string |
PatrikBuhr | 3b916e4 | 2021-10-07 18:03:53 +0200 | [diff] [blame] | 993 | description: the identity of the service owning the policy |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 994 | policy_data: |
| 995 | type: object |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 996 | description: the configuration of the policy |
| 997 | status_notification_uri: |
| 998 | type: string |
| 999 | description: Callback URI for policy status updates |
| 1000 | policytype_id: |
| 1001 | type: string |
| 1002 | description: identity of the policy type |
| 1003 | description: Information for one A1-P Policy |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1004 | policy_id_list_v2: |
| 1005 | type: object |
| 1006 | properties: |
| 1007 | policy_ids: |
| 1008 | type: array |
| 1009 | description: Policy identities |
| 1010 | items: |
| 1011 | type: string |
| 1012 | description: Policy identities |
| 1013 | description: A list of policy identities |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 1014 | service_list_v2: |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 1015 | type: object |
| 1016 | properties: |
| 1017 | service_list: |
| 1018 | type: array |
| 1019 | description: List of service information |
| 1020 | items: |
| 1021 | $ref: '#/components/schemas/service_status_v2' |
| 1022 | description: List of service information |
| 1023 | service_callback_info_v2: |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 1024 | required: |
| 1025 | - event_type |
| 1026 | - ric_id |
| 1027 | type: object |
| 1028 | properties: |
| 1029 | ric_id: |
| 1030 | type: string |
| 1031 | description: identity of a Near-RT RIC |
| 1032 | event_type: |
| 1033 | type: string |
| 1034 | description: |- |
| 1035 | values: |
| 1036 | AVAILABLE: the Near-RT RIC has become available for A1 Policy management |
| 1037 | enum: |
| 1038 | - AVAILABLE |
| 1039 | description: Information transferred as in Service callbacks (callback_url) |
PatrikBuhr | 6e31874 | 2021-11-30 11:25:17 +0100 | [diff] [blame] | 1040 | Link: |
| 1041 | type: object |
| 1042 | properties: |
| 1043 | templated: |
| 1044 | type: boolean |
| 1045 | href: |
| 1046 | type: string |