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 | } |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 18 | } |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 19 | }, |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 20 | "void": { |
| 21 | "description": "Void/empty", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 22 | "type": "object" |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 23 | }, |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 24 | "status_info_v2": { |
| 25 | "type": "object", |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 26 | "properties": {"status": { |
| 27 | "description": "status text", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 28 | "type": "string" |
| 29 | }} |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 30 | }, |
PatrikBuhr | f07e4b3 | 2023-04-05 14:40:07 +0200 | [diff] [blame] | 31 | "authorization_result": { |
| 32 | "description": "Result of authorization", |
| 33 | "type": "object", |
| 34 | "required": ["result"], |
| 35 | "properties": {"result": { |
| 36 | "description": "If true, the access is granted", |
| 37 | "type": "boolean" |
| 38 | }} |
| 39 | }, |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 40 | "ric_info_v2": { |
| 41 | "description": "Information for a Near-RT RIC", |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 42 | "type": "object", |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 43 | "properties": { |
| 44 | "ric_id": { |
| 45 | "description": "identity of the Near-RT RIC", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 46 | "type": "string" |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 47 | }, |
| 48 | "managed_element_ids": { |
| 49 | "description": "O1 identities for managed entities", |
| 50 | "type": "array", |
| 51 | "items": { |
| 52 | "description": "O1 identities for managed entities", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 53 | "type": "string" |
| 54 | } |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 55 | }, |
| 56 | "state": { |
| 57 | "description": "Represents the states for a Near-RT RIC", |
| 58 | "type": "string", |
| 59 | "enum": [ |
| 60 | "UNAVAILABLE", |
| 61 | "AVAILABLE", |
| 62 | "SYNCHRONIZING", |
| 63 | "CONSISTENCY_CHECK" |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 64 | ] |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 65 | }, |
| 66 | "policytype_ids": { |
| 67 | "description": "supported policy types", |
| 68 | "type": "array", |
| 69 | "items": { |
| 70 | "description": "supported policy types", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 71 | "type": "string" |
| 72 | } |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 73 | } |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 74 | } |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 75 | }, |
| 76 | "service_registration_info_v2": { |
| 77 | "description": "Information for one service", |
| 78 | "type": "object", |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 79 | "required": ["service_id"], |
| 80 | "properties": { |
| 81 | "callback_url": { |
| 82 | "description": "callback for notifying of Near-RT RIC state changes", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 83 | "type": "string" |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 84 | }, |
| 85 | "service_id": { |
| 86 | "description": "identity of the service", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 87 | "type": "string" |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 88 | }, |
| 89 | "keep_alive_interval_seconds": { |
| 90 | "format": "int64", |
JohnKeeney | 08486cf | 2022-05-24 12:34:49 +0100 | [diff] [blame] | 91 | "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 | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 92 | "type": "integer" |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 93 | } |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 94 | } |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 95 | }, |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 96 | "policy_info_list_v2": { |
| 97 | "description": "List of policy information", |
| 98 | "type": "object", |
| 99 | "properties": {"policies": { |
| 100 | "description": "List of policy information", |
| 101 | "type": "array", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 102 | "items": {"$ref": "#/components/schemas/policy_info_v2"} |
| 103 | }} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 104 | }, |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 105 | "policy_status_info_v2": { |
| 106 | "description": "Status for one A1-P Policy", |
| 107 | "type": "object", |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 108 | "properties": { |
| 109 | "last_modified": { |
| 110 | "description": "timestamp, last modification time", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 111 | "type": "string" |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 112 | }, |
| 113 | "status": { |
| 114 | "description": "the Policy status", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 115 | "type": "object" |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 116 | } |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 117 | } |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 118 | }, |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 119 | "service_status_v2": { |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 120 | "description": "List of service information", |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 121 | "type": "object", |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 122 | "properties": { |
| 123 | "callback_url": { |
| 124 | "description": "callback for notifying of RIC synchronization", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 125 | "type": "string" |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 126 | }, |
| 127 | "service_id": { |
| 128 | "description": "identity of the service", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 129 | "type": "string" |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 130 | }, |
| 131 | "keep_alive_interval_seconds": { |
| 132 | "format": "int64", |
| 133 | "description": "policy keep alive timeout", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 134 | "type": "integer" |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 135 | }, |
| 136 | "time_since_last_activity_seconds": { |
| 137 | "format": "int64", |
| 138 | "description": "time since last invocation by the service", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 139 | "type": "integer" |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 140 | } |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 141 | } |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 142 | }, |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 143 | "ric_info_list_v2": { |
| 144 | "description": "List of Near-RT RIC information", |
| 145 | "type": "object", |
| 146 | "properties": {"rics": { |
| 147 | "description": "List of Near-RT RIC information", |
| 148 | "type": "array", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 149 | "items": {"$ref": "#/components/schemas/ric_info_v2"} |
| 150 | }} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 151 | }, |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 152 | "policytype_v2": { |
| 153 | "description": "Policy type", |
| 154 | "type": "object", |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 155 | "properties": {"policy_schema": { |
JohnKeeney | 069b469 | 2022-05-12 22:15:14 +0100 | [diff] [blame] | 156 | "description": "Policy type json schema. The schema is a json object following http://json-schema.org/draft-07/schema", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 157 | "type": "object" |
| 158 | }} |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 159 | }, |
PatrikBuhr | f07e4b3 | 2023-04-05 14:40:07 +0200 | [diff] [blame] | 160 | "input": { |
| 161 | "description": "input", |
| 162 | "type": "object", |
| 163 | "required": [ |
| 164 | "access_type", |
| 165 | "auth_token", |
| 166 | "policy_type_id" |
| 167 | ], |
| 168 | "properties": { |
| 169 | "access_type": { |
| 170 | "description": "Access type", |
| 171 | "type": "string", |
| 172 | "enum": [ |
| 173 | "READ", |
| 174 | "WRITE", |
| 175 | "DELETE" |
| 176 | ] |
| 177 | }, |
| 178 | "auth_token": { |
| 179 | "description": "Authorization token", |
| 180 | "type": "string" |
| 181 | }, |
| 182 | "policy_type_id": { |
| 183 | "description": "Policy type identifier", |
| 184 | "type": "string" |
| 185 | } |
| 186 | } |
| 187 | }, |
| 188 | "policy_authorization": { |
| 189 | "description": "Authorization request for A1 policy requests", |
| 190 | "type": "object", |
| 191 | "required": ["input"], |
| 192 | "properties": {"input": {"$ref": "#/components/schemas/input"}} |
| 193 | }, |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 194 | "policytype_id_list_v2": { |
| 195 | "description": "Information about policy types", |
| 196 | "type": "object", |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 197 | "properties": {"policytype_ids": { |
| 198 | "description": "Policy type identities", |
| 199 | "type": "array", |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 200 | "items": { |
| 201 | "description": "Policy type identities", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 202 | "type": "string" |
| 203 | } |
| 204 | }} |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 205 | }, |
| 206 | "policy_info_v2": { |
| 207 | "description": "Information for one A1-P Policy", |
| 208 | "type": "object", |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 209 | "required": [ |
| 210 | "policy_data", |
| 211 | "policy_id", |
| 212 | "policytype_id", |
PatrikBuhr | c7f757e | 2022-11-28 09:40:36 +0100 | [diff] [blame] | 213 | "ric_id" |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 214 | ], |
| 215 | "properties": { |
| 216 | "ric_id": { |
| 217 | "description": "identity of the target Near-RT RIC", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 218 | "type": "string" |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 219 | }, |
| 220 | "policy_id": { |
| 221 | "description": "identity of the policy", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 222 | "type": "string" |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 223 | }, |
| 224 | "transient": { |
PatrikBuhr | c7f757e | 2022-11-28 09:40:36 +0100 | [diff] [blame] | 225 | "default": false, |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 226 | "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] | 227 | "type": "boolean", |
PatrikBuhr | c7f757e | 2022-11-28 09:40:36 +0100 | [diff] [blame] | 228 | "example": false |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 229 | }, |
| 230 | "service_id": { |
PatrikBuhr | 44499d0 | 2023-04-04 10:06:22 +0200 | [diff] [blame] | 231 | "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 registered.", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 232 | "type": "string" |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 233 | }, |
| 234 | "policy_data": { |
| 235 | "description": "the configuration of the policy", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 236 | "type": "object" |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 237 | }, |
| 238 | "status_notification_uri": { |
| 239 | "description": "Callback URI for policy status updates", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 240 | "type": "string" |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 241 | }, |
| 242 | "policytype_id": { |
| 243 | "description": "identity of the policy type", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 244 | "type": "string" |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 245 | } |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 246 | } |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 247 | }, |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 248 | "policy_id_list_v2": { |
| 249 | "description": "A list of policy identities", |
| 250 | "type": "object", |
| 251 | "properties": {"policy_ids": { |
| 252 | "description": "Policy identities", |
| 253 | "type": "array", |
| 254 | "items": { |
| 255 | "description": "Policy identities", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 256 | "type": "string" |
| 257 | } |
| 258 | }} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 259 | }, |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 260 | "service_list_v2": { |
| 261 | "description": "List of service information", |
| 262 | "type": "object", |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 263 | "properties": {"service_list": { |
| 264 | "description": "List of service information", |
| 265 | "type": "array", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 266 | "items": {"$ref": "#/components/schemas/service_status_v2"} |
| 267 | }} |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 268 | }, |
| 269 | "service_callback_info_v2": { |
| 270 | "description": "Information transferred as in Service callbacks (callback_url)", |
| 271 | "type": "object", |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 272 | "required": [ |
| 273 | "event_type", |
| 274 | "ric_id" |
| 275 | ], |
| 276 | "properties": { |
| 277 | "ric_id": { |
| 278 | "description": "identity of a Near-RT RIC", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 279 | "type": "string" |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 280 | }, |
| 281 | "event_type": { |
| 282 | "description": "values:\nAVAILABLE: the Near-RT RIC has become available for A1 Policy management", |
| 283 | "type": "string", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 284 | "enum": ["AVAILABLE"] |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 285 | } |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 286 | } |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 287 | }, |
| 288 | "Link": { |
| 289 | "type": "object", |
| 290 | "properties": { |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 291 | "templated": {"type": "boolean"}, |
| 292 | "href": {"type": "string"} |
| 293 | } |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 294 | } |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 295 | }}, |
| 296 | "openapi": "3.0.1", |
| 297 | "paths": { |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 298 | "/a1-policy/v2/policy-instances": {"get": { |
| 299 | "summary": "Query for A1 policy instances", |
| 300 | "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.", |
| 301 | "operationId": "getPolicyInstances", |
| 302 | "responses": { |
| 303 | "200": { |
| 304 | "description": "Policies", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 305 | "content": {"application/json": {"schema": {"$ref": "#/components/schemas/policy_info_list_v2"}}} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 306 | }, |
| 307 | "404": { |
| 308 | "description": "Near-RT RIC, policy type or service not found", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 309 | "content": {"application/json": {"schema": {"$ref": "#/components/schemas/error_information"}}} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 310 | } |
| 311 | }, |
| 312 | "parameters": [ |
| 313 | { |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 314 | "schema": {"type": "string"}, |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 315 | "in": "query", |
| 316 | "name": "policytype_id", |
PatrikBuhr | 3b916e4 | 2021-10-07 18:03:53 +0200 | [diff] [blame] | 317 | "description": "Select policies with a given type identity.", |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 318 | "required": false |
| 319 | }, |
| 320 | { |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 321 | "schema": {"type": "string"}, |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 322 | "in": "query", |
| 323 | "name": "ric_id", |
PatrikBuhr | 3b916e4 | 2021-10-07 18:03:53 +0200 | [diff] [blame] | 324 | "description": "Select policies for a given Near-RT RIC identity.", |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 325 | "required": false |
| 326 | }, |
| 327 | { |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 328 | "schema": {"type": "string"}, |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 329 | "in": "query", |
| 330 | "name": "service_id", |
PatrikBuhr | 3b916e4 | 2021-10-07 18:03:53 +0200 | [diff] [blame] | 331 | "description": "Select policies owned by a given service.", |
| 332 | "required": false |
| 333 | }, |
| 334 | { |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 335 | "schema": {"type": "string"}, |
PatrikBuhr | 3b916e4 | 2021-10-07 18:03:53 +0200 | [diff] [blame] | 336 | "in": "query", |
| 337 | "name": "type_name", |
| 338 | "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] | 339 | "required": false |
| 340 | } |
| 341 | ], |
| 342 | "tags": ["A1 Policy Management"] |
| 343 | }}, |
PatrikBuhr | f07e4b3 | 2023-04-05 14:40:07 +0200 | [diff] [blame] | 344 | "/example-authz-check": {"post": { |
| 345 | "summary": "Request for access authorization.", |
| 346 | "requestBody": { |
| 347 | "content": {"application/json": {"schema": {"$ref": "#/components/schemas/policy_authorization"}}}, |
| 348 | "required": true |
| 349 | }, |
| 350 | "description": "The authorization function decides if access is granted.", |
| 351 | "operationId": "performAccessControl", |
| 352 | "responses": {"200": { |
| 353 | "description": "OK", |
| 354 | "content": {"application/json": {"schema": {"$ref": "#/components/schemas/authorization_result"}}} |
| 355 | }}, |
| 356 | "tags": ["Authorization API"] |
| 357 | }}, |
PatrikBuhr | de7a573 | 2022-03-31 12:08:56 +0200 | [diff] [blame] | 358 | "/actuator/threaddump": {"get": { |
| 359 | "summary": "Actuator web endpoint 'threaddump'", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 360 | "operationId": "threaddump", |
PatrikBuhr | de7a573 | 2022-03-31 12:08:56 +0200 | [diff] [blame] | 361 | "responses": {"200": { |
| 362 | "description": "OK", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 363 | "content": { |
| 364 | "text/plain;charset=UTF-8": {"schema": {"type": "object"}}, |
| 365 | "application/vnd.spring-boot.actuator.v3+json": {"schema": {"type": "object"}}, |
| 366 | "application/json": {"schema": {"type": "object"}}, |
| 367 | "application/vnd.spring-boot.actuator.v2+json": {"schema": {"type": "object"}} |
| 368 | } |
PatrikBuhr | de7a573 | 2022-03-31 12:08:56 +0200 | [diff] [blame] | 369 | }}, |
| 370 | "tags": ["Actuator"] |
| 371 | }}, |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 372 | "/a1-policy/v2/status": {"get": { |
| 373 | "summary": "Returns status and statistics of this service", |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame] | 374 | "operationId": "getStatus", |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 375 | "responses": {"200": { |
| 376 | "description": "Service is living", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 377 | "content": {"application/json": {"schema": {"$ref": "#/components/schemas/status_info_v2"}}} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 378 | }}, |
| 379 | "tags": ["Health Check"] |
| 380 | }}, |
PatrikBuhr | de7a573 | 2022-03-31 12:08:56 +0200 | [diff] [blame] | 381 | "/actuator/loggers": {"get": { |
| 382 | "summary": "Actuator web endpoint 'loggers'", |
| 383 | "operationId": "loggers", |
| 384 | "responses": {"200": { |
| 385 | "description": "OK", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 386 | "content": { |
| 387 | "application/vnd.spring-boot.actuator.v3+json": {"schema": {"type": "object"}}, |
| 388 | "application/json": {"schema": {"type": "object"}}, |
| 389 | "application/vnd.spring-boot.actuator.v2+json": {"schema": {"type": "object"}} |
| 390 | } |
PatrikBuhr | de7a573 | 2022-03-31 12:08:56 +0200 | [diff] [blame] | 391 | }}, |
| 392 | "tags": ["Actuator"] |
| 393 | }}, |
| 394 | "/actuator/health/**": {"get": { |
| 395 | "summary": "Actuator web endpoint 'health-path'", |
| 396 | "operationId": "health-path", |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 397 | "responses": {"200": { |
| 398 | "description": "OK", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 399 | "content": { |
| 400 | "application/vnd.spring-boot.actuator.v3+json": {"schema": {"type": "object"}}, |
| 401 | "application/json": {"schema": {"type": "object"}}, |
| 402 | "application/vnd.spring-boot.actuator.v2+json": {"schema": {"type": "object"}} |
| 403 | } |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 404 | }}, |
| 405 | "tags": ["Actuator"] |
| 406 | }}, |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 407 | "/a1-policy/v2/rics/ric": {"get": { |
| 408 | "summary": "Returns info for one Near-RT RIC", |
JohnKeeney | 069b469 | 2022-05-12 22:15:14 +0100 | [diff] [blame] | 409 | "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] | 410 | "operationId": "getRic", |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 411 | "responses": { |
| 412 | "200": { |
| 413 | "description": "Near-RT RIC is found", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 414 | "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ric_info_v2"}}} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 415 | }, |
| 416 | "404": { |
| 417 | "description": "Near-RT RIC is not found", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 418 | "content": {"application/json": {"schema": {"$ref": "#/components/schemas/error_information"}}} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 419 | } |
| 420 | }, |
| 421 | "parameters": [ |
| 422 | { |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 423 | "schema": {"type": "string"}, |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 424 | "in": "query", |
| 425 | "name": "managed_element_id", |
| 426 | "description": "The identity of a Managed Element. If given, the Near-RT RIC managing the ME is returned.", |
| 427 | "required": false |
| 428 | }, |
| 429 | { |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 430 | "schema": {"type": "string"}, |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 431 | "in": "query", |
| 432 | "name": "ric_id", |
| 433 | "description": "The identity of a Near-RT RIC to get information for.", |
| 434 | "required": false |
| 435 | } |
| 436 | ], |
| 437 | "tags": ["NearRT-RIC Repository"] |
| 438 | }}, |
PatrikBuhr | c0218ad | 2022-11-28 09:40:36 +0100 | [diff] [blame] | 439 | "/actuator/shutdown": {"post": { |
| 440 | "summary": "Actuator web endpoint 'shutdown'", |
| 441 | "operationId": "shutdown", |
| 442 | "responses": {"200": { |
| 443 | "description": "OK", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 444 | "content": { |
| 445 | "application/vnd.spring-boot.actuator.v3+json": {"schema": {"type": "object"}}, |
| 446 | "application/json": {"schema": {"type": "object"}}, |
| 447 | "application/vnd.spring-boot.actuator.v2+json": {"schema": {"type": "object"}} |
| 448 | } |
PatrikBuhr | c0218ad | 2022-11-28 09:40:36 +0100 | [diff] [blame] | 449 | }}, |
| 450 | "tags": ["Actuator"] |
| 451 | }}, |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 452 | "/a1-policy/v2/policy-types": {"get": { |
| 453 | "summary": "Query policy type identities", |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame] | 454 | "operationId": "getPolicyTypes", |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 455 | "responses": { |
| 456 | "200": { |
| 457 | "description": "Policy type IDs", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 458 | "content": {"application/json": {"schema": {"$ref": "#/components/schemas/policytype_id_list_v2"}}} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 459 | }, |
| 460 | "404": { |
| 461 | "description": "Near-RT RIC is not found", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 462 | "content": {"application/json": {"schema": {"$ref": "#/components/schemas/error_information"}}} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 463 | } |
| 464 | }, |
PatrikBuhr | 3b916e4 | 2021-10-07 18:03:53 +0200 | [diff] [blame] | 465 | "parameters": [ |
| 466 | { |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 467 | "schema": {"type": "string"}, |
PatrikBuhr | 3b916e4 | 2021-10-07 18:03:53 +0200 | [diff] [blame] | 468 | "in": "query", |
| 469 | "name": "ric_id", |
| 470 | "description": "Select types for the given Near-RT RIC identity.", |
| 471 | "required": false |
| 472 | }, |
| 473 | { |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 474 | "schema": {"type": "string"}, |
PatrikBuhr | 3b916e4 | 2021-10-07 18:03:53 +0200 | [diff] [blame] | 475 | "in": "query", |
| 476 | "name": "type_name", |
| 477 | "description": "Select types with the given type name (type identity has the format <typename_version>)", |
| 478 | "required": false |
| 479 | }, |
| 480 | { |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 481 | "schema": {"type": "string"}, |
PatrikBuhr | 3b916e4 | 2021-10-07 18:03:53 +0200 | [diff] [blame] | 482 | "in": "query", |
PatrikBuhr | 3b916e4 | 2021-10-07 18:03:53 +0200 | [diff] [blame] | 483 | "name": "compatible_with_version", |
PatrikBuhr | c1b6222 | 2021-12-28 13:07:14 +0100 | [diff] [blame] | 484 | "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] | 485 | "required": false |
| 486 | } |
| 487 | ], |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 488 | "tags": ["A1 Policy Management"] |
| 489 | }}, |
| 490 | "/a1-policy/v2/policies/{policy_id}": { |
| 491 | "get": { |
| 492 | "summary": "Returns a policy", |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame] | 493 | "operationId": "getPolicy", |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 494 | "responses": { |
| 495 | "200": { |
| 496 | "description": "Policy found", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 497 | "content": {"application/json": {"schema": {"$ref": "#/components/schemas/policy_info_v2"}}} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 498 | }, |
| 499 | "404": { |
| 500 | "description": "Policy is not found", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 501 | "content": {"application/json": {"schema": {"$ref": "#/components/schemas/error_information"}}} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 502 | } |
| 503 | }, |
| 504 | "parameters": [{ |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 505 | "schema": {"type": "string"}, |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 506 | "in": "path", |
| 507 | "name": "policy_id", |
| 508 | "required": true |
| 509 | }], |
| 510 | "tags": ["A1 Policy Management"] |
| 511 | }, |
| 512 | "delete": { |
| 513 | "summary": "Delete a policy", |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame] | 514 | "operationId": "deletePolicy", |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 515 | "responses": { |
| 516 | "200": { |
| 517 | "description": "Not used", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 518 | "content": {"*/*": {"schema": {"$ref": "#/components/schemas/void"}}} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 519 | }, |
| 520 | "423": { |
| 521 | "description": "Near-RT RIC is not operational", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 522 | "content": {"*/*": {"schema": {"$ref": "#/components/schemas/error_information"}}} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 523 | }, |
| 524 | "204": { |
| 525 | "description": "Policy deleted", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 526 | "content": {"*/*": {"schema": {"$ref": "#/components/schemas/void"}}} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 527 | }, |
| 528 | "404": { |
| 529 | "description": "Policy is not found", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 530 | "content": {"*/*": {"schema": {"$ref": "#/components/schemas/error_information"}}} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 531 | } |
| 532 | }, |
| 533 | "parameters": [{ |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 534 | "schema": {"type": "string"}, |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 535 | "in": "path", |
| 536 | "name": "policy_id", |
| 537 | "required": true |
| 538 | }], |
| 539 | "tags": ["A1 Policy Management"] |
| 540 | } |
| 541 | }, |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 542 | "/actuator/metrics/{requiredMetricName}": {"get": { |
| 543 | "summary": "Actuator web endpoint 'metrics-requiredMetricName'", |
PatrikBuhr | de7a573 | 2022-03-31 12:08:56 +0200 | [diff] [blame] | 544 | "operationId": "metrics-requiredMetricName", |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 545 | "responses": {"200": { |
| 546 | "description": "OK", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 547 | "content": { |
| 548 | "application/vnd.spring-boot.actuator.v3+json": {"schema": {"type": "object"}}, |
| 549 | "application/json": {"schema": {"type": "object"}}, |
| 550 | "application/vnd.spring-boot.actuator.v2+json": {"schema": {"type": "object"}} |
| 551 | } |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 552 | }}, |
| 553 | "parameters": [{ |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 554 | "schema": {"type": "string"}, |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 555 | "in": "path", |
| 556 | "name": "requiredMetricName", |
| 557 | "required": true |
| 558 | }], |
| 559 | "tags": ["Actuator"] |
| 560 | }}, |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 561 | "/a1-policy/v2/configuration": { |
| 562 | "get": { |
PatrikBuhr | 0f8b205 | 2021-12-20 13:40:14 +0100 | [diff] [blame] | 563 | "summary": "Returns the contents of the application configuration file", |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 564 | "operationId": "getConfiguration", |
| 565 | "responses": { |
| 566 | "200": { |
| 567 | "description": "Configuration", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 568 | "content": {"application/json": {"schema": {"type": "object"}}} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 569 | }, |
| 570 | "404": { |
| 571 | "description": "File is not found or readable", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 572 | "content": {"application/json": {"schema": {"$ref": "#/components/schemas/error_information"}}} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 573 | } |
| 574 | }, |
| 575 | "tags": ["Management of configuration"] |
| 576 | }, |
| 577 | "put": { |
| 578 | "summary": "Replace the current configuration file with the given configuration", |
| 579 | "requestBody": { |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 580 | "content": {"application/json": {"schema": {"type": "object"}}}, |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 581 | "required": true |
| 582 | }, |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 583 | "operationId": "putConfiguration", |
| 584 | "responses": { |
| 585 | "200": { |
| 586 | "description": "Configuration updated", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 587 | "content": {"*/*": {"schema": {"$ref": "#/components/schemas/void"}}} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 588 | }, |
| 589 | "400": { |
| 590 | "description": "Invalid configuration provided", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 591 | "content": {"*/*": {"schema": {"$ref": "#/components/schemas/error_information"}}} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 592 | }, |
| 593 | "500": { |
| 594 | "description": "Something went wrong when replacing the configuration. Try again.", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 595 | "content": {"*/*": {"schema": {"$ref": "#/components/schemas/error_information"}}} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 596 | } |
| 597 | }, |
| 598 | "tags": ["Management of configuration"] |
| 599 | } |
| 600 | }, |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 601 | "/actuator": {"get": { |
| 602 | "summary": "Actuator root web endpoint", |
PatrikBuhr | de7a573 | 2022-03-31 12:08:56 +0200 | [diff] [blame] | 603 | "operationId": "links", |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 604 | "responses": {"200": { |
| 605 | "description": "OK", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 606 | "content": { |
| 607 | "application/vnd.spring-boot.actuator.v3+json": {"schema": { |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 608 | "additionalProperties": { |
| 609 | "additionalProperties": {"$ref": "#/components/schemas/Link"}, |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 610 | "type": "object" |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 611 | }, |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 612 | "type": "object" |
| 613 | }}, |
| 614 | "application/json": {"schema": { |
| 615 | "additionalProperties": { |
| 616 | "additionalProperties": {"$ref": "#/components/schemas/Link"}, |
| 617 | "type": "object" |
| 618 | }, |
| 619 | "type": "object" |
| 620 | }}, |
| 621 | "application/vnd.spring-boot.actuator.v2+json": {"schema": { |
| 622 | "additionalProperties": { |
| 623 | "additionalProperties": {"$ref": "#/components/schemas/Link"}, |
| 624 | "type": "object" |
| 625 | }, |
| 626 | "type": "object" |
| 627 | }} |
| 628 | } |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 629 | }}, |
| 630 | "tags": ["Actuator"] |
| 631 | }}, |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 632 | "/actuator/loggers/{name}": { |
| 633 | "post": { |
| 634 | "summary": "Actuator web endpoint 'loggers-name'", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 635 | "requestBody": {"content": {"application/json": {"schema": { |
| 636 | "type": "string", |
| 637 | "enum": [ |
| 638 | "TRACE", |
| 639 | "DEBUG", |
| 640 | "INFO", |
| 641 | "WARN", |
| 642 | "ERROR", |
| 643 | "FATAL", |
| 644 | "OFF" |
| 645 | ] |
| 646 | }}}}, |
| 647 | "operationId": "loggers-name_2", |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 648 | "responses": {"200": { |
| 649 | "description": "OK", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 650 | "content": {"*/*": {"schema": {"type": "object"}}} |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 651 | }}, |
| 652 | "parameters": [{ |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 653 | "schema": {"type": "string"}, |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 654 | "in": "path", |
| 655 | "name": "name", |
| 656 | "required": true |
| 657 | }], |
| 658 | "tags": ["Actuator"] |
| 659 | }, |
| 660 | "get": { |
| 661 | "summary": "Actuator web endpoint 'loggers-name'", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 662 | "operationId": "loggers-name", |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 663 | "responses": {"200": { |
| 664 | "description": "OK", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 665 | "content": { |
| 666 | "application/vnd.spring-boot.actuator.v3+json": {"schema": {"type": "object"}}, |
| 667 | "application/json": {"schema": {"type": "object"}}, |
| 668 | "application/vnd.spring-boot.actuator.v2+json": {"schema": {"type": "object"}} |
| 669 | } |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 670 | }}, |
| 671 | "parameters": [{ |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 672 | "schema": {"type": "string"}, |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 673 | "in": "path", |
| 674 | "name": "name", |
| 675 | "required": true |
| 676 | }], |
| 677 | "tags": ["Actuator"] |
| 678 | } |
| 679 | }, |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 680 | "/a1-policy/v2/services/{service_id}/keepalive": {"put": { |
| 681 | "summary": "Heartbeat indicates that the service is running", |
JohnKeeney | 08486cf | 2022-05-24 12:34:49 +0100 | [diff] [blame] | 682 | "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] | 683 | "operationId": "keepAliveService", |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 684 | "responses": { |
| 685 | "200": { |
| 686 | "description": "Service supervision timer refreshed, OK", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 687 | "content": {"*/*": {"schema": {"type": "object"}}} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 688 | }, |
| 689 | "404": { |
| 690 | "description": "The service is not found, needs re-registration", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 691 | "content": {"*/*": {"schema": {"$ref": "#/components/schemas/error_information"}}} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 692 | } |
| 693 | }, |
| 694 | "parameters": [{ |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 695 | "schema": {"type": "string"}, |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 696 | "in": "path", |
| 697 | "name": "service_id", |
| 698 | "required": true |
| 699 | }], |
| 700 | "tags": ["Service Registry and Supervision"] |
| 701 | }}, |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 702 | "/actuator/metrics": {"get": { |
| 703 | "summary": "Actuator web endpoint 'metrics'", |
PatrikBuhr | de7a573 | 2022-03-31 12:08:56 +0200 | [diff] [blame] | 704 | "operationId": "metrics", |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 705 | "responses": {"200": { |
| 706 | "description": "OK", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 707 | "content": { |
| 708 | "application/vnd.spring-boot.actuator.v3+json": {"schema": {"type": "object"}}, |
| 709 | "application/json": {"schema": {"type": "object"}}, |
| 710 | "application/vnd.spring-boot.actuator.v2+json": {"schema": {"type": "object"}} |
| 711 | } |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 712 | }}, |
| 713 | "tags": ["Actuator"] |
| 714 | }}, |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 715 | "/a1-policy/v2/rics": {"get": { |
| 716 | "summary": "Query Near-RT RIC information", |
| 717 | "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] | 718 | "operationId": "getRics", |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 719 | "responses": { |
| 720 | "200": { |
| 721 | "description": "OK", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 722 | "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ric_info_list_v2"}}} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 723 | }, |
| 724 | "404": { |
| 725 | "description": "Policy type is not found", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 726 | "content": {"application/json": {"schema": {"$ref": "#/components/schemas/error_information"}}} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 727 | } |
| 728 | }, |
| 729 | "parameters": [{ |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 730 | "schema": {"type": "string"}, |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 731 | "in": "query", |
| 732 | "name": "policytype_id", |
PatrikBuhr | 0f8b205 | 2021-12-20 13:40:14 +0100 | [diff] [blame] | 733 | "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] | 734 | "required": false |
| 735 | }], |
| 736 | "tags": ["NearRT-RIC Repository"] |
| 737 | }}, |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 738 | "/a1-policy/v2/services": { |
| 739 | "get": { |
| 740 | "summary": "Returns service information", |
| 741 | "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] | 742 | "operationId": "getServices", |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 743 | "responses": { |
| 744 | "200": { |
| 745 | "description": "OK", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 746 | "content": {"application/json": {"schema": {"$ref": "#/components/schemas/service_list_v2"}}} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 747 | }, |
| 748 | "404": { |
| 749 | "description": "Service is not found", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 750 | "content": {"application/json": {"schema": {"$ref": "#/components/schemas/error_information"}}} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 751 | } |
| 752 | }, |
| 753 | "parameters": [{ |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 754 | "schema": {"type": "string"}, |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 755 | "in": "query", |
| 756 | "name": "service_id", |
| 757 | "description": "The identity of the service", |
| 758 | "required": false |
| 759 | }], |
| 760 | "tags": ["Service Registry and Supervision"] |
| 761 | }, |
| 762 | "put": { |
| 763 | "summary": "Register a service", |
| 764 | "requestBody": { |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 765 | "content": {"application/json": {"schema": {"$ref": "#/components/schemas/service_registration_info_v2"}}}, |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 766 | "required": true |
| 767 | }, |
PatrikBuhr | c7f757e | 2022-11-28 09:40:36 +0100 | [diff] [blame] | 768 | "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] | 769 | "operationId": "putService", |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 770 | "responses": { |
| 771 | "200": { |
| 772 | "description": "Service updated", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 773 | "content": {"*/*": {"schema": {"type": "object"}}} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 774 | }, |
| 775 | "201": { |
| 776 | "description": "Service created", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 777 | "content": {"*/*": {"schema": {"type": "object"}}} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 778 | }, |
| 779 | "400": { |
| 780 | "description": "The ServiceRegistrationInfo is not accepted", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 781 | "content": {"*/*": {"schema": {"$ref": "#/components/schemas/error_information"}}} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 782 | } |
| 783 | }, |
| 784 | "tags": ["Service Registry and Supervision"] |
| 785 | } |
| 786 | }, |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 787 | "/actuator/info": {"get": { |
| 788 | "summary": "Actuator web endpoint 'info'", |
PatrikBuhr | de7a573 | 2022-03-31 12:08:56 +0200 | [diff] [blame] | 789 | "operationId": "info", |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 790 | "responses": {"200": { |
| 791 | "description": "OK", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 792 | "content": { |
| 793 | "application/vnd.spring-boot.actuator.v3+json": {"schema": {"type": "object"}}, |
| 794 | "application/json": {"schema": {"type": "object"}}, |
| 795 | "application/vnd.spring-boot.actuator.v2+json": {"schema": {"type": "object"}} |
| 796 | } |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 797 | }}, |
| 798 | "tags": ["Actuator"] |
| 799 | }}, |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 800 | "/status": {"get": { |
| 801 | "summary": "Returns status and statistics of this service", |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame] | 802 | "operationId": "getStatusV1", |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 803 | "responses": {"200": { |
| 804 | "description": "Service is living", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 805 | "content": {"*/*": {"schema": {"type": "string"}}} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 806 | }}, |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame] | 807 | "tags": ["Health Check"] |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 808 | }}, |
| 809 | "/a1-policy/v2/policy-types/{policytype_id}": {"get": { |
| 810 | "summary": "Returns a policy type definition", |
| 811 | "operationId": "getPolicyType", |
| 812 | "responses": { |
| 813 | "200": { |
| 814 | "description": "Policy type", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 815 | "content": {"*/*": {"schema": {"$ref": "#/components/schemas/policytype_v2"}}} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 816 | }, |
| 817 | "404": { |
| 818 | "description": "Policy type is not found", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 819 | "content": {"*/*": {"schema": {"$ref": "#/components/schemas/error_information"}}} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 820 | } |
| 821 | }, |
| 822 | "parameters": [{ |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 823 | "schema": {"type": "string"}, |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 824 | "in": "path", |
| 825 | "name": "policytype_id", |
| 826 | "required": true |
| 827 | }], |
| 828 | "tags": ["A1 Policy Management"] |
| 829 | }}, |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 830 | "/actuator/logfile": {"get": { |
| 831 | "summary": "Actuator web endpoint 'logfile'", |
PatrikBuhr | de7a573 | 2022-03-31 12:08:56 +0200 | [diff] [blame] | 832 | "operationId": "logfile", |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 833 | "responses": {"200": { |
| 834 | "description": "OK", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 835 | "content": {"text/plain;charset=UTF-8": {"schema": {"type": "object"}}} |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 836 | }}, |
| 837 | "tags": ["Actuator"] |
| 838 | }}, |
| 839 | "/actuator/health": {"get": { |
| 840 | "summary": "Actuator web endpoint 'health'", |
PatrikBuhr | de7a573 | 2022-03-31 12:08:56 +0200 | [diff] [blame] | 841 | "operationId": "health", |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 842 | "responses": {"200": { |
| 843 | "description": "OK", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 844 | "content": { |
| 845 | "application/vnd.spring-boot.actuator.v3+json": {"schema": {"type": "object"}}, |
| 846 | "application/json": {"schema": {"type": "object"}}, |
| 847 | "application/vnd.spring-boot.actuator.v2+json": {"schema": {"type": "object"}} |
| 848 | } |
PatrikBuhr | 2b27764 | 2021-12-27 11:32:58 +0100 | [diff] [blame] | 849 | }}, |
| 850 | "tags": ["Actuator"] |
| 851 | }}, |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 852 | "/a1-policy/v2/policies": { |
| 853 | "get": { |
| 854 | "summary": "Query policy identities", |
| 855 | "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] | 856 | "operationId": "getPolicyIds", |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 857 | "responses": { |
| 858 | "200": { |
| 859 | "description": "Policy identities", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 860 | "content": {"application/json": {"schema": {"$ref": "#/components/schemas/policy_id_list_v2"}}} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 861 | }, |
| 862 | "404": { |
| 863 | "description": "Near-RT RIC or type not found", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 864 | "content": {"application/json": {"schema": {"$ref": "#/components/schemas/error_information"}}} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 865 | } |
| 866 | }, |
| 867 | "parameters": [ |
| 868 | { |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 869 | "schema": {"type": "string"}, |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 870 | "in": "query", |
| 871 | "name": "policytype_id", |
PatrikBuhr | 3b916e4 | 2021-10-07 18:03:53 +0200 | [diff] [blame] | 872 | "description": "Select policies of a given policy type identity.", |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 873 | "required": false |
| 874 | }, |
| 875 | { |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 876 | "schema": {"type": "string"}, |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 877 | "in": "query", |
| 878 | "name": "ric_id", |
PatrikBuhr | 3b916e4 | 2021-10-07 18:03:53 +0200 | [diff] [blame] | 879 | "description": "Select policies of a given Near-RT RIC identity.", |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 880 | "required": false |
| 881 | }, |
| 882 | { |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 883 | "schema": {"type": "string"}, |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 884 | "in": "query", |
| 885 | "name": "service_id", |
PatrikBuhr | 3b916e4 | 2021-10-07 18:03:53 +0200 | [diff] [blame] | 886 | "description": "Select policies owned by a given service.", |
| 887 | "required": false |
| 888 | }, |
| 889 | { |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 890 | "schema": {"type": "string"}, |
PatrikBuhr | 3b916e4 | 2021-10-07 18:03:53 +0200 | [diff] [blame] | 891 | "in": "query", |
| 892 | "name": "type_name", |
| 893 | "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] | 894 | "required": false |
| 895 | } |
| 896 | ], |
| 897 | "tags": ["A1 Policy Management"] |
| 898 | }, |
| 899 | "put": { |
| 900 | "summary": "Create or update a policy", |
| 901 | "requestBody": { |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 902 | "content": {"application/json": {"schema": {"$ref": "#/components/schemas/policy_info_v2"}}}, |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 903 | "required": true |
| 904 | }, |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame] | 905 | "operationId": "putPolicy", |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 906 | "responses": { |
| 907 | "200": { |
| 908 | "description": "Policy updated", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 909 | "content": {"application/json": {"schema": {"$ref": "#/components/schemas/void"}}} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 910 | }, |
| 911 | "201": { |
| 912 | "description": "Policy created", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 913 | "content": {"application/json": {"schema": {"$ref": "#/components/schemas/void"}}} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 914 | }, |
| 915 | "423": { |
| 916 | "description": "Near-RT RIC is not operational", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 917 | "content": {"application/json": {"schema": {"$ref": "#/components/schemas/error_information"}}} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 918 | }, |
| 919 | "404": { |
| 920 | "description": "Near-RT RIC or policy type is not found", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 921 | "content": {"application/json": {"schema": {"$ref": "#/components/schemas/error_information"}}} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 922 | } |
| 923 | }, |
| 924 | "tags": ["A1 Policy Management"] |
| 925 | } |
| 926 | }, |
| 927 | "/r-app/near-rt-ric-status": {"post": { |
| 928 | "summary": "Callback for Near-RT RIC status", |
| 929 | "requestBody": { |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 930 | "content": {"application/json": {"schema": {"$ref": "#/components/schemas/service_callback_info_v2"}}}, |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 931 | "required": true |
| 932 | }, |
JohnKeeney | 069b469 | 2022-05-12 22:15:14 +0100 | [diff] [blame] | 933 | "description": "The URL to this call is registered at Service registration.", |
PatrikBuhr | 25d7850 | 2021-04-28 08:42:13 +0200 | [diff] [blame] | 934 | "operationId": "serviceCallback", |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 935 | "responses": {"200": { |
| 936 | "description": "OK", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 937 | "content": {"application/json": {"schema": {"$ref": "#/components/schemas/void"}}} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 938 | }}, |
PatrikBuhr | 9f1d949 | 2023-04-17 13:00:15 +0200 | [diff] [blame] | 939 | "tags": ["Service callbacks"] |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 940 | }}, |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 941 | "/a1-policy/v2/services/{service_id}": {"delete": { |
| 942 | "summary": "Unregister a service", |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame] | 943 | "operationId": "deleteService", |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 944 | "responses": { |
| 945 | "200": { |
| 946 | "description": "Not used", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 947 | "content": {"*/*": {"schema": {"$ref": "#/components/schemas/void"}}} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 948 | }, |
| 949 | "204": { |
| 950 | "description": "Service unregistered", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 951 | "content": {"*/*": {"schema": {"type": "object"}}} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 952 | }, |
| 953 | "404": { |
| 954 | "description": "Service not found", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 955 | "content": {"*/*": {"schema": {"$ref": "#/components/schemas/error_information"}}} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 956 | } |
| 957 | }, |
| 958 | "parameters": [{ |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 959 | "schema": {"type": "string"}, |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 960 | "in": "path", |
| 961 | "name": "service_id", |
| 962 | "required": true |
| 963 | }], |
| 964 | "tags": ["Service Registry and Supervision"] |
| 965 | }}, |
PatrikBuhr | de7a573 | 2022-03-31 12:08:56 +0200 | [diff] [blame] | 966 | "/actuator/heapdump": {"get": { |
| 967 | "summary": "Actuator web endpoint 'heapdump'", |
| 968 | "operationId": "heapdump", |
| 969 | "responses": {"200": { |
| 970 | "description": "OK", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 971 | "content": {"application/octet-stream": {"schema": {"type": "object"}}} |
PatrikBuhr | de7a573 | 2022-03-31 12:08:56 +0200 | [diff] [blame] | 972 | }}, |
| 973 | "tags": ["Actuator"] |
| 974 | }}, |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 975 | "/a1-policy/v2/policies/{policy_id}/status": {"get": { |
| 976 | "summary": "Returns a policy status", |
PatrikBuhr | 2a56cf7 | 2021-12-28 13:14:46 +0100 | [diff] [blame] | 977 | "operationId": "getPolicyStatus", |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 978 | "responses": { |
| 979 | "200": { |
| 980 | "description": "Policy status", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 981 | "content": {"application/json": {"schema": {"$ref": "#/components/schemas/policy_status_info_v2"}}} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 982 | }, |
| 983 | "404": { |
| 984 | "description": "Policy is not found", |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 985 | "content": {"application/json": {"schema": {"$ref": "#/components/schemas/error_information"}}} |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 986 | } |
| 987 | }, |
| 988 | "parameters": [{ |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 989 | "schema": {"type": "string"}, |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 990 | "in": "path", |
| 991 | "name": "policy_id", |
| 992 | "required": true |
| 993 | }], |
| 994 | "tags": ["A1 Policy Management"] |
| 995 | }} |
| 996 | }, |
| 997 | "info": { |
| 998 | "license": { |
PatrikBuhr | c0218ad | 2022-11-28 09:40:36 +0100 | [diff] [blame] | 999 | "name": "Copyright (C) 2020-2023 Nordix Foundation. Licensed under the Apache License.", |
PatrikBuhr | fee9955 | 2021-02-02 14:06:44 +0100 | [diff] [blame] | 1000 | "url": "http://www.apache.org/licenses/LICENSE-2.0" |
| 1001 | }, |
PatrikBuhr | 9f1d949 | 2023-04-17 13:00:15 +0200 | [diff] [blame] | 1002 | "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 or defined 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>Service 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>Authorization API<\/h3><p>API used for access control of A1 Policy access. If configured, an external authorization provider is requested to grant access to the A1 Policy type.<\/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] | 1003 | "title": "A1 Policy Management Service", |
PatrikBuhr | 9f1d949 | 2023-04-17 13:00:15 +0200 | [diff] [blame] | 1004 | "version": "1.2.0" |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 1005 | }, |
PatrikBuhr | f07e4b3 | 2023-04-05 14:40:07 +0200 | [diff] [blame] | 1006 | "tags": [ |
| 1007 | { |
| 1008 | "name": "Authorization API", |
| 1009 | "description": "API used for authorization of information A1 policy access (this is provided by an authorization producer such as OPA).\nNote that this API is called by PMS, it is not provided.\n" |
| 1010 | }, |
| 1011 | { |
| 1012 | "name": "Actuator", |
| 1013 | "description": "Monitor and interact", |
| 1014 | "externalDocs": { |
| 1015 | "description": "Spring Boot Actuator Web API Documentation", |
| 1016 | "url": "https://docs.spring.io/spring-boot/docs/current/actuator-api/html/" |
| 1017 | } |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 1018 | } |
PatrikBuhr | f07e4b3 | 2023-04-05 14:40:07 +0200 | [diff] [blame] | 1019 | ] |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 1020 | } |