blob: d3f813d3ef3936648c83d44dd8c0e7b35060ef4d [file] [log] [blame]
mpriyank6da95412023-06-29 16:56:11 +01001openapi: 3.0.3
DylanB95ESTfee86992021-09-23 12:22:55 +01002info:
DylanB95ESTfee86992021-09-23 12:22:55 +01003 description: NCMP to CPS Proxy API
mpriyank6da95412023-06-29 16:56:11 +01004 title: NCMP to CPS Proxy API
mpriyank205bd9f2024-12-03 16:14:53 +00005 version: 3.5.5
DylanB95ESTfee86992021-09-23 12:22:55 +01006servers:
mpriyank41c7d002023-08-22 13:17:46 +01007- url: /ncmp
seanbeirne16e23582023-01-26 09:21:44 +00008security:
mpriyank41c7d002023-08-22 13:17:46 +01009- basicAuth: []
DylanB95ESTfee86992021-09-23 12:22:55 +010010paths:
lukegleeson20e7a732022-10-20 10:14:00 +010011 /v1/ch/{cm-handle}/data/ds/{datastore-name}:
DylanB95ESTe5573382022-01-27 17:12:52 +000012 delete:
DylanB95ESTe5573382022-01-27 17:12:52 +000013 description: Delete resource data from pass-through running for a given cm handle
14 operationId: deleteResourceDataRunningForCmHandle
15 parameters:
mpriyank41c7d002023-08-22 13:17:46 +010016 - description: The type of the requested data
17 in: path
18 name: datastore-name
19 required: true
20 schema:
21 example: ncmp-datastore:running
22 type: string
sourabh_sourabhef700222024-10-04 14:35:32 +010023 - description: "The identifier (cmHandle or alternate) for a network function,\
24 \ network element, subnetwork or any other cm object by managed Network\
25 \ CM Proxy"
mpriyank41c7d002023-08-22 13:17:46 +010026 in: path
27 name: cm-handle
28 required: true
29 schema:
sourabh_sourabhef700222024-10-04 14:35:32 +010030 example: my-cm-handle-reference
mpriyank41c7d002023-08-22 13:17:46 +010031 type: string
ToineSiebelink4fed2862024-05-22 12:05:24 +010032 - description: The format of resource identifier depend on the associated DMI
mpriyank41c7d002023-08-22 13:17:46 +010033 Plugin implementation. For ONAP DMI Plugin it will be RESTConf paths but
34 it can really be anything.
35 examples:
36 sample 1:
37 value:
38 resourceIdentifier: \shops\bookstore
39 sample 2:
40 value:
41 resourceIdentifier: "\\shops\\bookstore\\categories[@code=1]"
42 sample 3:
43 value:
44 resourceIdentifier: "parent=shops,child=bookstore"
45 in: query
46 name: resourceIdentifier
47 required: true
48 schema:
49 type: string
50 - description: "Content parameter for request, if content parameter is null,\
DylanB95ESTe5573382022-01-27 17:12:52 +000051 \ default value is application/json."
mpriyank41c7d002023-08-22 13:17:46 +010052 in: header
53 name: Content-Type
54 required: false
55 schema:
56 default: application/json
57 example: application/yang-data+json
58 type: string
mpriyank4a978d32024-02-29 14:39:00 +000059 - description: Authorization parameter for request.
60 in: header
61 name: Authorization
62 required: false
63 schema:
64 type: string
DylanB95ESTe5573382022-01-27 17:12:52 +000065 responses:
66 "204":
DylanB95ESTe5573382022-01-27 17:12:52 +000067 content: {}
mpriyank6da95412023-06-29 16:56:11 +010068 description: No Content
DylanB95ESTe5573382022-01-27 17:12:52 +000069 "400":
DylanB95ESTe5573382022-01-27 17:12:52 +000070 content:
71 application/json:
DylanB95ESTe5573382022-01-27 17:12:52 +000072 example:
danielhanrahanad46c252024-05-01 11:25:36 +010073 status: 400
DylanB95ESTe5573382022-01-27 17:12:52 +000074 message: Bad request error message
75 details: Bad request error details
DylanB95ESTe5573382022-01-27 17:12:52 +000076 schema:
77 $ref: '#/components/schemas/ErrorMessage'
mpriyank6da95412023-06-29 16:56:11 +010078 description: Bad Request
mpriyank6da95412023-06-29 16:56:11 +010079 "403":
80 content:
81 application/json:
DylanB95ESTe5573382022-01-27 17:12:52 +000082 example:
83 status: 403
84 message: Forbidden error message
85 details: Forbidden error details
DylanB95ESTfee86992021-09-23 12:22:55 +010086 schema:
87 $ref: '#/components/schemas/ErrorMessage'
mpriyank6da95412023-06-29 16:56:11 +010088 description: Forbidden
89 "404":
90 content:
91 application/json:
DylanB95ESTe5573382022-01-27 17:12:52 +000092 example:
93 status: 400
94 message: Not found error message
95 details: Not found error details
DylanB95ESTe5573382022-01-27 17:12:52 +000096 schema:
97 $ref: '#/components/schemas/ErrorMessage'
mpriyank6da95412023-06-29 16:56:11 +010098 description: The specified resource was not found
99 "500":
100 content:
101 application/json:
DylanB95ESTe5573382022-01-27 17:12:52 +0000102 example:
103 status: 500
104 message: Internal Server Error
105 details: Internal Server Error occurred
mpriyank6da95412023-06-29 16:56:11 +0100106 schema:
107 $ref: '#/components/schemas/ErrorMessage'
108 description: Internal Server Error
mpriyank93afc1e2022-03-28 15:47:47 +0530109 "502":
mpriyank93afc1e2022-03-28 15:47:47 +0530110 content:
111 application/json:
mpriyank93afc1e2022-03-28 15:47:47 +0530112 example:
emacleeafb17362022-09-02 14:40:17 +0100113 message: Bad Gateway Error Message NCMP
mpriyank93afc1e2022-03-28 15:47:47 +0530114 dmi-response:
115 http-code: 400
116 body: Bad Request
mpriyank6da95412023-06-29 16:56:11 +0100117 schema:
118 $ref: '#/components/schemas/DmiErrorMessage'
119 description: Bad Gateway
120 summary: Delete resource data
DylanB95ESTfee86992021-09-23 12:22:55 +0100121 tags:
mpriyank41c7d002023-08-22 13:17:46 +0100122 - network-cm-proxy
mpriyank6da95412023-06-29 16:56:11 +0100123 get:
124 description: Get resource data for given cm handle
125 operationId: getResourceDataForCmHandle
126 parameters:
mpriyank41c7d002023-08-22 13:17:46 +0100127 - description: The type of the requested data
128 in: path
129 name: datastore-name
130 required: true
131 schema:
132 example: ncmp-datastore:running
133 type: string
sourabh_sourabhef700222024-10-04 14:35:32 +0100134 - description: "The identifier (cmHandle or alternate) for a network function,\
135 \ network element, subnetwork or any other cm object by managed Network\
136 \ CM Proxy"
mpriyank41c7d002023-08-22 13:17:46 +0100137 in: path
138 name: cm-handle
139 required: true
140 schema:
sourabh_sourabhef700222024-10-04 14:35:32 +0100141 example: my-cm-handle-reference
mpriyank41c7d002023-08-22 13:17:46 +0100142 type: string
ToineSiebelink4fed2862024-05-22 12:05:24 +0100143 - description: The format of resource identifier depend on the associated DMI
mpriyank41c7d002023-08-22 13:17:46 +0100144 Plugin implementation. For ONAP DMI Plugin it will be RESTConf paths but
145 it can really be anything.
146 examples:
147 sample 1:
148 value:
149 resourceIdentifier: \shops\bookstore
150 sample 2:
151 value:
152 resourceIdentifier: "\\shops\\bookstore\\categories[@code=1]"
153 sample 3:
154 value:
155 resourceIdentifier: "parent=shops,child=bookstore"
156 in: query
157 name: resourceIdentifier
158 required: true
159 schema:
160 type: string
ToineSiebelink4fed2862024-05-22 12:05:24 +0100161 - description: "options parameter in query, it is mandatory to wrap key(s)=value(s)\
mpriyank6da95412023-06-29 16:56:11 +0100162 \ in parenthesis'()'. The format of options parameter depend on the associated\
163 \ DMI Plugin implementation."
mpriyank41c7d002023-08-22 13:17:46 +0100164 examples:
165 sample 1:
166 value:
167 options: (depth=3)
168 sample 2:
169 value:
170 options: (fields=book)
171 sample 3:
172 value:
173 options: "(depth=2,fields=book/authors)"
174 in: query
175 name: options
176 required: false
177 schema:
178 type: string
ToineSiebelink4fed2862024-05-22 12:05:24 +0100179 - description: topic parameter in query.
mpriyank41c7d002023-08-22 13:17:46 +0100180 examples:
181 sample 1:
182 value:
183 topic: my-topic-name
184 in: query
185 name: topic
186 required: false
187 schema:
188 type: string
189 - description: Determines if descendants are included in response
190 in: query
191 name: include-descendants
192 required: false
193 schema:
194 default: false
195 type: boolean
mpriyank4a978d32024-02-29 14:39:00 +0000196 - description: Authorization parameter for request.
197 in: header
198 name: Authorization
199 required: false
200 schema:
201 type: string
mpriyank6da95412023-06-29 16:56:11 +0100202 responses:
203 "200":
204 content:
205 application/json:
206 examples:
207 dataSampleResponse:
208 $ref: '#/components/examples/dataSampleResponse'
209 value: null
210 schema:
211 type: object
212 description: OK
213 "400":
214 content:
215 application/json:
216 example:
danielhanrahanad46c252024-05-01 11:25:36 +0100217 status: 400
mpriyank6da95412023-06-29 16:56:11 +0100218 message: Bad request error message
219 details: Bad request error details
220 schema:
221 $ref: '#/components/schemas/ErrorMessage'
222 description: Bad Request
mpriyank6da95412023-06-29 16:56:11 +0100223 "403":
224 content:
225 application/json:
226 example:
227 status: 403
228 message: Forbidden error message
229 details: Forbidden error details
230 schema:
231 $ref: '#/components/schemas/ErrorMessage'
232 description: Forbidden
233 "500":
234 content:
235 application/json:
236 example:
237 status: 500
238 message: Internal Server Error
239 details: Internal Server Error occurred
240 schema:
241 $ref: '#/components/schemas/ErrorMessage'
242 description: Internal Server Error
243 "502":
244 content:
245 application/json:
246 example:
247 message: Bad Gateway Error Message NCMP
248 dmi-response:
249 http-code: 400
250 body: Bad Request
251 schema:
252 $ref: '#/components/schemas/DmiErrorMessage'
253 description: Bad Gateway
254 summary: Get resource data for cm handle
255 tags:
mpriyank41c7d002023-08-22 13:17:46 +0100256 - network-cm-proxy
mpriyank6da95412023-06-29 16:56:11 +0100257 patch:
DylanB95ESTe5573382022-01-27 17:12:52 +0000258 description: Patch resource data from pass-through running for the given cm
DylanB95ESTfee86992021-09-23 12:22:55 +0100259 handle
DylanB95ESTe5573382022-01-27 17:12:52 +0000260 operationId: patchResourceDataRunningForCmHandle
DylanB95ESTfee86992021-09-23 12:22:55 +0100261 parameters:
mpriyank41c7d002023-08-22 13:17:46 +0100262 - description: The type of the requested data
263 in: path
264 name: datastore-name
265 required: true
266 schema:
267 example: ncmp-datastore:running
268 type: string
sourabh_sourabhef700222024-10-04 14:35:32 +0100269 - description: "The identifier (cmHandle or alternate) for a network function,\
270 \ network element, subnetwork or any other cm object by managed Network\
271 \ CM Proxy"
mpriyank41c7d002023-08-22 13:17:46 +0100272 in: path
273 name: cm-handle
274 required: true
275 schema:
sourabh_sourabhef700222024-10-04 14:35:32 +0100276 example: my-cm-handle-reference
mpriyank41c7d002023-08-22 13:17:46 +0100277 type: string
ToineSiebelink4fed2862024-05-22 12:05:24 +0100278 - description: The format of resource identifier depend on the associated DMI
mpriyank41c7d002023-08-22 13:17:46 +0100279 Plugin implementation. For ONAP DMI Plugin it will be RESTConf paths but
280 it can really be anything.
281 examples:
282 sample 1:
283 value:
284 resourceIdentifier: \shops\bookstore
285 sample 2:
286 value:
287 resourceIdentifier: "\\shops\\bookstore\\categories[@code=1]"
288 sample 3:
289 value:
290 resourceIdentifier: "parent=shops,child=bookstore"
291 in: query
292 name: resourceIdentifier
293 required: true
294 schema:
295 type: string
296 - description: "Content parameter for request, if content parameter is null,\
DylanB95ESTe5573382022-01-27 17:12:52 +0000297 \ default value is application/json."
mpriyank41c7d002023-08-22 13:17:46 +0100298 in: header
299 name: Content-Type
300 required: false
301 schema:
302 default: application/json
303 example: application/yang-data+json
304 type: string
mpriyank4a978d32024-02-29 14:39:00 +0000305 - description: Authorization parameter for request.
306 in: header
307 name: Authorization
308 required: false
309 schema:
310 type: string
DylanB95ESTe5573382022-01-27 17:12:52 +0000311 requestBody:
312 content:
313 '*/*':
DylanB95ESTe5573382022-01-27 17:12:52 +0000314 examples:
315 dataSampleRequest:
316 $ref: '#/components/examples/dataSamplePatchRequest'
mpriyank6da95412023-06-29 16:56:11 +0100317 value: null
318 schema:
319 type: object
DylanB95ESTe5573382022-01-27 17:12:52 +0000320 required: true
DylanB95ESTfee86992021-09-23 12:22:55 +0100321 responses:
322 "200":
DylanB95ESTfee86992021-09-23 12:22:55 +0100323 content:
324 application/json:
325 schema:
326 type: object
mpriyank6da95412023-06-29 16:56:11 +0100327 description: OK
DylanB95ESTfee86992021-09-23 12:22:55 +0100328 "400":
DylanB95ESTfee86992021-09-23 12:22:55 +0100329 content:
330 application/json:
DylanB95ESTe5573382022-01-27 17:12:52 +0000331 example:
danielhanrahanad46c252024-05-01 11:25:36 +0100332 status: 400
DylanB95ESTe5573382022-01-27 17:12:52 +0000333 message: Bad request error message
334 details: Bad request error details
DylanB95ESTfee86992021-09-23 12:22:55 +0100335 schema:
336 $ref: '#/components/schemas/ErrorMessage'
mpriyank6da95412023-06-29 16:56:11 +0100337 description: Bad Request
mpriyank6da95412023-06-29 16:56:11 +0100338 "403":
339 content:
340 application/json:
DylanB95ESTe5573382022-01-27 17:12:52 +0000341 example:
342 status: 403
343 message: Forbidden error message
344 details: Forbidden error details
DylanB95ESTe5573382022-01-27 17:12:52 +0000345 schema:
346 $ref: '#/components/schemas/ErrorMessage'
mpriyank6da95412023-06-29 16:56:11 +0100347 description: Forbidden
348 "500":
349 content:
350 application/json:
DylanB95ESTe5573382022-01-27 17:12:52 +0000351 example:
352 status: 500
353 message: Internal Server Error
354 details: Internal Server Error occurred
mpriyank6da95412023-06-29 16:56:11 +0100355 schema:
356 $ref: '#/components/schemas/ErrorMessage'
357 description: Internal Server Error
mpriyank93afc1e2022-03-28 15:47:47 +0530358 "502":
mpriyank93afc1e2022-03-28 15:47:47 +0530359 content:
360 application/json:
mpriyank93afc1e2022-03-28 15:47:47 +0530361 example:
emacleeafb17362022-09-02 14:40:17 +0100362 message: Bad Gateway Error Message NCMP
mpriyank93afc1e2022-03-28 15:47:47 +0530363 dmi-response:
364 http-code: 400
365 body: Bad Request
mpriyank6da95412023-06-29 16:56:11 +0100366 schema:
367 $ref: '#/components/schemas/DmiErrorMessage'
368 description: Bad Gateway
369 summary: Patch resource data from pass-through running
370 tags:
mpriyank41c7d002023-08-22 13:17:46 +0100371 - network-cm-proxy
mpriyank6da95412023-06-29 16:56:11 +0100372 post:
373 description: create resource data from pass-through running for given cm handle
374 operationId: createResourceDataRunningForCmHandle
375 parameters:
mpriyank41c7d002023-08-22 13:17:46 +0100376 - description: The type of the requested data
377 in: path
378 name: datastore-name
379 required: true
380 schema:
381 example: ncmp-datastore:running
382 type: string
sourabh_sourabhef700222024-10-04 14:35:32 +0100383 - description: "The identifier (cmHandle or alternate) for a network function,\
384 \ network element, subnetwork or any other cm object by managed Network\
385 \ CM Proxy"
mpriyank41c7d002023-08-22 13:17:46 +0100386 in: path
387 name: cm-handle
388 required: true
389 schema:
sourabh_sourabhef700222024-10-04 14:35:32 +0100390 example: my-cm-handle-reference
mpriyank41c7d002023-08-22 13:17:46 +0100391 type: string
ToineSiebelink4fed2862024-05-22 12:05:24 +0100392 - description: The format of resource identifier depend on the associated DMI
mpriyank41c7d002023-08-22 13:17:46 +0100393 Plugin implementation. For ONAP DMI Plugin it will be RESTConf paths but
394 it can really be anything.
395 examples:
396 sample 1:
397 value:
398 resourceIdentifier: \shops\bookstore
399 sample 2:
400 value:
401 resourceIdentifier: "\\shops\\bookstore\\categories[@code=1]"
402 sample 3:
403 value:
404 resourceIdentifier: "parent=shops,child=bookstore"
405 in: query
406 name: resourceIdentifier
407 required: true
408 schema:
409 type: string
410 - description: "Content parameter for request, if content parameter is null,\
mpriyank6da95412023-06-29 16:56:11 +0100411 \ default value is application/json."
mpriyank41c7d002023-08-22 13:17:46 +0100412 in: header
413 name: Content-Type
414 required: false
415 schema:
416 default: application/json
417 example: application/yang-data+json
418 type: string
mpriyank4a978d32024-02-29 14:39:00 +0000419 - description: Authorization parameter for request.
420 in: header
421 name: Authorization
422 required: false
423 schema:
424 type: string
mpriyank6da95412023-06-29 16:56:11 +0100425 requestBody:
426 content:
427 application/json:
428 examples:
429 dataSampleRequest:
430 $ref: '#/components/examples/dataSampleRequest'
431 value: null
432 schema:
433 type: object
434 application/yang-data+json:
435 examples:
436 dataSampleRequest:
437 $ref: '#/components/examples/dataSampleRequest'
438 value: null
439 schema:
440 type: object
441 required: true
442 responses:
443 "201":
444 content: {}
445 description: Created
446 "400":
447 content:
448 application/json:
449 example:
danielhanrahanad46c252024-05-01 11:25:36 +0100450 status: 400
mpriyank6da95412023-06-29 16:56:11 +0100451 message: Bad request error message
452 details: Bad request error details
453 schema:
454 $ref: '#/components/schemas/ErrorMessage'
455 description: Bad Request
mpriyank6da95412023-06-29 16:56:11 +0100456 "403":
457 content:
458 application/json:
459 example:
460 status: 403
461 message: Forbidden error message
462 details: Forbidden error details
463 schema:
464 $ref: '#/components/schemas/ErrorMessage'
465 description: Forbidden
466 "500":
467 content:
468 application/json:
469 example:
470 status: 500
471 message: Internal Server Error
472 details: Internal Server Error occurred
473 schema:
474 $ref: '#/components/schemas/ErrorMessage'
475 description: Internal Server Error
476 "502":
477 content:
478 application/json:
479 example:
480 message: Bad Gateway Error Message NCMP
481 dmi-response:
482 http-code: 400
483 body: Bad Request
484 schema:
485 $ref: '#/components/schemas/DmiErrorMessage'
486 description: Bad Gateway
487 summary: create resource data from pass-through running for cm handle
488 tags:
mpriyank41c7d002023-08-22 13:17:46 +0100489 - network-cm-proxy
mpriyank6da95412023-06-29 16:56:11 +0100490 put:
491 description: Update resource data from pass-through running for the given cm
492 handle
493 operationId: updateResourceDataRunningForCmHandle
494 parameters:
mpriyank41c7d002023-08-22 13:17:46 +0100495 - description: The type of the requested data
496 in: path
497 name: datastore-name
498 required: true
499 schema:
500 example: ncmp-datastore:running
501 type: string
sourabh_sourabhef700222024-10-04 14:35:32 +0100502 - description: "The identifier (cmHandle or alternate) for a network function,\
503 \ network element, subnetwork or any other cm object by managed Network\
504 \ CM Proxy"
mpriyank41c7d002023-08-22 13:17:46 +0100505 in: path
506 name: cm-handle
507 required: true
508 schema:
sourabh_sourabhef700222024-10-04 14:35:32 +0100509 example: my-cm-handle-reference
mpriyank41c7d002023-08-22 13:17:46 +0100510 type: string
ToineSiebelink4fed2862024-05-22 12:05:24 +0100511 - description: The format of resource identifier depend on the associated DMI
mpriyank41c7d002023-08-22 13:17:46 +0100512 Plugin implementation. For ONAP DMI Plugin it will be RESTConf paths but
513 it can really be anything.
514 examples:
515 sample 1:
516 value:
517 resourceIdentifier: \shops\bookstore
518 sample 2:
519 value:
520 resourceIdentifier: "\\shops\\bookstore\\categories[@code=1]"
521 sample 3:
522 value:
523 resourceIdentifier: "parent=shops,child=bookstore"
524 in: query
525 name: resourceIdentifier
526 required: true
527 schema:
528 type: string
529 - description: "Content parameter for request, if content parameter is null,\
mpriyank6da95412023-06-29 16:56:11 +0100530 \ default value is application/json."
mpriyank41c7d002023-08-22 13:17:46 +0100531 in: header
532 name: Content-Type
533 required: false
534 schema:
535 default: application/json
536 example: application/yang-data+json
537 type: string
mpriyank4a978d32024-02-29 14:39:00 +0000538 - description: Authorization parameter for request.
539 in: header
540 name: Authorization
541 required: false
542 schema:
543 type: string
mpriyank6da95412023-06-29 16:56:11 +0100544 requestBody:
545 content:
546 application/json:
547 examples:
548 dataSampleRequest:
549 $ref: '#/components/examples/dataSampleRequest'
550 value: null
551 schema:
552 type: object
553 application/yang-data+json:
554 examples:
555 dataSampleRequest:
556 $ref: '#/components/examples/dataSampleRequest'
557 value: null
558 schema:
559 type: object
560 required: true
561 responses:
562 "200":
563 content:
564 application/json:
565 schema:
566 type: object
567 description: OK
568 "400":
569 content:
570 application/json:
571 example:
danielhanrahanad46c252024-05-01 11:25:36 +0100572 status: 400
mpriyank6da95412023-06-29 16:56:11 +0100573 message: Bad request error message
574 details: Bad request error details
575 schema:
576 $ref: '#/components/schemas/ErrorMessage'
577 description: Bad Request
mpriyank6da95412023-06-29 16:56:11 +0100578 "403":
579 content:
580 application/json:
581 example:
582 status: 403
583 message: Forbidden error message
584 details: Forbidden error details
585 schema:
586 $ref: '#/components/schemas/ErrorMessage'
587 description: Forbidden
588 "500":
589 content:
590 application/json:
591 example:
592 status: 500
593 message: Internal Server Error
594 details: Internal Server Error occurred
595 schema:
596 $ref: '#/components/schemas/ErrorMessage'
597 description: Internal Server Error
598 "502":
599 content:
600 application/json:
601 example:
602 message: Bad Gateway Error Message NCMP
603 dmi-response:
604 http-code: 400
605 body: Bad Request
606 schema:
607 $ref: '#/components/schemas/DmiErrorMessage'
608 description: Bad Gateway
609 summary: Update resource data from pass-through running for a cm handle
610 tags:
mpriyank41c7d002023-08-22 13:17:46 +0100611 - network-cm-proxy
danielhanrahan5cec5322023-06-15 11:08:54 +0100612 /v1/data:
mpriyank52c5e542023-05-02 15:58:55 +0100613 post:
mpriyank52c5e542023-05-02 15:58:55 +0100614 description: This request will be handled asynchronously using messaging to
615 the supplied topic. The rest response will be an acknowledge with a requestId
danielhanrahan9002b9f2024-08-21 14:51:19 +0100616 to identify the relevant messages. A maximum of 200 cm handles per operation
danielhanrahanad46c252024-05-01 11:25:36 +0100617 is supported.
mpriyank6da95412023-06-29 16:56:11 +0100618 operationId: executeDataOperationForCmHandles
mpriyank52c5e542023-05-02 15:58:55 +0100619 parameters:
ToineSiebelink4fed2862024-05-22 12:05:24 +0100620 - description: mandatory topic parameter in query.
mpriyank41c7d002023-08-22 13:17:46 +0100621 examples:
622 sample 1:
623 value:
624 topic: my-topic-name
625 in: query
626 name: topic
627 required: true
628 schema:
629 type: string
mpriyank4a978d32024-02-29 14:39:00 +0000630 - description: Authorization parameter for request.
631 in: header
632 name: Authorization
633 required: false
634 schema:
635 type: string
mpriyank52c5e542023-05-02 15:58:55 +0100636 requestBody:
637 content:
638 application/json:
639 schema:
mpriyank6da95412023-06-29 16:56:11 +0100640 $ref: '#/components/schemas/DataOperationRequest'
mpriyank52c5e542023-05-02 15:58:55 +0100641 required: true
642 responses:
643 "200":
mpriyank52c5e542023-05-02 15:58:55 +0100644 content:
645 application/json:
646 schema:
647 type: object
mpriyank6da95412023-06-29 16:56:11 +0100648 description: OK
mpriyank52c5e542023-05-02 15:58:55 +0100649 "400":
mpriyank52c5e542023-05-02 15:58:55 +0100650 content:
651 application/json:
mpriyank52c5e542023-05-02 15:58:55 +0100652 example:
danielhanrahanad46c252024-05-01 11:25:36 +0100653 status: 400
mpriyank52c5e542023-05-02 15:58:55 +0100654 message: Bad request error message
655 details: Bad request error details
mpriyank52c5e542023-05-02 15:58:55 +0100656 schema:
657 $ref: '#/components/schemas/ErrorMessage'
mpriyank6da95412023-06-29 16:56:11 +0100658 description: Bad Request
mpriyank6da95412023-06-29 16:56:11 +0100659 "403":
660 content:
661 application/json:
mpriyank52c5e542023-05-02 15:58:55 +0100662 example:
663 status: 403
664 message: Forbidden error message
665 details: Forbidden error details
mpriyank52c5e542023-05-02 15:58:55 +0100666 schema:
667 $ref: '#/components/schemas/ErrorMessage'
mpriyank6da95412023-06-29 16:56:11 +0100668 description: Forbidden
danielhanrahanad46c252024-05-01 11:25:36 +0100669 "413":
670 content:
671 application/json:
672 example:
673 status: 413
674 message: Payload Too Large error message
675 details: Payload Too Large error details
676 schema:
677 $ref: '#/components/schemas/ErrorMessage'
678 description: The request is larger than the server is willing or able to
679 process
mpriyank6da95412023-06-29 16:56:11 +0100680 "500":
681 content:
682 application/json:
mpriyank52c5e542023-05-02 15:58:55 +0100683 example:
684 status: 500
685 message: Internal Server Error
686 details: Internal Server Error occurred
mpriyank6da95412023-06-29 16:56:11 +0100687 schema:
688 $ref: '#/components/schemas/ErrorMessage'
689 description: Internal Server Error
mpriyank52c5e542023-05-02 15:58:55 +0100690 "502":
mpriyank52c5e542023-05-02 15:58:55 +0100691 content:
692 application/json:
mpriyank52c5e542023-05-02 15:58:55 +0100693 example:
694 message: Bad Gateway Error Message NCMP
695 dmi-response:
696 http-code: 400
697 body: Bad Request
mpriyank6da95412023-06-29 16:56:11 +0100698 schema:
699 $ref: '#/components/schemas/DmiErrorMessage'
700 description: Bad Gateway
seanbeirnea1a71f72024-10-21 16:18:27 +0100701 summary: Execute a data operation for group of cm handle references
mpriyank6da95412023-06-29 16:56:11 +0100702 tags:
mpriyank41c7d002023-08-22 13:17:46 +0100703 - network-cm-proxy
seanbeirne16e23582023-01-26 09:21:44 +0000704 /v1/ch/{cm-handle}/data/ds/{datastore-name}/query:
705 get:
seanbeirne16e23582023-01-26 09:21:44 +0000706 description: Query resource data for a given cm handle
707 operationId: queryResourceDataForCmHandle
708 parameters:
mpriyank41c7d002023-08-22 13:17:46 +0100709 - description: The type of the requested data
710 in: path
711 name: datastore-name
712 required: true
713 schema:
714 example: ncmp-datastore:running
715 type: string
716 - description: "The identifier for a network function, network element, subnetwork\
seanbeirne16e23582023-01-26 09:21:44 +0000717 \ or any other cm object by managed Network CM Proxy"
mpriyank41c7d002023-08-22 13:17:46 +0100718 in: path
719 name: cm-handle
720 required: true
721 schema:
722 example: my-cm-handle
723 type: string
724 - description: "For more details on cps path, please refer https://docs.onap.org/projects/onap-cps/en/latest/cps-path.html"
725 examples:
726 container cps path:
727 value: //bookstore
728 list attributes cps path:
729 value: "//categories[@code=1]"
730 in: query
731 name: cps-path
732 required: false
733 schema:
734 default: /
735 type: string
ToineSiebelink4fed2862024-05-22 12:05:24 +0100736 - description: "options parameter in query, it is mandatory to wrap key(s)=value(s)\
seanbeirne16e23582023-01-26 09:21:44 +0000737 \ in parenthesis'()'. The format of options parameter depend on the associated\
738 \ DMI Plugin implementation."
mpriyank41c7d002023-08-22 13:17:46 +0100739 examples:
740 sample 1:
741 value:
742 options: (depth=3)
743 sample 2:
744 value:
745 options: (fields=book)
746 sample 3:
747 value:
748 options: "(depth=2,fields=book/authors)"
749 in: query
750 name: options
751 required: false
752 schema:
753 type: string
ToineSiebelink4fed2862024-05-22 12:05:24 +0100754 - description: topic parameter in query.
mpriyank41c7d002023-08-22 13:17:46 +0100755 examples:
756 sample 1:
757 value:
758 topic: my-topic-name
759 in: query
760 name: topic
761 required: false
762 schema:
763 type: string
764 - description: Determines if descendants are included in response
765 in: query
766 name: include-descendants
767 required: false
768 schema:
769 default: false
770 type: boolean
seanbeirne16e23582023-01-26 09:21:44 +0000771 responses:
772 "200":
seanbeirne16e23582023-01-26 09:21:44 +0000773 content:
774 application/json:
seanbeirne16e23582023-01-26 09:21:44 +0000775 examples:
776 dataSampleResponse:
777 $ref: '#/components/examples/dataSampleResponse'
mpriyank6da95412023-06-29 16:56:11 +0100778 value: null
779 schema:
780 type: object
781 description: OK
seanbeirne16e23582023-01-26 09:21:44 +0000782 "400":
seanbeirne16e23582023-01-26 09:21:44 +0000783 content:
784 application/json:
seanbeirne16e23582023-01-26 09:21:44 +0000785 example:
danielhanrahanad46c252024-05-01 11:25:36 +0100786 status: 400
seanbeirne16e23582023-01-26 09:21:44 +0000787 message: Bad request error message
788 details: Bad request error details
seanbeirne16e23582023-01-26 09:21:44 +0000789 schema:
790 $ref: '#/components/schemas/ErrorMessage'
mpriyank6da95412023-06-29 16:56:11 +0100791 description: Bad Request
mpriyank6da95412023-06-29 16:56:11 +0100792 "403":
793 content:
794 application/json:
seanbeirne16e23582023-01-26 09:21:44 +0000795 example:
796 status: 403
797 message: Forbidden error message
798 details: Forbidden error details
seanbeirne16e23582023-01-26 09:21:44 +0000799 schema:
800 $ref: '#/components/schemas/ErrorMessage'
mpriyank6da95412023-06-29 16:56:11 +0100801 description: Forbidden
802 "500":
803 content:
804 application/json:
seanbeirne16e23582023-01-26 09:21:44 +0000805 example:
806 status: 500
807 message: Internal Server Error
808 details: Internal Server Error occurred
mpriyank6da95412023-06-29 16:56:11 +0100809 schema:
810 $ref: '#/components/schemas/ErrorMessage'
811 description: Internal Server Error
seanbeirne16e23582023-01-26 09:21:44 +0000812 "502":
seanbeirne16e23582023-01-26 09:21:44 +0000813 content:
814 application/json:
seanbeirne16e23582023-01-26 09:21:44 +0000815 example:
816 message: Bad Gateway Error Message NCMP
817 dmi-response:
818 http-code: 400
819 body: Bad Request
mpriyank6da95412023-06-29 16:56:11 +0100820 schema:
821 $ref: '#/components/schemas/DmiErrorMessage'
822 description: Bad Gateway
823 summary: Query resource data for a given cm handle
824 tags:
mpriyank41c7d002023-08-22 13:17:46 +0100825 - network-cm-proxy
DylanB95ESTe5573382022-01-27 17:12:52 +0000826 /v1/ch/{cm-handle}/modules:
827 get:
DylanB95ESTe5573382022-01-27 17:12:52 +0000828 description: fetch all module references (name and revision) for a given cm
829 handle
830 operationId: getModuleReferencesByCmHandle
831 parameters:
sourabh_sourabhef700222024-10-04 14:35:32 +0100832 - description: "The identifier (cmHandle or alternate) for a network function,\
833 \ network element, subnetwork or any other cm object by managed Network\
834 \ CM Proxy"
mpriyank41c7d002023-08-22 13:17:46 +0100835 in: path
836 name: cm-handle
837 required: true
838 schema:
sourabh_sourabhef700222024-10-04 14:35:32 +0100839 example: my-cm-handle-reference
mpriyank41c7d002023-08-22 13:17:46 +0100840 type: string
DylanB95ESTe5573382022-01-27 17:12:52 +0000841 responses:
842 "200":
DylanB95ESTe5573382022-01-27 17:12:52 +0000843 content:
844 application/json:
845 schema:
DylanB95ESTe5573382022-01-27 17:12:52 +0000846 items:
Bruno Sakotoa1129b62022-03-15 08:09:07 -0400847 $ref: '#/components/schemas/RestModuleReference'
mpriyank6da95412023-06-29 16:56:11 +0100848 type: array
849 description: OK
DylanB95ESTe5573382022-01-27 17:12:52 +0000850 "400":
DylanB95ESTe5573382022-01-27 17:12:52 +0000851 content:
852 application/json:
DylanB95ESTe5573382022-01-27 17:12:52 +0000853 example:
danielhanrahanad46c252024-05-01 11:25:36 +0100854 status: 400
DylanB95ESTe5573382022-01-27 17:12:52 +0000855 message: Bad request error message
856 details: Bad request error details
DylanB95ESTe5573382022-01-27 17:12:52 +0000857 schema:
858 $ref: '#/components/schemas/ErrorMessage'
mpriyank6da95412023-06-29 16:56:11 +0100859 description: Bad Request
mpriyank6da95412023-06-29 16:56:11 +0100860 "403":
861 content:
862 application/json:
DylanB95ESTe5573382022-01-27 17:12:52 +0000863 example:
864 status: 403
865 message: Forbidden error message
866 details: Forbidden error details
DylanB95ESTe5573382022-01-27 17:12:52 +0000867 schema:
868 $ref: '#/components/schemas/ErrorMessage'
mpriyank6da95412023-06-29 16:56:11 +0100869 description: Forbidden
870 "500":
871 content:
872 application/json:
DylanB95ESTe5573382022-01-27 17:12:52 +0000873 example:
874 status: 500
875 message: Internal Server Error
876 details: Internal Server Error occurred
mpriyank6da95412023-06-29 16:56:11 +0100877 schema:
878 $ref: '#/components/schemas/ErrorMessage'
879 description: Internal Server Error
880 summary: Fetch all module references (name and revision) for a given cm handle
881 tags:
mpriyank41c7d002023-08-22 13:17:46 +0100882 - network-cm-proxy
emacleeafb17362022-09-02 14:40:17 +0100883 /v1/ch/{cm-handle}/modules/definitions:
884 get:
danielhanrahan7ce495b2024-02-07 14:21:58 +0000885 description: "Get module definitions (module name, revision, yang resource)\
886 \ with options to filter on module name and revision"
887 operationId: getModuleDefinitions
emacleeafb17362022-09-02 14:40:17 +0100888 parameters:
sourabh_sourabhef700222024-10-04 14:35:32 +0100889 - description: "The identifier (cmHandle or alternate) for a network function,\
890 \ network element, subnetwork or any other cm object by managed Network\
891 \ CM Proxy"
mpriyank41c7d002023-08-22 13:17:46 +0100892 in: path
893 name: cm-handle
894 required: true
895 schema:
sourabh_sourabhef700222024-10-04 14:35:32 +0100896 example: my-cm-handle-reference
mpriyank41c7d002023-08-22 13:17:46 +0100897 type: string
danielhanrahan7ce495b2024-02-07 14:21:58 +0000898 - description: Filter for a module name.This is an optional parameter
899 in: query
900 name: module-name
901 required: false
902 schema:
903 example: my-module
904 type: string
905 - description: Filter for a module revision.This is an optional parameter and
906 ignored when no module name is supplied
907 in: query
908 name: revision
909 required: false
910 schema:
911 example: 2024-01-22
912 type: string
emacleeafb17362022-09-02 14:40:17 +0100913 responses:
914 "200":
emacleeafb17362022-09-02 14:40:17 +0100915 content:
916 application/json:
917 schema:
emacleeafb17362022-09-02 14:40:17 +0100918 items:
919 $ref: '#/components/schemas/RestModuleDefinition'
mpriyank6da95412023-06-29 16:56:11 +0100920 type: array
921 description: OK
mpriyank6da95412023-06-29 16:56:11 +0100922 "403":
923 content:
924 application/json:
emacleeafb17362022-09-02 14:40:17 +0100925 example:
926 status: 403
927 message: Forbidden error message
928 details: Forbidden error details
emacleeafb17362022-09-02 14:40:17 +0100929 schema:
930 $ref: '#/components/schemas/ErrorMessage'
mpriyank6da95412023-06-29 16:56:11 +0100931 description: Forbidden
932 "500":
933 content:
934 application/json:
emacleeafb17362022-09-02 14:40:17 +0100935 example:
936 status: 500
937 message: Internal Server Error
938 details: Internal Server Error occurred
mpriyank6da95412023-06-29 16:56:11 +0100939 schema:
940 $ref: '#/components/schemas/ErrorMessage'
941 description: Internal Server Error
danielhanrahan7ce495b2024-02-07 14:21:58 +0000942 summary: Get module definitions
mpriyank6da95412023-06-29 16:56:11 +0100943 tags:
mpriyank41c7d002023-08-22 13:17:46 +0100944 - network-cm-proxy
DylanB95ESTe5573382022-01-27 17:12:52 +0000945 /v1/ch/searches:
946 post:
emacleeafb17362022-09-02 14:40:17 +0100947 description: Execute cm handle query search and return a list of cm handle details.
948 Any number of conditions can be applied. To be included in the result a cm-handle
949 must fulfill ALL the conditions. An empty collection will be returned in the
950 case that the cm handle does not match a condition. For more on cm handle
951 query search please refer to <a href="https://docs.onap.org/projects/onap-cps/en/latest/ncmp-cmhandle-querying.html">cm
952 handle query search Read the Docs</a>.<br/>By supplying a CPS Path it is possible
953 to query on any data related to the cm handle. For more on CPS Path please
954 refer to <a href="https://docs.onap.org/projects/onap-cps/en/latest/cps-path.html">CPS
955 Path Read the Docs</a>. The cm handle ancestor is automatically returned for
956 this query.
957 operationId: searchCmHandles
DylanB95ESTe5573382022-01-27 17:12:52 +0000958 requestBody:
959 content:
960 application/json:
emacleeafb17362022-09-02 14:40:17 +0100961 examples:
962 Cm handle properties query:
963 $ref: '#/components/examples/pubPropCmHandleQueryParameters'
mpriyank6da95412023-06-29 16:56:11 +0100964 value: null
emacleeafb17362022-09-02 14:40:17 +0100965 Cm handle modules query:
966 $ref: '#/components/examples/modulesCmHandleQueryParameters'
mpriyank6da95412023-06-29 16:56:11 +0100967 value: null
emacleeafb17362022-09-02 14:40:17 +0100968 All cm handle query parameters:
969 $ref: '#/components/examples/allCmHandleQueryParameters'
mpriyank6da95412023-06-29 16:56:11 +0100970 value: null
emacleeafb17362022-09-02 14:40:17 +0100971 Cm handle with CPS path state query:
972 $ref: '#/components/examples/cpsPathCmHandleStateQueryParameters'
mpriyank6da95412023-06-29 16:56:11 +0100973 value: null
emacleeafb17362022-09-02 14:40:17 +0100974 Cm handle with data sync flag query:
975 $ref: '#/components/examples/cpsPathCmHandleDataSyncQueryParameters'
mpriyank6da95412023-06-29 16:56:11 +0100976 value: null
977 schema:
978 $ref: '#/components/schemas/CmHandleQueryParameters'
DylanB95ESTe5573382022-01-27 17:12:52 +0000979 required: true
980 responses:
981 "200":
DylanB95ESTe5573382022-01-27 17:12:52 +0000982 content:
983 application/json:
984 schema:
emacleeafb17362022-09-02 14:40:17 +0100985 items:
986 $ref: '#/components/schemas/RestOutputCmHandle'
mpriyank6da95412023-06-29 16:56:11 +0100987 type: array
988 description: OK
DylanB95ESTe5573382022-01-27 17:12:52 +0000989 "400":
DylanB95ESTe5573382022-01-27 17:12:52 +0000990 content:
991 application/json:
DylanB95ESTe5573382022-01-27 17:12:52 +0000992 example:
danielhanrahanad46c252024-05-01 11:25:36 +0100993 status: 400
DylanB95ESTe5573382022-01-27 17:12:52 +0000994 message: Bad request error message
995 details: Bad request error details
DylanB95ESTe5573382022-01-27 17:12:52 +0000996 schema:
997 $ref: '#/components/schemas/ErrorMessage'
mpriyank6da95412023-06-29 16:56:11 +0100998 description: Bad Request
mpriyank6da95412023-06-29 16:56:11 +0100999 "403":
1000 content:
1001 application/json:
DylanB95ESTe5573382022-01-27 17:12:52 +00001002 example:
1003 status: 403
1004 message: Forbidden error message
1005 details: Forbidden error details
DylanB95ESTe5573382022-01-27 17:12:52 +00001006 schema:
1007 $ref: '#/components/schemas/ErrorMessage'
mpriyank6da95412023-06-29 16:56:11 +01001008 description: Forbidden
1009 "500":
1010 content:
1011 application/json:
DylanB95ESTe5573382022-01-27 17:12:52 +00001012 example:
1013 status: 500
1014 message: Internal Server Error
1015 details: Internal Server Error occurred
mpriyank6da95412023-06-29 16:56:11 +01001016 schema:
1017 $ref: '#/components/schemas/ErrorMessage'
1018 description: Internal Server Error
1019 summary: Execute cm handle search using the available conditions
1020 tags:
mpriyank41c7d002023-08-22 13:17:46 +01001021 - network-cm-proxy
DylanB95ESTe5573382022-01-27 17:12:52 +00001022 /v1/ch/{cm-handle}:
1023 get:
DylanB95ESTe5573382022-01-27 17:12:52 +00001024 description: Retrieve CM handle details and properties by cm handle id
1025 operationId: retrieveCmHandleDetailsById
1026 parameters:
sourabh_sourabhef700222024-10-04 14:35:32 +01001027 - description: "The identifier (cmHandle or alternate) for a network function,\
1028 \ network element, subnetwork or any other cm object by managed Network\
1029 \ CM Proxy"
mpriyank41c7d002023-08-22 13:17:46 +01001030 in: path
1031 name: cm-handle
1032 required: true
1033 schema:
sourabh_sourabhef700222024-10-04 14:35:32 +01001034 example: my-cm-handle-reference
mpriyank41c7d002023-08-22 13:17:46 +01001035 type: string
DylanB95ESTe5573382022-01-27 17:12:52 +00001036 responses:
1037 "200":
DylanB95ESTe5573382022-01-27 17:12:52 +00001038 content:
1039 application/json:
1040 schema:
1041 $ref: '#/components/schemas/RestOutputCmHandle'
mpriyank6da95412023-06-29 16:56:11 +01001042 description: OK
DylanB95ESTe5573382022-01-27 17:12:52 +00001043 "400":
DylanB95ESTe5573382022-01-27 17:12:52 +00001044 content:
1045 application/json:
DylanB95ESTe5573382022-01-27 17:12:52 +00001046 example:
danielhanrahanad46c252024-05-01 11:25:36 +01001047 status: 400
DylanB95ESTe5573382022-01-27 17:12:52 +00001048 message: Bad request error message
1049 details: Bad request error details
DylanB95ESTe5573382022-01-27 17:12:52 +00001050 schema:
1051 $ref: '#/components/schemas/ErrorMessage'
mpriyank6da95412023-06-29 16:56:11 +01001052 description: Bad Request
mpriyank6da95412023-06-29 16:56:11 +01001053 "404":
1054 content:
1055 application/json:
emacleeafb17362022-09-02 14:40:17 +01001056 example:
1057 status: 400
1058 message: Not found error message
1059 details: Not found error details
emacleeafb17362022-09-02 14:40:17 +01001060 schema:
1061 $ref: '#/components/schemas/ErrorMessage'
mpriyank6da95412023-06-29 16:56:11 +01001062 description: The specified resource was not found
1063 "500":
1064 content:
1065 application/json:
emacleeafb17362022-09-02 14:40:17 +01001066 example:
1067 status: 500
1068 message: Internal Server Error
1069 details: Internal Server Error occurred
mpriyank6da95412023-06-29 16:56:11 +01001070 schema:
1071 $ref: '#/components/schemas/ErrorMessage'
1072 description: Internal Server Error
1073 summary: Retrieve CM handle details
1074 tags:
mpriyank41c7d002023-08-22 13:17:46 +01001075 - network-cm-proxy
emacleeafb17362022-09-02 14:40:17 +01001076 /v1/ch/{cm-handle}/properties:
1077 get:
emacleeafb17362022-09-02 14:40:17 +01001078 description: Get CM handle properties by cm handle id
1079 operationId: getCmHandlePublicPropertiesByCmHandleId
1080 parameters:
sourabh_sourabhef700222024-10-04 14:35:32 +01001081 - description: "The identifier (cmHandle or alternate) for a network function,\
1082 \ network element, subnetwork or any other cm object by managed Network\
1083 \ CM Proxy"
mpriyank41c7d002023-08-22 13:17:46 +01001084 in: path
1085 name: cm-handle
1086 required: true
1087 schema:
sourabh_sourabhef700222024-10-04 14:35:32 +01001088 example: my-cm-handle-reference
mpriyank41c7d002023-08-22 13:17:46 +01001089 type: string
emacleeafb17362022-09-02 14:40:17 +01001090 responses:
1091 "200":
emacleeafb17362022-09-02 14:40:17 +01001092 content:
1093 application/json:
1094 schema:
1095 $ref: '#/components/schemas/RestOutputCmHandlePublicProperties'
mpriyank6da95412023-06-29 16:56:11 +01001096 description: OK
emacleeafb17362022-09-02 14:40:17 +01001097 "400":
emacleeafb17362022-09-02 14:40:17 +01001098 content:
1099 application/json:
emacleeafb17362022-09-02 14:40:17 +01001100 example:
danielhanrahanad46c252024-05-01 11:25:36 +01001101 status: 400
emacleeafb17362022-09-02 14:40:17 +01001102 message: Bad request error message
1103 details: Bad request error details
emacleeafb17362022-09-02 14:40:17 +01001104 schema:
1105 $ref: '#/components/schemas/ErrorMessage'
mpriyank6da95412023-06-29 16:56:11 +01001106 description: Bad Request
mpriyank6da95412023-06-29 16:56:11 +01001107 "404":
1108 content:
1109 application/json:
emacleeafb17362022-09-02 14:40:17 +01001110 example:
1111 status: 400
1112 message: Not found error message
1113 details: Not found error details
emacleeafb17362022-09-02 14:40:17 +01001114 schema:
1115 $ref: '#/components/schemas/ErrorMessage'
mpriyank6da95412023-06-29 16:56:11 +01001116 description: The specified resource was not found
1117 "500":
1118 content:
1119 application/json:
emacleeafb17362022-09-02 14:40:17 +01001120 example:
1121 status: 500
1122 message: Internal Server Error
1123 details: Internal Server Error occurred
mpriyank6da95412023-06-29 16:56:11 +01001124 schema:
1125 $ref: '#/components/schemas/ErrorMessage'
1126 description: Internal Server Error
1127 summary: Get CM handle properties
1128 tags:
mpriyank41c7d002023-08-22 13:17:46 +01001129 - network-cm-proxy
emacleeafb17362022-09-02 14:40:17 +01001130 /v1/ch/id-searches:
1131 post:
danielhanrahan8271b872024-10-25 16:28:17 +01001132 description: Execute cm handle query search and return a list of cm handle references.
seanbeirne90608182024-11-20 11:00:49 +00001133 Any number of conditions can be applied. To be included in the result a cm
1134 handle must fulfill ALL the conditions. An empty collection will be returned
1135 in the case that the cm handle does not match a condition. For more on cm
1136 handle query search please refer to <a href="https://docs.onap.org/projects/onap-cps/en/latest/ncmp-cmhandle-querying.html">cm
emacleeafb17362022-09-02 14:40:17 +01001137 handle query search Read the Docs</a>.<br/>By supplying a CPS Path it is possible
1138 to query on any data related to the cm handle. For more on CPS Path please
1139 refer to <a href="https://docs.onap.org/projects/onap-cps/en/latest/cps-path.html">CPS
1140 Path Read the Docs</a>. The cm handle ancestor is automatically returned for
1141 this query.
1142 operationId: searchCmHandleIds
danielhanrahan8271b872024-10-25 16:28:17 +01001143 parameters:
seanbeirnea1a71f72024-10-21 16:18:27 +01001144 - description: Boolean parameter to determine if returned value(s) will be cm
seanbeirne90608182024-11-20 11:00:49 +00001145 handle ids or alternate ids for a given query
danielhanrahan8271b872024-10-25 16:28:17 +01001146 in: query
1147 name: outputAlternateId
1148 required: false
1149 schema:
1150 default: false
1151 type: boolean
emacleeafb17362022-09-02 14:40:17 +01001152 requestBody:
1153 content:
1154 application/json:
emacleeafb17362022-09-02 14:40:17 +01001155 examples:
1156 Cm handle properties query:
1157 $ref: '#/components/examples/pubPropCmHandleQueryParameters'
mpriyank6da95412023-06-29 16:56:11 +01001158 value: null
emacleeafb17362022-09-02 14:40:17 +01001159 Cm handle modules query:
1160 $ref: '#/components/examples/modulesCmHandleQueryParameters'
mpriyank6da95412023-06-29 16:56:11 +01001161 value: null
emacleeafb17362022-09-02 14:40:17 +01001162 All cm handle query parameters:
1163 $ref: '#/components/examples/allCmHandleQueryParameters'
mpriyank6da95412023-06-29 16:56:11 +01001164 value: null
emacleeafb17362022-09-02 14:40:17 +01001165 Cm handle with CPS path state query:
1166 $ref: '#/components/examples/cpsPathCmHandleStateQueryParameters'
mpriyank6da95412023-06-29 16:56:11 +01001167 value: null
emacleeafb17362022-09-02 14:40:17 +01001168 Cm handle with data sync flag query:
1169 $ref: '#/components/examples/cpsPathCmHandleDataSyncQueryParameters'
mpriyank6da95412023-06-29 16:56:11 +01001170 value: null
1171 schema:
1172 $ref: '#/components/schemas/CmHandleQueryParameters'
emacleeafb17362022-09-02 14:40:17 +01001173 required: true
1174 responses:
1175 "200":
emacleeafb17362022-09-02 14:40:17 +01001176 content:
1177 application/json:
1178 schema:
emacleeafb17362022-09-02 14:40:17 +01001179 items:
1180 type: string
mpriyank6da95412023-06-29 16:56:11 +01001181 type: array
1182 description: OK
emacleeafb17362022-09-02 14:40:17 +01001183 "400":
emacleeafb17362022-09-02 14:40:17 +01001184 content:
1185 application/json:
emacleeafb17362022-09-02 14:40:17 +01001186 example:
danielhanrahanad46c252024-05-01 11:25:36 +01001187 status: 400
emacleeafb17362022-09-02 14:40:17 +01001188 message: Bad request error message
1189 details: Bad request error details
emacleeafb17362022-09-02 14:40:17 +01001190 schema:
1191 $ref: '#/components/schemas/ErrorMessage'
mpriyank6da95412023-06-29 16:56:11 +01001192 description: Bad Request
mpriyank6da95412023-06-29 16:56:11 +01001193 "403":
1194 content:
1195 application/json:
DylanB95ESTe5573382022-01-27 17:12:52 +00001196 example:
1197 status: 403
1198 message: Forbidden error message
1199 details: Forbidden error details
DylanB95ESTfee86992021-09-23 12:22:55 +01001200 schema:
1201 $ref: '#/components/schemas/ErrorMessage'
mpriyank6da95412023-06-29 16:56:11 +01001202 description: Forbidden
1203 "404":
1204 content:
1205 application/json:
DylanB95ESTe5573382022-01-27 17:12:52 +00001206 example:
1207 status: 400
1208 message: Not found error message
1209 details: Not found error details
DylanB95ESTe5573382022-01-27 17:12:52 +00001210 schema:
1211 $ref: '#/components/schemas/ErrorMessage'
mpriyank6da95412023-06-29 16:56:11 +01001212 description: The specified resource was not found
1213 "500":
1214 content:
1215 application/json:
DylanB95ESTe5573382022-01-27 17:12:52 +00001216 example:
1217 status: 500
1218 message: Internal Server Error
1219 details: Internal Server Error occurred
mpriyank6da95412023-06-29 16:56:11 +01001220 schema:
1221 $ref: '#/components/schemas/ErrorMessage'
1222 description: Internal Server Error
1223 summary: Execute cm handle query upon a given set of query parameters
1224 tags:
mpriyank41c7d002023-08-22 13:17:46 +01001225 - network-cm-proxy
emacleeafb17362022-09-02 14:40:17 +01001226 /v1/ch/{cm-handle}/state:
1227 get:
emacleeafb17362022-09-02 14:40:17 +01001228 description: Get CM handle state by cm handle id
1229 operationId: getCmHandleStateByCmHandleId
1230 parameters:
sourabh_sourabhef700222024-10-04 14:35:32 +01001231 - description: "The identifier (cmHandle or alternate) for a network function,\
1232 \ network element, subnetwork or any other cm object by managed Network\
1233 \ CM Proxy"
mpriyank41c7d002023-08-22 13:17:46 +01001234 in: path
1235 name: cm-handle
1236 required: true
1237 schema:
sourabh_sourabhef700222024-10-04 14:35:32 +01001238 example: my-cm-handle-reference
mpriyank41c7d002023-08-22 13:17:46 +01001239 type: string
emacleeafb17362022-09-02 14:40:17 +01001240 responses:
1241 "200":
emacleeafb17362022-09-02 14:40:17 +01001242 content:
1243 application/json:
1244 schema:
1245 $ref: '#/components/schemas/RestOutputCmHandleCompositeState'
mpriyank6da95412023-06-29 16:56:11 +01001246 description: OK
emacleeafb17362022-09-02 14:40:17 +01001247 "400":
emacleeafb17362022-09-02 14:40:17 +01001248 content:
1249 application/json:
emacleeafb17362022-09-02 14:40:17 +01001250 example:
danielhanrahanad46c252024-05-01 11:25:36 +01001251 status: 400
emacleeafb17362022-09-02 14:40:17 +01001252 message: Bad request error message
1253 details: Bad request error details
emacleeafb17362022-09-02 14:40:17 +01001254 schema:
1255 $ref: '#/components/schemas/ErrorMessage'
mpriyank6da95412023-06-29 16:56:11 +01001256 description: Bad Request
mpriyank6da95412023-06-29 16:56:11 +01001257 "404":
1258 content:
1259 application/json:
emacleeafb17362022-09-02 14:40:17 +01001260 example:
1261 status: 400
1262 message: Not found error message
1263 details: Not found error details
emacleeafb17362022-09-02 14:40:17 +01001264 schema:
1265 $ref: '#/components/schemas/ErrorMessage'
mpriyank6da95412023-06-29 16:56:11 +01001266 description: The specified resource was not found
1267 "500":
1268 content:
1269 application/json:
emacleeafb17362022-09-02 14:40:17 +01001270 example:
1271 status: 500
1272 message: Internal Server Error
1273 details: Internal Server Error occurred
mpriyank6da95412023-06-29 16:56:11 +01001274 schema:
1275 $ref: '#/components/schemas/ErrorMessage'
1276 description: Internal Server Error
1277 summary: Get CM handle state
1278 tags:
mpriyank41c7d002023-08-22 13:17:46 +01001279 - network-cm-proxy
emacleeafb17362022-09-02 14:40:17 +01001280 /v1/ch/{cm-handle}/data-sync:
1281 put:
emacleeafb17362022-09-02 14:40:17 +01001282 description: Set the data sync enabled flag to true or false for a specified
1283 Cm-Handle. This will in turn set the data sync state to UNSYNCHRONIZED and
1284 NONE_REQUESTED respectfully.
1285 operationId: setDataSyncEnabledFlagForCmHandle
1286 parameters:
mpriyank41c7d002023-08-22 13:17:46 +01001287 - description: "The identifier for a network function, network element, subnetwork\
emacleeafb17362022-09-02 14:40:17 +01001288 \ or any other cm object by managed Network CM Proxy"
mpriyank41c7d002023-08-22 13:17:46 +01001289 in: path
1290 name: cm-handle
1291 required: true
1292 schema:
1293 example: my-cm-handle
1294 type: string
1295 - description: Is used to enable or disable the data synchronization flag
1296 in: query
1297 name: dataSyncEnabled
1298 required: true
1299 schema:
1300 example: true
1301 type: boolean
emacleeafb17362022-09-02 14:40:17 +01001302 responses:
1303 "200":
emacleeafb17362022-09-02 14:40:17 +01001304 content:
1305 application/json:
1306 schema:
1307 type: object
mpriyank6da95412023-06-29 16:56:11 +01001308 description: OK
emacleeafb17362022-09-02 14:40:17 +01001309 "400":
emacleeafb17362022-09-02 14:40:17 +01001310 content:
1311 application/json:
emacleeafb17362022-09-02 14:40:17 +01001312 example:
danielhanrahanad46c252024-05-01 11:25:36 +01001313 status: 400
emacleeafb17362022-09-02 14:40:17 +01001314 message: Bad request error message
1315 details: Bad request error details
emacleeafb17362022-09-02 14:40:17 +01001316 schema:
1317 $ref: '#/components/schemas/ErrorMessage'
mpriyank6da95412023-06-29 16:56:11 +01001318 description: Bad Request
mpriyank6da95412023-06-29 16:56:11 +01001319 "403":
1320 content:
1321 application/json:
emacleeafb17362022-09-02 14:40:17 +01001322 example:
1323 status: 403
1324 message: Forbidden error message
1325 details: Forbidden error details
emacleeafb17362022-09-02 14:40:17 +01001326 schema:
1327 $ref: '#/components/schemas/ErrorMessage'
mpriyank6da95412023-06-29 16:56:11 +01001328 description: Forbidden
1329 "500":
1330 content:
1331 application/json:
emacleeafb17362022-09-02 14:40:17 +01001332 example:
1333 status: 500
1334 message: Internal Server Error
1335 details: Internal Server Error occurred
mpriyank6da95412023-06-29 16:56:11 +01001336 schema:
1337 $ref: '#/components/schemas/ErrorMessage'
1338 description: Internal Server Error
emacleeafb17362022-09-02 14:40:17 +01001339 "502":
emacleeafb17362022-09-02 14:40:17 +01001340 content:
1341 application/json:
emacleeafb17362022-09-02 14:40:17 +01001342 example:
1343 message: Bad Gateway Error Message NCMP
1344 dmi-response:
1345 http-code: 400
1346 body: Bad Request
mpriyank6da95412023-06-29 16:56:11 +01001347 schema:
1348 $ref: '#/components/schemas/DmiErrorMessage'
1349 description: Bad Gateway
1350 summary: Set the Data Sync Enabled Flag
1351 tags:
mpriyank41c7d002023-08-22 13:17:46 +01001352 - network-cm-proxy
DylanB95ESTfee86992021-09-23 12:22:55 +01001353components:
mpriyank6da95412023-06-29 16:56:11 +01001354 examples:
1355 dataSampleResponse:
1356 description: Sample response for selecting 'sample 1'.
1357 summary: Sample response
1358 value:
1359 bookstore:
1360 categories:
mpriyank41c7d002023-08-22 13:17:46 +01001361 - code: "01"
1362 books:
1363 - authors:
1364 - Iain M. Banks
1365 - Ursula K. Le Guin
1366 name: SciFi
1367 - code: "02"
1368 books:
1369 - authors:
1370 - Philip Pullman
1371 name: kids
mpriyank6da95412023-06-29 16:56:11 +01001372 dataSampleRequest:
1373 description: Sample request body
1374 summary: Sample request
1375 value:
1376 test:bookstore:
1377 bookstore-name: Chapters
1378 categories:
mpriyank41c7d002023-08-22 13:17:46 +01001379 - code: "01"
1380 name: SciFi
1381 books:
1382 - authors:
1383 - Iain M. Banks
1384 - Ursula K. Le Guin
1385 - code: "02"
1386 name: kids
1387 books:
1388 - authors:
1389 - Philip Pullman
mpriyank6da95412023-06-29 16:56:11 +01001390 dataSamplePatchRequest:
1391 description: Sample patch request body
1392 summary: Sample patch request
1393 value:
1394 ietf-restconf:yang-patch:
1395 patch-id: patch-1
1396 edit:
mpriyank41c7d002023-08-22 13:17:46 +01001397 - edit-id: edit1
1398 operation: merge
1399 target: /
1400 value:
1401 test:bookstore:
1402 bookstore-name: Chapters
1403 categories:
1404 - code: "01"
1405 name: Science
1406 books:
1407 - authors:
1408 - Author1
1409 - Author2
1410 - code: "02"
1411 name: Arts
1412 books:
1413 - authors:
1414 - Author3
1415 - edit-id: edit2
1416 operation: merge
1417 target: /
1418 value:
1419 test:bookstore:
1420 bookstore-name: Novels
1421 categories:
1422 - code: "03"
1423 name: History
1424 books:
1425 - authors:
1426 - Iain M. Banks
1427 - Ursula K. Le Guin
1428 - code: "04"
1429 name: Fiction
1430 books:
1431 - authors:
1432 - Philip Pullman
mpriyank6da95412023-06-29 16:56:11 +01001433 pubPropCmHandleQueryParameters:
1434 value:
emacleeafb17362022-09-02 14:40:17 +01001435 cmHandleQueryParameters:
mpriyank41c7d002023-08-22 13:17:46 +01001436 - conditionName: hasAllProperties
1437 conditionParameters:
1438 - Color: yellow
1439 - Shape: circle
1440 - Size: small
mpriyank6da95412023-06-29 16:56:11 +01001441 modulesCmHandleQueryParameters:
1442 value:
1443 cmHandleQueryParameters:
mpriyank41c7d002023-08-22 13:17:46 +01001444 - conditionName: hasAllModules
1445 conditionParameters:
1446 - moduleName: my-module-1
1447 - moduleName: my-module-2
1448 - moduleName: my-module-3
mpriyank6da95412023-06-29 16:56:11 +01001449 allCmHandleQueryParameters:
1450 value:
1451 cmHandleQueryParameters:
mpriyank41c7d002023-08-22 13:17:46 +01001452 - conditionName: hasAllModules
1453 conditionParameters:
1454 - moduleName: my-module-1
1455 - moduleName: my-module-2
1456 - moduleName: my-module-3
1457 - conditionName: hasAllProperties
1458 conditionParameters:
1459 - Color: yellow
1460 - Shape: circle
1461 - Size: small
1462 - conditionName: cmHandleWithCpsPath
1463 conditionParameters:
1464 - cpsPath: "//state[@cm-handle-state='ADVISED']"
mpriyank6da95412023-06-29 16:56:11 +01001465 cpsPathCmHandleStateQueryParameters:
1466 value:
1467 cmHandleQueryParameters:
mpriyank41c7d002023-08-22 13:17:46 +01001468 - conditionName: cmHandleWithCpsPath
1469 conditionParameters:
1470 - cpsPath: "//state[@cm-handle-state='LOCKED']"
mpriyank6da95412023-06-29 16:56:11 +01001471 cpsPathCmHandleDataSyncQueryParameters:
1472 value:
1473 cmHandleQueryParameters:
mpriyank41c7d002023-08-22 13:17:46 +01001474 - conditionName: cmHandleWithCpsPath
1475 conditionParameters:
1476 - cpsPath: "//state[@data-sync-enabled='true']"
mpriyank52c5e542023-05-02 15:58:55 +01001477 parameters:
1478 datastoreName:
mpriyank52c5e542023-05-02 15:58:55 +01001479 description: The type of the requested data
mpriyank6da95412023-06-29 16:56:11 +01001480 in: path
1481 name: datastore-name
mpriyank52c5e542023-05-02 15:58:55 +01001482 required: true
1483 schema:
mpriyank52c5e542023-05-02 15:58:55 +01001484 example: ncmp-datastore:running
mpriyank6da95412023-06-29 16:56:11 +01001485 type: string
sourabh_sourabhef700222024-10-04 14:35:32 +01001486 cmHandleReferenceInPath:
1487 description: "The identifier (cmHandle or alternate) for a network function,\
1488 \ network element, subnetwork or any other cm object by managed Network CM\
1489 \ Proxy"
mpriyank6da95412023-06-29 16:56:11 +01001490 in: path
1491 name: cm-handle
mpriyank52c5e542023-05-02 15:58:55 +01001492 required: true
1493 schema:
sourabh_sourabhef700222024-10-04 14:35:32 +01001494 example: my-cm-handle-reference
mpriyank6da95412023-06-29 16:56:11 +01001495 type: string
mpriyank52c5e542023-05-02 15:58:55 +01001496 resourceIdentifierInQuery:
mpriyank52c5e542023-05-02 15:58:55 +01001497 description: The format of resource identifier depend on the associated DMI
1498 Plugin implementation. For ONAP DMI Plugin it will be RESTConf paths but it
1499 can really be anything.
mpriyank52c5e542023-05-02 15:58:55 +01001500 examples:
1501 sample 1:
1502 value:
1503 resourceIdentifier: \shops\bookstore
1504 sample 2:
1505 value:
1506 resourceIdentifier: "\\shops\\bookstore\\categories[@code=1]"
1507 sample 3:
1508 value:
1509 resourceIdentifier: "parent=shops,child=bookstore"
mpriyank52c5e542023-05-02 15:58:55 +01001510 in: query
mpriyank6da95412023-06-29 16:56:11 +01001511 name: resourceIdentifier
1512 required: true
1513 schema:
1514 type: string
1515 optionsParamInQuery:
mpriyank52c5e542023-05-02 15:58:55 +01001516 description: "options parameter in query, it is mandatory to wrap key(s)=value(s)\
1517 \ in parenthesis'()'. The format of options parameter depend on the associated\
1518 \ DMI Plugin implementation."
mpriyank52c5e542023-05-02 15:58:55 +01001519 examples:
1520 sample 1:
1521 value:
1522 options: (depth=3)
1523 sample 2:
1524 value:
1525 options: (fields=book)
1526 sample 3:
1527 value:
1528 options: "(depth=2,fields=book/authors)"
mpriyank52c5e542023-05-02 15:58:55 +01001529 in: query
mpriyank6da95412023-06-29 16:56:11 +01001530 name: options
mpriyank52c5e542023-05-02 15:58:55 +01001531 required: false
mpriyank52c5e542023-05-02 15:58:55 +01001532 schema:
1533 type: string
mpriyank6da95412023-06-29 16:56:11 +01001534 topicParamInQuery:
mpriyank6da95412023-06-29 16:56:11 +01001535 description: topic parameter in query.
mpriyank52c5e542023-05-02 15:58:55 +01001536 examples:
1537 sample 1:
1538 value:
1539 topic: my-topic-name
mpriyank52c5e542023-05-02 15:58:55 +01001540 in: query
mpriyank6da95412023-06-29 16:56:11 +01001541 name: topic
mpriyank52c5e542023-05-02 15:58:55 +01001542 required: false
1543 schema:
mpriyank6da95412023-06-29 16:56:11 +01001544 type: string
1545 includeDescendantsOptionInQuery:
1546 description: Determines if descendants are included in response
1547 in: query
1548 name: include-descendants
1549 required: false
1550 schema:
mpriyank52c5e542023-05-02 15:58:55 +01001551 default: false
mpriyank6da95412023-06-29 16:56:11 +01001552 type: boolean
mpriyank4a978d32024-02-29 14:39:00 +00001553 authorizationParamInHeader:
1554 description: Authorization parameter for request.
1555 in: header
1556 name: Authorization
1557 required: false
1558 schema:
1559 type: string
mpriyank52c5e542023-05-02 15:58:55 +01001560 contentParamInHeader:
mpriyank52c5e542023-05-02 15:58:55 +01001561 description: "Content parameter for request, if content parameter is null, default\
1562 \ value is application/json."
mpriyank6da95412023-06-29 16:56:11 +01001563 in: header
1564 name: Content-Type
mpriyank52c5e542023-05-02 15:58:55 +01001565 required: false
1566 schema:
mpriyank52c5e542023-05-02 15:58:55 +01001567 default: application/json
mpriyank6da95412023-06-29 16:56:11 +01001568 example: application/yang-data+json
mpriyank52c5e542023-05-02 15:58:55 +01001569 type: string
mpriyank6da95412023-06-29 16:56:11 +01001570 requiredTopicParamInQuery:
mpriyank6da95412023-06-29 16:56:11 +01001571 description: mandatory topic parameter in query.
mpriyank52c5e542023-05-02 15:58:55 +01001572 examples:
1573 sample 1:
1574 value:
1575 topic: my-topic-name
mpriyank52c5e542023-05-02 15:58:55 +01001576 in: query
mpriyank6da95412023-06-29 16:56:11 +01001577 name: topic
1578 required: true
mpriyank52c5e542023-05-02 15:58:55 +01001579 schema:
1580 type: string
sourabh_sourabhef700222024-10-04 14:35:32 +01001581 cmHandleInPath:
1582 description: "The identifier for a network function, network element, subnetwork\
1583 \ or any other cm object by managed Network CM Proxy"
1584 in: path
1585 name: cm-handle
1586 required: true
1587 schema:
1588 example: my-cm-handle
1589 type: string
mpriyank6da95412023-06-29 16:56:11 +01001590 cpsPathInQuery:
1591 description: "For more details on cps path, please refer https://docs.onap.org/projects/onap-cps/en/latest/cps-path.html"
mpriyank52c5e542023-05-02 15:58:55 +01001592 examples:
1593 container cps path:
1594 value: //bookstore
1595 list attributes cps path:
1596 value: "//categories[@code=1]"
mpriyank52c5e542023-05-02 15:58:55 +01001597 in: query
mpriyank6da95412023-06-29 16:56:11 +01001598 name: cps-path
1599 required: false
1600 schema:
1601 default: /
1602 type: string
danielhanrahan7ce495b2024-02-07 14:21:58 +00001603 moduleNameInQuery:
1604 description: Filter for a module name.This is an optional parameter
1605 in: query
1606 name: module-name
1607 required: false
1608 schema:
1609 example: my-module
1610 type: string
1611 revisionInQuery:
1612 description: Filter for a module revision.This is an optional parameter and
1613 ignored when no module name is supplied
1614 in: query
1615 name: revision
1616 required: false
1617 schema:
1618 example: 2024-01-22
1619 type: string
danielhanrahan8271b872024-10-25 16:28:17 +01001620 outputAlternateIdOptionInQuery:
seanbeirnea1a71f72024-10-21 16:18:27 +01001621 description: Boolean parameter to determine if returned value(s) will be cm
seanbeirne90608182024-11-20 11:00:49 +00001622 handle ids or alternate ids for a given query
danielhanrahan8271b872024-10-25 16:28:17 +01001623 in: query
1624 name: outputAlternateId
1625 required: false
1626 schema:
1627 default: false
1628 type: boolean
mpriyank6da95412023-06-29 16:56:11 +01001629 dataSyncEnabled:
mpriyank52c5e542023-05-02 15:58:55 +01001630 description: Is used to enable or disable the data synchronization flag
mpriyank6da95412023-06-29 16:56:11 +01001631 in: query
1632 name: dataSyncEnabled
mpriyank52c5e542023-05-02 15:58:55 +01001633 required: true
1634 schema:
mpriyank52c5e542023-05-02 15:58:55 +01001635 example: true
mpriyank6da95412023-06-29 16:56:11 +01001636 type: boolean
1637 responses:
1638 BadRequest:
1639 content:
1640 application/json:
1641 example:
danielhanrahanad46c252024-05-01 11:25:36 +01001642 status: 400
mpriyank6da95412023-06-29 16:56:11 +01001643 message: Bad request error message
1644 details: Bad request error details
1645 schema:
1646 $ref: '#/components/schemas/ErrorMessage'
1647 description: Bad Request
mpriyank6da95412023-06-29 16:56:11 +01001648 Forbidden:
1649 content:
1650 application/json:
1651 example:
1652 status: 403
1653 message: Forbidden error message
1654 details: Forbidden error details
1655 schema:
1656 $ref: '#/components/schemas/ErrorMessage'
1657 description: Forbidden
1658 InternalServerError:
1659 content:
1660 application/json:
1661 example:
1662 status: 500
1663 message: Internal Server Error
1664 details: Internal Server Error occurred
1665 schema:
1666 $ref: '#/components/schemas/ErrorMessage'
1667 description: Internal Server Error
1668 BadGateway:
1669 content:
1670 application/json:
1671 example:
1672 message: Bad Gateway Error Message NCMP
1673 dmi-response:
1674 http-code: 400
1675 body: Bad Request
1676 schema:
1677 $ref: '#/components/schemas/DmiErrorMessage'
1678 description: Bad Gateway
1679 Ok:
1680 content:
1681 application/json:
1682 schema:
1683 type: object
1684 description: OK
1685 Created:
1686 content: {}
1687 description: Created
1688 NoContent:
1689 content: {}
1690 description: No Content
1691 NotFound:
1692 content:
1693 application/json:
1694 example:
1695 status: 400
1696 message: Not found error message
1697 details: Not found error details
1698 schema:
1699 $ref: '#/components/schemas/ErrorMessage'
1700 description: The specified resource was not found
danielhanrahanad46c252024-05-01 11:25:36 +01001701 PayloadTooLarge:
1702 content:
1703 application/json:
1704 example:
1705 status: 413
1706 message: Payload Too Large error message
1707 details: Payload Too Large error details
1708 schema:
1709 $ref: '#/components/schemas/ErrorMessage'
1710 description: The request is larger than the server is willing or able to process
mpriyank6da95412023-06-29 16:56:11 +01001711 schemas:
1712 ErrorMessage:
1713 properties:
1714 status:
1715 type: string
1716 message:
1717 type: string
1718 details:
1719 type: string
1720 title: Error
1721 type: object
1722 DmiErrorMessage:
1723 properties:
1724 message:
1725 example: Bad Gateway Error Message NCMP
1726 type: string
1727 dmi-response:
1728 $ref: '#/components/schemas/DmiErrorMessage_dmi_response'
1729 title: DMI Error Message
1730 type: object
1731 DataOperationRequest:
1732 example:
1733 operations:
mpriyank41c7d002023-08-22 13:17:46 +01001734 - resourceIdentifier: parent/child
1735 targetIds:
1736 - "[\"da310eecdb8d44c2acc0ddaae01174b1\",\"c748c58f8e0b438f9fd1f28370b17d47\"\
mpriyank6da95412023-06-29 16:56:11 +01001737 ]"
mpriyank41c7d002023-08-22 13:17:46 +01001738 - "[\"da310eecdb8d44c2acc0ddaae01174b1\",\"c748c58f8e0b438f9fd1f28370b17d47\"\
mpriyank6da95412023-06-29 16:56:11 +01001739 ]"
mpriyank41c7d002023-08-22 13:17:46 +01001740 datastore: ncmp-datastore:passthrough-operational
1741 options: (fields=schemas/schema)
1742 operationId: "12"
1743 operation: read
1744 - resourceIdentifier: parent/child
1745 targetIds:
1746 - "[\"da310eecdb8d44c2acc0ddaae01174b1\",\"c748c58f8e0b438f9fd1f28370b17d47\"\
mpriyank6da95412023-06-29 16:56:11 +01001747 ]"
mpriyank41c7d002023-08-22 13:17:46 +01001748 - "[\"da310eecdb8d44c2acc0ddaae01174b1\",\"c748c58f8e0b438f9fd1f28370b17d47\"\
mpriyank6da95412023-06-29 16:56:11 +01001749 ]"
mpriyank41c7d002023-08-22 13:17:46 +01001750 datastore: ncmp-datastore:passthrough-operational
1751 options: (fields=schemas/schema)
1752 operationId: "12"
1753 operation: read
mpriyank6da95412023-06-29 16:56:11 +01001754 properties:
1755 operations:
1756 description: contains group of data operation requests
1757 items:
1758 $ref: '#/components/schemas/DataOperationDefinition'
1759 type: array
1760 title: execute data operation for given array of operations
1761 type: object
1762 DataOperationDefinition:
1763 example:
1764 resourceIdentifier: parent/child
1765 targetIds:
mpriyank41c7d002023-08-22 13:17:46 +01001766 - "[\"da310eecdb8d44c2acc0ddaae01174b1\",\"c748c58f8e0b438f9fd1f28370b17d47\"\
mpriyank6da95412023-06-29 16:56:11 +01001767 ]"
mpriyank41c7d002023-08-22 13:17:46 +01001768 - "[\"da310eecdb8d44c2acc0ddaae01174b1\",\"c748c58f8e0b438f9fd1f28370b17d47\"\
mpriyank6da95412023-06-29 16:56:11 +01001769 ]"
1770 datastore: ncmp-datastore:passthrough-operational
1771 options: (fields=schemas/schema)
1772 operationId: "12"
1773 operation: read
1774 properties:
1775 operation:
1776 example: read
1777 type: string
1778 operationId:
1779 example: "12"
1780 type: string
1781 datastore:
1782 example: ncmp-datastore:passthrough-operational
1783 type: string
1784 options:
1785 example: (fields=schemas/schema)
1786 type: string
1787 resourceIdentifier:
1788 example: parent/child
1789 type: string
1790 targetIds:
1791 items:
seanbeirnea1a71f72024-10-21 16:18:27 +01001792 description: "targeted cm handle references, maximum of 200 supported.\
seanbeirnec37dee42024-11-05 10:21:30 +00001793 \ If this limit is exceeded the request will be refused."
mpriyank6da95412023-06-29 16:56:11 +01001794 example: "[\"da310eecdb8d44c2acc0ddaae01174b1\",\"c748c58f8e0b438f9fd1f28370b17d47\"\
1795 ]"
1796 type: string
1797 type: array
1798 required:
mpriyank41c7d002023-08-22 13:17:46 +01001799 - datastore
1800 - operation
1801 - operationId
mpriyank6da95412023-06-29 16:56:11 +01001802 RestModuleReference:
1803 example:
1804 moduleName: my-module-name
1805 revision: my-module-revision
1806 properties:
1807 moduleName:
1808 example: my-module-name
1809 type: string
1810 revision:
1811 example: my-module-revision
1812 type: string
1813 title: Module reference details
1814 type: object
1815 RestModuleDefinition:
1816 example:
1817 moduleName: my-module-name
1818 content: |
1819 module stores {
1820 yang-version 1.1;
1821 namespace 'org:onap:ccsdk:sample';
1822 prefix book-store;
1823 revision '2020-09-15' {
1824 description
1825 'Sample Model';
1826 }
1827 }
1828 revision: 2020-09-15
1829 properties:
1830 moduleName:
1831 example: my-module-name
1832 type: string
1833 revision:
1834 example: 2020-09-15
1835 type: string
1836 content:
1837 example: |
1838 module stores {
1839 yang-version 1.1;
1840 namespace 'org:onap:ccsdk:sample';
1841 prefix book-store;
1842 revision '2020-09-15' {
1843 description
1844 'Sample Model';
1845 }
1846 }
1847 type: string
1848 title: Module definitions
1849 type: object
1850 CmHandleQueryParameters:
1851 example:
emacleeafb17362022-09-02 14:40:17 +01001852 cmHandleQueryParameters:
mpriyank41c7d002023-08-22 13:17:46 +01001853 - conditionParameters:
1854 - key: conditionParameters
1855 - key: conditionParameters
1856 conditionName: conditionName
1857 - conditionParameters:
1858 - key: conditionParameters
1859 - key: conditionParameters
1860 conditionName: conditionName
mpriyank6da95412023-06-29 16:56:11 +01001861 conditions:
mpriyank41c7d002023-08-22 13:17:46 +01001862 - name: name
1863 conditionParameters:
1864 - moduleName: my-module
1865 - moduleName: my-module
1866 - name: name
1867 conditionParameters:
1868 - moduleName: my-module
1869 - moduleName: my-module
mpriyank6da95412023-06-29 16:56:11 +01001870 properties:
emacleeafb17362022-09-02 14:40:17 +01001871 cmHandleQueryParameters:
mpriyank6da95412023-06-29 16:56:11 +01001872 items:
1873 $ref: '#/components/schemas/ConditionProperties'
1874 type: array
1875 conditions:
1876 deprecated: true
1877 description: "not necessary, it is just for backward compatibility"
1878 items:
1879 $ref: '#/components/schemas/OldConditionProperties'
1880 type: array
1881 title: Cm Handle query parameters for executing cm handle search
1882 type: object
1883 ConditionProperties:
1884 example:
1885 conditionParameters:
mpriyank41c7d002023-08-22 13:17:46 +01001886 - key: conditionParameters
1887 - key: conditionParameters
mpriyank6da95412023-06-29 16:56:11 +01001888 conditionName: conditionName
1889 properties:
1890 conditionName:
1891 type: string
1892 conditionParameters:
1893 items:
1894 additionalProperties:
1895 type: string
1896 type: object
1897 type: array
1898 OldConditionProperties:
1899 deprecated: true
1900 example:
1901 name: name
1902 conditionParameters:
mpriyank41c7d002023-08-22 13:17:46 +01001903 - moduleName: my-module
1904 - moduleName: my-module
mpriyank6da95412023-06-29 16:56:11 +01001905 properties:
1906 name:
1907 type: string
1908 conditionParameters:
1909 items:
1910 $ref: '#/components/schemas/ModuleNameAsJsonObject'
1911 type: array
1912 ModuleNameAsJsonObject:
1913 example:
1914 moduleName: my-module
1915 properties:
1916 moduleName:
1917 example: my-module
1918 type: string
1919 RestOutputCmHandle:
1920 example:
1921 cmHandle: my-cm-handle1
JvD_Ericssone14fe9a2024-02-26 13:45:47 +00001922 alternateId: my-alternate-id
1923 dataProducerIdentifier: my-data-producer-identifier
mpriyank6da95412023-06-29 16:56:11 +01001924 publicCmHandleProperties:
mpriyank41c7d002023-08-22 13:17:46 +01001925 - key: Book Type
1926 - key: Book Type
mpriyank6da95412023-06-29 16:56:11 +01001927 state:
1928 dataSyncEnabled: false
1929 dataSyncState:
1930 running:
1931 lastSyncTime: 2022-12-31T20:30:40.000+0000
1932 syncState: NONE_REQUESTED
1933 operational:
1934 lastSyncTime: 2022-12-31T20:30:40.000+0000
1935 syncState: NONE_REQUESTED
1936 cmHandleState: ADVISED
1937 lockReason:
1938 reason: LOCKED_MISBEHAVING
1939 details: locked due to failure in module sync
1940 lastUpdateTime: 2022-12-31T20:30:40.000+0000
danielhanrahan3e14d392023-12-20 13:31:07 +00001941 trustLevel: COMPLETE
JvD_Ericssone14fe9a2024-02-26 13:45:47 +00001942 moduleSetTag: my-module-set-tag
mpriyank6da95412023-06-29 16:56:11 +01001943 properties:
1944 cmHandle:
1945 example: my-cm-handle1
1946 type: string
1947 publicCmHandleProperties:
1948 items:
1949 additionalProperties:
1950 example: Book Type
1951 type: string
1952 type: object
1953 type: array
1954 state:
1955 $ref: '#/components/schemas/CmHandleCompositeState'
danielhanrahan3e14d392023-12-20 13:31:07 +00001956 trustLevel:
1957 description: Current trust level of the relevant CM handle ID.
1958 example: COMPLETE
1959 type: string
JvD_Ericssone14fe9a2024-02-26 13:45:47 +00001960 moduleSetTag:
1961 example: my-module-set-tag
1962 type: string
1963 alternateId:
1964 example: my-alternate-id
1965 type: string
1966 dataProducerIdentifier:
1967 example: my-data-producer-identifier
1968 type: string
mpriyank6da95412023-06-29 16:56:11 +01001969 title: CM handle Details
1970 type: object
1971 CmHandlePublicProperties:
1972 items:
1973 additionalProperties:
1974 example: Book Type
1975 type: string
1976 type: object
1977 type: array
1978 CmHandleCompositeState:
1979 example:
1980 dataSyncEnabled: false
1981 dataSyncState:
1982 running:
1983 lastSyncTime: 2022-12-31T20:30:40.000+0000
1984 syncState: NONE_REQUESTED
1985 operational:
1986 lastSyncTime: 2022-12-31T20:30:40.000+0000
1987 syncState: NONE_REQUESTED
1988 cmHandleState: ADVISED
1989 lockReason:
1990 reason: LOCKED_MISBEHAVING
1991 details: locked due to failure in module sync
1992 lastUpdateTime: 2022-12-31T20:30:40.000+0000
1993 properties:
1994 cmHandleState:
1995 example: ADVISED
1996 type: string
1997 lockReason:
1998 $ref: '#/components/schemas/lock-reason'
1999 lastUpdateTime:
2000 example: 2022-12-31T20:30:40.000+0000
2001 type: string
2002 dataSyncEnabled:
2003 example: false
2004 type: boolean
2005 dataSyncState:
2006 $ref: '#/components/schemas/dataStores'
2007 type: object
2008 lock-reason:
2009 example:
2010 reason: LOCKED_MISBEHAVING
2011 details: locked due to failure in module sync
2012 properties:
2013 reason:
2014 example: LOCKED_MISBEHAVING
2015 type: string
2016 details:
2017 example: locked due to failure in module sync
2018 type: string
2019 type: object
2020 dataStores:
2021 example:
2022 running:
2023 lastSyncTime: 2022-12-31T20:30:40.000+0000
2024 syncState: NONE_REQUESTED
2025 operational:
2026 lastSyncTime: 2022-12-31T20:30:40.000+0000
2027 syncState: NONE_REQUESTED
2028 properties:
2029 operational:
2030 $ref: '#/components/schemas/sync-state'
2031 running:
2032 $ref: '#/components/schemas/sync-state'
2033 type: object
2034 sync-state:
2035 example:
2036 lastSyncTime: 2022-12-31T20:30:40.000+0000
2037 syncState: NONE_REQUESTED
2038 properties:
2039 syncState:
2040 example: NONE_REQUESTED
2041 type: string
2042 lastSyncTime:
2043 example: 2022-12-31T20:30:40.000+0000
2044 type: string
2045 type: object
danielhanrahan3e14d392023-12-20 13:31:07 +00002046 CmHandleTrustLevel:
2047 description: Current trust level of the relevant CM handle ID.
2048 example: COMPLETE
2049 type: string
mpriyank6da95412023-06-29 16:56:11 +01002050 RestOutputCmHandlePublicProperties:
2051 example:
2052 publicCmHandleProperties:
mpriyank41c7d002023-08-22 13:17:46 +01002053 - key: Book Type
2054 - key: Book Type
mpriyank6da95412023-06-29 16:56:11 +01002055 properties:
2056 publicCmHandleProperties:
2057 items:
2058 additionalProperties:
2059 example: Book Type
2060 type: string
2061 type: object
2062 type: array
2063 type: object
2064 RestOutputCmHandleCompositeState:
2065 example:
2066 state:
2067 dataSyncEnabled: false
2068 dataSyncState:
2069 running:
2070 lastSyncTime: 2022-12-31T20:30:40.000+0000
2071 syncState: NONE_REQUESTED
2072 operational:
2073 lastSyncTime: 2022-12-31T20:30:40.000+0000
2074 syncState: NONE_REQUESTED
2075 cmHandleState: ADVISED
2076 lockReason:
2077 reason: LOCKED_MISBEHAVING
2078 details: locked due to failure in module sync
2079 lastUpdateTime: 2022-12-31T20:30:40.000+0000
2080 properties:
2081 state:
2082 $ref: '#/components/schemas/CmHandleCompositeState'
2083 type: object
2084 DmiErrorMessage_dmi_response:
2085 properties:
2086 http-code:
2087 example: 400
2088 type: integer
2089 body:
2090 example: Bad Request
2091 type: string
2092 type: object
seanbeirne16e23582023-01-26 09:21:44 +00002093 securitySchemes:
2094 basicAuth:
seanbeirne16e23582023-01-26 09:21:44 +00002095 scheme: basic
mpriyank6da95412023-06-29 16:56:11 +01002096 type: http