raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 1 | # ============LICENSE_START======================================================= |
| 2 | # Copyright (C) 2020-2023 Nordix Foundation |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 3 | # Copyright (C) 2023-2024 OpenInfra Foundation Europe. All rights reserved. |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 4 | # Modifications Copyright (C) 2021 Pantheon.tech |
| 5 | # Modifications Copyright (C) 2021 Bell Canada |
| 6 | # ================================================================================ |
| 7 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 8 | # you may not use this file except in compliance with the License. |
| 9 | # You may obtain a copy of the License at |
| 10 | # |
| 11 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 12 | # |
| 13 | # Unless required by applicable law or agreed to in writing, software |
| 14 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 16 | # See the License for the specific language governing permissions and |
| 17 | # limitations under the License. |
| 18 | # |
| 19 | # SPDX-License-Identifier: Apache-2.0 |
| 20 | # ============LICENSE_END========================================================= |
| 21 | |
| 22 | openapi: 3.0.3 |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 23 | info: |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 24 | x-api-id: a31c510b-20e6-4a08-af16-368c44d7fba8 |
| 25 | x-audience: external-public |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 26 | description: "<h2>General</h2><p>The O-RAN Non-RT RIC Policy Management Service\ |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 27 | \ provides a REST API for managemecnt of A1 policies. <br/>The main tasks of the\ |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 28 | \ service are:</p><ul><li>A1 Policy creation, modification and deletion.</li><li>Monitoring\ |
| 29 | \ and maintaining consistency of the SMO view of A1 policies and the Near-RT RICs</li><li>Maintaining\ |
| 30 | \ a view of supported Near-RT RIC policy types</li><li>Supervision of using services\ |
| 31 | \ (R-APPs). When a service is unavailable, its policies are removed.</li></ul><h2>APIs\ |
PatrikBuhr | 9f1d949 | 2023-04-17 13:00:15 +0200 | [diff] [blame] | 32 | \ provided or defined by the service</h2><h3>A1 Policy Management</h3><p>This\ |
| 33 | \ is an API for management of A1 Policies.</p><ul><li>A1 Policy retrieval, creation,\ |
| 34 | \ modification and deletion.</li><li>Retrieval of supported A1 Policy types for\ |
| 35 | \ a Near-RT RIC</li><li>Retrieval of status for existing A1 policies</li></ul><h3>Management\ |
| 36 | \ of configuration</h3><p>API for updating and retrieval of the component configuration.\ |
| 37 | \ Note that there other ways to maintain the configuration.</p><h3>Service callbacks</h3><p>These\ |
| 38 | \ are endpoints that are invoked by this service. The callbacks are registered\ |
| 39 | \ in this service at service registration.</p><h3>NearRT-RIC Repository</h3><p>This\ |
| 40 | \ is an API that provides support for looking up a NearRT-RIC. Each A1 policy\ |
| 41 | \ is targeted for one Near-RT RIC.</p><h3>Health Check</h3><p>API used for supervision\ |
| 42 | \ of the PMS component.</p><h3>Service Registry and Supervision</h3><p>API used\ |
| 43 | \ for registering services that uses PMS. Each A1 policy is optionally owned by\ |
| 44 | \ a service. PMS can supervise each registered service by a heart-beat supervision\ |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 45 | \ and will automatically remove policies for unavailable services. Note that a\ |
| 46 | \ service does not need to be registered in order to create A1 Policies. This\ |
PatrikBuhr | 9f1d949 | 2023-04-17 13:00:15 +0200 | [diff] [blame] | 47 | \ is a feature that is optional to use.</p><h3>Authorization API</h3><p>API used\ |
| 48 | \ for access control of A1 Policy access. If configured, an external authorization\ |
| 49 | \ provider is requested to grant access to the A1 Policy type.</p><h3>Spring Boot\ |
| 50 | \ Actuator</h3><p>Provides generic functions used to monitor and manage the Spring\ |
| 51 | \ web application.</p>" |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 52 | license: |
PatrikBuhr | c0218ad | 2022-11-28 09:40:36 +0100 | [diff] [blame] | 53 | name: Copyright (C) 2020-2023 Nordix Foundation. Licensed under the Apache License. |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 54 | url: http://www.apache.org/licenses/LICENSE-2.0 |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 55 | title: A1 Policy Management Service |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 56 | version: 1.3.0 |
| 57 | contact: |
| 58 | url: https://www.onap.org/ |
| 59 | email: discuss-list@onap.com |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 60 | servers: |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 61 | - url: / |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 62 | tags: |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 63 | - name: A1 Policy Management |
| 64 | description: "API used to create polices, Policy Instances and get them as individual |
| 65 | using an ID or get all policies/Instances." |
| 66 | - name: NearRT-RIC Repository |
| 67 | description: "API used to get the NearRT-RIC for the managed element." |
| 68 | - name: Service Registry and Supervision |
| 69 | description: "API used to keep the service Alive with in the timeout period" |
| 70 | - name: Health Check |
| 71 | description: "API used to get the health status and statistics of this service" |
| 72 | - name: Service callbacks |
| 73 | - name: Authorization API |
| 74 | description: "API used for authorization of information A1 policy access (this is |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 75 | provided by an authorization producer such as OPA). <br> Note that this API is called |
| 76 | by PMS, it is not provided." |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 77 | - name: Configuration |
| 78 | description: "API used to create or fetch the application configuration." |
| 79 | - name: Actuator |
| 80 | description: Monitor and interact |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 81 | externalDocs: |
| 82 | description: Spring Boot Actuator Web API Documentation |
| 83 | url: https://docs.spring.io/spring-boot/docs/current/actuator-api/html/ |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 84 | paths: |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 85 | /a1-policy/v2/policy-instances: |
| 86 | get: |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 87 | description: "Returns a list of A1 policies matching given search criteria.\ |
| 88 | \ <br>If several query parameters are defined, the policies matching all conditions\ |
| 89 | \ are returned." |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 90 | operationId: getPolicyInstances |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 91 | parameters: |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 92 | - description: Select policies with a given type identity. |
| 93 | explode: true |
| 94 | in: query |
| 95 | name: policytype_id |
| 96 | required: false |
| 97 | schema: |
| 98 | type: string |
| 99 | style: form |
| 100 | - description: Select policies for a given Near-RT RIC identity. |
| 101 | explode: true |
| 102 | in: query |
| 103 | name: ric_id |
| 104 | required: false |
| 105 | schema: |
| 106 | type: string |
| 107 | style: form |
| 108 | - description: Select policies owned by a given service. |
| 109 | explode: true |
| 110 | in: query |
| 111 | name: service_id |
| 112 | required: false |
| 113 | schema: |
| 114 | type: string |
| 115 | style: form |
| 116 | - description: Select policies of a given type name (type identity has the format |
| 117 | <typename_version>) |
| 118 | explode: true |
| 119 | in: query |
| 120 | name: type_name |
| 121 | required: false |
| 122 | schema: |
| 123 | type: string |
| 124 | style: form |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 125 | responses: |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 126 | "200": |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 127 | content: |
| 128 | application/json: |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 129 | examples: |
| 130 | policy_info_list: |
| 131 | $ref: '#/components/examples/policy_info_list' |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 132 | schema: |
raviteja.karumuri | 9dcf49c | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 133 | $ref: '#/components/schemas/policy_info_list' |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 134 | description: OK - Returns A1 Policies which matches the criteria |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 135 | "404": |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 136 | content: |
| 137 | application/json: |
| 138 | schema: |
| 139 | $ref: '#/components/schemas/error_information' |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 140 | description: "Not Found - Near-RT RIC, policy type or service not found" |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 141 | summary: Query for A1 policy instances |
| 142 | tags: |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 143 | - A1 Policy Management |
PatrikBuhr | f07e4b3 | 2023-04-05 14:40:07 +0200 | [diff] [blame] | 144 | /example-authz-check: |
| 145 | post: |
| 146 | description: The authorization function decides if access is granted. |
| 147 | operationId: performAccessControl |
| 148 | requestBody: |
| 149 | content: |
| 150 | application/json: |
| 151 | schema: |
| 152 | $ref: '#/components/schemas/policy_authorization' |
| 153 | required: true |
| 154 | responses: |
| 155 | "200": |
| 156 | content: |
| 157 | application/json: |
| 158 | schema: |
| 159 | $ref: '#/components/schemas/authorization_result' |
| 160 | description: OK |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 161 | "403": |
| 162 | $ref: '#/components/responses/Forbidden' |
PatrikBuhr | f07e4b3 | 2023-04-05 14:40:07 +0200 | [diff] [blame] | 163 | summary: Request for access authorization. |
| 164 | tags: |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 165 | - Authorization API |
PatrikBuhr | 62c2596 | 2022-03-25 15:39:06 +0100 | [diff] [blame] | 166 | /actuator/threaddump: |
| 167 | get: |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 168 | x-internal: true |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 169 | operationId: threaddump |
PatrikBuhr | 62c2596 | 2022-03-25 15:39:06 +0100 | [diff] [blame] | 170 | responses: |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 171 | "200": |
PatrikBuhr | 62c2596 | 2022-03-25 15:39:06 +0100 | [diff] [blame] | 172 | content: |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 173 | text/plain;charset=UTF-8: |
| 174 | schema: |
| 175 | type: object |
| 176 | application/vnd.spring-boot.actuator.v3+json: |
| 177 | schema: |
| 178 | type: object |
| 179 | application/json: |
| 180 | schema: |
| 181 | type: object |
| 182 | application/vnd.spring-boot.actuator.v2+json: |
PatrikBuhr | 62c2596 | 2022-03-25 15:39:06 +0100 | [diff] [blame] | 183 | schema: |
| 184 | type: object |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 185 | description: OK |
| 186 | summary: Actuator web endpoint 'threaddump' |
| 187 | tags: |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 188 | - Actuator |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 189 | /a1-policy/v2/status: |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 190 | get: |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame] | 191 | operationId: getStatus |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 192 | responses: |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 193 | "200": |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 194 | content: |
| 195 | application/json: |
| 196 | schema: |
raviteja.karumuri | 9dcf49c | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 197 | $ref: '#/components/schemas/status_info' |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 198 | examples: |
| 199 | status_info: |
| 200 | $ref: '#/components/examples/status_info' |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 201 | description: OK- Service is living Ok |
| 202 | description: Returns status and statistics of this service |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 203 | tags: |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 204 | - Health Check |
PatrikBuhr | 62c2596 | 2022-03-25 15:39:06 +0100 | [diff] [blame] | 205 | /actuator/loggers: |
PatrikBuhr | 6e31874 | 2021-11-30 11:25:17 +0100 | [diff] [blame] | 206 | get: |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 207 | x-internal: true |
PatrikBuhr | 62c2596 | 2022-03-25 15:39:06 +0100 | [diff] [blame] | 208 | operationId: loggers |
| 209 | responses: |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 210 | "200": |
PatrikBuhr | 62c2596 | 2022-03-25 15:39:06 +0100 | [diff] [blame] | 211 | content: |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 212 | application/vnd.spring-boot.actuator.v3+json: |
| 213 | schema: |
| 214 | type: object |
| 215 | application/json: |
| 216 | schema: |
| 217 | type: object |
| 218 | application/vnd.spring-boot.actuator.v2+json: |
PatrikBuhr | 62c2596 | 2022-03-25 15:39:06 +0100 | [diff] [blame] | 219 | schema: |
| 220 | type: object |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 221 | description: OK |
| 222 | summary: Actuator web endpoint 'loggers' |
PatrikBuhr | 62c2596 | 2022-03-25 15:39:06 +0100 | [diff] [blame] | 223 | tags: |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 224 | - Actuator |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 225 | /actuator/health/**: |
| 226 | get: |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 227 | x-internal: true |
PatrikBuhr | 62c2596 | 2022-03-25 15:39:06 +0100 | [diff] [blame] | 228 | operationId: health-path |
PatrikBuhr | 6e31874 | 2021-11-30 11:25:17 +0100 | [diff] [blame] | 229 | responses: |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 230 | "200": |
PatrikBuhr | 6e31874 | 2021-11-30 11:25:17 +0100 | [diff] [blame] | 231 | content: |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 232 | application/vnd.spring-boot.actuator.v3+json: |
| 233 | schema: |
| 234 | type: object |
| 235 | application/json: |
| 236 | schema: |
| 237 | type: object |
| 238 | application/vnd.spring-boot.actuator.v2+json: |
PatrikBuhr | 6e31874 | 2021-11-30 11:25:17 +0100 | [diff] [blame] | 239 | schema: |
| 240 | type: object |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 241 | description: OK |
| 242 | summary: Actuator web endpoint 'health-path' |
| 243 | tags: |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 244 | - Actuator |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 245 | /a1-policy/v2/rics/ric: |
| 246 | get: |
JohnKeeney | 069b469 | 2022-05-12 22:15:14 +0100 | [diff] [blame] | 247 | description: Either a Near-RT RIC identity or a Managed Element identity can |
| 248 | be specified.<br>The intention with Managed Element identity is the ID used |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 249 | in O1 for accessing the traffical element (such as the ID of CU). |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame] | 250 | operationId: getRic |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 251 | parameters: |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 252 | - description: "The identity of a Managed Element. If given, the Near-RT RIC\ |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 253 | \ managing the ME is returned." |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 254 | explode: true |
| 255 | in: query |
| 256 | name: managed_element_id |
| 257 | required: false |
| 258 | schema: |
| 259 | type: string |
| 260 | style: form |
| 261 | - description: The identity of a Near-RT RIC to get information for. |
| 262 | explode: true |
| 263 | in: query |
| 264 | name: ric_id |
| 265 | required: false |
| 266 | schema: |
| 267 | type: string |
| 268 | style: form |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 269 | responses: |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 270 | "200": |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 271 | content: |
| 272 | application/json: |
| 273 | schema: |
raviteja.karumuri | 9dcf49c | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 274 | $ref: '#/components/schemas/ric_info' |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 275 | examples: |
| 276 | ric_info: |
| 277 | $ref: '#/components/examples/ric_info' |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 278 | description: OK - Near-RT RIC is found |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 279 | "404": |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 280 | $ref: '#/components/responses/NotFound' |
| 281 | description: NotFound - Requested NearRT-RIC Not Found |
| 282 | summary: Returns info of Near-RT RIC queried by the ric-id and managed-element-id |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 283 | tags: |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 284 | - NearRT-RIC Repository |
PatrikBuhr | c0218ad | 2022-11-28 09:40:36 +0100 | [diff] [blame] | 285 | /actuator/shutdown: |
| 286 | post: |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 287 | x-internal: true |
PatrikBuhr | c0218ad | 2022-11-28 09:40:36 +0100 | [diff] [blame] | 288 | operationId: shutdown |
| 289 | responses: |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 290 | "200": |
PatrikBuhr | c0218ad | 2022-11-28 09:40:36 +0100 | [diff] [blame] | 291 | content: |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 292 | application/vnd.spring-boot.actuator.v3+json: |
| 293 | schema: |
| 294 | type: object |
| 295 | application/json: |
| 296 | schema: |
| 297 | type: object |
| 298 | application/vnd.spring-boot.actuator.v2+json: |
PatrikBuhr | c0218ad | 2022-11-28 09:40:36 +0100 | [diff] [blame] | 299 | schema: |
| 300 | type: object |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 301 | description: OK |
| 302 | summary: Actuator web endpoint 'shutdown' |
| 303 | tags: |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 304 | - Actuator |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 305 | /a1-policy/v2/policy-types: |
| 306 | get: |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame] | 307 | operationId: getPolicyTypes |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 308 | parameters: |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 309 | - description: Select types for the given Near-RT RIC identity. |
| 310 | explode: true |
| 311 | in: query |
| 312 | name: ric_id |
| 313 | required: false |
| 314 | schema: |
| 315 | type: string |
| 316 | style: form |
| 317 | - description: Select types with the given type name (type identity has the |
| 318 | format <typename_version>) |
| 319 | explode: true |
| 320 | in: query |
| 321 | name: type_name |
| 322 | required: false |
| 323 | schema: |
| 324 | type: string |
| 325 | style: form |
| 326 | - description: Select types that are compatible with the given version. This |
| 327 | parameter is only applicable in conjunction with type_name. As an example |
| 328 | version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching |
| 329 | types will be returned sorted in ascending order. |
| 330 | explode: true |
| 331 | in: query |
| 332 | name: compatible_with_version |
| 333 | required: false |
| 334 | schema: |
| 335 | type: string |
| 336 | style: form |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 337 | responses: |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 338 | "200": |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 339 | content: |
| 340 | application/json: |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 341 | examples: |
| 342 | policy_type_id_list: |
| 343 | $ref: '#/components/examples/policy_type_id_list' |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 344 | schema: |
raviteja.karumuri | 9dcf49c | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 345 | $ref: '#/components/schemas/policy_type_id_list' |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 346 | description: OK - Policy Type IDs Found |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 347 | "404": |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 348 | $ref: '#/components/responses/NotFound' |
| 349 | description: 'Not Found - Requested Policy Type IDs Not Found' |
| 350 | description: Query policy type identities |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 351 | tags: |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 352 | - A1 Policy Management |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 353 | /a1-policy/v2/policies/{policy_id}: |
| 354 | delete: |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 355 | description: Deleting the policy using the Policy's Policy ID. |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 356 | operationId: deletePolicy |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 357 | parameters: |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 358 | - explode: false |
| 359 | in: path |
| 360 | name: policy_id |
| 361 | required: true |
| 362 | schema: |
| 363 | type: string |
| 364 | style: simple |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 365 | responses: |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 366 | "200": |
| 367 | content: |
| 368 | '*/*': |
| 369 | schema: |
| 370 | $ref: '#/components/schemas/void' |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 371 | description: OK - Policy deleted |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 372 | "423": |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 373 | $ref: '#/components/responses/Locked' |
| 374 | description: 'The requested policy using policy_id is Locked' |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 375 | summary: Delete a policy |
| 376 | tags: |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 377 | - A1 Policy Management |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 378 | get: |
| 379 | operationId: getPolicy |
| 380 | parameters: |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 381 | - explode: false |
| 382 | in: path |
| 383 | name: policy_id |
| 384 | required: true |
| 385 | schema: |
| 386 | type: string |
| 387 | style: simple |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 388 | responses: |
| 389 | "200": |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 390 | content: |
| 391 | application/json: |
| 392 | schema: |
raviteja.karumuri | 9dcf49c | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 393 | $ref: '#/components/schemas/policy_info' |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 394 | examples: |
| 395 | policy_info: |
| 396 | $ref: '#/components/examples/policy_info' |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 397 | description: OK - Policy found |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 398 | "404": |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 399 | $ref: '#/components/responses/NotFound' |
| 400 | description: 'Not Found - Requested Policy using policy_id is not found' |
| 401 | description: Returns a policy |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 402 | tags: |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 403 | - A1 Policy Management |
PatrikBuhr | 6e31874 | 2021-11-30 11:25:17 +0100 | [diff] [blame] | 404 | /actuator/metrics/{requiredMetricName}: |
| 405 | get: |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 406 | x-internal: true |
PatrikBuhr | 62c2596 | 2022-03-25 15:39:06 +0100 | [diff] [blame] | 407 | operationId: metrics-requiredMetricName |
PatrikBuhr | 6e31874 | 2021-11-30 11:25:17 +0100 | [diff] [blame] | 408 | parameters: |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 409 | - explode: false |
| 410 | in: path |
| 411 | name: requiredMetricName |
| 412 | required: true |
| 413 | schema: |
| 414 | type: string |
| 415 | style: simple |
PatrikBuhr | 6e31874 | 2021-11-30 11:25:17 +0100 | [diff] [blame] | 416 | responses: |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 417 | "200": |
PatrikBuhr | 6e31874 | 2021-11-30 11:25:17 +0100 | [diff] [blame] | 418 | content: |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 419 | application/vnd.spring-boot.actuator.v3+json: |
| 420 | schema: |
| 421 | type: object |
| 422 | application/json: |
| 423 | schema: |
| 424 | type: object |
| 425 | application/vnd.spring-boot.actuator.v2+json: |
PatrikBuhr | 6e31874 | 2021-11-30 11:25:17 +0100 | [diff] [blame] | 426 | schema: |
| 427 | type: object |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 428 | description: OK |
| 429 | summary: Actuator web endpoint 'metrics-requiredMetricName' |
| 430 | tags: |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 431 | - Actuator |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 432 | /a1-policy/v2/configuration: |
| 433 | get: |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 434 | x-internal: true |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 435 | operationId: getConfiguration |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 436 | responses: |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 437 | "200": |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 438 | content: |
| 439 | application/json: |
| 440 | schema: |
raviteja.karumuri | 9dcf49c | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 441 | type: string |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 442 | description: OK - Configuration |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 443 | "404": |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 444 | $ref: '#/components/responses/NotFound' |
| 445 | description: Not Found - Configuration is not found or readable |
| 446 | description: Returns the contents of the application configuration file |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 447 | tags: |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 448 | - Configuration |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 449 | put: |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 450 | x-internal: true |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 451 | operationId: putConfiguration |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 452 | requestBody: |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 453 | content: |
| 454 | application/json: |
| 455 | schema: |
| 456 | type: object |
| 457 | required: true |
| 458 | responses: |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 459 | "200": |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 460 | content: |
| 461 | '*/*': |
| 462 | schema: |
| 463 | $ref: '#/components/schemas/void' |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 464 | description: OK - Configuration updated |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 465 | "400": |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 466 | $ref: '#/components/responses/BadRequest' |
| 467 | description: Replace the current configuration with the given configuration |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 468 | tags: |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 469 | - Configuration |
PatrikBuhr | 6e31874 | 2021-11-30 11:25:17 +0100 | [diff] [blame] | 470 | /actuator: |
| 471 | get: |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 472 | x-internal: true |
PatrikBuhr | 62c2596 | 2022-03-25 15:39:06 +0100 | [diff] [blame] | 473 | operationId: links |
PatrikBuhr | 6e31874 | 2021-11-30 11:25:17 +0100 | [diff] [blame] | 474 | responses: |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 475 | "200": |
PatrikBuhr | 6e31874 | 2021-11-30 11:25:17 +0100 | [diff] [blame] | 476 | content: |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 477 | application/vnd.spring-boot.actuator.v3+json: |
| 478 | schema: |
| 479 | additionalProperties: |
| 480 | additionalProperties: |
| 481 | $ref: '#/components/schemas/Link' |
| 482 | type: object |
| 483 | type: object |
| 484 | application/json: |
| 485 | schema: |
| 486 | additionalProperties: |
| 487 | additionalProperties: |
| 488 | $ref: '#/components/schemas/Link' |
| 489 | type: object |
| 490 | type: object |
| 491 | application/vnd.spring-boot.actuator.v2+json: |
PatrikBuhr | 6e31874 | 2021-11-30 11:25:17 +0100 | [diff] [blame] | 492 | schema: |
PatrikBuhr | 6e31874 | 2021-11-30 11:25:17 +0100 | [diff] [blame] | 493 | additionalProperties: |
PatrikBuhr | 6e31874 | 2021-11-30 11:25:17 +0100 | [diff] [blame] | 494 | additionalProperties: |
| 495 | $ref: '#/components/schemas/Link' |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 496 | type: object |
| 497 | type: object |
| 498 | description: OK |
| 499 | summary: Actuator root web endpoint |
| 500 | tags: |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 501 | - Actuator |
PatrikBuhr | 6e31874 | 2021-11-30 11:25:17 +0100 | [diff] [blame] | 502 | /actuator/loggers/{name}: |
| 503 | get: |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 504 | x-internal: true |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 505 | operationId: loggers-name |
PatrikBuhr | 6e31874 | 2021-11-30 11:25:17 +0100 | [diff] [blame] | 506 | parameters: |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 507 | - explode: false |
| 508 | in: path |
| 509 | name: name |
| 510 | required: true |
| 511 | schema: |
| 512 | type: string |
| 513 | style: simple |
PatrikBuhr | 6e31874 | 2021-11-30 11:25:17 +0100 | [diff] [blame] | 514 | responses: |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 515 | "200": |
PatrikBuhr | 6e31874 | 2021-11-30 11:25:17 +0100 | [diff] [blame] | 516 | content: |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 517 | application/vnd.spring-boot.actuator.v3+json: |
| 518 | schema: |
| 519 | type: object |
| 520 | application/json: |
| 521 | schema: |
| 522 | type: object |
| 523 | application/vnd.spring-boot.actuator.v2+json: |
PatrikBuhr | 6e31874 | 2021-11-30 11:25:17 +0100 | [diff] [blame] | 524 | schema: |
| 525 | type: object |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 526 | description: OK |
| 527 | summary: Actuator web endpoint 'loggers-name' |
PatrikBuhr | 6e31874 | 2021-11-30 11:25:17 +0100 | [diff] [blame] | 528 | tags: |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 529 | - Actuator |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 530 | post: |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 531 | x-internal: true |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 532 | operationId: loggers-name_2 |
PatrikBuhr | 6e31874 | 2021-11-30 11:25:17 +0100 | [diff] [blame] | 533 | parameters: |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 534 | - explode: false |
| 535 | in: path |
| 536 | name: name |
| 537 | required: true |
| 538 | schema: |
| 539 | type: string |
| 540 | style: simple |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 541 | requestBody: |
| 542 | content: |
| 543 | application/json: |
| 544 | schema: |
| 545 | enum: |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 546 | - TRACE |
| 547 | - DEBUG |
| 548 | - INFO |
| 549 | - WARN |
| 550 | - ERROR |
| 551 | - FATAL |
| 552 | - "OFF" |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 553 | type: string |
PatrikBuhr | 6e31874 | 2021-11-30 11:25:17 +0100 | [diff] [blame] | 554 | responses: |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 555 | "200": |
PatrikBuhr | 6e31874 | 2021-11-30 11:25:17 +0100 | [diff] [blame] | 556 | content: |
| 557 | '*/*': |
| 558 | schema: |
| 559 | type: object |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 560 | description: OK |
| 561 | summary: Actuator web endpoint 'loggers-name' |
| 562 | tags: |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 563 | - Actuator |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 564 | /a1-policy/v2/services/{service_id}/keepalive: |
| 565 | put: |
JohnKeeney | 08486cf | 2022-05-24 12:34:49 +0100 | [diff] [blame] | 566 | description: A registered service should invoke this operation regularly to |
| 567 | indicate that it is still alive. If a registered service fails to invoke this |
| 568 | operation before the end of a timeout period the service will be deregistered |
| 569 | and all its A1 policies wil be removed. (This timeout can be set or disabled |
| 570 | when each service is initially registered) |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame] | 571 | operationId: keepAliveService |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 572 | parameters: |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 573 | - explode: false |
| 574 | in: path |
| 575 | name: service_id |
| 576 | required: true |
| 577 | schema: |
| 578 | type: string |
| 579 | style: simple |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 580 | responses: |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 581 | "200": |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 582 | content: |
| 583 | '*/*': |
| 584 | schema: |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 585 | type: object |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 586 | description: "OK - Service supervision timer refreshed, OK" |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 587 | "404": |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 588 | $ref: '#/components/responses/NotFound' |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 589 | summary: Heartbeat indicates that the service is running |
| 590 | tags: |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 591 | - Service Registry and Supervision |
PatrikBuhr | 6e31874 | 2021-11-30 11:25:17 +0100 | [diff] [blame] | 592 | /actuator/metrics: |
| 593 | get: |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 594 | x-internal: true |
PatrikBuhr | 62c2596 | 2022-03-25 15:39:06 +0100 | [diff] [blame] | 595 | operationId: metrics |
PatrikBuhr | 6e31874 | 2021-11-30 11:25:17 +0100 | [diff] [blame] | 596 | responses: |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 597 | "200": |
PatrikBuhr | 6e31874 | 2021-11-30 11:25:17 +0100 | [diff] [blame] | 598 | content: |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 599 | application/vnd.spring-boot.actuator.v3+json: |
| 600 | schema: |
| 601 | type: object |
| 602 | application/json: |
| 603 | schema: |
| 604 | type: object |
| 605 | application/vnd.spring-boot.actuator.v2+json: |
PatrikBuhr | 6e31874 | 2021-11-30 11:25:17 +0100 | [diff] [blame] | 606 | schema: |
| 607 | type: object |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 608 | description: OK |
| 609 | summary: Actuator web endpoint 'metrics' |
| 610 | tags: |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 611 | - Actuator |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 612 | /a1-policy/v2/rics: |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 613 | get: |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 614 | description: The call returns all Near-RT RICs that supports a given policy |
| 615 | type identity |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame] | 616 | operationId: getRics |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 617 | parameters: |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 618 | - description: "The identity of a policy type. If given, all Near-RT RICs supporting\ |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 619 | \ the policy type are returned" |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 620 | explode: true |
| 621 | in: query |
| 622 | name: policytype_id |
| 623 | required: false |
| 624 | schema: |
| 625 | type: string |
| 626 | style: form |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 627 | responses: |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 628 | "200": |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 629 | content: |
| 630 | application/json: |
| 631 | schema: |
raviteja.karumuri | 9dcf49c | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 632 | $ref: '#/components/schemas/ric_info_list' |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 633 | examples: |
| 634 | ric_info_list: |
| 635 | $ref: '#/components/examples/ric_info_list' |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 636 | description: OK |
| 637 | "404": |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 638 | $ref: '#/components/responses/NotFound' |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 639 | summary: Query Near-RT RIC information |
| 640 | tags: |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 641 | - NearRT-RIC Repository |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 642 | /a1-policy/v2/services: |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 643 | get: |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 644 | description: Either information about a registered service with given identity |
| 645 | or all registered services are returned. |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame] | 646 | operationId: getServices |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 647 | parameters: |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 648 | - description: The identity of the service |
| 649 | explode: true |
| 650 | in: query |
| 651 | name: service_id |
| 652 | required: false |
| 653 | schema: |
| 654 | type: string |
| 655 | style: form |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 656 | responses: |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 657 | "200": |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 658 | content: |
| 659 | application/json: |
| 660 | schema: |
raviteja.karumuri | 9dcf49c | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 661 | $ref: '#/components/schemas/service_status_list' |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 662 | examples: |
| 663 | service_status_list: |
| 664 | $ref: '#/components/examples/service_status_list' |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 665 | description: OK |
| 666 | "404": |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 667 | $ref: '#/components/responses/NotFound' |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 668 | summary: Returns service information |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 669 | tags: |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 670 | - Service Registry and Supervision |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 671 | put: |
| 672 | description: "Registering a service is needed to:<ul><li>Get callbacks about\ |
| 673 | \ available NearRT RICs.</li><li>Activate supervision of the service. If a\ |
| 674 | \ service is inactive, its policies will automatically be deleted.</li></ul>Policies\ |
| 675 | \ can be created even if the service is not registerred. This is a feature\ |
| 676 | \ which it is optional to use." |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame] | 677 | operationId: putService |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 678 | requestBody: |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 679 | content: |
| 680 | application/json: |
| 681 | schema: |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 682 | $ref: '#/components/schemas/service_registration_info' |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 683 | required: true |
| 684 | responses: |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 685 | "200": |
| 686 | content: |
| 687 | '*/*': |
| 688 | schema: |
| 689 | type: object |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 690 | description: OK - Service updated |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 691 | "201": |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 692 | content: |
| 693 | '*/*': |
| 694 | schema: |
| 695 | type: object |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 696 | description: Created - Service created |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 697 | "400": |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 698 | $ref: '#/components/responses/BadRequest' |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 699 | summary: Register a service |
| 700 | tags: |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 701 | - Service Registry and Supervision |
raviteja.karumuri | d533de6 | 2023-11-14 15:41:49 +0000 | [diff] [blame] | 702 | callbacks: |
| 703 | RICStatus: |
| 704 | "{$request.body#/callback_url}": |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 705 | post: |
| 706 | description: The URL to this call is registered at Service registration. |
| 707 | operationId: serviceCallback |
| 708 | requestBody: |
raviteja.karumuri | d533de6 | 2023-11-14 15:41:49 +0000 | [diff] [blame] | 709 | content: |
| 710 | application/json: |
| 711 | schema: |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 712 | $ref: '#/components/schemas/service_callback_info_v2' |
| 713 | required: true |
| 714 | responses: |
| 715 | "200": |
| 716 | content: |
| 717 | application/json: |
| 718 | schema: |
| 719 | $ref: '#/components/schemas/void' |
| 720 | description: OK |
| 721 | "404": |
| 722 | $ref: '#/components/responses/NotFound' |
| 723 | summary: Callback for Near-RT RIC status |
| 724 | tags: |
| 725 | - Service callbacks |
PatrikBuhr | 6e31874 | 2021-11-30 11:25:17 +0100 | [diff] [blame] | 726 | /actuator/info: |
| 727 | get: |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 728 | x-internal: true |
PatrikBuhr | 62c2596 | 2022-03-25 15:39:06 +0100 | [diff] [blame] | 729 | operationId: info |
PatrikBuhr | 6e31874 | 2021-11-30 11:25:17 +0100 | [diff] [blame] | 730 | responses: |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 731 | "200": |
PatrikBuhr | 6e31874 | 2021-11-30 11:25:17 +0100 | [diff] [blame] | 732 | content: |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 733 | application/vnd.spring-boot.actuator.v3+json: |
| 734 | schema: |
| 735 | type: object |
| 736 | application/json: |
| 737 | schema: |
| 738 | type: object |
| 739 | application/vnd.spring-boot.actuator.v2+json: |
PatrikBuhr | 6e31874 | 2021-11-30 11:25:17 +0100 | [diff] [blame] | 740 | schema: |
| 741 | type: object |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 742 | description: OK |
| 743 | summary: Actuator web endpoint 'info' |
| 744 | tags: |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 745 | - Actuator |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 746 | /status: |
| 747 | get: |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame] | 748 | operationId: getStatusV1 |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 749 | responses: |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 750 | "200": |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 751 | content: |
| 752 | '*/*': |
| 753 | schema: |
| 754 | type: string |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 755 | description: OK - Service is living |
| 756 | description: Returns status and statistics of this service |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 757 | tags: |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 758 | - Health Check |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 759 | /a1-policy/v2/policy-types/{policytype_id}: |
| 760 | get: |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 761 | operationId: getPolicyTypeDefinition |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 762 | parameters: |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 763 | - explode: false |
| 764 | in: path |
| 765 | name: policytype_id |
| 766 | required: true |
| 767 | schema: |
| 768 | type: string |
| 769 | style: simple |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 770 | responses: |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 771 | "200": |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 772 | content: |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 773 | application/json: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 774 | schema: |
raviteja.karumuri | 9dcf49c | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 775 | $ref: '#/components/schemas/policy_type_definition' |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 776 | examples: |
| 777 | policy_type_definition: |
| 778 | $ref: '#/components/examples/policy_type_definition' |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 779 | description: OK - schema of the given policy type |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 780 | "404": |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 781 | $ref: '#/components/responses/NotFound' |
| 782 | description: Returns a policy type definition |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 783 | tags: |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 784 | - A1 Policy Management |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 785 | /actuator/logfile: |
| 786 | get: |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 787 | x-internal: true |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 788 | operationId: logfile |
| 789 | responses: |
| 790 | "200": |
| 791 | content: |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 792 | text/plain;charset=UTF-8: |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 793 | schema: |
| 794 | type: object |
| 795 | description: OK |
| 796 | summary: Actuator web endpoint 'logfile' |
| 797 | tags: |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 798 | - Actuator |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 799 | /actuator/health: |
| 800 | get: |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 801 | x-internal: true |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 802 | operationId: health |
| 803 | responses: |
| 804 | "200": |
| 805 | content: |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 806 | application/vnd.spring-boot.actuator.v3+json: |
| 807 | schema: |
| 808 | type: object |
| 809 | application/json: |
| 810 | schema: |
| 811 | type: object |
| 812 | application/vnd.spring-boot.actuator.v2+json: |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 813 | schema: |
| 814 | type: object |
| 815 | description: OK |
| 816 | summary: Actuator web endpoint 'health' |
| 817 | tags: |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 818 | - Actuator |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 819 | /a1-policy/v2/policies: |
| 820 | get: |
| 821 | description: "Returns a list of A1 policies matching given search criteria.\ |
| 822 | \ <br>If several query parameters are defined, the policies matching all conditions\ |
| 823 | \ are returned." |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame] | 824 | operationId: getPolicyIds |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 825 | parameters: |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 826 | - description: Select policies of a given policy type identity. |
| 827 | explode: true |
| 828 | in: query |
| 829 | name: policytype_id |
| 830 | required: false |
| 831 | schema: |
| 832 | type: string |
| 833 | style: form |
| 834 | - description: Select policies of a given Near-RT RIC identity. |
| 835 | explode: true |
| 836 | in: query |
| 837 | name: ric_id |
| 838 | required: false |
| 839 | schema: |
| 840 | type: string |
| 841 | style: form |
| 842 | - description: Select policies owned by a given service. |
| 843 | explode: true |
| 844 | in: query |
| 845 | name: service_id |
| 846 | required: false |
| 847 | schema: |
| 848 | type: string |
| 849 | style: form |
| 850 | - description: Select policies of types with the given type name (type identity |
| 851 | has the format <typename_version>) |
| 852 | explode: true |
| 853 | in: query |
| 854 | name: type_name |
| 855 | required: false |
| 856 | schema: |
| 857 | type: string |
| 858 | style: form |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 859 | responses: |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 860 | "200": |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 861 | content: |
| 862 | application/json: |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 863 | examples: |
| 864 | policy_id_list: |
| 865 | $ref: '#/components/examples/policy_id_list' |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 866 | schema: |
raviteja.karumuri | 9dcf49c | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 867 | $ref: '#/components/schemas/policy_id_list' |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 868 | description: OK - Policy identities |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 869 | "404": |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 870 | $ref: '#/components/responses/NotFound' |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 871 | summary: Query policy identities |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 872 | tags: |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 873 | - A1 Policy Management |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 874 | put: |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame] | 875 | operationId: putPolicy |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 876 | requestBody: |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 877 | content: |
| 878 | application/json: |
| 879 | schema: |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 880 | $ref: '#/components/schemas/policy_info' |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 881 | required: true |
| 882 | responses: |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 883 | "200": |
| 884 | content: |
| 885 | application/json: |
| 886 | schema: |
| 887 | $ref: '#/components/schemas/void' |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 888 | description: OK - Policy updated |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 889 | "201": |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 890 | content: |
| 891 | application/json: |
| 892 | schema: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 893 | $ref: '#/components/schemas/void' |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 894 | description: Created - Policy created |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 895 | "423": |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 896 | $ref: '#/components/responses/Locked' |
| 897 | description: Create or update a policy |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 898 | tags: |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 899 | - A1 Policy Management |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 900 | /a1-policy/v2/services/{service_id}: |
| 901 | delete: |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame] | 902 | operationId: deleteService |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 903 | parameters: |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 904 | - explode: false |
| 905 | in: path |
| 906 | name: service_id |
| 907 | required: true |
| 908 | schema: |
| 909 | type: string |
| 910 | style: simple |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 911 | responses: |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 912 | "204": |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 913 | content: |
| 914 | '*/*': |
| 915 | schema: |
| 916 | type: object |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 917 | description: No Content - Service unregistered |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 918 | "404": |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 919 | $ref: '#/components/responses/NotFound' |
| 920 | description: Unregister a service |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 921 | tags: |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 922 | - Service Registry and Supervision |
PatrikBuhr | 62c2596 | 2022-03-25 15:39:06 +0100 | [diff] [blame] | 923 | /actuator/heapdump: |
| 924 | get: |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 925 | x-internal: true |
PatrikBuhr | 62c2596 | 2022-03-25 15:39:06 +0100 | [diff] [blame] | 926 | operationId: heapdump |
| 927 | responses: |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 928 | "200": |
PatrikBuhr | 62c2596 | 2022-03-25 15:39:06 +0100 | [diff] [blame] | 929 | content: |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 930 | application/octet-stream: |
PatrikBuhr | 62c2596 | 2022-03-25 15:39:06 +0100 | [diff] [blame] | 931 | schema: |
| 932 | type: object |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 933 | description: OK |
| 934 | summary: Actuator web endpoint 'heapdump' |
| 935 | tags: |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 936 | - Actuator |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 937 | /a1-policy/v2/policies/{policy_id}/status: |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 938 | get: |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame] | 939 | operationId: getPolicyStatus |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 940 | parameters: |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 941 | - explode: false |
| 942 | in: path |
| 943 | name: policy_id |
| 944 | required: true |
| 945 | schema: |
| 946 | type: string |
| 947 | style: simple |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 948 | responses: |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 949 | "200": |
PatrikBuhr | be0ae3e | 2021-01-14 15:31:39 +0100 | [diff] [blame] | 950 | content: |
| 951 | application/json: |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 952 | schema: |
| 953 | $ref: '#/components/schemas/policy_status_info' |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 954 | examples: |
| 955 | policy_status_info: |
| 956 | $ref: '#/components/examples/policy_status_info' |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 957 | description: OK - Policy status |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 958 | "404": |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 959 | $ref: '#/components/responses/NotFound' |
| 960 | description: Returns a policy status |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 961 | tags: |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 962 | - A1 Policy Management |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 963 | components: |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 964 | responses: |
| 965 | Locked: |
| 966 | description: "Locked - HTTP Status code which can be used when the state is Locked" |
| 967 | content: |
| 968 | application/problem+json: |
| 969 | schema: |
| 970 | $ref: '#/components/schemas/error_information' |
| 971 | example: |
| 972 | status: 423 |
| 973 | title: Locked |
| 974 | detail: Requested resource is in a locked state. |
| 975 | BadRequest: |
| 976 | description: Bad Request |
| 977 | content: |
| 978 | application/problem+json: |
| 979 | schema: |
| 980 | $ref: '#/components/schemas/error_information' |
| 981 | example: |
| 982 | status: 400 |
| 983 | title: Bad Request |
| 984 | detail: The provided request is not valid. |
| 985 | Forbidden: |
| 986 | description: Forbidden |
| 987 | content: |
| 988 | application/problem+json: |
| 989 | schema: |
| 990 | $ref: '#/components/schemas/error_information' |
| 991 | example: |
| 992 | status: 403 |
| 993 | title: Forbidden |
| 994 | detail: Your role does not allow to perform this action. Contact System Administrator to change your access rights. |
| 995 | NotFound: |
| 996 | description: Not Found |
| 997 | content: |
| 998 | application/problem+json: |
| 999 | example: |
| 1000 | [ ] |
| 1001 | |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 1002 | examples: |
| 1003 | service_status: |
| 1004 | description: List of service information |
| 1005 | value: |
| 1006 | callback_url: callback_url |
| 1007 | service_id: service_id |
| 1008 | keep_alive_interval_seconds: 0 |
| 1009 | time_since_last_activity_seconds: 6 |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 1010 | |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 1011 | service_status_list: |
| 1012 | description: List of service information |
| 1013 | value: |
| 1014 | service_list: |
| 1015 | - callback_url: callback_url |
| 1016 | service_id: service_id |
| 1017 | keep_alive_interval_seconds: 0 |
| 1018 | time_since_last_activity_seconds: 6 |
| 1019 | - callback_url: callback_url |
| 1020 | service_id: service_id |
| 1021 | keep_alive_interval_seconds: 0 |
| 1022 | time_since_last_activity_seconds: 6 |
| 1023 | policy_type_definition: |
| 1024 | description: Schema of the given Policy type |
| 1025 | value: |
| 1026 | policy_schema: "{}" |
| 1027 | policy_type_id_list: |
| 1028 | description: Array of policy type id's |
| 1029 | value: |
| 1030 | policy_type_id_list: |
| 1031 | - policytype_id |
| 1032 | - policytype_id |
| 1033 | policy_info: |
| 1034 | description: Policy information of one A1-P policy |
| 1035 | value: |
| 1036 | ric_id: ric_id |
| 1037 | policy_id: policy_id |
| 1038 | transient: false |
| 1039 | service_id: service_id |
| 1040 | policy_data: "{}" |
| 1041 | status_notification_uri: status_notification_uri |
| 1042 | policytype_id: policytype_id |
| 1043 | policy_info_list: |
| 1044 | description: List of policy information |
| 1045 | value: |
| 1046 | policies: |
| 1047 | - ric_id: ric_id |
| 1048 | policy_id: policy_id |
| 1049 | transient: false |
| 1050 | service_id: service_id |
| 1051 | policy_data: "{}" |
| 1052 | status_notification_uri: status_notification_uri |
| 1053 | policytype_id: policytype_id |
| 1054 | - ric_id: ric_id |
| 1055 | policy_id: policy_id |
| 1056 | transient: false |
| 1057 | service_id: service_id |
| 1058 | policy_data: "{}" |
| 1059 | status_notification_uri: status_notification_uri |
| 1060 | policytype_id: policytype_id |
| 1061 | policy_id_list: |
| 1062 | description: A list of policy identities |
| 1063 | value: |
| 1064 | policy_ids: |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 1065 | - some_policy_id |
| 1066 | - some_policy_id |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 1067 | policy_status_info: |
| 1068 | description: Status for one A1-P Policy |
| 1069 | value: |
| 1070 | last_modified: last_modified |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 1071 | status: |
| 1072 | value: |
| 1073 | status: status |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 1074 | status_info: |
| 1075 | value: |
| 1076 | status: status |
| 1077 | ric_info: |
| 1078 | value: |
| 1079 | ric_id: ric_id |
| 1080 | managed_element_ids: |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 1081 | - some_managed_element_id |
| 1082 | - some_managed_element_id |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 1083 | state: UNAVAILABLE |
| 1084 | policytype_ids: |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 1085 | - some_policytype_id |
| 1086 | - some_policytype_id |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 1087 | ric_info_list: |
| 1088 | value: |
| 1089 | rics: |
| 1090 | - ric_id: ric_id |
| 1091 | managed_element_ids: |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 1092 | - some_managed_element_id |
| 1093 | - some_managed_element_id |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 1094 | state: UNAVAILABLE |
| 1095 | policytype_ids: |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 1096 | - policytype_id |
| 1097 | - policytype_id |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 1098 | - ric_id: ric_id |
| 1099 | managed_element_ids: |
| 1100 | - managed_element_ids |
| 1101 | - managed_element_ids |
| 1102 | state: UNAVAILABLE |
| 1103 | policytype_ids: |
| 1104 | - policytype_ids |
| 1105 | - policytype_ids |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 1106 | |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 1107 | schemas: |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 1108 | policy_type_definition: |
| 1109 | description: Contains policy type schema definition |
| 1110 | type: object |
| 1111 | properties: |
| 1112 | policy_schema: |
| 1113 | description: Policy type json schema. The schema is a json object following |
| 1114 | http://json-schema.org/draft-07/schema |
| 1115 | type: object |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 1116 | error_information: |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 1117 | description: Problem as defined in https://tools.ietf.org/html/rfc7807 |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 1118 | properties: |
| 1119 | detail: |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 1120 | description: ' A human-readable explanation specific to this occurrence |
| 1121 | of the problem.' |
| 1122 | example: Policy type not found |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 1123 | type: string |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 1124 | title: |
| 1125 | description: 'A specific error name' |
| 1126 | type: string |
| 1127 | example: Not Found |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 1128 | status: |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 1129 | description: 'The HTTP status code generated by the origin server for this |
| 1130 | occurrence of the problem. ' |
PatrikBuhr | 3b916e4 | 2021-10-07 18:03:53 +0200 | [diff] [blame] | 1131 | example: 404 |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 1132 | format: int32 |
| 1133 | type: integer |
| 1134 | type: object |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1135 | void: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1136 | description: Void/empty |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 1137 | type: object |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 1138 | status_info: |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 1139 | properties: |
| 1140 | status: |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 1141 | description: status text |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 1142 | type: string |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 1143 | type: object |
PatrikBuhr | f07e4b3 | 2023-04-05 14:40:07 +0200 | [diff] [blame] | 1144 | authorization_result: |
| 1145 | description: Result of authorization |
| 1146 | example: |
| 1147 | result: true |
| 1148 | properties: |
| 1149 | result: |
| 1150 | description: "If true, the access is granted" |
| 1151 | type: boolean |
| 1152 | required: |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 1153 | - result |
PatrikBuhr | f07e4b3 | 2023-04-05 14:40:07 +0200 | [diff] [blame] | 1154 | type: object |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 1155 | ric_info: |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 1156 | description: Information for a Near-RT RIC |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 1157 | properties: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1158 | ric_id: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1159 | description: identity of the Near-RT RIC |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 1160 | type: string |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1161 | managed_element_ids: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1162 | description: O1 identities for managed entities |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 1163 | items: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1164 | description: O1 identities for managed entities |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 1165 | type: string |
| 1166 | type: array |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1167 | state: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1168 | description: Represents the states for a Near-RT RIC |
| 1169 | enum: |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 1170 | - UNAVAILABLE |
| 1171 | - AVAILABLE |
| 1172 | - SYNCHRONIZING |
| 1173 | - CONSISTENCY_CHECK |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 1174 | type: string |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1175 | policytype_ids: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1176 | description: supported policy types |
| 1177 | items: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1178 | description: supported policy types |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 1179 | type: string |
| 1180 | type: array |
| 1181 | type: object |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 1182 | service_registration_info: |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 1183 | description: Information for one service |
| 1184 | properties: |
| 1185 | callback_url: |
| 1186 | description: callback for notifying of Near-RT RIC state changes |
| 1187 | type: string |
| 1188 | service_id: |
| 1189 | description: identity of the service |
| 1190 | type: string |
| 1191 | keep_alive_interval_seconds: |
| 1192 | description: "keep alive interval for the service. This is used to enable\ |
| 1193 | \ optional heartbeat supervision of the service. If set (> 0) the registered\ |
| 1194 | \ service should regularly invoke a 'keepalive' REST call. When a service\ |
| 1195 | \ fails to invoke this 'keepalive' call within the configured time, the\ |
| 1196 | \ service is considered unavailable. An unavailable service will be automatically\ |
| 1197 | \ deregistered and its policies will be deleted. Value 0 means timeout\ |
| 1198 | \ supervision is disabled." |
| 1199 | format: int64 |
| 1200 | type: integer |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 1201 | required: |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 1202 | - service_id |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 1203 | type: object |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 1204 | policy_info_list: |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 1205 | description: List of policy information |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1206 | properties: |
| 1207 | policies: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1208 | description: List of policy information |
| 1209 | items: |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 1210 | $ref: '#/components/schemas/policy_info' |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 1211 | type: array |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 1212 | type: object |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 1213 | policy_status_info: |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 1214 | description: Status for one A1-P Policy |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 1215 | properties: |
| 1216 | last_modified: |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 1217 | description: "timestamp, last modification time" |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 1218 | type: string |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 1219 | status: |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 1220 | description: the Policy status |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 1221 | type: object |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 1222 | type: object |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 1223 | service_status: |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 1224 | properties: |
| 1225 | callback_url: |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 1226 | description: callback for notifying of RIC synchronization |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 1227 | type: string |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 1228 | service_id: |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 1229 | description: identity of the service |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 1230 | type: string |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 1231 | keep_alive_interval_seconds: |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 1232 | description: policy keep alive timeout |
| 1233 | format: int64 |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 1234 | type: integer |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 1235 | time_since_last_activity_seconds: |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 1236 | description: time since last invocation by the service |
| 1237 | format: int64 |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 1238 | type: integer |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 1239 | type: object |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 1240 | ric_info_list: |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 1241 | description: List of Near-RT RIC information |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 1242 | properties: |
| 1243 | rics: |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 1244 | description: List of Near-RT RIC information |
| 1245 | items: |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 1246 | $ref: '#/components/schemas/ric_info' |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 1247 | type: array |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1248 | type: object |
PatrikBuhr | f07e4b3 | 2023-04-05 14:40:07 +0200 | [diff] [blame] | 1249 | input: |
| 1250 | description: input |
| 1251 | properties: |
| 1252 | access_type: |
| 1253 | description: Access type |
| 1254 | enum: |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 1255 | - READ |
| 1256 | - WRITE |
| 1257 | - DELETE |
PatrikBuhr | f07e4b3 | 2023-04-05 14:40:07 +0200 | [diff] [blame] | 1258 | type: string |
| 1259 | auth_token: |
| 1260 | description: Authorization token |
| 1261 | type: string |
| 1262 | policy_type_id: |
| 1263 | description: Policy type identifier |
| 1264 | type: string |
| 1265 | required: |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 1266 | - access_type |
| 1267 | - auth_token |
| 1268 | - policy_type_id |
PatrikBuhr | f07e4b3 | 2023-04-05 14:40:07 +0200 | [diff] [blame] | 1269 | type: object |
| 1270 | policy_authorization: |
| 1271 | description: Authorization request for A1 policy requests |
| 1272 | properties: |
| 1273 | input: |
| 1274 | $ref: '#/components/schemas/input' |
| 1275 | required: |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 1276 | - input |
PatrikBuhr | f07e4b3 | 2023-04-05 14:40:07 +0200 | [diff] [blame] | 1277 | type: object |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 1278 | policy_type_id_list: |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 1279 | description: Information about policy types |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 1280 | properties: |
| 1281 | policytype_ids: |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 1282 | description: Policy type identities |
| 1283 | items: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1284 | description: Policy type identities |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 1285 | type: string |
| 1286 | type: array |
| 1287 | type: object |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 1288 | policy_info: |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 1289 | description: Information for one A1-P Policy |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 1290 | properties: |
| 1291 | ric_id: |
| 1292 | description: identity of the target Near-RT RIC |
| 1293 | type: string |
| 1294 | policy_id: |
| 1295 | description: identity of the policy |
| 1296 | type: string |
| 1297 | transient: |
| 1298 | default: false |
| 1299 | description: "if true, the policy is deleted at RIC restart. If false, its\ |
| 1300 | \ value is maintained by this service until explicitly deleted. Default\ |
| 1301 | \ false." |
| 1302 | example: false |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 1303 | nullable: false |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 1304 | type: boolean |
| 1305 | service_id: |
| 1306 | description: the identity of the service owning the policy. This can be |
| 1307 | used to group the policies (it is possible to get all policies associated |
PatrikBuhr | 44499d0 | 2023-04-04 10:06:22 +0200 | [diff] [blame] | 1308 | to a service). Note that the service does not need to be registered. |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 1309 | type: string |
lapentafd | ecd9989 | 2024-08-09 11:35:29 +0100 | [diff] [blame^] | 1310 | default: "" |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 1311 | policy_data: |
| 1312 | description: the configuration of the policy |
| 1313 | type: object |
| 1314 | status_notification_uri: |
| 1315 | description: Callback URI for policy status updates |
| 1316 | type: string |
| 1317 | policytype_id: |
| 1318 | description: identity of the policy type |
| 1319 | type: string |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 1320 | required: |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 1321 | - ric_id |
| 1322 | - policy_id |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 1323 | - policy_data |
| 1324 | - policytype_id |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 1325 | type: object |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 1326 | policy_id_list: |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 1327 | description: A list of policy identities |
| 1328 | example: |
| 1329 | policy_ids: |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 1330 | - policy_ids |
| 1331 | - policy_ids |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1332 | properties: |
| 1333 | policy_ids: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1334 | description: Policy identities |
| 1335 | items: |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1336 | description: Policy identities |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 1337 | type: string |
| 1338 | type: array |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 1339 | type: object |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 1340 | service_status_list: |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 1341 | properties: |
| 1342 | service_list: |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 1343 | description: List of service information |
| 1344 | items: |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 1345 | $ref: '#/components/schemas/service_status' |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 1346 | type: array |
| 1347 | type: object |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 1348 | service_callback_info_v2: |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 1349 | description: Information transferred as in Service callbacks (callback_url) |
| 1350 | properties: |
| 1351 | ric_id: |
| 1352 | description: identity of a Near-RT RIC |
| 1353 | type: string |
| 1354 | event_type: |
| 1355 | description: "values:\nAVAILABLE: the Near-RT RIC has become available\ |
| 1356 | \ for A1 Policy management" |
| 1357 | enum: |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 1358 | - AVAILABLE |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 1359 | type: string |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 1360 | required: |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 1361 | - event_type |
| 1362 | - ric_id |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 1363 | type: object |
PatrikBuhr | 6e31874 | 2021-11-30 11:25:17 +0100 | [diff] [blame] | 1364 | Link: |
PatrikBuhr | 6e31874 | 2021-11-30 11:25:17 +0100 | [diff] [blame] | 1365 | properties: |
| 1366 | templated: |
| 1367 | type: boolean |
| 1368 | href: |
| 1369 | type: string |
raviteja.karumuri | ca358db | 2024-02-22 18:24:24 +0000 | [diff] [blame] | 1370 | type: object |