3 title: NCMP to CPS Proxy API
4 description: NCMP to CPS Proxy API
11 /v1/ch/{cm-handle}/data/ds/{datastore-name}:
15 summary: Get resource data for cm handle
16 description: Get resource data for given cm handle
17 operationId: getResourceDataForCmHandle
19 - name: datastore-name
21 description: The type of the requested data
25 example: ncmp-datastore:running
28 description: "The identifier for a network function, network element, subnetwork\
29 \ or any other cm object by managed Network CM Proxy"
34 - name: resourceIdentifier
36 description: The format of resource identifier depend on the associated DMI
37 Plugin implementation. For ONAP DMI Plugin it will be RESTConf paths but
38 it can really be anything.
46 resourceIdentifier: \shops\bookstore
49 resourceIdentifier: "\\shops\\bookstore\\categories[@code=1]"
52 resourceIdentifier: "parent=shops,child=bookstore"
55 description: "options parameter in query, it is mandatory to wrap key(s)=value(s)\
56 \ in parenthesis'()'. The format of options parameter depend on the associated\
57 \ DMI Plugin implementation."
68 options: (fields=book)
71 options: "(depth=2,fields=book/authors)"
74 description: topic parameter in query.
83 - name: include-descendants
85 description: Determines if descendants are included in response
99 $ref: '#/components/examples/dataSampleResponse'
101 description: Bad Request
105 $ref: '#/components/schemas/ErrorMessage'
107 status: 400 BAD_REQUEST
108 message: Bad request error message
109 details: Bad request error details
111 description: Unauthorized
115 $ref: '#/components/schemas/ErrorMessage'
118 message: Unauthorized error message
119 details: Unauthorized error details
121 description: Forbidden
125 $ref: '#/components/schemas/ErrorMessage'
128 message: Forbidden error message
129 details: Forbidden error details
131 description: Internal Server Error
135 $ref: '#/components/schemas/ErrorMessage'
138 message: Internal Server Error
139 details: Internal Server Error occurred
141 description: Bad Gateway
145 $ref: '#/components/schemas/DmiErrorMessage'
147 message: Bad Gateway Error Message NCMP
154 summary: Update resource data from pass-through running for a cm handle
155 description: Update resource data from pass-through running for the given cm
157 operationId: updateResourceDataRunningForCmHandle
159 - name: datastore-name
161 description: The type of the requested data
165 example: ncmp-datastore:running
168 description: "The identifier for a network function, network element, subnetwork\
169 \ or any other cm object by managed Network CM Proxy"
173 example: my-cm-handle
174 - name: resourceIdentifier
176 description: The format of resource identifier depend on the associated DMI
177 Plugin implementation. For ONAP DMI Plugin it will be RESTConf paths but
178 it can really be anything.
186 resourceIdentifier: \shops\bookstore
189 resourceIdentifier: "\\shops\\bookstore\\categories[@code=1]"
192 resourceIdentifier: "parent=shops,child=bookstore"
195 description: "Content parameter for request, if content parameter is null,\
196 \ default value is application/json."
200 example: application/yang-data+json
201 default: application/json
209 $ref: '#/components/examples/dataSampleRequest'
210 application/yang-data+json:
215 $ref: '#/components/examples/dataSampleRequest'
225 description: Bad Request
229 $ref: '#/components/schemas/ErrorMessage'
231 status: 400 BAD_REQUEST
232 message: Bad request error message
233 details: Bad request error details
235 description: Unauthorized
239 $ref: '#/components/schemas/ErrorMessage'
242 message: Unauthorized error message
243 details: Unauthorized error details
245 description: Forbidden
249 $ref: '#/components/schemas/ErrorMessage'
252 message: Forbidden error message
253 details: Forbidden error details
255 description: Internal Server Error
259 $ref: '#/components/schemas/ErrorMessage'
262 message: Internal Server Error
263 details: Internal Server Error occurred
265 description: Bad Gateway
269 $ref: '#/components/schemas/DmiErrorMessage'
271 message: Bad Gateway Error Message NCMP
278 summary: create resource data from pass-through running for cm handle
279 description: create resource data from pass-through running for given cm handle
280 operationId: createResourceDataRunningForCmHandle
282 - name: datastore-name
284 description: The type of the requested data
288 example: ncmp-datastore:running
291 description: "The identifier for a network function, network element, subnetwork\
292 \ or any other cm object by managed Network CM Proxy"
296 example: my-cm-handle
297 - name: resourceIdentifier
299 description: The format of resource identifier depend on the associated DMI
300 Plugin implementation. For ONAP DMI Plugin it will be RESTConf paths but
301 it can really be anything.
309 resourceIdentifier: \shops\bookstore
312 resourceIdentifier: "\\shops\\bookstore\\categories[@code=1]"
315 resourceIdentifier: "parent=shops,child=bookstore"
318 description: "Content parameter for request, if content parameter is null,\
319 \ default value is application/json."
323 example: application/yang-data+json
324 default: application/json
332 $ref: '#/components/examples/dataSampleRequest'
333 application/yang-data+json:
338 $ref: '#/components/examples/dataSampleRequest'
345 description: Bad Request
349 $ref: '#/components/schemas/ErrorMessage'
351 status: 400 BAD_REQUEST
352 message: Bad request error message
353 details: Bad request error details
355 description: Unauthorized
359 $ref: '#/components/schemas/ErrorMessage'
362 message: Unauthorized error message
363 details: Unauthorized error details
365 description: Forbidden
369 $ref: '#/components/schemas/ErrorMessage'
372 message: Forbidden error message
373 details: Forbidden error details
375 description: Internal Server Error
379 $ref: '#/components/schemas/ErrorMessage'
382 message: Internal Server Error
383 details: Internal Server Error occurred
385 description: Bad Gateway
389 $ref: '#/components/schemas/DmiErrorMessage'
391 message: Bad Gateway Error Message NCMP
398 summary: Delete resource data
399 description: Delete resource data from pass-through running for a given cm handle
400 operationId: deleteResourceDataRunningForCmHandle
402 - name: datastore-name
404 description: The type of the requested data
408 example: ncmp-datastore:running
411 description: "The identifier for a network function, network element, subnetwork\
412 \ or any other cm object by managed Network CM Proxy"
416 example: my-cm-handle
417 - name: resourceIdentifier
419 description: The format of resource identifier depend on the associated DMI
420 Plugin implementation. For ONAP DMI Plugin it will be RESTConf paths but
421 it can really be anything.
429 resourceIdentifier: \shops\bookstore
432 resourceIdentifier: "\\shops\\bookstore\\categories[@code=1]"
435 resourceIdentifier: "parent=shops,child=bookstore"
438 description: "Content parameter for request, if content parameter is null,\
439 \ default value is application/json."
443 example: application/yang-data+json
444 default: application/json
447 description: No Content
450 description: Bad Request
454 $ref: '#/components/schemas/ErrorMessage'
456 status: 400 BAD_REQUEST
457 message: Bad request error message
458 details: Bad request error details
460 description: Unauthorized
464 $ref: '#/components/schemas/ErrorMessage'
467 message: Unauthorized error message
468 details: Unauthorized error details
470 description: Forbidden
474 $ref: '#/components/schemas/ErrorMessage'
477 message: Forbidden error message
478 details: Forbidden error details
480 description: The specified resource was not found
484 $ref: '#/components/schemas/ErrorMessage'
487 message: Not found error message
488 details: Not found error details
490 description: Internal Server Error
494 $ref: '#/components/schemas/ErrorMessage'
497 message: Internal Server Error
498 details: Internal Server Error occurred
500 description: Bad Gateway
504 $ref: '#/components/schemas/DmiErrorMessage'
506 message: Bad Gateway Error Message NCMP
513 summary: Patch resource data from pass-through running
514 description: Patch resource data from pass-through running for the given cm
516 operationId: patchResourceDataRunningForCmHandle
518 - name: datastore-name
520 description: The type of the requested data
524 example: ncmp-datastore:running
527 description: "The identifier for a network function, network element, subnetwork\
528 \ or any other cm object by managed Network CM Proxy"
532 example: my-cm-handle
533 - name: resourceIdentifier
535 description: The format of resource identifier depend on the associated DMI
536 Plugin implementation. For ONAP DMI Plugin it will be RESTConf paths but
537 it can really be anything.
545 resourceIdentifier: \shops\bookstore
548 resourceIdentifier: "\\shops\\bookstore\\categories[@code=1]"
551 resourceIdentifier: "parent=shops,child=bookstore"
554 description: "Content parameter for request, if content parameter is null,\
555 \ default value is application/json."
559 example: application/yang-data+json
560 default: application/json
568 $ref: '#/components/examples/dataSamplePatchRequest'
578 description: Bad Request
582 $ref: '#/components/schemas/ErrorMessage'
584 status: 400 BAD_REQUEST
585 message: Bad request error message
586 details: Bad request error details
588 description: Unauthorized
592 $ref: '#/components/schemas/ErrorMessage'
595 message: Unauthorized error message
596 details: Unauthorized error details
598 description: Forbidden
602 $ref: '#/components/schemas/ErrorMessage'
605 message: Forbidden error message
606 details: Forbidden error details
608 description: Internal Server Error
612 $ref: '#/components/schemas/ErrorMessage'
615 message: Internal Server Error
616 details: Internal Server Error occurred
618 description: Bad Gateway
622 $ref: '#/components/schemas/DmiErrorMessage'
624 message: Bad Gateway Error Message NCMP
628 /v1/batch/data/ds/{datastore-name}:
632 summary: Get resource data for batch of cm handle ids
633 description: This request will be handled asynchronously using messaging to
634 the supplied topic. The rest response will be an acknowledge with a requestId
635 to identify the relevant messages.
636 operationId: getResourceDataForCmHandleBatch
638 - name: datastore-name
640 description: The type of the requested data
644 example: ncmp-datastore:running
645 - name: resourceIdentifier
647 description: The format of resource identifier depend on the associated DMI
648 Plugin implementation. For ONAP DMI Plugin it will be RESTConf paths but
649 it can really be anything.
657 resourceIdentifier: \shops\bookstore
660 resourceIdentifier: "\\shops\\bookstore\\categories[@code=1]"
663 resourceIdentifier: "parent=shops,child=bookstore"
666 description: "options parameter in query, it is mandatory to wrap key(s)=value(s)\
667 \ in parenthesis'()'. The format of options parameter depend on the associated\
668 \ DMI Plugin implementation."
679 options: (fields=book)
682 options: "(depth=2,fields=book/authors)"
685 description: mandatory topic parameter in query.
694 - name: include-descendants
696 description: Determines if descendants are included in response
715 description: Bad Request
719 $ref: '#/components/schemas/ErrorMessage'
721 status: 400 BAD_REQUEST
722 message: Bad request error message
723 details: Bad request error details
725 description: Unauthorized
729 $ref: '#/components/schemas/ErrorMessage'
732 message: Unauthorized error message
733 details: Unauthorized error details
735 description: Forbidden
739 $ref: '#/components/schemas/ErrorMessage'
742 message: Forbidden error message
743 details: Forbidden error details
745 description: Internal Server Error
749 $ref: '#/components/schemas/ErrorMessage'
752 message: Internal Server Error
753 details: Internal Server Error occurred
755 description: Bad Gateway
759 $ref: '#/components/schemas/DmiErrorMessage'
761 message: Bad Gateway Error Message NCMP
765 /v1/ch/{cm-handle}/data/ds/{datastore-name}/query:
769 summary: Query resource data for a given cm handle
770 description: Query resource data for a given cm handle
771 operationId: queryResourceDataForCmHandle
773 - name: datastore-name
775 description: The type of the requested data
779 example: ncmp-datastore:running
782 description: "The identifier for a network function, network element, subnetwork\
783 \ or any other cm object by managed Network CM Proxy"
787 example: my-cm-handle
790 description: "For more details on cps path, please refer https://docs.onap.org/projects/onap-cps/en/latest/cps-path.html"
798 list attributes cps path:
799 value: "//categories[@code=1]"
802 description: "options parameter in query, it is mandatory to wrap key(s)=value(s)\
803 \ in parenthesis'()'. The format of options parameter depend on the associated\
804 \ DMI Plugin implementation."
815 options: (fields=book)
818 options: "(depth=2,fields=book/authors)"
821 description: topic parameter in query.
830 - name: include-descendants
832 description: Determines if descendants are included in response
846 $ref: '#/components/examples/dataSampleResponse'
848 description: Bad Request
852 $ref: '#/components/schemas/ErrorMessage'
854 status: 400 BAD_REQUEST
855 message: Bad request error message
856 details: Bad request error details
858 description: Unauthorized
862 $ref: '#/components/schemas/ErrorMessage'
865 message: Unauthorized error message
866 details: Unauthorized error details
868 description: Forbidden
872 $ref: '#/components/schemas/ErrorMessage'
875 message: Forbidden error message
876 details: Forbidden error details
878 description: Internal Server Error
882 $ref: '#/components/schemas/ErrorMessage'
885 message: Internal Server Error
886 details: Internal Server Error occurred
888 description: Bad Gateway
892 $ref: '#/components/schemas/DmiErrorMessage'
894 message: Bad Gateway Error Message NCMP
898 /v1/ch/{cm-handle}/modules:
902 summary: Fetch all module references (name and revision) for a given cm handle
903 description: fetch all module references (name and revision) for a given cm
905 operationId: getModuleReferencesByCmHandle
909 description: "The identifier for a network function, network element, subnetwork\
910 \ or any other cm object by managed Network CM Proxy"
914 example: my-cm-handle
923 $ref: '#/components/schemas/RestModuleReference'
925 description: Bad Request
929 $ref: '#/components/schemas/ErrorMessage'
931 status: 400 BAD_REQUEST
932 message: Bad request error message
933 details: Bad request error details
935 description: Unauthorized
939 $ref: '#/components/schemas/ErrorMessage'
942 message: Unauthorized error message
943 details: Unauthorized error details
945 description: Forbidden
949 $ref: '#/components/schemas/ErrorMessage'
952 message: Forbidden error message
953 details: Forbidden error details
955 description: Internal Server Error
959 $ref: '#/components/schemas/ErrorMessage'
962 message: Internal Server Error
963 details: Internal Server Error occurred
964 /v1/ch/{cm-handle}/modules/definitions:
968 summary: "Fetch all module definitions (name, revision, yang resource) for a\
970 description: "Fetch all module definitions (name, revision, yang resource) for\
972 operationId: getModuleDefinitionsByCmHandleId
976 description: "The identifier for a network function, network element, subnetwork\
977 \ or any other cm object by managed Network CM Proxy"
981 example: my-cm-handle
990 $ref: '#/components/schemas/RestModuleDefinition'
992 description: Unauthorized
996 $ref: '#/components/schemas/ErrorMessage'
999 message: Unauthorized error message
1000 details: Unauthorized error details
1002 description: Forbidden
1006 $ref: '#/components/schemas/ErrorMessage'
1009 message: Forbidden error message
1010 details: Forbidden error details
1012 description: Internal Server Error
1016 $ref: '#/components/schemas/ErrorMessage'
1019 message: Internal Server Error
1020 details: Internal Server Error occurred
1025 summary: Execute cm handle search using the available conditions
1026 description: Execute cm handle query search and return a list of cm handle details.
1027 Any number of conditions can be applied. To be included in the result a cm-handle
1028 must fulfill ALL the conditions. An empty collection will be returned in the
1029 case that the cm handle does not match a condition. For more on cm handle
1030 query search please refer to <a href="https://docs.onap.org/projects/onap-cps/en/latest/ncmp-cmhandle-querying.html">cm
1031 handle query search Read the Docs</a>.<br/>By supplying a CPS Path it is possible
1032 to query on any data related to the cm handle. For more on CPS Path please
1033 refer to <a href="https://docs.onap.org/projects/onap-cps/en/latest/cps-path.html">CPS
1034 Path Read the Docs</a>. The cm handle ancestor is automatically returned for
1036 operationId: searchCmHandles
1041 $ref: '#/components/schemas/CmHandleQueryParameters'
1043 Cm handle properties query:
1044 $ref: '#/components/examples/pubPropCmHandleQueryParameters'
1045 Cm handle modules query:
1046 $ref: '#/components/examples/modulesCmHandleQueryParameters'
1047 All cm handle query parameters:
1048 $ref: '#/components/examples/allCmHandleQueryParameters'
1049 Cm handle with CPS path state query:
1050 $ref: '#/components/examples/cpsPathCmHandleStateQueryParameters'
1051 Cm handle with data sync flag query:
1052 $ref: '#/components/examples/cpsPathCmHandleDataSyncQueryParameters'
1062 $ref: '#/components/schemas/RestOutputCmHandle'
1064 description: Bad Request
1068 $ref: '#/components/schemas/ErrorMessage'
1070 status: 400 BAD_REQUEST
1071 message: Bad request error message
1072 details: Bad request error details
1074 description: Unauthorized
1078 $ref: '#/components/schemas/ErrorMessage'
1081 message: Unauthorized error message
1082 details: Unauthorized error details
1084 description: Forbidden
1088 $ref: '#/components/schemas/ErrorMessage'
1091 message: Forbidden error message
1092 details: Forbidden error details
1094 description: Internal Server Error
1098 $ref: '#/components/schemas/ErrorMessage'
1101 message: Internal Server Error
1102 details: Internal Server Error occurred
1107 summary: Retrieve CM handle details
1108 description: Retrieve CM handle details and properties by cm handle id
1109 operationId: retrieveCmHandleDetailsById
1113 description: "The identifier for a network function, network element, subnetwork\
1114 \ or any other cm object by managed Network CM Proxy"
1118 example: my-cm-handle
1125 $ref: '#/components/schemas/RestOutputCmHandle'
1127 description: Bad Request
1131 $ref: '#/components/schemas/ErrorMessage'
1133 status: 400 BAD_REQUEST
1134 message: Bad request error message
1135 details: Bad request error details
1137 description: Unauthorized
1141 $ref: '#/components/schemas/ErrorMessage'
1144 message: Unauthorized error message
1145 details: Unauthorized error details
1147 description: The specified resource was not found
1151 $ref: '#/components/schemas/ErrorMessage'
1154 message: Not found error message
1155 details: Not found error details
1157 description: Internal Server Error
1161 $ref: '#/components/schemas/ErrorMessage'
1164 message: Internal Server Error
1165 details: Internal Server Error occurred
1166 /v1/ch/{cm-handle}/properties:
1170 summary: Get CM handle properties
1171 description: Get CM handle properties by cm handle id
1172 operationId: getCmHandlePublicPropertiesByCmHandleId
1176 description: "The identifier for a network function, network element, subnetwork\
1177 \ or any other cm object by managed Network CM Proxy"
1181 example: my-cm-handle
1188 $ref: '#/components/schemas/RestOutputCmHandlePublicProperties'
1190 description: Bad Request
1194 $ref: '#/components/schemas/ErrorMessage'
1196 status: 400 BAD_REQUEST
1197 message: Bad request error message
1198 details: Bad request error details
1200 description: Unauthorized
1204 $ref: '#/components/schemas/ErrorMessage'
1207 message: Unauthorized error message
1208 details: Unauthorized error details
1210 description: The specified resource was not found
1214 $ref: '#/components/schemas/ErrorMessage'
1217 message: Not found error message
1218 details: Not found error details
1220 description: Internal Server Error
1224 $ref: '#/components/schemas/ErrorMessage'
1227 message: Internal Server Error
1228 details: Internal Server Error occurred
1233 summary: Execute cm handle query upon a given set of query parameters
1234 description: Execute cm handle query search and return a list of cm handle ids.
1235 Any number of conditions can be applied. To be included in the result a cm-handle
1236 must fulfill ALL the conditions. An empty collection will be returned in the
1237 case that the cm handle does not match a condition. For more on cm handle
1238 query search please refer to <a href="https://docs.onap.org/projects/onap-cps/en/latest/ncmp-cmhandle-querying.html">cm
1239 handle query search Read the Docs</a>.<br/>By supplying a CPS Path it is possible
1240 to query on any data related to the cm handle. For more on CPS Path please
1241 refer to <a href="https://docs.onap.org/projects/onap-cps/en/latest/cps-path.html">CPS
1242 Path Read the Docs</a>. The cm handle ancestor is automatically returned for
1244 operationId: searchCmHandleIds
1249 $ref: '#/components/schemas/CmHandleQueryParameters'
1251 Cm handle properties query:
1252 $ref: '#/components/examples/pubPropCmHandleQueryParameters'
1253 Cm handle modules query:
1254 $ref: '#/components/examples/modulesCmHandleQueryParameters'
1255 All cm handle query parameters:
1256 $ref: '#/components/examples/allCmHandleQueryParameters'
1257 Cm handle with CPS path state query:
1258 $ref: '#/components/examples/cpsPathCmHandleStateQueryParameters'
1259 Cm handle with data sync flag query:
1260 $ref: '#/components/examples/cpsPathCmHandleDataSyncQueryParameters'
1272 description: Bad Request
1276 $ref: '#/components/schemas/ErrorMessage'
1278 status: 400 BAD_REQUEST
1279 message: Bad request error message
1280 details: Bad request error details
1282 description: Unauthorized
1286 $ref: '#/components/schemas/ErrorMessage'
1289 message: Unauthorized error message
1290 details: Unauthorized error details
1292 description: Forbidden
1296 $ref: '#/components/schemas/ErrorMessage'
1299 message: Forbidden error message
1300 details: Forbidden error details
1302 description: The specified resource was not found
1306 $ref: '#/components/schemas/ErrorMessage'
1309 message: Not found error message
1310 details: Not found error details
1312 description: Internal Server Error
1316 $ref: '#/components/schemas/ErrorMessage'
1319 message: Internal Server Error
1320 details: Internal Server Error occurred
1321 /v1/ch/{cm-handle}/state:
1325 summary: Get CM handle state
1326 description: Get CM handle state by cm handle id
1327 operationId: getCmHandleStateByCmHandleId
1331 description: "The identifier for a network function, network element, subnetwork\
1332 \ or any other cm object by managed Network CM Proxy"
1336 example: my-cm-handle
1343 $ref: '#/components/schemas/RestOutputCmHandleCompositeState'
1345 description: Bad Request
1349 $ref: '#/components/schemas/ErrorMessage'
1351 status: 400 BAD_REQUEST
1352 message: Bad request error message
1353 details: Bad request error details
1355 description: Unauthorized
1359 $ref: '#/components/schemas/ErrorMessage'
1362 message: Unauthorized error message
1363 details: Unauthorized error details
1365 description: The specified resource was not found
1369 $ref: '#/components/schemas/ErrorMessage'
1372 message: Not found error message
1373 details: Not found error details
1375 description: Internal Server Error
1379 $ref: '#/components/schemas/ErrorMessage'
1382 message: Internal Server Error
1383 details: Internal Server Error occurred
1384 /v1/ch/{cm-handle}/data-sync:
1388 summary: Set the Data Sync Enabled Flag
1389 description: Set the data sync enabled flag to true or false for a specified
1390 Cm-Handle. This will in turn set the data sync state to UNSYNCHRONIZED and
1391 NONE_REQUESTED respectfully.
1392 operationId: setDataSyncEnabledFlagForCmHandle
1396 description: "The identifier for a network function, network element, subnetwork\
1397 \ or any other cm object by managed Network CM Proxy"
1401 example: my-cm-handle
1402 - name: dataSyncEnabled
1404 description: Is used to enable or disable the data synchronization flag
1417 description: Bad Request
1421 $ref: '#/components/schemas/ErrorMessage'
1423 status: 400 BAD_REQUEST
1424 message: Bad request error message
1425 details: Bad request error details
1427 description: Unauthorized
1431 $ref: '#/components/schemas/ErrorMessage'
1434 message: Unauthorized error message
1435 details: Unauthorized error details
1437 description: Forbidden
1441 $ref: '#/components/schemas/ErrorMessage'
1444 message: Forbidden error message
1445 details: Forbidden error details
1447 description: Internal Server Error
1451 $ref: '#/components/schemas/ErrorMessage'
1454 message: Internal Server Error
1455 details: Internal Server Error occurred
1457 description: Bad Gateway
1461 $ref: '#/components/schemas/DmiErrorMessage'
1463 message: Bad Gateway Error Message NCMP
1480 title: DMI Error Message
1485 example: Bad Gateway Error Message NCMP
1487 $ref: '#/components/schemas/DmiErrorMessage_dmiresponse'
1488 RestModuleReference:
1489 title: Module reference details
1494 example: my-module-name
1497 example: my-module-revision
1498 RestModuleDefinition:
1499 title: Module definitions
1504 example: my-module-name
1513 namespace "org:onap:ccsdk:sample";
1515 revision "2020-09-15" {
1520 CmHandleQueryParameters:
1521 title: Cm Handle query parameters for executing cm handle search
1524 cmHandleQueryParameters:
1527 $ref: '#/components/schemas/ConditionProperties'
1530 description: "not necessary, it is just for backward compatibility"
1533 $ref: '#/components/schemas/OldConditionProperties'
1534 ConditionProperties:
1538 conditionParameters:
1542 additionalProperties:
1544 OldConditionProperties:
1548 conditionParameters:
1551 $ref: '#/components/schemas/ModuleNameAsJsonObject'
1553 ModuleNameAsJsonObject:
1559 title: CM handle Details
1564 example: my-cm-handle1
1565 publicCmHandleProperties:
1566 $ref: '#/components/schemas/CmHandlePublicProperties'
1568 $ref: '#/components/schemas/CmHandleCompositeState'
1569 CmHandlePublicProperties:
1573 additionalProperties:
1576 CmHandleCompositeState:
1583 $ref: '#/components/schemas/lock-reason'
1586 example: 2022-12-31T20:30:40.000+0000
1591 $ref: '#/components/schemas/dataStores'
1597 example: LOCKED_MISBEHAVING
1600 example: locked due to failure in module sync
1605 $ref: '#/components/schemas/sync-state'
1607 $ref: '#/components/schemas/sync-state'
1613 example: NONE_REQUESTED
1616 example: 2022-12-31T20:30:40.000+0000
1617 RestOutputCmHandlePublicProperties:
1620 publicCmHandleProperties:
1621 $ref: '#/components/schemas/CmHandlePublicProperties'
1622 RestOutputCmHandleCompositeState:
1626 $ref: '#/components/schemas/CmHandleCompositeState'
1627 DmiErrorMessage_dmiresponse:
1635 example: Bad Request
1638 description: Bad Request
1642 $ref: '#/components/schemas/ErrorMessage'
1644 status: 400 BAD_REQUEST
1645 message: Bad request error message
1646 details: Bad request error details
1648 description: Unauthorized
1652 $ref: '#/components/schemas/ErrorMessage'
1655 message: Unauthorized error message
1656 details: Unauthorized error details
1658 description: Forbidden
1662 $ref: '#/components/schemas/ErrorMessage'
1665 message: Forbidden error message
1666 details: Forbidden error details
1667 InternalServerError:
1668 description: Internal Server Error
1672 $ref: '#/components/schemas/ErrorMessage'
1675 message: Internal Server Error
1676 details: Internal Server Error occurred
1678 description: Bad Gateway
1682 $ref: '#/components/schemas/DmiErrorMessage'
1684 message: Bad Gateway Error Message NCMP
1695 description: Created
1698 description: No Content
1701 description: The specified resource was not found
1705 $ref: '#/components/schemas/ErrorMessage'
1708 message: Not found error message
1709 details: Not found error details
1712 name: datastore-name
1714 description: The type of the requested data
1718 example: ncmp-datastore:running
1722 description: "The identifier for a network function, network element, subnetwork\
1723 \ or any other cm object by managed Network CM Proxy"
1727 example: my-cm-handle
1728 resourceIdentifierInQuery:
1729 name: resourceIdentifier
1731 description: The format of resource identifier depend on the associated DMI
1732 Plugin implementation. For ONAP DMI Plugin it will be RESTConf paths but it
1733 can really be anything.
1741 resourceIdentifier: \shops\bookstore
1744 resourceIdentifier: "\\shops\\bookstore\\categories[@code=1]"
1747 resourceIdentifier: "parent=shops,child=bookstore"
1748 optionsParamInQuery:
1751 description: "options parameter in query, it is mandatory to wrap key(s)=value(s)\
1752 \ in parenthesis'()'. The format of options parameter depend on the associated\
1753 \ DMI Plugin implementation."
1764 options: (fields=book)
1767 options: "(depth=2,fields=book/authors)"
1771 description: topic parameter in query.
1779 topic: my-topic-name
1780 includeDescendantsOptionInQuery:
1781 name: include-descendants
1783 description: Determines if descendants are included in response
1788 contentParamInHeader:
1791 description: "Content parameter for request, if content parameter is null, default\
1792 \ value is application/json."
1796 example: application/yang-data+json
1797 default: application/json
1798 requiredTopicParamInQuery:
1801 description: mandatory topic parameter in query.
1809 topic: my-topic-name
1813 description: "For more details on cps path, please refer https://docs.onap.org/projects/onap-cps/en/latest/cps-path.html"
1821 list attributes cps path:
1822 value: "//categories[@code=1]"
1824 name: dataSyncEnabled
1826 description: Is used to enable or disable the data synchronization flag
1833 summary: Sample response
1834 description: Sample response for selecting 'sample 1'.
1850 summary: Sample request
1851 description: Sample request body
1854 bookstore-name: Chapters
1867 dataSamplePatchRequest:
1868 summary: Sample patch request
1869 description: Sample patch request body
1871 ietf-restconf:yang-patch:
1879 bookstore-name: Chapters
1897 bookstore-name: Novels
1910 pubPropCmHandleQueryParameters:
1912 cmHandleQueryParameters:
1913 - conditionName: hasAllProperties
1914 conditionParameters:
1918 modulesCmHandleQueryParameters:
1920 cmHandleQueryParameters:
1921 - conditionName: hasAllModules
1922 conditionParameters:
1923 - moduleName: my-module-1
1924 - moduleName: my-module-2
1925 - moduleName: my-module-3
1926 allCmHandleQueryParameters:
1928 cmHandleQueryParameters:
1929 - conditionName: hasAllModules
1930 conditionParameters:
1931 - moduleName: my-module-1
1932 - moduleName: my-module-2
1933 - moduleName: my-module-3
1934 - conditionName: hasAllProperties
1935 conditionParameters:
1939 - conditionName: cmHandleWithCpsPath
1940 conditionParameters:
1941 - cpsPath: "//state[@cm-handle-state='ADVISED']"
1942 cpsPathCmHandleStateQueryParameters:
1944 cmHandleQueryParameters:
1945 - conditionName: cmHandleWithCpsPath
1946 conditionParameters:
1947 - cpsPath: "//state[@cm-handle-state='LOCKED']"
1948 cpsPathCmHandleDataSyncQueryParameters:
1950 cmHandleQueryParameters:
1951 - conditionName: cmHandleWithCpsPath
1952 conditionParameters:
1953 - cpsPath: "//state[@data-sync-enabled='true']"