PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 1 | swagger: '2.0' |
2 | info: | ||||
PatrikBuhr | 6a8a0d5 | 2020-03-09 08:01:52 +0100 | [diff] [blame] | 3 | description: This page lists all the rest apis for the service. |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 4 | version: '1.0' |
PatrikBuhr | 6a8a0d5 | 2020-03-09 08:01:52 +0100 | [diff] [blame] | 5 | title: A1 Policy management service |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 6 | host: 'localhost:8081' |
7 | basePath: / | ||||
8 | tags: | ||||
PatrikBuhr | 6a8a0d5 | 2020-03-09 08:01:52 +0100 | [diff] [blame] | 9 | - name: A1 Policy Management |
10 | description: Policy Controller | ||||
11 | - name: Health check | ||||
12 | description: Status Controller | ||||
13 | - name: RIC Repository | ||||
14 | description: Ric Repository Controller | ||||
15 | - name: Service registry and supervision | ||||
16 | description: Service Controller | ||||
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 17 | paths: |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 18 | /policies: |
19 | get: | ||||
20 | tags: | ||||
PatrikBuhr | 6a8a0d5 | 2020-03-09 08:01:52 +0100 | [diff] [blame] | 21 | - A1 Policy Management |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 22 | summary: Query policies |
23 | operationId: getPoliciesUsingGET | ||||
24 | produces: | ||||
25 | - '*/*' | ||||
26 | parameters: | ||||
27 | - name: ric | ||||
28 | in: query | ||||
maximesson | 4e2052b | 2020-06-05 09:12:55 +0200 | [diff] [blame] | 29 | description: The name of the Near-RT RIC to get policies for. |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 30 | required: false |
31 | type: string | ||||
maximesson | 4e2052b | 2020-06-05 09:12:55 +0200 | [diff] [blame] | 32 | allowEmptyValue: false |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 33 | - name: service |
34 | in: query | ||||
maximesson | 4e2052b | 2020-06-05 09:12:55 +0200 | [diff] [blame] | 35 | description: The name of the service to get policies for. |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 36 | required: false |
37 | type: string | ||||
maximesson | 4e2052b | 2020-06-05 09:12:55 +0200 | [diff] [blame] | 38 | allowEmptyValue: false |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 39 | - name: type |
40 | in: query | ||||
maximesson | 4e2052b | 2020-06-05 09:12:55 +0200 | [diff] [blame] | 41 | description: The name of the policy type to get policies for. |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 42 | required: false |
43 | type: string | ||||
maximesson | 4e2052b | 2020-06-05 09:12:55 +0200 | [diff] [blame] | 44 | allowEmptyValue: false |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 45 | responses: |
46 | '200': | ||||
47 | description: Policies | ||||
48 | schema: | ||||
49 | type: array | ||||
50 | items: | ||||
51 | $ref: '#/definitions/PolicyInfo' | ||||
52 | '401': | ||||
53 | description: Unauthorized | ||||
54 | '403': | ||||
55 | description: Forbidden | ||||
56 | '404': | ||||
PatrikBuhr | 6a8a0d5 | 2020-03-09 08:01:52 +0100 | [diff] [blame] | 57 | description: RIC or type not found |
58 | schema: | ||||
59 | type: string | ||||
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 60 | deprecated: false |
61 | /policy: | ||||
62 | get: | ||||
63 | tags: | ||||
PatrikBuhr | 6a8a0d5 | 2020-03-09 08:01:52 +0100 | [diff] [blame] | 64 | - A1 Policy Management |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 65 | summary: Returns a policy configuration |
66 | operationId: getPolicyUsingGET | ||||
67 | produces: | ||||
68 | - '*/*' | ||||
69 | parameters: | ||||
elinuxhenrik | f85d564 | 2020-04-03 09:24:52 +0200 | [diff] [blame] | 70 | - name: id |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 71 | in: query |
maximesson | 4e2052b | 2020-06-05 09:12:55 +0200 | [diff] [blame] | 72 | description: The ID of the policy instance. |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 73 | required: true |
74 | type: string | ||||
maximesson | 4e2052b | 2020-06-05 09:12:55 +0200 | [diff] [blame] | 75 | allowEmptyValue: false |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 76 | responses: |
77 | '200': | ||||
78 | description: Policy found | ||||
79 | schema: | ||||
80 | type: object | ||||
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 81 | '401': |
82 | description: Unauthorized | ||||
83 | '403': | ||||
84 | description: Forbidden | ||||
85 | '404': | ||||
PatrikBuhr | 6a8a0d5 | 2020-03-09 08:01:52 +0100 | [diff] [blame] | 86 | description: Policy is not found |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 87 | deprecated: false |
88 | put: | ||||
89 | tags: | ||||
PatrikBuhr | 6a8a0d5 | 2020-03-09 08:01:52 +0100 | [diff] [blame] | 90 | - A1 Policy Management |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 91 | summary: Put a policy |
92 | operationId: putPolicyUsingPUT | ||||
93 | consumes: | ||||
94 | - application/json | ||||
95 | produces: | ||||
96 | - '*/*' | ||||
97 | parameters: | ||||
elinuxhenrik | f85d564 | 2020-04-03 09:24:52 +0200 | [diff] [blame] | 98 | - name: id |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 99 | in: query |
maximesson | 4e2052b | 2020-06-05 09:12:55 +0200 | [diff] [blame] | 100 | description: The ID of the policy instance. |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 101 | required: true |
102 | type: string | ||||
maximesson | 4e2052b | 2020-06-05 09:12:55 +0200 | [diff] [blame] | 103 | allowEmptyValue: false |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 104 | - in: body |
105 | name: jsonBody | ||||
106 | description: jsonBody | ||||
107 | required: true | ||||
108 | schema: | ||||
109 | type: object | ||||
110 | - name: ric | ||||
111 | in: query | ||||
maximesson | 4e2052b | 2020-06-05 09:12:55 +0200 | [diff] [blame] | 112 | description: The name of the Near-RT RIC where the policy will be created. |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 113 | required: true |
114 | type: string | ||||
maximesson | 4e2052b | 2020-06-05 09:12:55 +0200 | [diff] [blame] | 115 | allowEmptyValue: false |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 116 | - name: service |
117 | in: query | ||||
maximesson | 4e2052b | 2020-06-05 09:12:55 +0200 | [diff] [blame] | 118 | description: The name of the service creating the policy. |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 119 | required: true |
120 | type: string | ||||
maximesson | 4e2052b | 2020-06-05 09:12:55 +0200 | [diff] [blame] | 121 | allowEmptyValue: false |
PatrikBuhr | 4db5e7d | 2020-05-13 10:55:14 +0200 | [diff] [blame] | 122 | - name: transient |
123 | in: query | ||||
maximesson | 4e2052b | 2020-06-05 09:12:55 +0200 | [diff] [blame] | 124 | description: If the policy is transient or not (boolean defaulted to false). A policy is transient if it will be forgotten when the service needs to reconnect to the Near-RT RIC. |
PatrikBuhr | 4db5e7d | 2020-05-13 10:55:14 +0200 | [diff] [blame] | 125 | required: false |
126 | type: boolean | ||||
127 | default: false | ||||
maximesson | 4e2052b | 2020-06-05 09:12:55 +0200 | [diff] [blame] | 128 | allowEmptyValue: false |
129 | x-example: false | ||||
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 130 | - name: type |
131 | in: query | ||||
maximesson | 4e2052b | 2020-06-05 09:12:55 +0200 | [diff] [blame] | 132 | description: The name of the policy type. |
PatrikBuhr | 2753ad5 | 2020-03-18 13:38:58 +0100 | [diff] [blame] | 133 | required: false |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 134 | type: string |
maximesson | 4e2052b | 2020-06-05 09:12:55 +0200 | [diff] [blame] | 135 | allowEmptyValue: false |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 136 | responses: |
137 | '200': | ||||
PatrikBuhr | 6a8a0d5 | 2020-03-09 08:01:52 +0100 | [diff] [blame] | 138 | description: Policy updated |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 139 | schema: |
PatrikBuhr | c5c2519 | 2020-03-11 14:15:50 +0100 | [diff] [blame] | 140 | type: object |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 141 | '201': |
PatrikBuhr | 6a8a0d5 | 2020-03-09 08:01:52 +0100 | [diff] [blame] | 142 | description: Policy created |
143 | schema: | ||||
PatrikBuhr | c5c2519 | 2020-03-11 14:15:50 +0100 | [diff] [blame] | 144 | type: object |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 145 | '401': |
146 | description: Unauthorized | ||||
147 | '403': | ||||
148 | description: Forbidden | ||||
149 | '404': | ||||
PatrikBuhr | 6a8a0d5 | 2020-03-09 08:01:52 +0100 | [diff] [blame] | 150 | description: RIC or policy type is not found |
151 | schema: | ||||
152 | type: string | ||||
PatrikBuhr | 6a8a0d5 | 2020-03-09 08:01:52 +0100 | [diff] [blame] | 153 | '423': |
PatrikBuhr | 2bfc144 | 2020-04-07 14:26:26 +0200 | [diff] [blame] | 154 | description: RIC is not operational |
PatrikBuhr | 6a8a0d5 | 2020-03-09 08:01:52 +0100 | [diff] [blame] | 155 | schema: |
156 | type: string | ||||
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 157 | deprecated: false |
158 | delete: | ||||
159 | tags: | ||||
PatrikBuhr | 6a8a0d5 | 2020-03-09 08:01:52 +0100 | [diff] [blame] | 160 | - A1 Policy Management |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 161 | summary: Delete a policy |
162 | operationId: deletePolicyUsingDELETE | ||||
163 | produces: | ||||
164 | - '*/*' | ||||
165 | parameters: | ||||
elinuxhenrik | f85d564 | 2020-04-03 09:24:52 +0200 | [diff] [blame] | 166 | - name: id |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 167 | in: query |
maximesson | 4e2052b | 2020-06-05 09:12:55 +0200 | [diff] [blame] | 168 | description: The ID of the policy instance. |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 169 | required: true |
170 | type: string | ||||
maximesson | 4e2052b | 2020-06-05 09:12:55 +0200 | [diff] [blame] | 171 | allowEmptyValue: false |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 172 | responses: |
173 | '200': | ||||
174 | description: OK | ||||
175 | schema: | ||||
176 | type: object | ||||
177 | '204': | ||||
178 | description: Policy deleted | ||||
179 | schema: | ||||
180 | type: object | ||||
181 | '401': | ||||
182 | description: Unauthorized | ||||
183 | '403': | ||||
184 | description: Forbidden | ||||
PatrikBuhr | 6a8a0d5 | 2020-03-09 08:01:52 +0100 | [diff] [blame] | 185 | '404': |
186 | description: Policy is not found | ||||
187 | schema: | ||||
188 | type: string | ||||
189 | '423': | ||||
PatrikBuhr | 2bfc144 | 2020-04-07 14:26:26 +0200 | [diff] [blame] | 190 | description: RIC is not operational |
PatrikBuhr | 6a8a0d5 | 2020-03-09 08:01:52 +0100 | [diff] [blame] | 191 | schema: |
192 | type: string | ||||
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 193 | deprecated: false |
PatrikBuhr | 2753ad5 | 2020-03-18 13:38:58 +0100 | [diff] [blame] | 194 | /policy_ids: |
195 | get: | ||||
196 | tags: | ||||
197 | - A1 Policy Management | ||||
198 | summary: 'Query policies, only IDs returned' | ||||
199 | operationId: getPolicyIdsUsingGET | ||||
200 | produces: | ||||
201 | - '*/*' | ||||
202 | parameters: | ||||
203 | - name: ric | ||||
204 | in: query | ||||
maximesson | 4e2052b | 2020-06-05 09:12:55 +0200 | [diff] [blame] | 205 | description: The name of the Near-RT RIC to get policies for. |
PatrikBuhr | 2753ad5 | 2020-03-18 13:38:58 +0100 | [diff] [blame] | 206 | required: false |
207 | type: string | ||||
maximesson | 4e2052b | 2020-06-05 09:12:55 +0200 | [diff] [blame] | 208 | allowEmptyValue: false |
PatrikBuhr | 2753ad5 | 2020-03-18 13:38:58 +0100 | [diff] [blame] | 209 | - name: service |
210 | in: query | ||||
maximesson | 4e2052b | 2020-06-05 09:12:55 +0200 | [diff] [blame] | 211 | description: The name of the service to get policies for. |
PatrikBuhr | 2753ad5 | 2020-03-18 13:38:58 +0100 | [diff] [blame] | 212 | required: false |
213 | type: string | ||||
maximesson | 4e2052b | 2020-06-05 09:12:55 +0200 | [diff] [blame] | 214 | allowEmptyValue: false |
PatrikBuhr | 2753ad5 | 2020-03-18 13:38:58 +0100 | [diff] [blame] | 215 | - name: type |
216 | in: query | ||||
maximesson | 4e2052b | 2020-06-05 09:12:55 +0200 | [diff] [blame] | 217 | description: The name of the policy type to get policies for. |
PatrikBuhr | 2753ad5 | 2020-03-18 13:38:58 +0100 | [diff] [blame] | 218 | required: false |
219 | type: string | ||||
maximesson | 4e2052b | 2020-06-05 09:12:55 +0200 | [diff] [blame] | 220 | allowEmptyValue: false |
PatrikBuhr | 2753ad5 | 2020-03-18 13:38:58 +0100 | [diff] [blame] | 221 | responses: |
222 | '200': | ||||
223 | description: Policy ids | ||||
224 | schema: | ||||
225 | type: array | ||||
226 | items: | ||||
227 | type: string | ||||
228 | '401': | ||||
229 | description: Unauthorized | ||||
230 | '403': | ||||
231 | description: Forbidden | ||||
232 | '404': | ||||
233 | description: RIC or type not found | ||||
234 | schema: | ||||
235 | type: string | ||||
236 | deprecated: false | ||||
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 237 | /policy_schema: |
238 | get: | ||||
239 | tags: | ||||
PatrikBuhr | 6a8a0d5 | 2020-03-09 08:01:52 +0100 | [diff] [blame] | 240 | - A1 Policy Management |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 241 | summary: Returns one policy type schema definition |
242 | operationId: getPolicySchemaUsingGET | ||||
243 | produces: | ||||
244 | - '*/*' | ||||
245 | parameters: | ||||
246 | - name: id | ||||
247 | in: query | ||||
maximesson | 4e2052b | 2020-06-05 09:12:55 +0200 | [diff] [blame] | 248 | description: The ID of the policy type to get the definition for. |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 249 | required: true |
250 | type: string | ||||
maximesson | 4e2052b | 2020-06-05 09:12:55 +0200 | [diff] [blame] | 251 | allowEmptyValue: false |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 252 | responses: |
253 | '200': | ||||
254 | description: Policy schema | ||||
255 | schema: | ||||
256 | type: object | ||||
257 | '401': | ||||
258 | description: Unauthorized | ||||
259 | '403': | ||||
260 | description: Forbidden | ||||
261 | '404': | ||||
PatrikBuhr | 6a8a0d5 | 2020-03-09 08:01:52 +0100 | [diff] [blame] | 262 | description: RIC is not found |
263 | schema: | ||||
264 | type: string | ||||
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 265 | deprecated: false |
266 | /policy_schemas: | ||||
267 | get: | ||||
268 | tags: | ||||
PatrikBuhr | 6a8a0d5 | 2020-03-09 08:01:52 +0100 | [diff] [blame] | 269 | - A1 Policy Management |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 270 | summary: Returns policy type schema definitions |
271 | operationId: getPolicySchemasUsingGET | ||||
272 | produces: | ||||
273 | - '*/*' | ||||
274 | parameters: | ||||
275 | - name: ric | ||||
276 | in: query | ||||
maximesson | 4e2052b | 2020-06-05 09:12:55 +0200 | [diff] [blame] | 277 | description: The name of the Near-RT RIC to get the definitions for. |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 278 | required: false |
279 | type: string | ||||
maximesson | 4e2052b | 2020-06-05 09:12:55 +0200 | [diff] [blame] | 280 | allowEmptyValue: false |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 281 | responses: |
282 | '200': | ||||
283 | description: Policy schemas | ||||
284 | schema: | ||||
285 | type: array | ||||
286 | items: | ||||
PatrikBuhr | b40e1b4 | 2020-02-07 12:59:09 +0100 | [diff] [blame] | 287 | type: object |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 288 | '401': |
289 | description: Unauthorized | ||||
290 | '403': | ||||
291 | description: Forbidden | ||||
292 | '404': | ||||
PatrikBuhr | 6a8a0d5 | 2020-03-09 08:01:52 +0100 | [diff] [blame] | 293 | description: RIC is not found |
294 | schema: | ||||
295 | type: string | ||||
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 296 | deprecated: false |
297 | /policy_status: | ||||
298 | get: | ||||
299 | tags: | ||||
PatrikBuhr | 6a8a0d5 | 2020-03-09 08:01:52 +0100 | [diff] [blame] | 300 | - A1 Policy Management |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 301 | summary: Returns a policy status |
302 | operationId: getPolicyStatusUsingGET | ||||
303 | produces: | ||||
304 | - '*/*' | ||||
305 | parameters: | ||||
elinuxhenrik | f85d564 | 2020-04-03 09:24:52 +0200 | [diff] [blame] | 306 | - name: id |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 307 | in: query |
maximesson | 4e2052b | 2020-06-05 09:12:55 +0200 | [diff] [blame] | 308 | description: The ID of the policy. |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 309 | required: true |
310 | type: string | ||||
maximesson | 4e2052b | 2020-06-05 09:12:55 +0200 | [diff] [blame] | 311 | allowEmptyValue: false |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 312 | responses: |
313 | '200': | ||||
314 | description: Policy status | ||||
315 | schema: | ||||
316 | type: object | ||||
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 317 | '401': |
318 | description: Unauthorized | ||||
319 | '403': | ||||
320 | description: Forbidden | ||||
321 | '404': | ||||
PatrikBuhr | 6a8a0d5 | 2020-03-09 08:01:52 +0100 | [diff] [blame] | 322 | description: Policy is not found |
323 | schema: | ||||
324 | type: string | ||||
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 325 | deprecated: false |
326 | /policy_types: | ||||
327 | get: | ||||
328 | tags: | ||||
PatrikBuhr | 6a8a0d5 | 2020-03-09 08:01:52 +0100 | [diff] [blame] | 329 | - A1 Policy Management |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 330 | summary: Query policy type names |
331 | operationId: getPolicyTypesUsingGET | ||||
332 | produces: | ||||
333 | - '*/*' | ||||
334 | parameters: | ||||
335 | - name: ric | ||||
336 | in: query | ||||
maximesson | 4e2052b | 2020-06-05 09:12:55 +0200 | [diff] [blame] | 337 | description: The name of the Near-RT RIC to get types for. |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 338 | required: false |
339 | type: string | ||||
maximesson | 4e2052b | 2020-06-05 09:12:55 +0200 | [diff] [blame] | 340 | allowEmptyValue: false |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 341 | responses: |
342 | '200': | ||||
343 | description: Policy type names | ||||
344 | schema: | ||||
345 | type: array | ||||
346 | items: | ||||
347 | type: string | ||||
348 | '401': | ||||
349 | description: Unauthorized | ||||
350 | '403': | ||||
351 | description: Forbidden | ||||
352 | '404': | ||||
PatrikBuhr | 6a8a0d5 | 2020-03-09 08:01:52 +0100 | [diff] [blame] | 353 | description: RIC is not found |
354 | schema: | ||||
355 | type: string | ||||
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 356 | deprecated: false |
357 | /ric: | ||||
358 | get: | ||||
359 | tags: | ||||
PatrikBuhr | 6a8a0d5 | 2020-03-09 08:01:52 +0100 | [diff] [blame] | 360 | - RIC Repository |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 361 | summary: Returns the name of a RIC managing one Mananged Element |
362 | operationId: getRicUsingGET | ||||
363 | produces: | ||||
364 | - '*/*' | ||||
365 | parameters: | ||||
366 | - name: managedElementId | ||||
367 | in: query | ||||
maximesson | e8d3abe | 2020-06-12 16:22:34 +0200 | [diff] [blame^] | 368 | description: The ID of the Managed Element |
PatrikBuhr | 2bfc144 | 2020-04-07 14:26:26 +0200 | [diff] [blame] | 369 | required: true |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 370 | type: string |
maximesson | e8d3abe | 2020-06-12 16:22:34 +0200 | [diff] [blame^] | 371 | allowEmptyValue: false |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 372 | responses: |
373 | '200': | ||||
elinuxhenrik | e0fab9a | 2020-03-31 17:59:49 +0200 | [diff] [blame] | 374 | description: RIC is found |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 375 | schema: |
376 | type: string | ||||
377 | '401': | ||||
378 | description: Unauthorized | ||||
379 | '403': | ||||
380 | description: Forbidden | ||||
381 | '404': | ||||
elinuxhenrik | e0fab9a | 2020-03-31 17:59:49 +0200 | [diff] [blame] | 382 | description: RIC is not found |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 383 | schema: |
384 | type: string | ||||
385 | deprecated: false | ||||
386 | /rics: | ||||
387 | get: | ||||
388 | tags: | ||||
PatrikBuhr | 6a8a0d5 | 2020-03-09 08:01:52 +0100 | [diff] [blame] | 389 | - RIC Repository |
elinuxhenrik | e0fab9a | 2020-03-31 17:59:49 +0200 | [diff] [blame] | 390 | summary: Query Near-RT RIC information |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 391 | operationId: getRicsUsingGET |
392 | produces: | ||||
393 | - '*/*' | ||||
394 | parameters: | ||||
395 | - name: policyType | ||||
396 | in: query | ||||
maximesson | e8d3abe | 2020-06-12 16:22:34 +0200 | [diff] [blame^] | 397 | description: The name of the policy type |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 398 | required: false |
399 | type: string | ||||
maximesson | e8d3abe | 2020-06-12 16:22:34 +0200 | [diff] [blame^] | 400 | allowEmptyValue: false |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 401 | responses: |
402 | '200': | ||||
403 | description: OK | ||||
404 | schema: | ||||
405 | type: array | ||||
406 | items: | ||||
407 | $ref: '#/definitions/RicInfo' | ||||
408 | '401': | ||||
409 | description: Unauthorized | ||||
410 | '403': | ||||
411 | description: Forbidden | ||||
412 | '404': | ||||
PatrikBuhr | 6a8a0d5 | 2020-03-09 08:01:52 +0100 | [diff] [blame] | 413 | description: Policy type is not found |
414 | schema: | ||||
415 | type: string | ||||
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 416 | deprecated: false |
417 | /service: | ||||
418 | put: | ||||
419 | tags: | ||||
PatrikBuhr | 6a8a0d5 | 2020-03-09 08:01:52 +0100 | [diff] [blame] | 420 | - Service registry and supervision |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 421 | summary: Register a service |
422 | operationId: putServiceUsingPUT | ||||
423 | consumes: | ||||
424 | - application/json | ||||
425 | produces: | ||||
426 | - '*/*' | ||||
427 | parameters: | ||||
428 | - in: body | ||||
429 | name: registrationInfo | ||||
430 | description: registrationInfo | ||||
431 | required: true | ||||
432 | schema: | ||||
433 | $ref: '#/definitions/ServiceRegistrationInfo' | ||||
434 | responses: | ||||
435 | '200': | ||||
PatrikBuhr | 643ba18 | 2020-03-27 15:44:54 +0100 | [diff] [blame] | 436 | description: Service updated |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 437 | schema: |
438 | type: string | ||||
439 | '201': | ||||
PatrikBuhr | 643ba18 | 2020-03-27 15:44:54 +0100 | [diff] [blame] | 440 | description: Service created |
441 | schema: | ||||
442 | type: string | ||||
PatrikBuhr | 6a8a0d5 | 2020-03-09 08:01:52 +0100 | [diff] [blame] | 443 | '400': |
PatrikBuhr | 2bfc144 | 2020-04-07 14:26:26 +0200 | [diff] [blame] | 444 | description: The ServiceRegistrationInfo is not accepted |
PatrikBuhr | 6a8a0d5 | 2020-03-09 08:01:52 +0100 | [diff] [blame] | 445 | schema: |
446 | type: string | ||||
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 447 | '401': |
448 | description: Unauthorized | ||||
449 | '403': | ||||
450 | description: Forbidden | ||||
451 | '404': | ||||
452 | description: Not Found | ||||
453 | deprecated: false | ||||
454 | /services: | ||||
455 | get: | ||||
456 | tags: | ||||
PatrikBuhr | 6a8a0d5 | 2020-03-09 08:01:52 +0100 | [diff] [blame] | 457 | - Service registry and supervision |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 458 | summary: Returns service information |
459 | operationId: getServicesUsingGET | ||||
460 | produces: | ||||
461 | - '*/*' | ||||
462 | parameters: | ||||
463 | - name: name | ||||
464 | in: query | ||||
maximesson | e8d3abe | 2020-06-12 16:22:34 +0200 | [diff] [blame^] | 465 | description: The name of the service |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 466 | required: false |
467 | type: string | ||||
maximesson | e8d3abe | 2020-06-12 16:22:34 +0200 | [diff] [blame^] | 468 | allowEmptyValue: false |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 469 | responses: |
470 | '200': | ||||
471 | description: OK | ||||
472 | schema: | ||||
473 | type: array | ||||
474 | items: | ||||
475 | $ref: '#/definitions/ServiceStatus' | ||||
476 | '401': | ||||
477 | description: Unauthorized | ||||
478 | '403': | ||||
479 | description: Forbidden | ||||
480 | '404': | ||||
PatrikBuhr | 6a8a0d5 | 2020-03-09 08:01:52 +0100 | [diff] [blame] | 481 | description: Service is not found |
482 | schema: | ||||
483 | type: string | ||||
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 484 | deprecated: false |
485 | delete: | ||||
486 | tags: | ||||
PatrikBuhr | 6a8a0d5 | 2020-03-09 08:01:52 +0100 | [diff] [blame] | 487 | - Service registry and supervision |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 488 | summary: Delete a service |
489 | operationId: deleteServiceUsingDELETE | ||||
490 | produces: | ||||
491 | - '*/*' | ||||
492 | parameters: | ||||
PatrikBuhr | 6a8a0d5 | 2020-03-09 08:01:52 +0100 | [diff] [blame] | 493 | - name: name |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 494 | in: query |
maximesson | e8d3abe | 2020-06-12 16:22:34 +0200 | [diff] [blame^] | 495 | description: The name of the service |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 496 | required: true |
497 | type: string | ||||
maximesson | e8d3abe | 2020-06-12 16:22:34 +0200 | [diff] [blame^] | 498 | allowEmptyValue: false |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 499 | responses: |
500 | '200': | ||||
501 | description: OK | ||||
502 | schema: | ||||
503 | type: string | ||||
504 | '204': | ||||
PatrikBuhr | 6a8a0d5 | 2020-03-09 08:01:52 +0100 | [diff] [blame] | 505 | description: OK |
506 | schema: | ||||
507 | type: string | ||||
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 508 | '401': |
509 | description: Unauthorized | ||||
510 | '403': | ||||
511 | description: Forbidden | ||||
PatrikBuhr | 6a8a0d5 | 2020-03-09 08:01:52 +0100 | [diff] [blame] | 512 | '404': |
513 | description: Service not found | ||||
514 | schema: | ||||
515 | type: string | ||||
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 516 | deprecated: false |
517 | /services/keepalive: | ||||
PatrikBuhr | 2bfc144 | 2020-04-07 14:26:26 +0200 | [diff] [blame] | 518 | put: |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 519 | tags: |
PatrikBuhr | 6a8a0d5 | 2020-03-09 08:01:52 +0100 | [diff] [blame] | 520 | - Service registry and supervision |
PatrikBuhr | 2753ad5 | 2020-03-18 13:38:58 +0100 | [diff] [blame] | 521 | summary: Heartbeat from a serice |
PatrikBuhr | 2bfc144 | 2020-04-07 14:26:26 +0200 | [diff] [blame] | 522 | operationId: keepAliveServiceUsingPUT |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 523 | consumes: |
524 | - application/json | ||||
525 | produces: | ||||
526 | - '*/*' | ||||
527 | parameters: | ||||
PatrikBuhr | 6a8a0d5 | 2020-03-09 08:01:52 +0100 | [diff] [blame] | 528 | - name: name |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 529 | in: query |
maximesson | e8d3abe | 2020-06-12 16:22:34 +0200 | [diff] [blame^] | 530 | description: The name of the service |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 531 | required: true |
532 | type: string | ||||
maximesson | e8d3abe | 2020-06-12 16:22:34 +0200 | [diff] [blame^] | 533 | allowEmptyValue: false |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 534 | responses: |
535 | '200': | ||||
PatrikBuhr | 2753ad5 | 2020-03-18 13:38:58 +0100 | [diff] [blame] | 536 | description: 'Service supervision timer refreshed, OK' |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 537 | schema: |
538 | type: string | ||||
539 | '201': | ||||
540 | description: Created | ||||
541 | '401': | ||||
542 | description: Unauthorized | ||||
543 | '403': | ||||
544 | description: Forbidden | ||||
545 | '404': | ||||
546 | description: 'The service is not found, needs re-registration' | ||||
547 | deprecated: false | ||||
548 | /status: | ||||
549 | get: | ||||
550 | tags: | ||||
PatrikBuhr | 6a8a0d5 | 2020-03-09 08:01:52 +0100 | [diff] [blame] | 551 | - Health check |
PatrikBuhr | b40e1b4 | 2020-02-07 12:59:09 +0100 | [diff] [blame] | 552 | summary: Returns status and statistics of this service |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 553 | operationId: getStatusUsingGET |
554 | produces: | ||||
555 | - '*/*' | ||||
556 | responses: | ||||
557 | '200': | ||||
558 | description: Service is living | ||||
559 | schema: | ||||
560 | type: string | ||||
561 | '401': | ||||
562 | description: Unauthorized | ||||
563 | '403': | ||||
564 | description: Forbidden | ||||
565 | '404': | ||||
566 | description: Not Found | ||||
567 | deprecated: false | ||||
568 | definitions: | ||||
PatrikBuhr | 6a8a0d5 | 2020-03-09 08:01:52 +0100 | [diff] [blame] | 569 | Mono«ResponseEntity«object»»: |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 570 | type: object |
PatrikBuhr | 6a8a0d5 | 2020-03-09 08:01:52 +0100 | [diff] [blame] | 571 | title: Mono«ResponseEntity«object»» |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 572 | Mono«ResponseEntity«string»»: |
573 | type: object | ||||
574 | title: Mono«ResponseEntity«string»» | ||||
575 | PolicyInfo: | ||||
576 | type: object | ||||
577 | properties: | ||||
578 | id: | ||||
579 | type: string | ||||
580 | description: identity of the policy | ||||
581 | json: | ||||
PatrikBuhr | b40e1b4 | 2020-02-07 12:59:09 +0100 | [diff] [blame] | 582 | type: object |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 583 | description: the configuration of the policy |
584 | lastModified: | ||||
585 | type: string | ||||
586 | description: 'timestamp, last modification time' | ||||
587 | ric: | ||||
588 | type: string | ||||
elinuxhenrik | e0fab9a | 2020-03-31 17:59:49 +0200 | [diff] [blame] | 589 | description: identity of the target Near-RT RIC |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 590 | service: |
591 | type: string | ||||
592 | description: the name of the service owning the policy | ||||
593 | type: | ||||
594 | type: string | ||||
595 | description: name of the policy type | ||||
596 | title: PolicyInfo | ||||
597 | RicInfo: | ||||
598 | type: object | ||||
599 | properties: | ||||
600 | managedElementIds: | ||||
601 | type: array | ||||
602 | description: O1 identities for managed entities | ||||
603 | items: | ||||
604 | type: string | ||||
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 605 | policyTypes: |
606 | type: array | ||||
607 | description: supported policy types | ||||
608 | items: | ||||
609 | type: string | ||||
PatrikBuhr | 6a8a0d5 | 2020-03-09 08:01:52 +0100 | [diff] [blame] | 610 | ricName: |
611 | type: string | ||||
612 | description: identity of the ric | ||||
elinuxhenrik | e0efbee | 2020-04-09 09:28:07 +0200 | [diff] [blame] | 613 | state: |
614 | type: string | ||||
615 | description: state info | ||||
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 616 | title: RicInfo |
617 | ServiceRegistrationInfo: | ||||
618 | type: object | ||||
PatrikBuhr | c5c2519 | 2020-03-11 14:15:50 +0100 | [diff] [blame] | 619 | required: |
620 | - serviceName | ||||
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 621 | properties: |
622 | callbackUrl: | ||||
623 | type: string | ||||
elinuxhenrik | a2ad32a | 2020-03-18 10:04:13 +0100 | [diff] [blame] | 624 | description: callback for notifying of RIC synchronization |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 625 | keepAliveIntervalSeconds: |
626 | type: integer | ||||
627 | format: int64 | ||||
PatrikBuhr | 2753ad5 | 2020-03-18 13:38:58 +0100 | [diff] [blame] | 628 | description: 'keep alive interval for the service. This is a heartbeat supervision of the service, which in regular intevals must invoke a ''keepAlive'' REST call. When a service does not invoke this call within the given time, it is considered unavailble. An unavailable service will be automatically deregistered and its policies will be deleted. Value 0 means no timeout supervision.' |
PatrikBuhr | b40e1b4 | 2020-02-07 12:59:09 +0100 | [diff] [blame] | 629 | serviceName: |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 630 | type: string |
631 | description: identity of the service | ||||
632 | title: ServiceRegistrationInfo | ||||
633 | ServiceStatus: | ||||
634 | type: object | ||||
635 | properties: | ||||
PatrikBuhr | 6a8a0d5 | 2020-03-09 08:01:52 +0100 | [diff] [blame] | 636 | callbackUrl: |
637 | type: string | ||||
elinuxhenrik | a2ad32a | 2020-03-18 10:04:13 +0100 | [diff] [blame] | 638 | description: callback for notifying of RIC synchronization |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 639 | keepAliveIntervalSeconds: |
640 | type: integer | ||||
641 | format: int64 | ||||
642 | description: policy keep alive timeout | ||||
PatrikBuhr | b40e1b4 | 2020-02-07 12:59:09 +0100 | [diff] [blame] | 643 | serviceName: |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 644 | type: string |
645 | description: identity of the service | ||||
PatrikBuhr | 2753ad5 | 2020-03-18 13:38:58 +0100 | [diff] [blame] | 646 | timeSinceLastActivitySeconds: |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 647 | type: integer |
648 | format: int64 | ||||
649 | description: time since last invocation by the service | ||||
650 | title: ServiceStatus |