PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +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 |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 26 | version: 1.1.0 |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 27 | servers: |
| 28 | - url: / |
| 29 | tags: |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame^] | 30 | - name: Service Registry and Supervision |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 31 | - name: A1 Policy Management |
| 32 | - name: NearRT-RIC Repository |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 33 | - name: Callbacks |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame^] | 34 | - name: Health Check |
| 35 | - name: Management of configuration |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +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/ |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 41 | paths: |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +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 | 1122b01 | 2021-01-20 12:21:52 +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 | 1122b01 | 2021-01-20 12:21:52 +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 | 1122b01 | 2021-01-20 12:21:52 +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 | 1122b01 | 2021-01-20 12:21:52 +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 | 1122b01 | 2021-01-20 12:21:52 +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 | 1122b01 | 2021-01-20 12:21:52 +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 | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 98 | /a1-policy/v2/status: |
| 99 | get: |
| 100 | tags: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 101 | - Health Check |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +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 |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +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 | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 111 | /actuator/threaddump: |
| 112 | get: |
| 113 | tags: |
| 114 | - Actuator |
| 115 | summary: Actuator web endpoint 'threaddump' |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame^] | 116 | operationId: threaddump_4 |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 117 | responses: |
| 118 | 200: |
| 119 | description: OK |
| 120 | content: |
| 121 | '*/*': |
| 122 | schema: |
| 123 | type: object |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +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 | 1122b01 | 2021-01-20 12:21:52 +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 | 1122b01 | 2021-01-20 12:21:52 +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 | 1122b01 | 2021-01-20 12:21:52 +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 | 1122b01 | 2021-01-20 12:21:52 +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 | 1122b01 | 2021-01-20 12:21:52 +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 | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 164 | /actuator/loggers: |
| 165 | get: |
| 166 | tags: |
| 167 | - Actuator |
| 168 | summary: Actuator web endpoint 'loggers' |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame^] | 169 | operationId: loggers_2 |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +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 | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame^] | 182 | operationId: health-path_2 |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 183 | responses: |
| 184 | 200: |
| 185 | description: OK |
| 186 | content: |
| 187 | '*/*': |
| 188 | schema: |
| 189 | type: object |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +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 | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 194 | summary: Query policy type identities |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame^] | 195 | operationId: getPolicyTypes |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +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 | 1122b01 | 2021-01-20 12:21:52 +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 | 1122b01 | 2021-01-20 12:21:52 +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 | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 303 | /actuator/metrics/{requiredMetricName}: |
| 304 | get: |
| 305 | tags: |
| 306 | - Actuator |
| 307 | summary: Actuator web endpoint 'metrics-requiredMetricName' |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame^] | 308 | operationId: metrics-requiredMetricName_2 |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +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 | 1122b01 | 2021-01-20 12:21:52 +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 | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 328 | summary: Returns the contents of the configuration file |
| 329 | description: Note that the file contents is not relevant if the Consul is used. |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 330 | operationId: getConfiguration |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 331 | responses: |
| 332 | 200: |
| 333 | description: Configuration |
| 334 | content: |
| 335 | application/json: |
| 336 | schema: |
| 337 | type: object |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 338 | 404: |
| 339 | description: File is not found or readable |
| 340 | content: |
| 341 | application/json: |
| 342 | schema: |
| 343 | $ref: '#/components/schemas/error_information' |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 344 | put: |
| 345 | tags: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 346 | - Management of configuration |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 347 | summary: Replace the current configuration file with the given configuration |
| 348 | description: Note that the file is ignored if the Consul is used. |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 349 | operationId: putConfiguration |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 350 | requestBody: |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 351 | content: |
| 352 | application/json: |
| 353 | schema: |
| 354 | type: object |
| 355 | required: true |
| 356 | responses: |
| 357 | 200: |
| 358 | description: Configuration updated |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 359 | content: |
| 360 | '*/*': |
| 361 | schema: |
| 362 | $ref: '#/components/schemas/void' |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 363 | 400: |
| 364 | description: Invalid configuration provided |
| 365 | content: |
| 366 | '*/*': |
| 367 | schema: |
| 368 | $ref: '#/components/schemas/error_information' |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 369 | 500: |
| 370 | description: Something went wrong when replacing the configuration. Try |
| 371 | again. |
| 372 | content: |
| 373 | '*/*': |
| 374 | schema: |
| 375 | $ref: '#/components/schemas/error_information' |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 376 | /actuator: |
| 377 | get: |
| 378 | tags: |
| 379 | - Actuator |
| 380 | summary: Actuator root web endpoint |
| 381 | operationId: links_1 |
| 382 | responses: |
| 383 | 200: |
| 384 | description: OK |
| 385 | content: |
| 386 | '*/*': |
| 387 | schema: |
| 388 | type: object |
| 389 | additionalProperties: |
| 390 | type: object |
| 391 | additionalProperties: |
| 392 | $ref: '#/components/schemas/Link' |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 393 | /actuator/loggers/{name}: |
| 394 | get: |
| 395 | tags: |
| 396 | - Actuator |
| 397 | summary: Actuator web endpoint 'loggers-name' |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame^] | 398 | operationId: loggers-name_4 |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 399 | parameters: |
| 400 | - name: name |
| 401 | in: path |
| 402 | required: true |
| 403 | style: simple |
| 404 | explode: false |
| 405 | schema: |
| 406 | type: string |
| 407 | responses: |
| 408 | 200: |
| 409 | description: OK |
| 410 | content: |
| 411 | '*/*': |
| 412 | schema: |
| 413 | type: object |
| 414 | post: |
| 415 | tags: |
| 416 | - Actuator |
| 417 | summary: Actuator web endpoint 'loggers-name' |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame^] | 418 | operationId: loggers-name_3 |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 419 | parameters: |
| 420 | - name: name |
| 421 | in: path |
| 422 | required: true |
| 423 | style: simple |
| 424 | explode: false |
| 425 | schema: |
| 426 | type: string |
| 427 | responses: |
| 428 | 200: |
| 429 | description: OK |
| 430 | content: |
| 431 | '*/*': |
| 432 | schema: |
| 433 | type: object |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 434 | /a1-policy/v2/services/{service_id}/keepalive: |
| 435 | put: |
| 436 | tags: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 437 | - Service Registry and Supervision |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 438 | summary: Heartbeat indicates that the service is running |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 439 | description: A registerred service must call this in regular intervals to indicate |
| 440 | that it is in operation. Absence of this call will lead to that teh service |
| 441 | will be deregisterred and all its policies are removed. |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame^] | 442 | operationId: keepAliveService |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 443 | parameters: |
| 444 | - name: service_id |
| 445 | in: path |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 446 | required: true |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 447 | style: simple |
| 448 | explode: false |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 449 | schema: |
| 450 | type: string |
| 451 | responses: |
| 452 | 200: |
| 453 | description: Service supervision timer refreshed, OK |
| 454 | content: |
| 455 | '*/*': |
| 456 | schema: |
| 457 | type: object |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 458 | 404: |
| 459 | description: The service is not found, needs re-registration |
| 460 | content: |
| 461 | '*/*': |
| 462 | schema: |
| 463 | $ref: '#/components/schemas/error_information' |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 464 | /actuator/metrics: |
| 465 | get: |
| 466 | tags: |
| 467 | - Actuator |
| 468 | summary: Actuator web endpoint 'metrics' |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame^] | 469 | operationId: metrics_2 |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 470 | responses: |
| 471 | 200: |
| 472 | description: OK |
| 473 | content: |
| 474 | '*/*': |
| 475 | schema: |
| 476 | type: object |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 477 | /a1-policy/v2/rics: |
| 478 | get: |
| 479 | tags: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 480 | - NearRT-RIC Repository |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 481 | summary: Query Near-RT RIC information |
| 482 | description: The call returns all Near-RT RICs that supports a given policy |
| 483 | type identity |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame^] | 484 | operationId: getRics |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 485 | parameters: |
| 486 | - name: policytype_id |
| 487 | in: query |
| 488 | description: The identity of a policy type. If given, all Near-RT RICs supporteing |
| 489 | the policy type are returned |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 490 | required: false |
| 491 | style: form |
| 492 | explode: true |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 493 | schema: |
| 494 | type: string |
| 495 | responses: |
| 496 | 200: |
| 497 | description: OK |
| 498 | content: |
| 499 | application/json: |
| 500 | schema: |
| 501 | $ref: '#/components/schemas/ric_info_list_v2' |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 502 | 404: |
| 503 | description: Policy type is not found |
| 504 | content: |
| 505 | application/json: |
| 506 | schema: |
| 507 | $ref: '#/components/schemas/error_information' |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 508 | /a1-policy/v2/services: |
| 509 | get: |
| 510 | tags: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 511 | - Service Registry and Supervision |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 512 | summary: Returns service information |
| 513 | description: Either information about a registered service with given identity |
| 514 | or all registered services are returned. |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame^] | 515 | operationId: getServices |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 516 | parameters: |
| 517 | - name: service_id |
| 518 | in: query |
| 519 | description: The identity of the service |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 520 | required: false |
| 521 | style: form |
| 522 | explode: true |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 523 | schema: |
| 524 | type: string |
| 525 | responses: |
| 526 | 200: |
| 527 | description: OK |
| 528 | content: |
| 529 | application/json: |
| 530 | schema: |
| 531 | $ref: '#/components/schemas/service_list_v2' |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 532 | 404: |
| 533 | description: Service is not found |
| 534 | content: |
| 535 | application/json: |
| 536 | schema: |
| 537 | $ref: '#/components/schemas/error_information' |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 538 | put: |
| 539 | tags: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 540 | - Service Registry and Supervision |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 541 | summary: Register a service |
| 542 | description: Registering a service is needed to:<ul><li>Get callbacks.</li><li>Activate |
| 543 | supervision of the service. If a service is inactive, its policies will be |
| 544 | deleted.</li></ul> |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame^] | 545 | operationId: putService |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 546 | requestBody: |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 547 | content: |
| 548 | application/json: |
| 549 | schema: |
| 550 | $ref: '#/components/schemas/service_registration_info_v2' |
| 551 | required: true |
| 552 | responses: |
| 553 | 200: |
| 554 | description: Service updated |
| 555 | content: |
| 556 | '*/*': |
| 557 | schema: |
| 558 | type: object |
| 559 | 201: |
| 560 | description: Service created |
| 561 | content: |
| 562 | '*/*': |
| 563 | schema: |
| 564 | type: object |
| 565 | 400: |
| 566 | description: The ServiceRegistrationInfo is not accepted |
| 567 | content: |
| 568 | '*/*': |
| 569 | schema: |
| 570 | $ref: '#/components/schemas/error_information' |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 571 | /actuator/info: |
| 572 | get: |
| 573 | tags: |
| 574 | - Actuator |
| 575 | summary: Actuator web endpoint 'info' |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame^] | 576 | operationId: info_2 |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 577 | responses: |
| 578 | 200: |
| 579 | description: OK |
| 580 | content: |
| 581 | '*/*': |
| 582 | schema: |
| 583 | type: object |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 584 | /status: |
| 585 | get: |
| 586 | tags: |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame^] | 587 | - Health Check |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 588 | summary: Returns status and statistics of this service |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame^] | 589 | operationId: getStatusV1 |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 590 | responses: |
| 591 | 200: |
| 592 | description: Service is living |
| 593 | content: |
| 594 | '*/*': |
| 595 | schema: |
| 596 | type: string |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 597 | /a1-policy/v2/policy-types/{policytype_id}: |
| 598 | get: |
| 599 | tags: |
| 600 | - A1 Policy Management |
| 601 | summary: Returns a policy type definition |
| 602 | operationId: getPolicyType |
| 603 | parameters: |
| 604 | - name: policytype_id |
| 605 | in: path |
| 606 | required: true |
| 607 | style: simple |
| 608 | explode: false |
| 609 | schema: |
| 610 | type: string |
| 611 | responses: |
| 612 | 200: |
| 613 | description: Policy type |
| 614 | content: |
| 615 | '*/*': |
| 616 | schema: |
| 617 | $ref: '#/components/schemas/policytype_v2' |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 618 | 404: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 619 | description: Policy type is not found |
| 620 | content: |
| 621 | '*/*': |
| 622 | schema: |
| 623 | $ref: '#/components/schemas/error_information' |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 624 | /actuator/logfile: |
| 625 | get: |
| 626 | tags: |
| 627 | - Actuator |
| 628 | summary: Actuator web endpoint 'logfile' |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame^] | 629 | operationId: logfile_2 |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 630 | responses: |
| 631 | 200: |
| 632 | description: OK |
| 633 | content: |
| 634 | '*/*': |
| 635 | schema: |
| 636 | type: object |
| 637 | /actuator/health: |
| 638 | get: |
| 639 | tags: |
| 640 | - Actuator |
| 641 | summary: Actuator web endpoint 'health' |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame^] | 642 | operationId: health_2 |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 643 | responses: |
| 644 | 200: |
| 645 | description: OK |
| 646 | content: |
| 647 | '*/*': |
| 648 | schema: |
| 649 | type: object |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 650 | /a1-policy/v2/policies: |
| 651 | get: |
| 652 | tags: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 653 | - A1 Policy Management |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 654 | summary: Query policy identities |
| 655 | description: Returns a list of A1 policies matching given search criteria. <br>If |
| 656 | several query parameters are defined, the policies matching all conditions |
| 657 | are returned. |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame^] | 658 | operationId: getPolicyIds |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 659 | parameters: |
| 660 | - name: policytype_id |
| 661 | in: query |
PatrikBuhr | 3b916e4 | 2021-10-07 18:03:53 +0200 | [diff] [blame] | 662 | description: Select policies of a given policy type identity. |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 663 | required: false |
| 664 | style: form |
| 665 | explode: true |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 666 | schema: |
| 667 | type: string |
| 668 | - name: ric_id |
| 669 | in: query |
PatrikBuhr | 3b916e4 | 2021-10-07 18:03:53 +0200 | [diff] [blame] | 670 | description: Select policies of a given Near-RT RIC identity. |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 671 | required: false |
| 672 | style: form |
| 673 | explode: true |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 674 | schema: |
| 675 | type: string |
| 676 | - name: service_id |
| 677 | in: query |
PatrikBuhr | 3b916e4 | 2021-10-07 18:03:53 +0200 | [diff] [blame] | 678 | description: Select policies owned by a given service. |
| 679 | required: false |
| 680 | style: form |
| 681 | explode: true |
| 682 | schema: |
| 683 | type: string |
| 684 | - name: type_name |
| 685 | in: query |
| 686 | description: Select policies of types with the given type name (type identity |
| 687 | has the format <typename_version>) |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 688 | required: false |
| 689 | style: form |
| 690 | explode: true |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 691 | schema: |
| 692 | type: string |
| 693 | responses: |
| 694 | 200: |
| 695 | description: Policy identities |
| 696 | content: |
| 697 | application/json: |
| 698 | schema: |
| 699 | $ref: '#/components/schemas/policy_id_list_v2' |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 700 | 404: |
| 701 | description: Near-RT RIC or type not found |
| 702 | content: |
| 703 | application/json: |
| 704 | schema: |
| 705 | $ref: '#/components/schemas/error_information' |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 706 | put: |
| 707 | tags: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 708 | - A1 Policy Management |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 709 | summary: Create or update a policy |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame^] | 710 | operationId: putPolicy |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 711 | requestBody: |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 712 | content: |
| 713 | application/json: |
| 714 | schema: |
| 715 | $ref: '#/components/schemas/policy_info_v2' |
| 716 | required: true |
| 717 | responses: |
| 718 | 200: |
| 719 | description: Policy updated |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 720 | content: |
| 721 | application/json: |
| 722 | schema: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 723 | $ref: '#/components/schemas/void' |
| 724 | 201: |
| 725 | description: Policy created |
| 726 | content: |
| 727 | application/json: |
| 728 | schema: |
| 729 | $ref: '#/components/schemas/void' |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 730 | 423: |
| 731 | description: Near-RT RIC is not operational |
| 732 | content: |
| 733 | application/json: |
| 734 | schema: |
| 735 | $ref: '#/components/schemas/error_information' |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 736 | 404: |
| 737 | description: Near-RT RIC or policy type is not found |
| 738 | content: |
| 739 | application/json: |
| 740 | schema: |
| 741 | $ref: '#/components/schemas/error_information' |
| 742 | /r-app/near-rt-ric-status: |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 743 | post: |
| 744 | tags: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 745 | - Callbacks |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 746 | summary: Callback for Near-RT RIC status |
| 747 | description: The URL to this call is registerred at Service registration. |
PatrikBuhr | 25d7850 | 2021-04-28 08:42:13 +0200 | [diff] [blame] | 748 | operationId: serviceCallback |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 749 | requestBody: |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 750 | content: |
| 751 | application/json: |
| 752 | schema: |
| 753 | $ref: '#/components/schemas/service_callback_info_v2' |
| 754 | required: true |
| 755 | responses: |
| 756 | 200: |
| 757 | description: OK |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 758 | content: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 759 | application/json: |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 760 | schema: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 761 | $ref: '#/components/schemas/void' |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 762 | /a1-policy/v2/services/{service_id}: |
| 763 | delete: |
| 764 | tags: |
| 765 | - Service Registry and Supervision |
| 766 | summary: Unregister a service |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame^] | 767 | operationId: deleteService |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 768 | parameters: |
| 769 | - name: service_id |
| 770 | in: path |
| 771 | required: true |
| 772 | style: simple |
| 773 | explode: false |
| 774 | schema: |
| 775 | type: string |
| 776 | responses: |
| 777 | 200: |
| 778 | description: Not used |
| 779 | content: |
| 780 | '*/*': |
| 781 | schema: |
| 782 | $ref: '#/components/schemas/void' |
| 783 | 204: |
| 784 | description: Service unregistered |
| 785 | content: |
| 786 | '*/*': |
| 787 | schema: |
| 788 | type: object |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 789 | 404: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 790 | description: Service not found |
| 791 | content: |
| 792 | '*/*': |
| 793 | schema: |
| 794 | $ref: '#/components/schemas/error_information' |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 795 | /a1-policy/v2/policies/{policy_id}/status: |
| 796 | get: |
| 797 | tags: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 798 | - A1 Policy Management |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 799 | summary: Returns a policy status |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame^] | 800 | operationId: getPolicyStatus |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 801 | parameters: |
| 802 | - name: policy_id |
| 803 | in: path |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 804 | required: true |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 805 | style: simple |
| 806 | explode: false |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 807 | schema: |
| 808 | type: string |
| 809 | responses: |
| 810 | 200: |
| 811 | description: Policy status |
| 812 | content: |
| 813 | application/json: |
| 814 | schema: |
| 815 | $ref: '#/components/schemas/policy_status_info_v2' |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 816 | 404: |
| 817 | description: Policy is not found |
| 818 | content: |
| 819 | application/json: |
| 820 | schema: |
| 821 | $ref: '#/components/schemas/error_information' |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 822 | /actuator/heapdump: |
| 823 | get: |
| 824 | tags: |
| 825 | - Actuator |
| 826 | summary: Actuator web endpoint 'heapdump' |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame^] | 827 | operationId: heapdump_2 |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 828 | responses: |
| 829 | 200: |
| 830 | description: OK |
| 831 | content: |
| 832 | '*/*': |
| 833 | schema: |
| 834 | type: object |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 835 | components: |
| 836 | schemas: |
| 837 | error_information: |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 838 | type: object |
| 839 | properties: |
| 840 | detail: |
| 841 | type: string |
| 842 | description: ' A human-readable explanation specific to this occurrence |
| 843 | of the problem.' |
| 844 | example: Policy type not found |
| 845 | status: |
| 846 | type: integer |
| 847 | description: 'The HTTP status code generated by the origin server for this |
| 848 | occurrence of the problem. ' |
| 849 | format: int32 |
PatrikBuhr | 3b916e4 | 2021-10-07 18:03:53 +0200 | [diff] [blame] | 850 | example: 404 |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 851 | description: Problem as defined in https://tools.ietf.org/html/rfc7807 |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 852 | void: |
| 853 | type: object |
| 854 | description: Void/empty |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 855 | status_info_v2: |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 856 | type: object |
| 857 | properties: |
| 858 | status: |
| 859 | type: string |
| 860 | description: status text |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 861 | ric_info_v2: |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 862 | type: object |
| 863 | properties: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 864 | ric_id: |
| 865 | type: string |
| 866 | description: identity of the Near-RT RIC |
| 867 | managed_element_ids: |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 868 | type: array |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 869 | description: O1 identities for managed entities |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 870 | items: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 871 | type: string |
| 872 | description: O1 identities for managed entities |
| 873 | state: |
| 874 | type: string |
| 875 | description: Represents the states for a Near-RT RIC |
| 876 | enum: |
| 877 | - UNAVAILABLE |
| 878 | - AVAILABLE |
| 879 | - SYNCHRONIZING |
| 880 | - CONSISTENCY_CHECK |
| 881 | policytype_ids: |
| 882 | type: array |
| 883 | description: supported policy types |
| 884 | items: |
| 885 | type: string |
| 886 | description: supported policy types |
| 887 | description: Information for a Near-RT RIC |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 888 | service_registration_info_v2: |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 889 | required: |
| 890 | - service_id |
| 891 | type: object |
| 892 | properties: |
| 893 | callback_url: |
| 894 | type: string |
| 895 | description: callback for notifying of Near-RT RIC state changes |
| 896 | service_id: |
| 897 | type: string |
| 898 | description: identity of the service |
| 899 | keep_alive_interval_seconds: |
| 900 | type: integer |
| 901 | description: keep alive interval for the service. This is a heartbeat supervision |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 902 | of the service, which in regular intevals must invoke a 'keepalive' REST |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 903 | call. When a service does not invoke this call within the given time, |
| 904 | it is considered unavailble. An unavailable service will be automatically |
| 905 | deregistered and its policies will be deleted. Value 0 means no timeout |
| 906 | supervision. |
| 907 | format: int64 |
| 908 | description: Information for one service |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 909 | policy_info_list_v2: |
| 910 | type: object |
| 911 | properties: |
| 912 | policies: |
| 913 | type: array |
| 914 | description: List of policy information |
| 915 | items: |
| 916 | $ref: '#/components/schemas/policy_info_v2' |
| 917 | description: List of policy information |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 918 | policy_status_info_v2: |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 919 | type: object |
| 920 | properties: |
| 921 | last_modified: |
| 922 | type: string |
| 923 | description: timestamp, last modification time |
| 924 | status: |
| 925 | type: object |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 926 | description: the Policy status |
| 927 | description: Status for one A1-P Policy |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 928 | service_status_v2: |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 929 | type: object |
| 930 | properties: |
| 931 | callback_url: |
| 932 | type: string |
| 933 | description: callback for notifying of RIC synchronization |
| 934 | service_id: |
| 935 | type: string |
| 936 | description: identity of the service |
| 937 | keep_alive_interval_seconds: |
| 938 | type: integer |
| 939 | description: policy keep alive timeout |
| 940 | format: int64 |
| 941 | time_since_last_activity_seconds: |
| 942 | type: integer |
| 943 | description: time since last invocation by the service |
| 944 | format: int64 |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 945 | description: List of service information |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 946 | ric_info_list_v2: |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 947 | type: object |
| 948 | properties: |
| 949 | rics: |
| 950 | type: array |
| 951 | description: List of Near-RT RIC information |
| 952 | items: |
| 953 | $ref: '#/components/schemas/ric_info_v2' |
| 954 | description: List of Near-RT RIC information |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 955 | policytype_v2: |
| 956 | type: object |
| 957 | properties: |
| 958 | policy_schema: |
| 959 | type: object |
| 960 | description: Policy type json scema. The schema is a json object following |
| 961 | http://json-schema.org/draft-07/schema |
| 962 | description: Policy type |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 963 | policytype_id_list_v2: |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 964 | type: object |
| 965 | properties: |
| 966 | policytype_ids: |
| 967 | type: array |
| 968 | description: Policy type identities |
| 969 | items: |
| 970 | type: string |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 971 | description: Policy type identities |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 972 | description: Information about policy types |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 973 | policy_info_v2: |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 974 | required: |
| 975 | - policy_data |
| 976 | - policy_id |
| 977 | - policytype_id |
| 978 | - ric_id |
| 979 | - service_id |
| 980 | type: object |
| 981 | properties: |
| 982 | ric_id: |
| 983 | type: string |
| 984 | description: identity of the target Near-RT RIC |
| 985 | policy_id: |
| 986 | type: string |
| 987 | description: identity of the policy |
| 988 | transient: |
| 989 | type: boolean |
| 990 | description: if true, the policy is deleted at RIC restart. If false, its |
| 991 | value is maintained by this service until explicitly deleted. Default |
| 992 | false. |
| 993 | service_id: |
| 994 | type: string |
PatrikBuhr | 3b916e4 | 2021-10-07 18:03:53 +0200 | [diff] [blame] | 995 | description: the identity of the service owning the policy |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 996 | policy_data: |
| 997 | type: object |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 998 | description: the configuration of the policy |
| 999 | status_notification_uri: |
| 1000 | type: string |
| 1001 | description: Callback URI for policy status updates |
| 1002 | policytype_id: |
| 1003 | type: string |
| 1004 | description: identity of the policy type |
| 1005 | description: Information for one A1-P Policy |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1006 | policy_id_list_v2: |
| 1007 | type: object |
| 1008 | properties: |
| 1009 | policy_ids: |
| 1010 | type: array |
| 1011 | description: Policy identities |
| 1012 | items: |
| 1013 | type: string |
| 1014 | description: Policy identities |
| 1015 | description: A list of policy identities |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 1016 | service_list_v2: |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 1017 | type: object |
| 1018 | properties: |
| 1019 | service_list: |
| 1020 | type: array |
| 1021 | description: List of service information |
| 1022 | items: |
| 1023 | $ref: '#/components/schemas/service_status_v2' |
| 1024 | description: List of service information |
| 1025 | service_callback_info_v2: |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 1026 | required: |
| 1027 | - event_type |
| 1028 | - ric_id |
| 1029 | type: object |
| 1030 | properties: |
| 1031 | ric_id: |
| 1032 | type: string |
| 1033 | description: identity of a Near-RT RIC |
| 1034 | event_type: |
| 1035 | type: string |
| 1036 | description: |- |
| 1037 | values: |
| 1038 | AVAILABLE: the Near-RT RIC has become available for A1 Policy management |
| 1039 | enum: |
| 1040 | - AVAILABLE |
| 1041 | description: Information transferred as in Service callbacks (callback_url) |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 1042 | Link: |
| 1043 | type: object |
| 1044 | properties: |
| 1045 | templated: |
| 1046 | type: boolean |
| 1047 | href: |
| 1048 | type: string |