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: |
| 24 | name: Copyright (C) 2020 Nordix Foundation. Licensed under the Apache License. |
| 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 | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 30 | - name: A1 Policy Management V1.0 |
| 31 | description: (deprecated primitves) |
| 32 | - name: Management of configuration |
| 33 | - name: A1 Policy Management |
| 34 | - name: NearRT-RIC Repository |
| 35 | - name: Service Registry and Supervision |
| 36 | - name: Health Check |
| 37 | - name: Callbacks |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 38 | paths: |
| 39 | /policy_types: |
| 40 | get: |
| 41 | tags: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 42 | - A1 Policy Management V1.0 |
PatrikBuhr | 3b916e4 | 2021-10-07 18:03:53 +0200 | [diff] [blame^] | 43 | summary: Query policy type identities |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 44 | operationId: getPolicyTypes |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 45 | parameters: |
| 46 | - name: ric |
| 47 | in: query |
| 48 | description: The name of the Near-RT RIC to get types for. |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 49 | required: false |
| 50 | style: form |
| 51 | explode: true |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 52 | schema: |
| 53 | type: string |
| 54 | responses: |
| 55 | 200: |
PatrikBuhr | 3b916e4 | 2021-10-07 18:03:53 +0200 | [diff] [blame^] | 56 | description: Policy type identities |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 57 | content: |
| 58 | '*/*': |
| 59 | schema: |
| 60 | type: array |
| 61 | items: |
| 62 | type: string |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 63 | 404: |
| 64 | description: Near-RT RIC is not found |
| 65 | content: |
| 66 | '*/*': |
| 67 | schema: |
| 68 | $ref: '#/components/schemas/error_information' |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 69 | /a1-policy/v2/policy-instances: |
| 70 | get: |
| 71 | tags: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 72 | - A1 Policy Management |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 73 | summary: Query for A1 policy instances |
| 74 | description: Returns a list of A1 policies matching given search criteria. <br>If |
| 75 | several query parameters are defined, the policies matching all conditions |
| 76 | are returned. |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 77 | operationId: getPolicyInstances |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 78 | parameters: |
| 79 | - name: policytype_id |
| 80 | in: query |
PatrikBuhr | 3b916e4 | 2021-10-07 18:03:53 +0200 | [diff] [blame^] | 81 | description: Select policies with a given type identity. |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 82 | required: false |
| 83 | style: form |
| 84 | explode: true |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 85 | schema: |
| 86 | type: string |
| 87 | - name: ric_id |
| 88 | in: query |
PatrikBuhr | 3b916e4 | 2021-10-07 18:03:53 +0200 | [diff] [blame^] | 89 | description: Select policies for a given Near-RT RIC identity. |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 90 | required: false |
| 91 | style: form |
| 92 | explode: true |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 93 | schema: |
| 94 | type: string |
| 95 | - name: service_id |
| 96 | in: query |
PatrikBuhr | 3b916e4 | 2021-10-07 18:03:53 +0200 | [diff] [blame^] | 97 | description: Select policies owned by a given service. |
| 98 | required: false |
| 99 | style: form |
| 100 | explode: true |
| 101 | schema: |
| 102 | type: string |
| 103 | - name: type_name |
| 104 | in: query |
| 105 | description: Select policies of a given type name (type identity has the format |
| 106 | <typename_version>) |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 107 | required: false |
| 108 | style: form |
| 109 | explode: true |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 110 | schema: |
| 111 | type: string |
| 112 | responses: |
| 113 | 200: |
| 114 | description: Policies |
| 115 | content: |
| 116 | application/json: |
| 117 | schema: |
| 118 | $ref: '#/components/schemas/policy_info_list_v2' |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 119 | 404: |
| 120 | description: Near-RT RIC, policy type or service not found |
| 121 | content: |
| 122 | application/json: |
| 123 | schema: |
| 124 | $ref: '#/components/schemas/error_information' |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 125 | /a1-policy/v2/status: |
| 126 | get: |
| 127 | tags: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 128 | - Health Check |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 129 | summary: Returns status and statistics of this service |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 130 | operationId: getStatus_1 |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 131 | responses: |
| 132 | 200: |
| 133 | description: Service is living |
| 134 | content: |
| 135 | application/json: |
| 136 | schema: |
| 137 | $ref: '#/components/schemas/status_info_v2' |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 138 | /services: |
| 139 | get: |
| 140 | tags: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 141 | - A1 Policy Management V1.0 |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 142 | summary: Returns service information |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 143 | operationId: getServices |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 144 | parameters: |
| 145 | - name: name |
| 146 | in: query |
| 147 | description: The name of the service |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 148 | required: false |
| 149 | style: form |
| 150 | explode: true |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 151 | schema: |
| 152 | type: string |
| 153 | responses: |
| 154 | 200: |
| 155 | description: OK |
| 156 | content: |
| 157 | '*/*': |
| 158 | schema: |
| 159 | type: array |
| 160 | items: |
| 161 | $ref: '#/components/schemas/service_status_v1' |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 162 | 404: |
| 163 | description: Service is not found |
| 164 | content: |
| 165 | '*/*': |
| 166 | schema: |
| 167 | type: string |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 168 | delete: |
| 169 | tags: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 170 | - A1 Policy Management V1.0 |
PatrikBuhr | b28e811 | 2021-04-14 20:16:35 +0200 | [diff] [blame] | 171 | summary: Unregister a service |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 172 | operationId: deleteService |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 173 | parameters: |
| 174 | - name: name |
| 175 | in: query |
| 176 | description: The name of the service |
| 177 | required: true |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 178 | style: form |
| 179 | explode: true |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 180 | schema: |
| 181 | type: string |
| 182 | responses: |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 183 | 204: |
PatrikBuhr | b28e811 | 2021-04-14 20:16:35 +0200 | [diff] [blame] | 184 | description: Service unregistered |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 185 | content: |
| 186 | '*/*': |
| 187 | schema: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 188 | $ref: '#/components/schemas/void' |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 189 | 404: |
| 190 | description: Service not found |
| 191 | content: |
| 192 | '*/*': |
| 193 | schema: |
| 194 | type: string |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 195 | /a1-policy/v2/rics/ric: |
| 196 | get: |
| 197 | tags: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 198 | - NearRT-RIC Repository |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 199 | summary: Returns info for one Near-RT RIC |
| 200 | description: Either a Near-RT RIC identity or a Mananged Element identity can |
| 201 | be specified.<br>The intention with Mananged Element identity is the ID used |
| 202 | in O1 for accessing the traffical element (such as the ID of CU). |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 203 | operationId: getRic_1 |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 204 | parameters: |
| 205 | - name: managed_element_id |
| 206 | in: query |
| 207 | description: The identity of a Managed Element. If given, the Near-RT RIC |
| 208 | managing the ME is returned. |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 209 | required: false |
| 210 | style: form |
| 211 | explode: true |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 212 | schema: |
| 213 | type: string |
| 214 | - name: ric_id |
| 215 | in: query |
| 216 | description: The identity of a Near-RT RIC to get information for. |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 217 | required: false |
| 218 | style: form |
| 219 | explode: true |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 220 | schema: |
| 221 | type: string |
| 222 | responses: |
| 223 | 200: |
| 224 | description: Near-RT RIC is found |
| 225 | content: |
| 226 | application/json: |
| 227 | schema: |
| 228 | $ref: '#/components/schemas/ric_info_v2' |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 229 | 404: |
| 230 | description: Near-RT RIC is not found |
| 231 | content: |
| 232 | application/json: |
| 233 | schema: |
| 234 | $ref: '#/components/schemas/error_information' |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 235 | /a1-policy/v2/policy-types: |
| 236 | get: |
| 237 | tags: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 238 | - A1 Policy Management |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 239 | summary: Query policy type identities |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 240 | operationId: getPolicyTypes_1 |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 241 | parameters: |
| 242 | - name: ric_id |
| 243 | in: query |
PatrikBuhr | 3b916e4 | 2021-10-07 18:03:53 +0200 | [diff] [blame^] | 244 | description: Select types for the given Near-RT RIC identity. |
| 245 | required: false |
| 246 | style: form |
| 247 | explode: true |
| 248 | schema: |
| 249 | type: string |
| 250 | - name: type_name |
| 251 | in: query |
| 252 | description: Select types with the given type name (type identity has the |
| 253 | format <typename_version>) |
| 254 | required: false |
| 255 | style: form |
| 256 | explode: true |
| 257 | schema: |
| 258 | type: string |
| 259 | - name: regexp |
| 260 | in: query |
| 261 | description: Select types with type identity that matches a regular expression. |
| 262 | required: false |
| 263 | style: form |
| 264 | explode: true |
| 265 | schema: |
| 266 | type: string |
| 267 | - name: compatible_with_version |
| 268 | in: query |
| 269 | description: Select types that are compatible with the given version. This |
| 270 | parameter is only applicable in conjunction with type_name. As an example |
| 271 | version 1.9.1 is compatible with 1.0.0 but not the other way around. |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 272 | required: false |
| 273 | style: form |
| 274 | explode: true |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 275 | schema: |
| 276 | type: string |
| 277 | responses: |
| 278 | 200: |
| 279 | description: Policy type IDs |
| 280 | content: |
| 281 | application/json: |
| 282 | schema: |
| 283 | $ref: '#/components/schemas/policytype_id_list_v2' |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 284 | 404: |
| 285 | description: Near-RT RIC is not found |
| 286 | content: |
| 287 | application/json: |
| 288 | schema: |
| 289 | $ref: '#/components/schemas/error_information' |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 290 | /a1-policy/v2/policies/{policy_id}: |
| 291 | get: |
| 292 | tags: |
| 293 | - A1 Policy Management |
| 294 | summary: Returns a policy |
| 295 | operationId: getPolicy_1 |
| 296 | parameters: |
| 297 | - name: policy_id |
| 298 | in: path |
| 299 | required: true |
| 300 | style: simple |
| 301 | explode: false |
| 302 | schema: |
| 303 | type: string |
| 304 | responses: |
| 305 | 200: |
| 306 | description: Policy found |
| 307 | content: |
| 308 | application/json: |
| 309 | schema: |
| 310 | $ref: '#/components/schemas/policy_info_v2' |
| 311 | 404: |
| 312 | description: Policy is not found |
| 313 | content: |
| 314 | application/json: |
| 315 | schema: |
| 316 | $ref: '#/components/schemas/error_information' |
| 317 | delete: |
| 318 | tags: |
| 319 | - A1 Policy Management |
| 320 | summary: Delete a policy |
| 321 | operationId: deletePolicy_1 |
| 322 | parameters: |
| 323 | - name: policy_id |
| 324 | in: path |
| 325 | required: true |
| 326 | style: simple |
| 327 | explode: false |
| 328 | schema: |
| 329 | type: string |
| 330 | responses: |
| 331 | 200: |
| 332 | description: Not used |
| 333 | content: |
| 334 | '*/*': |
| 335 | schema: |
| 336 | $ref: '#/components/schemas/void' |
| 337 | 423: |
| 338 | description: Near-RT RIC is not operational |
| 339 | content: |
| 340 | '*/*': |
| 341 | schema: |
| 342 | $ref: '#/components/schemas/error_information' |
| 343 | 204: |
| 344 | description: Policy deleted |
| 345 | content: |
| 346 | '*/*': |
| 347 | schema: |
| 348 | $ref: '#/components/schemas/void' |
| 349 | 404: |
| 350 | description: Policy is not found |
| 351 | content: |
| 352 | '*/*': |
| 353 | schema: |
| 354 | $ref: '#/components/schemas/error_information' |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 355 | /a1-policy/v2/configuration: |
| 356 | get: |
| 357 | tags: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 358 | - Management of configuration |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 359 | summary: Returns the contents of the configuration file |
| 360 | 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] | 361 | operationId: getConfiguration |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 362 | responses: |
| 363 | 200: |
| 364 | description: Configuration |
| 365 | content: |
| 366 | application/json: |
| 367 | schema: |
| 368 | type: object |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 369 | 404: |
| 370 | description: File is not found or readable |
| 371 | content: |
| 372 | application/json: |
| 373 | schema: |
| 374 | $ref: '#/components/schemas/error_information' |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 375 | put: |
| 376 | tags: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 377 | - Management of configuration |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 378 | summary: Replace the current configuration file with the given configuration |
| 379 | description: Note that the file is ignored if the Consul is used. |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 380 | operationId: putConfiguration |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 381 | requestBody: |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 382 | content: |
| 383 | application/json: |
| 384 | schema: |
| 385 | type: object |
| 386 | required: true |
| 387 | responses: |
| 388 | 200: |
| 389 | description: Configuration updated |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 390 | content: |
| 391 | '*/*': |
| 392 | schema: |
| 393 | $ref: '#/components/schemas/void' |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 394 | 400: |
| 395 | description: Invalid configuration provided |
| 396 | content: |
| 397 | '*/*': |
| 398 | schema: |
| 399 | $ref: '#/components/schemas/error_information' |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 400 | 500: |
| 401 | description: Something went wrong when replacing the configuration. Try |
| 402 | again. |
| 403 | content: |
| 404 | '*/*': |
| 405 | schema: |
| 406 | $ref: '#/components/schemas/error_information' |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 407 | /policy: |
| 408 | get: |
| 409 | tags: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 410 | - A1 Policy Management V1.0 |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 411 | summary: Returns a policy configuration |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 412 | operationId: getPolicy |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 413 | parameters: |
| 414 | - name: id |
| 415 | in: query |
| 416 | description: The identity of the policy instance. |
| 417 | required: true |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 418 | style: form |
| 419 | explode: true |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 420 | schema: |
| 421 | type: string |
| 422 | responses: |
| 423 | 200: |
| 424 | description: Policy found |
| 425 | content: |
| 426 | '*/*': |
| 427 | schema: |
| 428 | type: object |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 429 | 404: |
| 430 | description: Policy is not found |
| 431 | content: |
| 432 | '*/*': |
| 433 | schema: |
| 434 | $ref: '#/components/schemas/error_information' |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 435 | put: |
| 436 | tags: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 437 | - A1 Policy Management V1.0 |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 438 | summary: Put a policy |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 439 | operationId: putPolicy |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 440 | parameters: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 441 | - name: type |
| 442 | in: query |
| 443 | description: The name of the policy type. |
| 444 | required: false |
| 445 | style: form |
| 446 | explode: true |
| 447 | schema: |
| 448 | type: string |
| 449 | default: "" |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 450 | - name: id |
| 451 | in: query |
| 452 | description: The identity of the policy instance. |
| 453 | required: true |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 454 | style: form |
| 455 | explode: true |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 456 | schema: |
| 457 | type: string |
| 458 | - name: ric |
| 459 | in: query |
| 460 | description: The name of the Near-RT RIC where the policy will be created. |
| 461 | required: true |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 462 | style: form |
| 463 | explode: true |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 464 | schema: |
| 465 | type: string |
| 466 | - name: service |
| 467 | in: query |
| 468 | description: The name of the service creating the policy. |
| 469 | required: true |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 470 | style: form |
| 471 | explode: true |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 472 | schema: |
| 473 | type: string |
| 474 | - name: transient |
| 475 | in: query |
| 476 | description: If the policy is transient or not (boolean defaulted to false). |
| 477 | A policy is transient if it will be forgotten when the service needs to |
| 478 | reconnect to the Near-RT RIC. |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 479 | required: false |
| 480 | style: form |
| 481 | explode: true |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 482 | schema: |
| 483 | type: boolean |
| 484 | default: false |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 485 | requestBody: |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 486 | content: |
| 487 | application/json: |
| 488 | schema: |
| 489 | type: object |
| 490 | required: true |
| 491 | responses: |
| 492 | 200: |
| 493 | description: Policy updated |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 494 | content: |
| 495 | '*/*': |
| 496 | schema: |
| 497 | $ref: '#/components/schemas/void' |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 498 | 201: |
| 499 | description: Policy created |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 500 | content: |
| 501 | '*/*': |
| 502 | schema: |
| 503 | $ref: '#/components/schemas/void' |
| 504 | 423: |
| 505 | description: Near-RT RIC is not operational |
| 506 | content: |
| 507 | '*/*': |
| 508 | schema: |
| 509 | type: string |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 510 | 404: |
| 511 | description: Near-RT RIC or policy type is not found |
| 512 | content: |
| 513 | '*/*': |
| 514 | schema: |
| 515 | type: string |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 516 | delete: |
| 517 | tags: |
| 518 | - A1 Policy Management V1.0 |
| 519 | summary: Delete a policy |
| 520 | operationId: deletePolicy |
| 521 | parameters: |
| 522 | - name: id |
| 523 | in: query |
| 524 | description: The identity of the policy instance. |
| 525 | required: true |
| 526 | style: form |
| 527 | explode: true |
| 528 | schema: |
| 529 | type: string |
| 530 | responses: |
| 531 | 200: |
| 532 | description: Not used |
| 533 | content: |
| 534 | '*/*': |
| 535 | schema: |
| 536 | $ref: '#/components/schemas/void' |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 537 | 423: |
| 538 | description: Near-RT RIC is not operational |
| 539 | content: |
| 540 | '*/*': |
| 541 | schema: |
| 542 | type: string |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 543 | 204: |
| 544 | description: Policy deleted |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 545 | content: |
| 546 | '*/*': |
| 547 | schema: |
| 548 | $ref: '#/components/schemas/void' |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 549 | 404: |
| 550 | description: Policy is not found |
| 551 | content: |
| 552 | '*/*': |
| 553 | schema: |
| 554 | type: string |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 555 | /policies: |
| 556 | get: |
| 557 | tags: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 558 | - A1 Policy Management V1.0 |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 559 | summary: Query policies |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 560 | operationId: getPolicies |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 561 | parameters: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 562 | - name: type |
| 563 | in: query |
| 564 | description: The name of the policy type to get policies for. |
| 565 | required: false |
| 566 | style: form |
| 567 | explode: true |
| 568 | schema: |
| 569 | type: string |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 570 | - name: ric |
| 571 | in: query |
| 572 | description: The name of the Near-RT RIC to get policies for. |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 573 | required: false |
| 574 | style: form |
| 575 | explode: true |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 576 | schema: |
| 577 | type: string |
| 578 | - name: service |
| 579 | in: query |
| 580 | description: The name of the service to get policies for. |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 581 | required: false |
| 582 | style: form |
| 583 | explode: true |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 584 | schema: |
| 585 | type: string |
| 586 | responses: |
| 587 | 200: |
| 588 | description: Policies |
| 589 | content: |
| 590 | '*/*': |
| 591 | schema: |
| 592 | type: array |
| 593 | items: |
| 594 | $ref: '#/components/schemas/policy_info_v1' |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 595 | 404: |
| 596 | description: Near-RT RIC or type not found |
| 597 | content: |
| 598 | '*/*': |
| 599 | schema: |
| 600 | type: string |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 601 | /a1-policy/v2/services/{service_id}/keepalive: |
| 602 | put: |
| 603 | tags: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 604 | - Service Registry and Supervision |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 605 | summary: Heartbeat indicates that the service is running |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 606 | description: A registerred service must call this in regular intervals to indicate |
| 607 | that it is in operation. Absence of this call will lead to that teh service |
| 608 | will be deregisterred and all its policies are removed. |
| 609 | operationId: keepAliveService_1 |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 610 | parameters: |
| 611 | - name: service_id |
| 612 | in: path |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 613 | required: true |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 614 | style: simple |
| 615 | explode: false |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 616 | schema: |
| 617 | type: string |
| 618 | responses: |
| 619 | 200: |
| 620 | description: Service supervision timer refreshed, OK |
| 621 | content: |
| 622 | '*/*': |
| 623 | schema: |
| 624 | type: object |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 625 | 404: |
| 626 | description: The service is not found, needs re-registration |
| 627 | content: |
| 628 | '*/*': |
| 629 | schema: |
| 630 | $ref: '#/components/schemas/error_information' |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 631 | /rics: |
| 632 | get: |
| 633 | tags: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 634 | - A1 Policy Management V1.0 |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 635 | summary: Query Near-RT RIC information |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 636 | operationId: getRics |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 637 | parameters: |
| 638 | - name: policyType |
| 639 | in: query |
| 640 | description: The name of the policy type |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 641 | required: false |
| 642 | style: form |
| 643 | explode: true |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 644 | schema: |
| 645 | type: string |
| 646 | responses: |
| 647 | 200: |
| 648 | description: OK |
| 649 | content: |
| 650 | '*/*': |
| 651 | schema: |
| 652 | type: array |
| 653 | items: |
| 654 | $ref: '#/components/schemas/ric_info_v1' |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 655 | 404: |
| 656 | description: Policy type is not found |
| 657 | content: |
| 658 | '*/*': |
| 659 | schema: |
| 660 | type: string |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 661 | /policy_schema: |
| 662 | get: |
| 663 | tags: |
| 664 | - A1 Policy Management V1.0 |
| 665 | summary: Returns one policy type schema definition |
| 666 | operationId: getPolicySchema |
| 667 | parameters: |
| 668 | - name: id |
| 669 | in: query |
| 670 | description: The identity of the policy type to get the definition for. |
| 671 | required: true |
| 672 | style: form |
| 673 | explode: true |
| 674 | schema: |
| 675 | type: string |
| 676 | responses: |
| 677 | 200: |
| 678 | description: Policy schema |
| 679 | content: |
| 680 | '*/*': |
| 681 | schema: |
| 682 | type: object |
| 683 | 404: |
| 684 | description: The policy type is not found |
| 685 | content: |
| 686 | '*/*': |
| 687 | schema: |
| 688 | $ref: '#/components/schemas/error_information' |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 689 | /policy_status: |
| 690 | get: |
| 691 | tags: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 692 | - A1 Policy Management V1.0 |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 693 | summary: Returns a policy status |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 694 | operationId: getPolicyStatus |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 695 | parameters: |
| 696 | - name: id |
| 697 | in: query |
| 698 | description: The identity of the policy. |
| 699 | required: true |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 700 | style: form |
| 701 | explode: true |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 702 | schema: |
| 703 | type: string |
| 704 | responses: |
| 705 | 200: |
| 706 | description: Policy status |
| 707 | content: |
| 708 | '*/*': |
| 709 | schema: |
| 710 | type: object |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 711 | 404: |
| 712 | description: Policy is not found |
| 713 | content: |
| 714 | '*/*': |
| 715 | schema: |
| 716 | type: string |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 717 | /a1-policy/v2/rics: |
| 718 | get: |
| 719 | tags: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 720 | - NearRT-RIC Repository |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 721 | summary: Query Near-RT RIC information |
| 722 | description: The call returns all Near-RT RICs that supports a given policy |
| 723 | type identity |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 724 | operationId: getRics_1 |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 725 | parameters: |
| 726 | - name: policytype_id |
| 727 | in: query |
| 728 | description: The identity of a policy type. If given, all Near-RT RICs supporteing |
| 729 | the policy type are returned |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 730 | required: false |
| 731 | style: form |
| 732 | explode: true |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 733 | schema: |
| 734 | type: string |
| 735 | responses: |
| 736 | 200: |
| 737 | description: OK |
| 738 | content: |
| 739 | application/json: |
| 740 | schema: |
| 741 | $ref: '#/components/schemas/ric_info_list_v2' |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 742 | 404: |
| 743 | description: Policy type is not found |
| 744 | content: |
| 745 | application/json: |
| 746 | schema: |
| 747 | $ref: '#/components/schemas/error_information' |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 748 | /policy_schemas: |
| 749 | get: |
| 750 | tags: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 751 | - A1 Policy Management V1.0 |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 752 | summary: Returns policy type schema definitions |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 753 | operationId: getPolicySchemas |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 754 | parameters: |
| 755 | - name: ric |
| 756 | in: query |
| 757 | description: The name of the Near-RT RIC to get the definitions for. |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 758 | required: false |
| 759 | style: form |
| 760 | explode: true |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 761 | schema: |
| 762 | type: string |
| 763 | responses: |
| 764 | 200: |
| 765 | description: Policy schemas |
| 766 | content: |
| 767 | '*/*': |
| 768 | schema: |
| 769 | type: array |
| 770 | items: |
| 771 | type: object |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 772 | 404: |
| 773 | description: Near-RT RIC is not found |
| 774 | content: |
| 775 | '*/*': |
| 776 | schema: |
| 777 | $ref: '#/components/schemas/error_information' |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 778 | /policy_ids: |
| 779 | get: |
| 780 | tags: |
| 781 | - A1 Policy Management V1.0 |
| 782 | summary: Query policies, only policy identities returned |
| 783 | operationId: getPolicyIds |
| 784 | parameters: |
| 785 | - name: type |
| 786 | in: query |
| 787 | description: The name of the policy type to get policies for. |
| 788 | required: false |
| 789 | style: form |
| 790 | explode: true |
| 791 | schema: |
| 792 | type: string |
| 793 | - name: ric |
| 794 | in: query |
| 795 | description: The name of the Near-RT RIC to get policies for. |
| 796 | required: false |
| 797 | style: form |
| 798 | explode: true |
| 799 | schema: |
| 800 | type: string |
| 801 | - name: service |
| 802 | in: query |
| 803 | description: The name of the service to get policies for. |
| 804 | required: false |
| 805 | style: form |
| 806 | explode: true |
| 807 | schema: |
| 808 | type: string |
| 809 | responses: |
| 810 | 200: |
| 811 | description: Policy identitiess |
| 812 | content: |
| 813 | '*/*': |
| 814 | schema: |
| 815 | type: array |
| 816 | items: |
| 817 | type: string |
| 818 | 404: |
| 819 | description: Near-RT RIC or type not found |
| 820 | content: |
| 821 | '*/*': |
| 822 | schema: |
| 823 | type: string |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 824 | /a1-policy/v2/services: |
| 825 | get: |
| 826 | tags: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 827 | - Service Registry and Supervision |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 828 | summary: Returns service information |
| 829 | description: Either information about a registered service with given identity |
| 830 | or all registered services are returned. |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 831 | operationId: getServices_1 |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 832 | parameters: |
| 833 | - name: service_id |
| 834 | in: query |
| 835 | description: The identity of the service |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 836 | required: false |
| 837 | style: form |
| 838 | explode: true |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 839 | schema: |
| 840 | type: string |
| 841 | responses: |
| 842 | 200: |
| 843 | description: OK |
| 844 | content: |
| 845 | application/json: |
| 846 | schema: |
| 847 | $ref: '#/components/schemas/service_list_v2' |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 848 | 404: |
| 849 | description: Service is not found |
| 850 | content: |
| 851 | application/json: |
| 852 | schema: |
| 853 | $ref: '#/components/schemas/error_information' |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 854 | put: |
| 855 | tags: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 856 | - Service Registry and Supervision |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 857 | summary: Register a service |
| 858 | description: Registering a service is needed to:<ul><li>Get callbacks.</li><li>Activate |
| 859 | supervision of the service. If a service is inactive, its policies will be |
| 860 | deleted.</li></ul> |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 861 | operationId: putService_1 |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 862 | requestBody: |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 863 | content: |
| 864 | application/json: |
| 865 | schema: |
| 866 | $ref: '#/components/schemas/service_registration_info_v2' |
| 867 | required: true |
| 868 | responses: |
| 869 | 200: |
| 870 | description: Service updated |
| 871 | content: |
| 872 | '*/*': |
| 873 | schema: |
| 874 | type: object |
| 875 | 201: |
| 876 | description: Service created |
| 877 | content: |
| 878 | '*/*': |
| 879 | schema: |
| 880 | type: object |
| 881 | 400: |
| 882 | description: The ServiceRegistrationInfo is not accepted |
| 883 | content: |
| 884 | '*/*': |
| 885 | schema: |
| 886 | $ref: '#/components/schemas/error_information' |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 887 | /ric: |
| 888 | get: |
| 889 | tags: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 890 | - A1 Policy Management V1.0 |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 891 | summary: Returns the name of a RIC managing one Mananged Element |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 892 | operationId: getRic |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 893 | parameters: |
| 894 | - name: managedElementId |
| 895 | in: query |
| 896 | description: The identity of the Managed Element |
| 897 | required: true |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 898 | style: form |
| 899 | explode: true |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 900 | schema: |
| 901 | type: string |
| 902 | responses: |
| 903 | 200: |
| 904 | description: Near-RT RIC is found |
| 905 | content: |
| 906 | '*/*': |
| 907 | schema: |
| 908 | type: string |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 909 | 404: |
| 910 | description: Near-RT RIC is not found |
| 911 | content: |
| 912 | '*/*': |
| 913 | schema: |
| 914 | type: string |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 915 | /services/keepalive: |
| 916 | put: |
| 917 | tags: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 918 | - A1 Policy Management V1.0 |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 919 | summary: Heartbeat from a service |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 920 | operationId: keepAliveService |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 921 | parameters: |
| 922 | - name: name |
| 923 | in: query |
| 924 | description: The name of the service |
| 925 | required: true |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 926 | style: form |
| 927 | explode: true |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 928 | schema: |
| 929 | type: string |
| 930 | responses: |
| 931 | 200: |
| 932 | description: Service supervision timer refreshed, OK |
| 933 | content: |
| 934 | '*/*': |
| 935 | schema: |
| 936 | type: string |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 937 | 404: |
| 938 | description: The service is not found, needs re-registration |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 939 | content: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 940 | '*/*': |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 941 | schema: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 942 | type: string |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 943 | /status: |
| 944 | get: |
| 945 | tags: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 946 | - A1 Policy Management V1.0 |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 947 | summary: Returns status and statistics of this service |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 948 | operationId: getStatus |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 949 | responses: |
| 950 | 200: |
| 951 | description: Service is living |
| 952 | content: |
| 953 | '*/*': |
| 954 | schema: |
| 955 | type: string |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 956 | /a1-policy/v2/policy-types/{policytype_id}: |
| 957 | get: |
| 958 | tags: |
| 959 | - A1 Policy Management |
| 960 | summary: Returns a policy type definition |
| 961 | operationId: getPolicyType |
| 962 | parameters: |
| 963 | - name: policytype_id |
| 964 | in: path |
| 965 | required: true |
| 966 | style: simple |
| 967 | explode: false |
| 968 | schema: |
| 969 | type: string |
| 970 | responses: |
| 971 | 200: |
| 972 | description: Policy type |
| 973 | content: |
| 974 | '*/*': |
| 975 | schema: |
| 976 | $ref: '#/components/schemas/policytype_v2' |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 977 | 404: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 978 | description: Policy type is not found |
| 979 | content: |
| 980 | '*/*': |
| 981 | schema: |
| 982 | $ref: '#/components/schemas/error_information' |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 983 | /a1-policy/v2/policies: |
| 984 | get: |
| 985 | tags: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 986 | - A1 Policy Management |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 987 | summary: Query policy identities |
| 988 | description: Returns a list of A1 policies matching given search criteria. <br>If |
| 989 | several query parameters are defined, the policies matching all conditions |
| 990 | are returned. |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 991 | operationId: getPolicyIds_1 |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 992 | parameters: |
| 993 | - name: policytype_id |
| 994 | in: query |
PatrikBuhr | 3b916e4 | 2021-10-07 18:03:53 +0200 | [diff] [blame^] | 995 | description: Select policies of a given policy type identity. |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 996 | required: false |
| 997 | style: form |
| 998 | explode: true |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 999 | schema: |
| 1000 | type: string |
| 1001 | - name: ric_id |
| 1002 | in: query |
PatrikBuhr | 3b916e4 | 2021-10-07 18:03:53 +0200 | [diff] [blame^] | 1003 | description: Select policies of a given Near-RT RIC identity. |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1004 | required: false |
| 1005 | style: form |
| 1006 | explode: true |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 1007 | schema: |
| 1008 | type: string |
| 1009 | - name: service_id |
| 1010 | in: query |
PatrikBuhr | 3b916e4 | 2021-10-07 18:03:53 +0200 | [diff] [blame^] | 1011 | description: Select policies owned by a given service. |
| 1012 | required: false |
| 1013 | style: form |
| 1014 | explode: true |
| 1015 | schema: |
| 1016 | type: string |
| 1017 | - name: type_name |
| 1018 | in: query |
| 1019 | description: Select policies of types with the given type name (type identity |
| 1020 | has the format <typename_version>) |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1021 | required: false |
| 1022 | style: form |
| 1023 | explode: true |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 1024 | schema: |
| 1025 | type: string |
| 1026 | responses: |
| 1027 | 200: |
| 1028 | description: Policy identities |
| 1029 | content: |
| 1030 | application/json: |
| 1031 | schema: |
| 1032 | $ref: '#/components/schemas/policy_id_list_v2' |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 1033 | 404: |
| 1034 | description: Near-RT RIC or type not found |
| 1035 | content: |
| 1036 | application/json: |
| 1037 | schema: |
| 1038 | $ref: '#/components/schemas/error_information' |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 1039 | put: |
| 1040 | tags: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1041 | - A1 Policy Management |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 1042 | summary: Create or update a policy |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1043 | operationId: putPolicy_1 |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 1044 | requestBody: |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 1045 | content: |
| 1046 | application/json: |
| 1047 | schema: |
| 1048 | $ref: '#/components/schemas/policy_info_v2' |
| 1049 | required: true |
| 1050 | responses: |
| 1051 | 200: |
| 1052 | description: Policy updated |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 1053 | content: |
| 1054 | application/json: |
| 1055 | schema: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1056 | $ref: '#/components/schemas/void' |
| 1057 | 201: |
| 1058 | description: Policy created |
| 1059 | content: |
| 1060 | application/json: |
| 1061 | schema: |
| 1062 | $ref: '#/components/schemas/void' |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 1063 | 423: |
| 1064 | description: Near-RT RIC is not operational |
| 1065 | content: |
| 1066 | application/json: |
| 1067 | schema: |
| 1068 | $ref: '#/components/schemas/error_information' |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1069 | 404: |
| 1070 | description: Near-RT RIC or policy type is not found |
| 1071 | content: |
| 1072 | application/json: |
| 1073 | schema: |
| 1074 | $ref: '#/components/schemas/error_information' |
| 1075 | /r-app/near-rt-ric-status: |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 1076 | post: |
| 1077 | tags: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1078 | - Callbacks |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 1079 | summary: Callback for Near-RT RIC status |
| 1080 | description: The URL to this call is registerred at Service registration. |
PatrikBuhr | 25d7850 | 2021-04-28 08:42:13 +0200 | [diff] [blame] | 1081 | operationId: serviceCallback |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 1082 | requestBody: |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 1083 | content: |
| 1084 | application/json: |
| 1085 | schema: |
| 1086 | $ref: '#/components/schemas/service_callback_info_v2' |
| 1087 | required: true |
| 1088 | responses: |
| 1089 | 200: |
| 1090 | description: OK |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 1091 | content: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1092 | application/json: |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 1093 | schema: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1094 | $ref: '#/components/schemas/void' |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 1095 | /service: |
| 1096 | put: |
| 1097 | tags: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1098 | - A1 Policy Management V1.0 |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 1099 | summary: Register a service |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1100 | operationId: putService |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 1101 | requestBody: |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 1102 | content: |
| 1103 | application/json: |
| 1104 | schema: |
| 1105 | $ref: '#/components/schemas/service_registration_info_v1' |
| 1106 | required: true |
| 1107 | responses: |
| 1108 | 200: |
| 1109 | description: Service updated |
| 1110 | content: |
| 1111 | '*/*': |
| 1112 | schema: |
| 1113 | type: string |
| 1114 | 201: |
| 1115 | description: Service created |
| 1116 | content: |
| 1117 | '*/*': |
| 1118 | schema: |
| 1119 | type: string |
| 1120 | 400: |
| 1121 | description: The ServiceRegistrationInfo is not accepted |
| 1122 | content: |
| 1123 | '*/*': |
| 1124 | schema: |
| 1125 | type: string |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1126 | /a1-policy/v2/services/{service_id}: |
| 1127 | delete: |
| 1128 | tags: |
| 1129 | - Service Registry and Supervision |
| 1130 | summary: Unregister a service |
| 1131 | operationId: deleteService_1 |
| 1132 | parameters: |
| 1133 | - name: service_id |
| 1134 | in: path |
| 1135 | required: true |
| 1136 | style: simple |
| 1137 | explode: false |
| 1138 | schema: |
| 1139 | type: string |
| 1140 | responses: |
| 1141 | 200: |
| 1142 | description: Not used |
| 1143 | content: |
| 1144 | '*/*': |
| 1145 | schema: |
| 1146 | $ref: '#/components/schemas/void' |
| 1147 | 204: |
| 1148 | description: Service unregistered |
| 1149 | content: |
| 1150 | '*/*': |
| 1151 | schema: |
| 1152 | type: object |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 1153 | 404: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1154 | description: Service not found |
| 1155 | content: |
| 1156 | '*/*': |
| 1157 | schema: |
| 1158 | $ref: '#/components/schemas/error_information' |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 1159 | /a1-policy/v2/policies/{policy_id}/status: |
| 1160 | get: |
| 1161 | tags: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1162 | - A1 Policy Management |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 1163 | summary: Returns a policy status |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1164 | operationId: getPolicyStatus_1 |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 1165 | parameters: |
| 1166 | - name: policy_id |
| 1167 | in: path |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 1168 | required: true |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1169 | style: simple |
| 1170 | explode: false |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 1171 | schema: |
| 1172 | type: string |
| 1173 | responses: |
| 1174 | 200: |
| 1175 | description: Policy status |
| 1176 | content: |
| 1177 | application/json: |
| 1178 | schema: |
| 1179 | $ref: '#/components/schemas/policy_status_info_v2' |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 1180 | 404: |
| 1181 | description: Policy is not found |
| 1182 | content: |
| 1183 | application/json: |
| 1184 | schema: |
| 1185 | $ref: '#/components/schemas/error_information' |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 1186 | components: |
| 1187 | schemas: |
| 1188 | error_information: |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 1189 | type: object |
| 1190 | properties: |
| 1191 | detail: |
| 1192 | type: string |
| 1193 | description: ' A human-readable explanation specific to this occurrence |
| 1194 | of the problem.' |
| 1195 | example: Policy type not found |
| 1196 | status: |
| 1197 | type: integer |
| 1198 | description: 'The HTTP status code generated by the origin server for this |
| 1199 | occurrence of the problem. ' |
| 1200 | format: int32 |
PatrikBuhr | 3b916e4 | 2021-10-07 18:03:53 +0200 | [diff] [blame^] | 1201 | example: 404 |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 1202 | description: Problem as defined in https://tools.ietf.org/html/rfc7807 |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1203 | void: |
| 1204 | type: object |
| 1205 | description: Void/empty |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 1206 | status_info_v2: |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 1207 | type: object |
| 1208 | properties: |
| 1209 | status: |
| 1210 | type: string |
| 1211 | description: status text |
| 1212 | policy_info_v1: |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 1213 | type: object |
| 1214 | properties: |
| 1215 | service: |
| 1216 | type: string |
| 1217 | description: the name of the service owning the policy |
| 1218 | json: |
| 1219 | type: object |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 1220 | description: the configuration of the policy |
| 1221 | id: |
| 1222 | type: string |
| 1223 | description: identity of the policy |
| 1224 | lastModified: |
| 1225 | type: string |
| 1226 | description: timestamp, last modification time |
| 1227 | type: |
| 1228 | type: string |
| 1229 | description: name of the policy type |
| 1230 | ric: |
| 1231 | type: string |
| 1232 | description: identity of the target Near-RT RIC |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 1233 | service_registration_info_v1: |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 1234 | type: object |
| 1235 | properties: |
| 1236 | keepAliveIntervalSeconds: |
| 1237 | type: integer |
| 1238 | description: keep alive interval for the service. This is a heartbeat supervision |
| 1239 | of the service, which in regular intevals must invoke a 'keepAlive' REST |
| 1240 | call. When a service does not invoke this call within the given time, |
| 1241 | it is considered unavailble. An unavailable service will be automatically |
| 1242 | deregistered and its policies will be deleted. Value 0 means no timeout |
| 1243 | supervision. |
| 1244 | format: int64 |
| 1245 | callbackUrl: |
| 1246 | type: string |
| 1247 | description: callback for notifying of RIC synchronization |
| 1248 | serviceName: |
| 1249 | type: string |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1250 | ric_info_v2: |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 1251 | type: object |
| 1252 | properties: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1253 | ric_id: |
| 1254 | type: string |
| 1255 | description: identity of the Near-RT RIC |
| 1256 | managed_element_ids: |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 1257 | type: array |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1258 | description: O1 identities for managed entities |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 1259 | items: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1260 | type: string |
| 1261 | description: O1 identities for managed entities |
| 1262 | state: |
| 1263 | type: string |
| 1264 | description: Represents the states for a Near-RT RIC |
| 1265 | enum: |
| 1266 | - UNAVAILABLE |
| 1267 | - AVAILABLE |
| 1268 | - SYNCHRONIZING |
| 1269 | - CONSISTENCY_CHECK |
| 1270 | policytype_ids: |
| 1271 | type: array |
| 1272 | description: supported policy types |
| 1273 | items: |
| 1274 | type: string |
| 1275 | description: supported policy types |
| 1276 | description: Information for a Near-RT RIC |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 1277 | service_registration_info_v2: |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 1278 | required: |
| 1279 | - service_id |
| 1280 | type: object |
| 1281 | properties: |
| 1282 | callback_url: |
| 1283 | type: string |
| 1284 | description: callback for notifying of Near-RT RIC state changes |
| 1285 | service_id: |
| 1286 | type: string |
| 1287 | description: identity of the service |
| 1288 | keep_alive_interval_seconds: |
| 1289 | type: integer |
| 1290 | description: keep alive interval for the service. This is a heartbeat supervision |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1291 | of the service, which in regular intevals must invoke a 'keepalive' REST |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 1292 | call. When a service does not invoke this call within the given time, |
| 1293 | it is considered unavailble. An unavailable service will be automatically |
| 1294 | deregistered and its policies will be deleted. Value 0 means no timeout |
| 1295 | supervision. |
| 1296 | format: int64 |
| 1297 | description: Information for one service |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1298 | policy_info_list_v2: |
| 1299 | type: object |
| 1300 | properties: |
| 1301 | policies: |
| 1302 | type: array |
| 1303 | description: List of policy information |
| 1304 | items: |
| 1305 | $ref: '#/components/schemas/policy_info_v2' |
| 1306 | description: List of policy information |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 1307 | ric_info_v1: |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 1308 | type: object |
| 1309 | properties: |
| 1310 | managedElementIds: |
| 1311 | type: array |
| 1312 | description: O1 identities for managed entities |
| 1313 | items: |
| 1314 | type: string |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1315 | description: O1 identities for managed entities |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 1316 | policyTypes: |
| 1317 | type: array |
| 1318 | description: supported policy types |
| 1319 | items: |
| 1320 | type: string |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1321 | description: supported policy types |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 1322 | state: |
| 1323 | type: string |
| 1324 | description: state info |
| 1325 | ricName: |
| 1326 | type: string |
| 1327 | description: identity of the Near-RT RIC |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1328 | service_status_v1: |
| 1329 | type: object |
| 1330 | properties: |
| 1331 | keepAliveIntervalSeconds: |
| 1332 | type: integer |
| 1333 | description: policy keep alive timeout |
| 1334 | format: int64 |
| 1335 | timeSinceLastActivitySeconds: |
| 1336 | type: integer |
| 1337 | description: time since last invocation by the service |
| 1338 | format: int64 |
| 1339 | callbackUrl: |
| 1340 | type: string |
| 1341 | description: callback for notifying of RIC synchronization |
| 1342 | serviceName: |
| 1343 | type: string |
| 1344 | description: identity of the service |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 1345 | policy_status_info_v2: |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 1346 | type: object |
| 1347 | properties: |
| 1348 | last_modified: |
| 1349 | type: string |
| 1350 | description: timestamp, last modification time |
| 1351 | status: |
| 1352 | type: object |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 1353 | description: the Policy status |
| 1354 | description: Status for one A1-P Policy |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 1355 | service_status_v2: |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 1356 | type: object |
| 1357 | properties: |
| 1358 | callback_url: |
| 1359 | type: string |
| 1360 | description: callback for notifying of RIC synchronization |
| 1361 | service_id: |
| 1362 | type: string |
| 1363 | description: identity of the service |
| 1364 | keep_alive_interval_seconds: |
| 1365 | type: integer |
| 1366 | description: policy keep alive timeout |
| 1367 | format: int64 |
| 1368 | time_since_last_activity_seconds: |
| 1369 | type: integer |
| 1370 | description: time since last invocation by the service |
| 1371 | format: int64 |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1372 | description: List of service information |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 1373 | ric_info_list_v2: |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 1374 | type: object |
| 1375 | properties: |
| 1376 | rics: |
| 1377 | type: array |
| 1378 | description: List of Near-RT RIC information |
| 1379 | items: |
| 1380 | $ref: '#/components/schemas/ric_info_v2' |
| 1381 | description: List of Near-RT RIC information |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1382 | policytype_v2: |
| 1383 | type: object |
| 1384 | properties: |
| 1385 | policy_schema: |
| 1386 | type: object |
| 1387 | description: Policy type json scema. The schema is a json object following |
| 1388 | http://json-schema.org/draft-07/schema |
| 1389 | description: Policy type |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 1390 | policytype_id_list_v2: |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 1391 | type: object |
| 1392 | properties: |
| 1393 | policytype_ids: |
| 1394 | type: array |
| 1395 | description: Policy type identities |
| 1396 | items: |
| 1397 | type: string |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1398 | description: Policy type identities |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 1399 | description: Information about policy types |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 1400 | policy_info_v2: |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 1401 | required: |
| 1402 | - policy_data |
| 1403 | - policy_id |
| 1404 | - policytype_id |
| 1405 | - ric_id |
| 1406 | - service_id |
| 1407 | type: object |
| 1408 | properties: |
| 1409 | ric_id: |
| 1410 | type: string |
| 1411 | description: identity of the target Near-RT RIC |
| 1412 | policy_id: |
| 1413 | type: string |
| 1414 | description: identity of the policy |
| 1415 | transient: |
| 1416 | type: boolean |
| 1417 | description: if true, the policy is deleted at RIC restart. If false, its |
| 1418 | value is maintained by this service until explicitly deleted. Default |
| 1419 | false. |
| 1420 | service_id: |
| 1421 | type: string |
PatrikBuhr | 3b916e4 | 2021-10-07 18:03:53 +0200 | [diff] [blame^] | 1422 | description: the identity of the service owning the policy |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 1423 | policy_data: |
| 1424 | type: object |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 1425 | description: the configuration of the policy |
| 1426 | status_notification_uri: |
| 1427 | type: string |
| 1428 | description: Callback URI for policy status updates |
| 1429 | policytype_id: |
| 1430 | type: string |
| 1431 | description: identity of the policy type |
| 1432 | description: Information for one A1-P Policy |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1433 | policy_id_list_v2: |
| 1434 | type: object |
| 1435 | properties: |
| 1436 | policy_ids: |
| 1437 | type: array |
| 1438 | description: Policy identities |
| 1439 | items: |
| 1440 | type: string |
| 1441 | description: Policy identities |
| 1442 | description: A list of policy identities |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 1443 | service_list_v2: |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 1444 | type: object |
| 1445 | properties: |
| 1446 | service_list: |
| 1447 | type: array |
| 1448 | description: List of service information |
| 1449 | items: |
| 1450 | $ref: '#/components/schemas/service_status_v2' |
| 1451 | description: List of service information |
| 1452 | service_callback_info_v2: |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 1453 | required: |
| 1454 | - event_type |
| 1455 | - ric_id |
| 1456 | type: object |
| 1457 | properties: |
| 1458 | ric_id: |
| 1459 | type: string |
| 1460 | description: identity of a Near-RT RIC |
| 1461 | event_type: |
| 1462 | type: string |
| 1463 | description: |- |
| 1464 | values: |
| 1465 | AVAILABLE: the Near-RT RIC has become available for A1 Policy management |
| 1466 | enum: |
| 1467 | - AVAILABLE |
| 1468 | description: Information transferred as in Service callbacks (callback_url) |