PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 1 | { |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 2 | "components": {"schemas": { |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 3 | "error_information": { |
| 4 | "description": "Problem as defined in https://tools.ietf.org/html/rfc7807", |
| 5 | "type": "object", |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +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 |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 17 | } |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 18 | }, |
| 19 | "example": null |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 20 | }, |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 21 | "void": { |
| 22 | "description": "Void/empty", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 23 | "type": "object", |
| 24 | "example": null |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 25 | }, |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 26 | "status_info_v2": { |
| 27 | "type": "object", |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 28 | "properties": {"status": { |
| 29 | "description": "status text", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 30 | "type": "string", |
| 31 | "example": null |
| 32 | }}, |
| 33 | "example": null |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +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", |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +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", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [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", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [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" |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [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", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 70 | "type": "string", |
| 71 | "example": null |
| 72 | }, |
| 73 | "example": null |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 74 | } |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 75 | }, |
| 76 | "example": null |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 77 | }, |
| 78 | "service_registration_info_v2": { |
| 79 | "description": "Information for one service", |
| 80 | "type": "object", |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 81 | "required": ["service_id"], |
| 82 | "properties": { |
| 83 | "callback_url": { |
| 84 | "description": "callback for notifying of Near-RT RIC state changes", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 85 | "type": "string", |
| 86 | "example": null |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 87 | }, |
| 88 | "service_id": { |
| 89 | "description": "identity of the service", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 90 | "type": "string", |
| 91 | "example": null |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +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.", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 96 | "type": "integer", |
| 97 | "example": null |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 98 | } |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 99 | }, |
| 100 | "example": null |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +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", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [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 | }, |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 113 | "policy_status_info_v2": { |
| 114 | "description": "Status for one A1-P Policy", |
| 115 | "type": "object", |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 116 | "properties": { |
| 117 | "last_modified": { |
| 118 | "description": "timestamp, last modification time", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 119 | "type": "string", |
| 120 | "example": null |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 121 | }, |
| 122 | "status": { |
| 123 | "description": "the Policy status", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 124 | "type": "object", |
| 125 | "example": null |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 126 | } |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 127 | }, |
| 128 | "example": null |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 129 | }, |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 130 | "service_status_v2": { |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 131 | "description": "List of service information", |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 132 | "type": "object", |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 133 | "properties": { |
| 134 | "callback_url": { |
| 135 | "description": "callback for notifying of RIC synchronization", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 136 | "type": "string", |
| 137 | "example": null |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 138 | }, |
| 139 | "service_id": { |
| 140 | "description": "identity of the service", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 141 | "type": "string", |
| 142 | "example": null |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 143 | }, |
| 144 | "keep_alive_interval_seconds": { |
| 145 | "format": "int64", |
| 146 | "description": "policy keep alive timeout", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 147 | "type": "integer", |
| 148 | "example": null |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 149 | }, |
| 150 | "time_since_last_activity_seconds": { |
| 151 | "format": "int64", |
| 152 | "description": "time since last invocation by the service", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 153 | "type": "integer", |
| 154 | "example": null |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 155 | } |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 156 | }, |
| 157 | "example": null |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +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", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [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 | }, |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 170 | "policytype_v2": { |
| 171 | "description": "Policy type", |
| 172 | "type": "object", |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +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", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 175 | "type": "object", |
| 176 | "example": null |
| 177 | }}, |
| 178 | "example": null |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 179 | }, |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 180 | "policytype_id_list_v2": { |
| 181 | "description": "Information about policy types", |
| 182 | "type": "object", |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +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", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 188 | "type": "string", |
| 189 | "example": null |
| 190 | }, |
| 191 | "example": null |
| 192 | }}, |
| 193 | "example": null |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 194 | }, |
| 195 | "policy_info_v2": { |
| 196 | "description": "Information for one A1-P Policy", |
| 197 | "type": "object", |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 198 | "required": [ |
| 199 | "policy_data", |
| 200 | "policy_id", |
| 201 | "policytype_id", |
PatrikBuhr | c7f757e | 2022-11-28 09:40:36 +0100 | [diff] [blame] | 202 | "ric_id" |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 203 | ], |
| 204 | "properties": { |
| 205 | "ric_id": { |
| 206 | "description": "identity of the target Near-RT RIC", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 207 | "type": "string", |
| 208 | "example": null |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 209 | }, |
| 210 | "policy_id": { |
| 211 | "description": "identity of the policy", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 212 | "type": "string", |
| 213 | "example": null |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 214 | }, |
| 215 | "transient": { |
PatrikBuhr | c7f757e | 2022-11-28 09:40:36 +0100 | [diff] [blame] | 216 | "default": false, |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 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.", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 218 | "type": "boolean", |
PatrikBuhr | c7f757e | 2022-11-28 09:40:36 +0100 | [diff] [blame] | 219 | "example": false |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 220 | }, |
| 221 | "service_id": { |
PatrikBuhr | c7f757e | 2022-11-28 09:40:36 +0100 | [diff] [blame] | 222 | "description": "the identity of the service owning the policy. This can be used to group the policies (it is possible to get all policies associated to a service). Note that the service does not need to be registerred.", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 223 | "type": "string", |
| 224 | "example": null |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 225 | }, |
| 226 | "policy_data": { |
| 227 | "description": "the configuration of the policy", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 228 | "type": "object", |
| 229 | "example": null |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 230 | }, |
| 231 | "status_notification_uri": { |
| 232 | "description": "Callback URI for policy status updates", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 233 | "type": "string", |
| 234 | "example": null |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 235 | }, |
| 236 | "policytype_id": { |
| 237 | "description": "identity of the policy type", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 238 | "type": "string", |
| 239 | "example": null |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 240 | } |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 241 | }, |
| 242 | "example": null |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +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", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [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 | }, |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 259 | "service_list_v2": { |
| 260 | "description": "List of service information", |
| 261 | "type": "object", |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 262 | "properties": {"service_list": { |
| 263 | "description": "List of service information", |
| 264 | "type": "array", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 265 | "items": {"$ref": "#/components/schemas/service_status_v2"}, |
| 266 | "example": null |
| 267 | }}, |
| 268 | "example": null |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 269 | }, |
| 270 | "service_callback_info_v2": { |
| 271 | "description": "Information transferred as in Service callbacks (callback_url)", |
| 272 | "type": "object", |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +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", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 280 | "type": "string", |
| 281 | "example": null |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +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", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 286 | "enum": ["AVAILABLE"], |
| 287 | "example": null |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 288 | } |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 289 | }, |
| 290 | "example": null |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 291 | }, |
| 292 | "Link": { |
| 293 | "type": "object", |
| 294 | "properties": { |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 295 | "templated": { |
| 296 | "type": "boolean", |
| 297 | "example": null |
| 298 | }, |
| 299 | "href": { |
| 300 | "type": "string", |
| 301 | "example": null |
| 302 | } |
| 303 | }, |
| 304 | "example": null |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +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", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [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", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [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 | { |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [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 | { |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [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 | { |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [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 | { |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [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 | de7a573 | 2022-03-31 12:08:56 +0200 | [diff] [blame] | 373 | "/actuator/threaddump": {"get": { |
| 374 | "summary": "Actuator web endpoint 'threaddump'", |
| 375 | "operationId": "threaddump_2", |
| 376 | "responses": {"200": { |
| 377 | "description": "OK", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 378 | "content": {"*/*": { |
| 379 | "schema": { |
| 380 | "type": "object", |
| 381 | "example": null |
| 382 | }, |
| 383 | "example": null |
| 384 | }} |
PatrikBuhr | de7a573 | 2022-03-31 12:08:56 +0200 | [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", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [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 | de7a573 | 2022-03-31 12:08:56 +0200 | [diff] [blame] | 400 | "/actuator/loggers": {"get": { |
| 401 | "summary": "Actuator web endpoint 'loggers'", |
| 402 | "operationId": "loggers", |
| 403 | "responses": {"200": { |
| 404 | "description": "OK", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 405 | "content": {"*/*": { |
| 406 | "schema": { |
| 407 | "type": "object", |
| 408 | "example": null |
| 409 | }, |
| 410 | "example": null |
| 411 | }} |
PatrikBuhr | de7a573 | 2022-03-31 12:08:56 +0200 | [diff] [blame] | 412 | }}, |
| 413 | "tags": ["Actuator"] |
| 414 | }}, |
| 415 | "/actuator/health/**": {"get": { |
| 416 | "summary": "Actuator web endpoint 'health-path'", |
| 417 | "operationId": "health-path", |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 418 | "responses": {"200": { |
| 419 | "description": "OK", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 420 | "content": {"*/*": { |
| 421 | "schema": { |
| 422 | "type": "object", |
| 423 | "example": null |
| 424 | }, |
| 425 | "example": null |
| 426 | }} |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +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", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [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", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [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 | { |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [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 | { |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [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 | }}, |
PatrikBuhr | c0218ad | 2022-11-28 09:40:36 +0100 | [diff] [blame^] | 474 | "/actuator/shutdown": {"post": { |
| 475 | "summary": "Actuator web endpoint 'shutdown'", |
| 476 | "operationId": "shutdown", |
| 477 | "responses": {"200": { |
| 478 | "description": "OK", |
| 479 | "content": {"*/*": { |
| 480 | "schema": { |
| 481 | "type": "object", |
| 482 | "example": null |
| 483 | }, |
| 484 | "example": null |
| 485 | }} |
| 486 | }}, |
| 487 | "tags": ["Actuator"] |
| 488 | }}, |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 489 | "/a1-policy/v2/policy-types": {"get": { |
| 490 | "summary": "Query policy type identities", |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame] | 491 | "operationId": "getPolicyTypes", |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 492 | "responses": { |
| 493 | "200": { |
| 494 | "description": "Policy type IDs", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 495 | "content": {"application/json": { |
| 496 | "schema": {"$ref": "#/components/schemas/policytype_id_list_v2"}, |
| 497 | "example": null |
| 498 | }} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 499 | }, |
| 500 | "404": { |
| 501 | "description": "Near-RT RIC is not found", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 502 | "content": {"application/json": { |
| 503 | "schema": {"$ref": "#/components/schemas/error_information"}, |
| 504 | "example": null |
| 505 | }} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 506 | } |
| 507 | }, |
PatrikBuhr | 3b916e4 | 2021-10-07 18:03:53 +0200 | [diff] [blame] | 508 | "parameters": [ |
| 509 | { |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 510 | "schema": { |
| 511 | "type": "string", |
| 512 | "example": null |
| 513 | }, |
PatrikBuhr | 3b916e4 | 2021-10-07 18:03:53 +0200 | [diff] [blame] | 514 | "in": "query", |
| 515 | "name": "ric_id", |
| 516 | "description": "Select types for the given Near-RT RIC identity.", |
| 517 | "required": false |
| 518 | }, |
| 519 | { |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 520 | "schema": { |
| 521 | "type": "string", |
| 522 | "example": null |
| 523 | }, |
PatrikBuhr | 3b916e4 | 2021-10-07 18:03:53 +0200 | [diff] [blame] | 524 | "in": "query", |
| 525 | "name": "type_name", |
| 526 | "description": "Select types with the given type name (type identity has the format <typename_version>)", |
| 527 | "required": false |
| 528 | }, |
| 529 | { |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 530 | "schema": { |
| 531 | "type": "string", |
| 532 | "example": null |
| 533 | }, |
PatrikBuhr | 3b916e4 | 2021-10-07 18:03:53 +0200 | [diff] [blame] | 534 | "in": "query", |
PatrikBuhr | 3b916e4 | 2021-10-07 18:03:53 +0200 | [diff] [blame] | 535 | "name": "compatible_with_version", |
PatrikBuhr | c1b6222 | 2021-12-28 13:07:14 +0100 | [diff] [blame] | 536 | "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] | 537 | "required": false |
| 538 | } |
| 539 | ], |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 540 | "tags": ["A1 Policy Management"] |
| 541 | }}, |
| 542 | "/a1-policy/v2/policies/{policy_id}": { |
| 543 | "get": { |
| 544 | "summary": "Returns a policy", |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame] | 545 | "operationId": "getPolicy", |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 546 | "responses": { |
| 547 | "200": { |
| 548 | "description": "Policy found", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 549 | "content": {"application/json": { |
| 550 | "schema": {"$ref": "#/components/schemas/policy_info_v2"}, |
| 551 | "example": null |
| 552 | }} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 553 | }, |
| 554 | "404": { |
| 555 | "description": "Policy is not found", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 556 | "content": {"application/json": { |
| 557 | "schema": {"$ref": "#/components/schemas/error_information"}, |
| 558 | "example": null |
| 559 | }} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 560 | } |
| 561 | }, |
| 562 | "parameters": [{ |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 563 | "schema": { |
| 564 | "type": "string", |
| 565 | "example": null |
| 566 | }, |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 567 | "in": "path", |
| 568 | "name": "policy_id", |
| 569 | "required": true |
| 570 | }], |
| 571 | "tags": ["A1 Policy Management"] |
| 572 | }, |
| 573 | "delete": { |
| 574 | "summary": "Delete a policy", |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame] | 575 | "operationId": "deletePolicy", |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 576 | "responses": { |
| 577 | "200": { |
| 578 | "description": "Not used", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 579 | "content": {"*/*": { |
| 580 | "schema": {"$ref": "#/components/schemas/void"}, |
| 581 | "example": null |
| 582 | }} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 583 | }, |
| 584 | "423": { |
| 585 | "description": "Near-RT RIC is not operational", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 586 | "content": {"*/*": { |
| 587 | "schema": {"$ref": "#/components/schemas/error_information"}, |
| 588 | "example": null |
| 589 | }} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 590 | }, |
| 591 | "204": { |
| 592 | "description": "Policy deleted", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 593 | "content": {"*/*": { |
| 594 | "schema": {"$ref": "#/components/schemas/void"}, |
| 595 | "example": null |
| 596 | }} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 597 | }, |
| 598 | "404": { |
| 599 | "description": "Policy is not found", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 600 | "content": {"*/*": { |
| 601 | "schema": {"$ref": "#/components/schemas/error_information"}, |
| 602 | "example": null |
| 603 | }} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 604 | } |
| 605 | }, |
| 606 | "parameters": [{ |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 607 | "schema": { |
| 608 | "type": "string", |
| 609 | "example": null |
| 610 | }, |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 611 | "in": "path", |
| 612 | "name": "policy_id", |
| 613 | "required": true |
| 614 | }], |
| 615 | "tags": ["A1 Policy Management"] |
| 616 | } |
| 617 | }, |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 618 | "/actuator/metrics/{requiredMetricName}": {"get": { |
| 619 | "summary": "Actuator web endpoint 'metrics-requiredMetricName'", |
PatrikBuhr | de7a573 | 2022-03-31 12:08:56 +0200 | [diff] [blame] | 620 | "operationId": "metrics-requiredMetricName", |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 621 | "responses": {"200": { |
| 622 | "description": "OK", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 623 | "content": {"*/*": { |
| 624 | "schema": { |
| 625 | "type": "object", |
| 626 | "example": null |
| 627 | }, |
| 628 | "example": null |
| 629 | }} |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 630 | }}, |
| 631 | "parameters": [{ |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 632 | "schema": { |
| 633 | "type": "string", |
| 634 | "example": null |
| 635 | }, |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 636 | "in": "path", |
| 637 | "name": "requiredMetricName", |
| 638 | "required": true |
| 639 | }], |
| 640 | "tags": ["Actuator"] |
| 641 | }}, |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 642 | "/a1-policy/v2/configuration": { |
| 643 | "get": { |
PatrikBuhr | 0f8b205 | 2021-12-20 13:40:14 +0100 | [diff] [blame] | 644 | "summary": "Returns the contents of the application configuration file", |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 645 | "operationId": "getConfiguration", |
| 646 | "responses": { |
| 647 | "200": { |
| 648 | "description": "Configuration", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 649 | "content": {"application/json": { |
| 650 | "schema": { |
| 651 | "type": "object", |
| 652 | "example": null |
| 653 | }, |
| 654 | "example": null |
| 655 | }} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 656 | }, |
| 657 | "404": { |
| 658 | "description": "File is not found or readable", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 659 | "content": {"application/json": { |
| 660 | "schema": {"$ref": "#/components/schemas/error_information"}, |
| 661 | "example": null |
| 662 | }} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 663 | } |
| 664 | }, |
| 665 | "tags": ["Management of configuration"] |
| 666 | }, |
| 667 | "put": { |
| 668 | "summary": "Replace the current configuration file with the given configuration", |
| 669 | "requestBody": { |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 670 | "content": {"application/json": { |
| 671 | "schema": { |
| 672 | "type": "object", |
| 673 | "example": null |
| 674 | }, |
| 675 | "example": null |
| 676 | }}, |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 677 | "required": true |
| 678 | }, |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 679 | "operationId": "putConfiguration", |
| 680 | "responses": { |
| 681 | "200": { |
| 682 | "description": "Configuration updated", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 683 | "content": {"*/*": { |
| 684 | "schema": {"$ref": "#/components/schemas/void"}, |
| 685 | "example": null |
| 686 | }} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 687 | }, |
| 688 | "400": { |
| 689 | "description": "Invalid configuration provided", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 690 | "content": {"*/*": { |
| 691 | "schema": {"$ref": "#/components/schemas/error_information"}, |
| 692 | "example": null |
| 693 | }} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 694 | }, |
| 695 | "500": { |
| 696 | "description": "Something went wrong when replacing the configuration. Try again.", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 697 | "content": {"*/*": { |
| 698 | "schema": {"$ref": "#/components/schemas/error_information"}, |
| 699 | "example": null |
| 700 | }} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 701 | } |
| 702 | }, |
| 703 | "tags": ["Management of configuration"] |
| 704 | } |
| 705 | }, |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 706 | "/actuator": {"get": { |
| 707 | "summary": "Actuator root web endpoint", |
PatrikBuhr | de7a573 | 2022-03-31 12:08:56 +0200 | [diff] [blame] | 708 | "operationId": "links", |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 709 | "responses": {"200": { |
| 710 | "description": "OK", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 711 | "content": {"*/*": { |
| 712 | "schema": { |
| 713 | "additionalProperties": { |
| 714 | "additionalProperties": {"$ref": "#/components/schemas/Link"}, |
| 715 | "type": "object", |
| 716 | "example": null |
| 717 | }, |
| 718 | "type": "object", |
| 719 | "example": null |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 720 | }, |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 721 | "example": null |
| 722 | }} |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 723 | }}, |
| 724 | "tags": ["Actuator"] |
| 725 | }}, |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 726 | "/actuator/loggers/{name}": { |
| 727 | "post": { |
| 728 | "summary": "Actuator web endpoint 'loggers-name'", |
PatrikBuhr | de7a573 | 2022-03-31 12:08:56 +0200 | [diff] [blame] | 729 | "operationId": "loggers-name", |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 730 | "responses": {"200": { |
| 731 | "description": "OK", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 732 | "content": {"*/*": { |
| 733 | "schema": { |
| 734 | "type": "object", |
| 735 | "example": null |
| 736 | }, |
| 737 | "example": null |
| 738 | }} |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 739 | }}, |
| 740 | "parameters": [{ |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 741 | "schema": { |
| 742 | "type": "string", |
| 743 | "example": null |
| 744 | }, |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 745 | "in": "path", |
| 746 | "name": "name", |
| 747 | "required": true |
| 748 | }], |
| 749 | "tags": ["Actuator"] |
| 750 | }, |
| 751 | "get": { |
| 752 | "summary": "Actuator web endpoint 'loggers-name'", |
PatrikBuhr | de7a573 | 2022-03-31 12:08:56 +0200 | [diff] [blame] | 753 | "operationId": "loggers-name_2", |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 754 | "responses": {"200": { |
| 755 | "description": "OK", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 756 | "content": {"*/*": { |
| 757 | "schema": { |
| 758 | "type": "object", |
| 759 | "example": null |
| 760 | }, |
| 761 | "example": null |
| 762 | }} |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 763 | }}, |
| 764 | "parameters": [{ |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 765 | "schema": { |
| 766 | "type": "string", |
| 767 | "example": null |
| 768 | }, |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 769 | "in": "path", |
| 770 | "name": "name", |
| 771 | "required": true |
| 772 | }], |
| 773 | "tags": ["Actuator"] |
| 774 | } |
| 775 | }, |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 776 | "/a1-policy/v2/services/{service_id}/keepalive": {"put": { |
| 777 | "summary": "Heartbeat indicates that the service is running", |
JohnKeeney | 08486cf | 2022-05-24 12:34:49 +0100 | [diff] [blame] | 778 | "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] | 779 | "operationId": "keepAliveService", |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 780 | "responses": { |
| 781 | "200": { |
| 782 | "description": "Service supervision timer refreshed, OK", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 783 | "content": {"*/*": { |
| 784 | "schema": { |
| 785 | "type": "object", |
| 786 | "example": null |
| 787 | }, |
| 788 | "example": null |
| 789 | }} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 790 | }, |
| 791 | "404": { |
| 792 | "description": "The service is not found, needs re-registration", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 793 | "content": {"*/*": { |
| 794 | "schema": {"$ref": "#/components/schemas/error_information"}, |
| 795 | "example": null |
| 796 | }} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 797 | } |
| 798 | }, |
| 799 | "parameters": [{ |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 800 | "schema": { |
| 801 | "type": "string", |
| 802 | "example": null |
| 803 | }, |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 804 | "in": "path", |
| 805 | "name": "service_id", |
| 806 | "required": true |
| 807 | }], |
| 808 | "tags": ["Service Registry and Supervision"] |
| 809 | }}, |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 810 | "/actuator/metrics": {"get": { |
| 811 | "summary": "Actuator web endpoint 'metrics'", |
PatrikBuhr | de7a573 | 2022-03-31 12:08:56 +0200 | [diff] [blame] | 812 | "operationId": "metrics", |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 813 | "responses": {"200": { |
| 814 | "description": "OK", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 815 | "content": {"*/*": { |
| 816 | "schema": { |
| 817 | "type": "object", |
| 818 | "example": null |
| 819 | }, |
| 820 | "example": null |
| 821 | }} |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 822 | }}, |
| 823 | "tags": ["Actuator"] |
| 824 | }}, |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 825 | "/a1-policy/v2/rics": {"get": { |
| 826 | "summary": "Query Near-RT RIC information", |
| 827 | "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] | 828 | "operationId": "getRics", |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 829 | "responses": { |
| 830 | "200": { |
| 831 | "description": "OK", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 832 | "content": {"application/json": { |
| 833 | "schema": {"$ref": "#/components/schemas/ric_info_list_v2"}, |
| 834 | "example": null |
| 835 | }} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 836 | }, |
| 837 | "404": { |
| 838 | "description": "Policy type is not found", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 839 | "content": {"application/json": { |
| 840 | "schema": {"$ref": "#/components/schemas/error_information"}, |
| 841 | "example": null |
| 842 | }} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 843 | } |
| 844 | }, |
| 845 | "parameters": [{ |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 846 | "schema": { |
| 847 | "type": "string", |
| 848 | "example": null |
| 849 | }, |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 850 | "in": "query", |
| 851 | "name": "policytype_id", |
PatrikBuhr | 0f8b205 | 2021-12-20 13:40:14 +0100 | [diff] [blame] | 852 | "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] | 853 | "required": false |
| 854 | }], |
| 855 | "tags": ["NearRT-RIC Repository"] |
| 856 | }}, |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 857 | "/a1-policy/v2/services": { |
| 858 | "get": { |
| 859 | "summary": "Returns service information", |
| 860 | "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] | 861 | "operationId": "getServices", |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 862 | "responses": { |
| 863 | "200": { |
| 864 | "description": "OK", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 865 | "content": {"application/json": { |
| 866 | "schema": {"$ref": "#/components/schemas/service_list_v2"}, |
| 867 | "example": null |
| 868 | }} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 869 | }, |
| 870 | "404": { |
| 871 | "description": "Service is not found", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 872 | "content": {"application/json": { |
| 873 | "schema": {"$ref": "#/components/schemas/error_information"}, |
| 874 | "example": null |
| 875 | }} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 876 | } |
| 877 | }, |
| 878 | "parameters": [{ |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 879 | "schema": { |
| 880 | "type": "string", |
| 881 | "example": null |
| 882 | }, |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 883 | "in": "query", |
| 884 | "name": "service_id", |
| 885 | "description": "The identity of the service", |
| 886 | "required": false |
| 887 | }], |
| 888 | "tags": ["Service Registry and Supervision"] |
| 889 | }, |
| 890 | "put": { |
| 891 | "summary": "Register a service", |
| 892 | "requestBody": { |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 893 | "content": {"application/json": { |
| 894 | "schema": {"$ref": "#/components/schemas/service_registration_info_v2"}, |
| 895 | "example": null |
| 896 | }}, |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 897 | "required": true |
| 898 | }, |
PatrikBuhr | c7f757e | 2022-11-28 09:40:36 +0100 | [diff] [blame] | 899 | "description": "Registering a service is needed to:<ul><li>Get callbacks about available NearRT RICs.<\/li><li>Activate supervision of the service. If a service is inactive, its policies will automatically be deleted.<\/li><\/ul>Policies can be created even if the service is not registerred. This is a feature which it is optional to use.", |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame] | 900 | "operationId": "putService", |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 901 | "responses": { |
| 902 | "200": { |
| 903 | "description": "Service updated", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 904 | "content": {"*/*": { |
| 905 | "schema": { |
| 906 | "type": "object", |
| 907 | "example": null |
| 908 | }, |
| 909 | "example": null |
| 910 | }} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 911 | }, |
| 912 | "201": { |
| 913 | "description": "Service created", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 914 | "content": {"*/*": { |
| 915 | "schema": { |
| 916 | "type": "object", |
| 917 | "example": null |
| 918 | }, |
| 919 | "example": null |
| 920 | }} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 921 | }, |
| 922 | "400": { |
| 923 | "description": "The ServiceRegistrationInfo is not accepted", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 924 | "content": {"*/*": { |
| 925 | "schema": {"$ref": "#/components/schemas/error_information"}, |
| 926 | "example": null |
| 927 | }} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 928 | } |
| 929 | }, |
| 930 | "tags": ["Service Registry and Supervision"] |
| 931 | } |
| 932 | }, |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 933 | "/actuator/info": {"get": { |
| 934 | "summary": "Actuator web endpoint 'info'", |
PatrikBuhr | de7a573 | 2022-03-31 12:08:56 +0200 | [diff] [blame] | 935 | "operationId": "info", |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 936 | "responses": {"200": { |
| 937 | "description": "OK", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 938 | "content": {"*/*": { |
| 939 | "schema": { |
| 940 | "type": "object", |
| 941 | "example": null |
| 942 | }, |
| 943 | "example": null |
| 944 | }} |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 945 | }}, |
| 946 | "tags": ["Actuator"] |
| 947 | }}, |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 948 | "/status": {"get": { |
| 949 | "summary": "Returns status and statistics of this service", |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame] | 950 | "operationId": "getStatusV1", |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 951 | "responses": {"200": { |
| 952 | "description": "Service is living", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 953 | "content": {"*/*": { |
| 954 | "schema": { |
| 955 | "type": "string", |
| 956 | "example": null |
| 957 | }, |
| 958 | "example": null |
| 959 | }} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 960 | }}, |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame] | 961 | "tags": ["Health Check"] |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 962 | }}, |
| 963 | "/a1-policy/v2/policy-types/{policytype_id}": {"get": { |
| 964 | "summary": "Returns a policy type definition", |
| 965 | "operationId": "getPolicyType", |
| 966 | "responses": { |
| 967 | "200": { |
| 968 | "description": "Policy type", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 969 | "content": {"*/*": { |
| 970 | "schema": {"$ref": "#/components/schemas/policytype_v2"}, |
| 971 | "example": null |
| 972 | }} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 973 | }, |
| 974 | "404": { |
| 975 | "description": "Policy type is not found", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 976 | "content": {"*/*": { |
| 977 | "schema": {"$ref": "#/components/schemas/error_information"}, |
| 978 | "example": null |
| 979 | }} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 980 | } |
| 981 | }, |
| 982 | "parameters": [{ |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 983 | "schema": { |
| 984 | "type": "string", |
| 985 | "example": null |
| 986 | }, |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 987 | "in": "path", |
| 988 | "name": "policytype_id", |
| 989 | "required": true |
| 990 | }], |
| 991 | "tags": ["A1 Policy Management"] |
| 992 | }}, |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 993 | "/actuator/logfile": {"get": { |
| 994 | "summary": "Actuator web endpoint 'logfile'", |
PatrikBuhr | de7a573 | 2022-03-31 12:08:56 +0200 | [diff] [blame] | 995 | "operationId": "logfile", |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 996 | "responses": {"200": { |
| 997 | "description": "OK", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 998 | "content": {"*/*": { |
| 999 | "schema": { |
| 1000 | "type": "object", |
| 1001 | "example": null |
| 1002 | }, |
| 1003 | "example": null |
| 1004 | }} |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 1005 | }}, |
| 1006 | "tags": ["Actuator"] |
| 1007 | }}, |
| 1008 | "/actuator/health": {"get": { |
| 1009 | "summary": "Actuator web endpoint 'health'", |
PatrikBuhr | de7a573 | 2022-03-31 12:08:56 +0200 | [diff] [blame] | 1010 | "operationId": "health", |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 1011 | "responses": {"200": { |
| 1012 | "description": "OK", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 1013 | "content": {"*/*": { |
| 1014 | "schema": { |
| 1015 | "type": "object", |
| 1016 | "example": null |
| 1017 | }, |
| 1018 | "example": null |
| 1019 | }} |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 1020 | }}, |
| 1021 | "tags": ["Actuator"] |
| 1022 | }}, |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1023 | "/a1-policy/v2/policies": { |
| 1024 | "get": { |
| 1025 | "summary": "Query policy identities", |
| 1026 | "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] | 1027 | "operationId": "getPolicyIds", |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1028 | "responses": { |
| 1029 | "200": { |
| 1030 | "description": "Policy identities", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 1031 | "content": {"application/json": { |
| 1032 | "schema": {"$ref": "#/components/schemas/policy_id_list_v2"}, |
| 1033 | "example": null |
| 1034 | }} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1035 | }, |
| 1036 | "404": { |
| 1037 | "description": "Near-RT RIC or type not found", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 1038 | "content": {"application/json": { |
| 1039 | "schema": {"$ref": "#/components/schemas/error_information"}, |
| 1040 | "example": null |
| 1041 | }} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1042 | } |
| 1043 | }, |
| 1044 | "parameters": [ |
| 1045 | { |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 1046 | "schema": { |
| 1047 | "type": "string", |
| 1048 | "example": null |
| 1049 | }, |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1050 | "in": "query", |
| 1051 | "name": "policytype_id", |
PatrikBuhr | 3b916e4 | 2021-10-07 18:03:53 +0200 | [diff] [blame] | 1052 | "description": "Select policies of a given policy type identity.", |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1053 | "required": false |
| 1054 | }, |
| 1055 | { |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 1056 | "schema": { |
| 1057 | "type": "string", |
| 1058 | "example": null |
| 1059 | }, |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1060 | "in": "query", |
| 1061 | "name": "ric_id", |
PatrikBuhr | 3b916e4 | 2021-10-07 18:03:53 +0200 | [diff] [blame] | 1062 | "description": "Select policies of a given Near-RT RIC identity.", |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1063 | "required": false |
| 1064 | }, |
| 1065 | { |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 1066 | "schema": { |
| 1067 | "type": "string", |
| 1068 | "example": null |
| 1069 | }, |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1070 | "in": "query", |
| 1071 | "name": "service_id", |
PatrikBuhr | 3b916e4 | 2021-10-07 18:03:53 +0200 | [diff] [blame] | 1072 | "description": "Select policies owned by a given service.", |
| 1073 | "required": false |
| 1074 | }, |
| 1075 | { |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 1076 | "schema": { |
| 1077 | "type": "string", |
| 1078 | "example": null |
| 1079 | }, |
PatrikBuhr | 3b916e4 | 2021-10-07 18:03:53 +0200 | [diff] [blame] | 1080 | "in": "query", |
| 1081 | "name": "type_name", |
| 1082 | "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] | 1083 | "required": false |
| 1084 | } |
| 1085 | ], |
| 1086 | "tags": ["A1 Policy Management"] |
| 1087 | }, |
| 1088 | "put": { |
| 1089 | "summary": "Create or update a policy", |
| 1090 | "requestBody": { |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 1091 | "content": {"application/json": { |
| 1092 | "schema": {"$ref": "#/components/schemas/policy_info_v2"}, |
| 1093 | "example": null |
| 1094 | }}, |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1095 | "required": true |
| 1096 | }, |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame] | 1097 | "operationId": "putPolicy", |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1098 | "responses": { |
| 1099 | "200": { |
| 1100 | "description": "Policy updated", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 1101 | "content": {"application/json": { |
| 1102 | "schema": {"$ref": "#/components/schemas/void"}, |
| 1103 | "example": null |
| 1104 | }} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1105 | }, |
| 1106 | "201": { |
| 1107 | "description": "Policy created", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 1108 | "content": {"application/json": { |
| 1109 | "schema": {"$ref": "#/components/schemas/void"}, |
| 1110 | "example": null |
| 1111 | }} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1112 | }, |
| 1113 | "423": { |
| 1114 | "description": "Near-RT RIC is not operational", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 1115 | "content": {"application/json": { |
| 1116 | "schema": {"$ref": "#/components/schemas/error_information"}, |
| 1117 | "example": null |
| 1118 | }} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1119 | }, |
| 1120 | "404": { |
| 1121 | "description": "Near-RT RIC or policy type is not found", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 1122 | "content": {"application/json": { |
| 1123 | "schema": {"$ref": "#/components/schemas/error_information"}, |
| 1124 | "example": null |
| 1125 | }} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1126 | } |
| 1127 | }, |
| 1128 | "tags": ["A1 Policy Management"] |
| 1129 | } |
| 1130 | }, |
| 1131 | "/r-app/near-rt-ric-status": {"post": { |
| 1132 | "summary": "Callback for Near-RT RIC status", |
| 1133 | "requestBody": { |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 1134 | "content": {"application/json": { |
| 1135 | "schema": {"$ref": "#/components/schemas/service_callback_info_v2"}, |
| 1136 | "example": null |
| 1137 | }}, |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1138 | "required": true |
| 1139 | }, |
JohnKeeney | 069b469 | 2022-05-12 22:15:14 +0100 | [diff] [blame] | 1140 | "description": "The URL to this call is registered at Service registration.", |
PatrikBuhr | 25d7850 | 2021-04-28 08:42:13 +0200 | [diff] [blame] | 1141 | "operationId": "serviceCallback", |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1142 | "responses": {"200": { |
| 1143 | "description": "OK", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 1144 | "content": {"application/json": { |
| 1145 | "schema": {"$ref": "#/components/schemas/void"}, |
| 1146 | "example": null |
| 1147 | }} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1148 | }}, |
| 1149 | "tags": ["Callbacks"] |
| 1150 | }}, |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1151 | "/a1-policy/v2/services/{service_id}": {"delete": { |
| 1152 | "summary": "Unregister a service", |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame] | 1153 | "operationId": "deleteService", |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1154 | "responses": { |
| 1155 | "200": { |
| 1156 | "description": "Not used", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 1157 | "content": {"*/*": { |
| 1158 | "schema": {"$ref": "#/components/schemas/void"}, |
| 1159 | "example": null |
| 1160 | }} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1161 | }, |
| 1162 | "204": { |
| 1163 | "description": "Service unregistered", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 1164 | "content": {"*/*": { |
| 1165 | "schema": { |
| 1166 | "type": "object", |
| 1167 | "example": null |
| 1168 | }, |
| 1169 | "example": null |
| 1170 | }} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1171 | }, |
| 1172 | "404": { |
| 1173 | "description": "Service not found", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 1174 | "content": {"*/*": { |
| 1175 | "schema": {"$ref": "#/components/schemas/error_information"}, |
| 1176 | "example": null |
| 1177 | }} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1178 | } |
| 1179 | }, |
| 1180 | "parameters": [{ |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 1181 | "schema": { |
| 1182 | "type": "string", |
| 1183 | "example": null |
| 1184 | }, |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1185 | "in": "path", |
| 1186 | "name": "service_id", |
| 1187 | "required": true |
| 1188 | }], |
| 1189 | "tags": ["Service Registry and Supervision"] |
| 1190 | }}, |
PatrikBuhr | de7a573 | 2022-03-31 12:08:56 +0200 | [diff] [blame] | 1191 | "/actuator/heapdump": {"get": { |
| 1192 | "summary": "Actuator web endpoint 'heapdump'", |
| 1193 | "operationId": "heapdump", |
| 1194 | "responses": {"200": { |
| 1195 | "description": "OK", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 1196 | "content": {"*/*": { |
| 1197 | "schema": { |
| 1198 | "type": "object", |
| 1199 | "example": null |
| 1200 | }, |
| 1201 | "example": null |
| 1202 | }} |
PatrikBuhr | de7a573 | 2022-03-31 12:08:56 +0200 | [diff] [blame] | 1203 | }}, |
| 1204 | "tags": ["Actuator"] |
| 1205 | }}, |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1206 | "/a1-policy/v2/policies/{policy_id}/status": {"get": { |
| 1207 | "summary": "Returns a policy status", |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame] | 1208 | "operationId": "getPolicyStatus", |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1209 | "responses": { |
| 1210 | "200": { |
| 1211 | "description": "Policy status", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 1212 | "content": {"application/json": { |
| 1213 | "schema": {"$ref": "#/components/schemas/policy_status_info_v2"}, |
| 1214 | "example": null |
| 1215 | }} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1216 | }, |
| 1217 | "404": { |
| 1218 | "description": "Policy is not found", |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 1219 | "content": {"application/json": { |
| 1220 | "schema": {"$ref": "#/components/schemas/error_information"}, |
| 1221 | "example": null |
| 1222 | }} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1223 | } |
| 1224 | }, |
| 1225 | "parameters": [{ |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 1226 | "schema": { |
| 1227 | "type": "string", |
| 1228 | "example": null |
| 1229 | }, |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1230 | "in": "path", |
| 1231 | "name": "policy_id", |
| 1232 | "required": true |
| 1233 | }], |
| 1234 | "tags": ["A1 Policy Management"] |
| 1235 | }} |
| 1236 | }, |
| 1237 | "info": { |
| 1238 | "license": { |
PatrikBuhr | c0218ad | 2022-11-28 09:40:36 +0100 | [diff] [blame^] | 1239 | "name": "Copyright (C) 2020-2023 Nordix Foundation. Licensed under the Apache License.", |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1240 | "url": "http://www.apache.org/licenses/LICENSE-2.0" |
| 1241 | }, |
PatrikBuhr | c0218ad | 2022-11-28 09:40:36 +0100 | [diff] [blame^] | 1242 | "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 optionally owned by a service. PMS can supervise each registered service by a heart-beat supervision and will automatically remove policies for unavailable services. Note that a service does not need to be registered in order to create A1 Policies. This is a feature that is optional to use.<\/p><h3>Spring Boot Actuator<\/h3><p>Provides generic functions used to monitor and manage the Spring web application.<\/p>", |
JohnKeeney | 08486cf | 2022-05-24 12:34:49 +0100 | [diff] [blame] | 1243 | "title": "A1 Policy Management Service", |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 1244 | "version": "1.1.0" |
| 1245 | }, |
| 1246 | "tags": [ |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame] | 1247 | {"name": "Service Registry and Supervision"}, |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1248 | {"name": "A1 Policy Management"}, |
| 1249 | {"name": "NearRT-RIC Repository"}, |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 1250 | {"name": "Callbacks"}, |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame] | 1251 | {"name": "Health Check"}, |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 1252 | { |
| 1253 | "name": "Actuator", |
| 1254 | "description": "Monitor and interact", |
| 1255 | "externalDocs": { |
| 1256 | "description": "Spring Boot Actuator Web API Documentation", |
| 1257 | "url": "https://docs.spring.io/spring-boot/docs/current/actuator-api/html/" |
| 1258 | } |
PatrikBuhr | de7a573 | 2022-03-31 12:08:56 +0200 | [diff] [blame] | 1259 | }, |
| 1260 | {"name": "Management of configuration"} |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 1261 | ] |
| 1262 | } |