3 title: ONAP Open API v3 Configuration Persistence Service
4 description: Configuration Persistence Service is a Model Driven Generic Database
7 url: https://onap.readthedocs.io
8 email: onap-discuss@lists.onap.org
11 url: http://www.apache.org/licenses/LICENSE-2.0
13 x-planned-retirement-date: "202212"
21 description: cps Admin
29 summary: Create a dataspace
30 description: Create a new dataspace
31 operationId: createDataspace
33 - name: dataspace-name
35 description: dataspace-name
49 description: Bad Request
53 $ref: '#/components/schemas/ErrorMessage'
57 details: The provided request is not valid
59 description: Unauthorized
63 $ref: '#/components/schemas/ErrorMessage'
66 message: Unauthorized request
67 details: This request is unauthorized
69 description: Forbidden
73 $ref: '#/components/schemas/ErrorMessage'
76 message: Request Forbidden
77 details: This request is forbidden
83 $ref: '#/components/schemas/ErrorMessage'
86 message: Conflicting request
87 details: The request cannot be processed as the resource is in use.
89 description: Internal Server Error
93 $ref: '#/components/schemas/ErrorMessage'
96 message: Internal Server Error
97 details: Internal Server Error occurred
101 summary: Delete a dataspace
102 description: Delete a dataspace
103 operationId: deleteDataspace
105 - name: dataspace-name
107 description: dataspace-name
111 example: my-dataspace
114 description: No Content
117 description: Bad Request
121 $ref: '#/components/schemas/ErrorMessage'
125 details: The provided request is not valid
127 description: Unauthorized
131 $ref: '#/components/schemas/ErrorMessage'
134 message: Unauthorized request
135 details: This request is unauthorized
137 description: Forbidden
141 $ref: '#/components/schemas/ErrorMessage'
144 message: Request Forbidden
145 details: This request is forbidden
147 description: Conflict
151 $ref: '#/components/schemas/ErrorMessage'
154 message: Conflicting request
155 details: The request cannot be processed as the resource is in use.
157 description: Internal Server Error
161 $ref: '#/components/schemas/ErrorMessage'
164 message: Internal Server Error
165 details: Internal Server Error occurred
166 /v1/admin/dataspaces:
170 summary: Get dataspaces
171 description: "Read all dataspaces"
172 operationId: getAllDataspaces
181 $ref: '#/components/schemas/DataspaceDetails'
183 description: Bad Request
187 $ref: '#/components/schemas/ErrorMessage'
191 details: The provided request is not valid
193 description: Unauthorized
197 $ref: '#/components/schemas/ErrorMessage'
200 message: Unauthorized request
201 details: This request is unauthorized
203 description: Forbidden
207 $ref: '#/components/schemas/ErrorMessage'
210 message: Request Forbidden
211 details: This request is forbidden
213 description: Internal Server Error
217 $ref: '#/components/schemas/ErrorMessage'
220 message: Internal Server Error
221 details: Internal Server Error occurred
222 /v1/admin/dataspaces/{dataspace-name}:
226 summary: Get a dataspace
227 description: Read an dataspace given a dataspace name
228 operationId: getDataspace
230 - name: dataspace-name
232 description: dataspace-name
236 example: my-dataspace
243 $ref: '#/components/schemas/DataspaceDetails'
245 description: Bad Request
249 $ref: '#/components/schemas/ErrorMessage'
253 details: The provided request is not valid
255 description: Unauthorized
259 $ref: '#/components/schemas/ErrorMessage'
262 message: Unauthorized request
263 details: This request is unauthorized
265 description: Forbidden
269 $ref: '#/components/schemas/ErrorMessage'
272 message: Request Forbidden
273 details: This request is forbidden
275 description: Internal Server Error
279 $ref: '#/components/schemas/ErrorMessage'
282 message: Internal Server Error
283 details: Internal Server Error occurred
284 /v1/dataspaces/{dataspace-name}/anchors:
289 description: "Read all anchors, given a dataspace"
290 operationId: getAnchors
292 - name: dataspace-name
294 description: dataspace-name
298 example: my-dataspace
307 $ref: '#/components/schemas/AnchorDetails'
309 description: Bad Request
313 $ref: '#/components/schemas/ErrorMessage'
317 details: The provided request is not valid
319 description: Unauthorized
323 $ref: '#/components/schemas/ErrorMessage'
326 message: Unauthorized request
327 details: This request is unauthorized
329 description: Forbidden
333 $ref: '#/components/schemas/ErrorMessage'
336 message: Request Forbidden
337 details: This request is forbidden
339 description: Internal Server Error
343 $ref: '#/components/schemas/ErrorMessage'
346 message: Internal Server Error
347 details: Internal Server Error occurred
351 summary: Create an anchor
352 description: Create a new anchor in the given dataspace
353 operationId: createAnchor
355 - name: dataspace-name
357 description: dataspace-name
361 example: my-dataspace
362 - name: schema-set-name
364 description: schema-set-name
368 example: my-schema-set
371 description: anchor-name
385 description: Bad Request
389 $ref: '#/components/schemas/ErrorMessage'
393 details: The provided request is not valid
395 description: Unauthorized
399 $ref: '#/components/schemas/ErrorMessage'
402 message: Unauthorized request
403 details: This request is unauthorized
405 description: Forbidden
409 $ref: '#/components/schemas/ErrorMessage'
412 message: Request Forbidden
413 details: This request is forbidden
415 description: Conflict
419 $ref: '#/components/schemas/ErrorMessage'
422 message: Conflicting request
423 details: The request cannot be processed as the resource is in use.
425 description: Internal Server Error
429 $ref: '#/components/schemas/ErrorMessage'
432 message: Internal Server Error
433 details: Internal Server Error occurred
434 /v1/dataspaces/{dataspace-name}/anchors/{anchor-name}:
438 summary: Get an anchor
439 description: Read an anchor given an anchor name and a dataspace
440 operationId: getAnchor
442 - name: dataspace-name
444 description: dataspace-name
448 example: my-dataspace
451 description: anchor-name
462 $ref: '#/components/schemas/AnchorDetails'
464 description: Bad Request
468 $ref: '#/components/schemas/ErrorMessage'
472 details: The provided request is not valid
474 description: Unauthorized
478 $ref: '#/components/schemas/ErrorMessage'
481 message: Unauthorized request
482 details: This request is unauthorized
484 description: Forbidden
488 $ref: '#/components/schemas/ErrorMessage'
491 message: Request Forbidden
492 details: This request is forbidden
494 description: Internal Server Error
498 $ref: '#/components/schemas/ErrorMessage'
501 message: Internal Server Error
502 details: Internal Server Error occurred
506 summary: Delete an anchor
507 description: Delete an anchor given an anchor name and a dataspace
508 operationId: deleteAnchor
510 - name: dataspace-name
512 description: dataspace-name
516 example: my-dataspace
519 description: anchor-name
526 description: No Content
529 description: Bad Request
533 $ref: '#/components/schemas/ErrorMessage'
537 details: The provided request is not valid
539 description: Unauthorized
543 $ref: '#/components/schemas/ErrorMessage'
546 message: Unauthorized request
547 details: This request is unauthorized
549 description: Forbidden
553 $ref: '#/components/schemas/ErrorMessage'
556 message: Request Forbidden
557 details: This request is forbidden
559 description: Internal Server Error
563 $ref: '#/components/schemas/ErrorMessage'
566 message: Internal Server Error
567 details: Internal Server Error occurred
568 /v1/dataspaces/{dataspace-name}/schema-sets:
572 summary: Create a schema set
573 description: Create a new schema set in the given dataspace
574 operationId: createSchemaSet
576 - name: dataspace-name
578 description: dataspace-name
582 example: my-dataspace
583 - name: schema-set-name
585 description: schema-set-name
589 example: my-schema-set
594 $ref: '#/components/schemas/MultipartFile'
605 description: Bad Request
609 $ref: '#/components/schemas/ErrorMessage'
613 details: The provided request is not valid
615 description: Unauthorized
619 $ref: '#/components/schemas/ErrorMessage'
622 message: Unauthorized request
623 details: This request is unauthorized
625 description: Forbidden
629 $ref: '#/components/schemas/ErrorMessage'
632 message: Request Forbidden
633 details: This request is forbidden
635 description: Conflict
639 $ref: '#/components/schemas/ErrorMessage'
642 message: Conflicting request
643 details: The request cannot be processed as the resource is in use.
645 description: Internal Server Error
649 $ref: '#/components/schemas/ErrorMessage'
652 message: Internal Server Error
653 details: Internal Server Error occurred
657 summary: Get schema sets for a given dataspace
658 description: "Read schema sets for a given dataspace"
659 operationId: getSchemaSets
661 - name: dataspace-name
663 description: dataspace-name
667 example: my-dataspace
676 $ref: '#/components/schemas/SchemaSetDetails'
678 description: Bad Request
682 $ref: '#/components/schemas/ErrorMessage'
686 details: The provided request is not valid
688 description: Unauthorized
692 $ref: '#/components/schemas/ErrorMessage'
695 message: Unauthorized request
696 details: This request is unauthorized
698 description: Forbidden
702 $ref: '#/components/schemas/ErrorMessage'
705 message: Request Forbidden
706 details: This request is forbidden
708 description: Internal Server Error
712 $ref: '#/components/schemas/ErrorMessage'
715 message: Internal Server Error
716 details: Internal Server Error occurred
717 /v1/dataspaces/{dataspace-name}/schema-sets/{schema-set-name}:
721 summary: Get a schema set
722 description: Read a schema set given a schema set name and a dataspace
723 operationId: getSchemaSet
725 - name: dataspace-name
727 description: dataspace-name
731 example: my-dataspace
732 - name: schema-set-name
734 description: schema-set-name
738 example: my-schema-set
745 $ref: '#/components/schemas/SchemaSetDetails'
747 description: Bad Request
751 $ref: '#/components/schemas/ErrorMessage'
755 details: The provided request is not valid
757 description: Unauthorized
761 $ref: '#/components/schemas/ErrorMessage'
764 message: Unauthorized request
765 details: This request is unauthorized
767 description: Forbidden
771 $ref: '#/components/schemas/ErrorMessage'
774 message: Request Forbidden
775 details: This request is forbidden
777 description: Internal Server Error
781 $ref: '#/components/schemas/ErrorMessage'
784 message: Internal Server Error
785 details: Internal Server Error occurred
789 summary: Delete a schema set
790 description: Delete a schema set given a schema set name and a dataspace
791 operationId: deleteSchemaSet
793 - name: dataspace-name
795 description: dataspace-name
799 example: my-dataspace
800 - name: schema-set-name
802 description: schema-set-name
806 example: my-schema-set
809 description: No Content
812 description: Bad Request
816 $ref: '#/components/schemas/ErrorMessage'
820 details: The provided request is not valid
822 description: Unauthorized
826 $ref: '#/components/schemas/ErrorMessage'
829 message: Unauthorized request
830 details: This request is unauthorized
832 description: Forbidden
836 $ref: '#/components/schemas/ErrorMessage'
839 message: Request Forbidden
840 details: This request is forbidden
842 description: Conflict
846 $ref: '#/components/schemas/ErrorMessage'
849 message: Conflicting request
850 details: The request cannot be processed as the resource is in use.
852 description: Internal Server Error
856 $ref: '#/components/schemas/ErrorMessage'
859 message: Internal Server Error
860 details: Internal Server Error occurred
861 /v1/dataspaces/{dataspace-name}/anchors/{anchor-name}/node:
866 description: Get a node with an option to retrieve all the children for a given
868 operationId: getNodeByDataspaceAndAnchor
870 - name: dataspace-name
872 description: dataspace-name
876 example: my-dataspace
879 description: anchor-name
886 description: "For more details on xpath, please refer https://docs.onap.org/projects/onap-cps/en/latest/cps-path.html"
893 value: /shops/bookstore
894 list attributes xpath:
895 value: "/shops/bookstore/categories[@code=1]"
896 - name: include-descendants
898 description: include-descendants
913 $ref: '#/components/examples/dataSample'
915 description: Bad Request
919 $ref: '#/components/schemas/ErrorMessage'
923 details: The provided request is not valid
925 description: Unauthorized
929 $ref: '#/components/schemas/ErrorMessage'
932 message: Unauthorized request
933 details: This request is unauthorized
935 description: Forbidden
939 $ref: '#/components/schemas/ErrorMessage'
942 message: Request Forbidden
943 details: This request is forbidden
945 description: Internal Server Error
949 $ref: '#/components/schemas/ErrorMessage'
952 message: Internal Server Error
953 details: Internal Server Error occurred
954 x-codegen-request-body-name: xpath
955 /v1/dataspaces/{dataspace-name}/anchors/{anchor-name}/nodes:
959 summary: Replace a node with descendants
960 description: "Replace a node with descendants for a given dataspace, anchor\
961 \ and a parent node xpath"
962 operationId: replaceNode
964 - name: dataspace-name
966 description: dataspace-name
970 example: my-dataspace
973 description: anchor-name
980 description: "For more details on xpath, please refer https://docs.onap.org/projects/onap-cps/en/latest/cps-path.html"
987 value: /shops/bookstore
988 list attributes xpath:
989 value: "/shops/bookstore/categories[@code=1]"
990 - name: observed-timestamp
992 description: observed-timestamp
996 example: 2021-03-21T00:10:34.030-0100
1004 $ref: '#/components/examples/dataSample'
1017 description: Bad Request
1021 $ref: '#/components/schemas/ErrorMessage'
1024 message: Bad Request
1025 details: The provided request is not valid
1027 description: Unauthorized
1031 $ref: '#/components/schemas/ErrorMessage'
1034 message: Unauthorized request
1035 details: This request is unauthorized
1037 description: Forbidden
1041 $ref: '#/components/schemas/ErrorMessage'
1044 message: Request Forbidden
1045 details: This request is forbidden
1047 description: Internal Server Error
1051 $ref: '#/components/schemas/ErrorMessage'
1054 message: Internal Server Error
1055 details: Internal Server Error occurred
1059 summary: Create a node
1060 description: Create a node for a given anchor and dataspace
1061 operationId: createNode
1063 - name: dataspace-name
1065 description: dataspace-name
1069 example: my-dataspace
1072 description: anchor-name
1079 description: "For more details on xpath, please refer https://docs.onap.org/projects/onap-cps/en/latest/cps-path.html"
1086 value: /shops/bookstore
1087 list attributes xpath:
1088 value: "/shops/bookstore/categories[@code=1]"
1089 - name: observed-timestamp
1091 description: observed-timestamp
1095 example: 2021-03-21T00:10:34.030-0100
1103 $ref: '#/components/examples/dataSample'
1107 description: Created
1112 example: my-resource
1114 description: Bad Request
1118 $ref: '#/components/schemas/ErrorMessage'
1121 message: Bad Request
1122 details: The provided request is not valid
1124 description: Unauthorized
1128 $ref: '#/components/schemas/ErrorMessage'
1131 message: Unauthorized request
1132 details: This request is unauthorized
1134 description: Forbidden
1138 $ref: '#/components/schemas/ErrorMessage'
1141 message: Request Forbidden
1142 details: This request is forbidden
1144 description: Conflict
1148 $ref: '#/components/schemas/ErrorMessage'
1151 message: Conflicting request
1152 details: The request cannot be processed as the resource is in use.
1154 description: Internal Server Error
1158 $ref: '#/components/schemas/ErrorMessage'
1161 message: Internal Server Error
1162 details: Internal Server Error occurred
1166 summary: Delete a data node
1167 description: Delete a datanode for a given dataspace and anchor given a node
1169 operationId: deleteDataNode
1171 - name: dataspace-name
1173 description: dataspace-name
1177 example: my-dataspace
1180 description: anchor-name
1187 description: "For more details on xpath, please refer https://docs.onap.org/projects/onap-cps/en/latest/cps-path.html"
1194 value: /shops/bookstore
1195 list attributes xpath:
1196 value: "/shops/bookstore/categories[@code=1]"
1197 - name: observed-timestamp
1199 description: observed-timestamp
1203 example: 2021-03-21T00:10:34.030-0100
1206 description: No Content
1209 description: Bad Request
1213 $ref: '#/components/schemas/ErrorMessage'
1216 message: Bad Request
1217 details: The provided request is not valid
1219 description: Unauthorized
1223 $ref: '#/components/schemas/ErrorMessage'
1226 message: Unauthorized request
1227 details: This request is unauthorized
1229 description: Forbidden
1233 $ref: '#/components/schemas/ErrorMessage'
1236 message: Request Forbidden
1237 details: This request is forbidden
1239 description: Internal Server Error
1243 $ref: '#/components/schemas/ErrorMessage'
1246 message: Internal Server Error
1247 details: Internal Server Error occurred
1251 summary: Update node leaves
1252 description: Update a data node leaves for a given dataspace and anchor and
1254 operationId: updateNodeLeaves
1256 - name: dataspace-name
1258 description: dataspace-name
1262 example: my-dataspace
1265 description: anchor-name
1272 description: "For more details on xpath, please refer https://docs.onap.org/projects/onap-cps/en/latest/cps-path.html"
1279 value: /shops/bookstore
1280 list attributes xpath:
1281 value: "/shops/bookstore/categories[@code=1]"
1282 - name: observed-timestamp
1284 description: observed-timestamp
1288 example: 2021-03-21T00:10:34.030-0100
1296 $ref: '#/components/examples/dataSample'
1309 description: Bad Request
1313 $ref: '#/components/schemas/ErrorMessage'
1316 message: Bad Request
1317 details: The provided request is not valid
1319 description: Unauthorized
1323 $ref: '#/components/schemas/ErrorMessage'
1326 message: Unauthorized request
1327 details: This request is unauthorized
1329 description: Forbidden
1333 $ref: '#/components/schemas/ErrorMessage'
1336 message: Request Forbidden
1337 details: This request is forbidden
1339 description: Internal Server Error
1343 $ref: '#/components/schemas/ErrorMessage'
1346 message: Internal Server Error
1347 details: Internal Server Error occurred
1348 /v1/dataspaces/{dataspace-name}/anchors/{anchor-name}/list-nodes:
1352 summary: Replace list content
1353 description: "Replace list content under a given parent, anchor and dataspace"
1354 operationId: replaceListContent
1356 - name: dataspace-name
1358 description: dataspace-name
1362 example: my-dataspace
1365 description: anchor-name
1372 description: "For more details on xpath, please refer https://docs.onap.org/projects/onap-cps/en/latest/cps-path.html"
1378 value: /shops/bookstore
1379 list attributes xpath:
1380 value: "/shops/bookstore/categories[@code=1]"
1381 - name: observed-timestamp
1383 description: observed-timestamp
1387 example: 2021-03-21T00:10:34.030-0100
1395 $ref: '#/components/examples/dataSample'
1408 description: Bad Request
1412 $ref: '#/components/schemas/ErrorMessage'
1415 message: Bad Request
1416 details: The provided request is not valid
1418 description: Unauthorized
1422 $ref: '#/components/schemas/ErrorMessage'
1425 message: Unauthorized request
1426 details: This request is unauthorized
1428 description: Forbidden
1432 $ref: '#/components/schemas/ErrorMessage'
1435 message: Request Forbidden
1436 details: This request is forbidden
1438 description: Internal Server Error
1442 $ref: '#/components/schemas/ErrorMessage'
1445 message: Internal Server Error
1446 details: Internal Server Error occurred
1450 summary: Add list element(s)
1451 description: Add list element(s) to a list for a given anchor and dataspace
1452 operationId: addListElements
1454 - name: dataspace-name
1456 description: dataspace-name
1460 example: my-dataspace
1463 description: anchor-name
1470 description: "For more details on xpath, please refer https://docs.onap.org/projects/onap-cps/en/latest/cps-path.html"
1476 value: /shops/bookstore
1477 list attributes xpath:
1478 value: "/shops/bookstore/categories[@code=1]"
1479 - name: observed-timestamp
1481 description: observed-timestamp
1485 example: 2021-03-21T00:10:34.030-0100
1493 $ref: '#/components/examples/dataSample'
1497 description: Created
1502 example: my-resource
1504 description: Bad Request
1508 $ref: '#/components/schemas/ErrorMessage'
1511 message: Bad Request
1512 details: The provided request is not valid
1514 description: Unauthorized
1518 $ref: '#/components/schemas/ErrorMessage'
1521 message: Unauthorized request
1522 details: This request is unauthorized
1524 description: Forbidden
1528 $ref: '#/components/schemas/ErrorMessage'
1531 message: Request Forbidden
1532 details: This request is forbidden
1534 description: Internal Server Error
1538 $ref: '#/components/schemas/ErrorMessage'
1541 message: Internal Server Error
1542 details: Internal Server Error occurred
1546 summary: Delete one or all list element(s)
1547 description: Delete one or all list element(s) for a given anchor and dataspace
1548 operationId: deleteListOrListElement
1550 - name: dataspace-name
1552 description: dataspace-name
1556 example: my-dataspace
1559 description: anchor-name
1566 description: "For more details on xpath, please refer https://docs.onap.org/projects/onap-cps/en/latest/cps-path.html"
1572 value: /shops/bookstore
1573 list attributes xpath:
1574 value: "/shops/bookstore/categories[@code=1]"
1575 - name: observed-timestamp
1577 description: observed-timestamp
1581 example: 2021-03-21T00:10:34.030-0100
1584 description: No Content
1587 description: Bad Request
1591 $ref: '#/components/schemas/ErrorMessage'
1594 message: Bad Request
1595 details: The provided request is not valid
1597 description: Unauthorized
1601 $ref: '#/components/schemas/ErrorMessage'
1604 message: Unauthorized request
1605 details: This request is unauthorized
1607 description: Forbidden
1611 $ref: '#/components/schemas/ErrorMessage'
1614 message: Request Forbidden
1615 details: This request is forbidden
1617 description: Internal Server Error
1621 $ref: '#/components/schemas/ErrorMessage'
1624 message: Internal Server Error
1625 details: Internal Server Error occurred
1627 /v1/dataspaces/{dataspace-name}/anchors/{anchor-name}/nodes/query:
1631 summary: Query data nodes
1632 description: Query data nodes for the given dataspace and anchor using CPS path
1633 operationId: getNodesByDataspaceAndAnchorAndCpsPath
1635 - name: dataspace-name
1637 description: dataspace-name
1641 example: my-dataspace
1644 description: anchor-name
1651 description: "For more details on cps path, please refer https://docs.onap.org/projects/onap-cps/en/latest/cps-path.html"
1659 list attributes cps path:
1660 value: "//categories[@code=1]"
1661 - name: include-descendants
1663 description: include-descendants
1678 $ref: '#/components/examples/dataSample'
1680 description: Bad Request
1684 $ref: '#/components/schemas/ErrorMessage'
1687 message: Bad Request
1688 details: The provided request is not valid
1690 description: Unauthorized
1694 $ref: '#/components/schemas/ErrorMessage'
1697 message: Unauthorized request
1698 details: This request is unauthorized
1700 description: Forbidden
1704 $ref: '#/components/schemas/ErrorMessage'
1707 message: Request Forbidden
1708 details: This request is forbidden
1710 description: Internal Server Error
1714 $ref: '#/components/schemas/ErrorMessage'
1717 message: Internal Server Error
1718 details: Internal Server Error occurred
1719 x-codegen-request-body-name: xpath
1737 title: Anchor details by anchor Name
1745 example: my-dataspace
1748 example: my-schema-set
1750 title: Dataspace details by dataspace Name
1755 example: my-dataspace
1763 description: multipartFile
1766 title: Schema set details by dataspace and schemasetName
1773 example: my-dataspace
1777 $ref: '#/components/schemas/ModuleReferences'
1780 example: my-schema-set
1782 title: Module reference object
1787 example: my-module-reference-name
1790 example: my-module-reference-namespace
1793 example: my-module-reference-revision
1798 bookstore-name: Chapters