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