3 description: NCMP Inventory API
4 title: NCMP Inventory API
11 description: "Register a DMI Plugin with any new, updated or removed CM Handles."
12 operationId: updateDmiPluginRegistration
17 $ref: '#/components/schemas/RestDmiPluginRegistration'
22 description: No Content
28 message: Bad request error message
29 details: Bad request error details
31 $ref: '#/components/schemas/ErrorMessage'
32 description: Bad Request
38 message: Forbidden error message
39 details: Forbidden error details
41 $ref: '#/components/schemas/ErrorMessage'
42 description: Forbidden
47 failedCreatedCmHandles:
48 - cmHandle: my-cm-handle-01
50 errorText: Unknown error. <error-details>
51 - cmHandle: my-cm-handle-02
53 errorText: cm-handle already exists
54 - cmHandle: my-cm-handle-03
56 errorText: cm-handle has an invalid character(s) in id
57 failedUpdatedCmHandles:
58 - cmHandle: my-cm-handle-01
60 errorText: Unknown error. <error-details>
61 - cmHandle: my-cm-handle-02
63 errorText: cm-handle does not exist
64 - cmHandle: my-cm-handle-03
66 errorText: cm-handle has an invalid character(s) in id
67 failedRemovedCmHandles:
68 - cmHandle: my-cm-handle-01
70 errorText: Unknown error. <error-details>
71 - cmHandle: my-cm-handle-02
73 errorText: cm-handle does not exists
74 - cmHandle: my-cm-handle-03
76 errorText: cm-handle has an invalid character(s) in id
78 $ref: '#/components/schemas/DmiPluginRegistrationErrorResponse'
79 description: Partial or Complete failure. The error details are provided
80 in the response body and all supported error codes are documented in the
82 summary: DMI notifies NCMP of new CM Handles
84 - network-cm-proxy-inventory
87 description: Get all cm handle references for a registered DMI plugin
88 operationId: getAllCmHandleReferencesForRegisteredDmi
90 - description: dmi-plugin-identifier
92 name: dmi-plugin-identifier
95 example: my-dmi-plugin
97 - description: Boolean parameter to determine if returned value(s) will be cm
98 handle ids or alternate ids for a given query
100 name: outputAlternateId
119 message: Forbidden error message
120 details: Forbidden error details
122 $ref: '#/components/schemas/ErrorMessage'
123 description: Forbidden
129 message: Internal Server Error
130 details: Internal Server Error occurred
132 $ref: '#/components/schemas/ErrorMessage'
133 description: Internal Server Error
134 summary: "Get all cm handle references for a registered DMI plugin (DMI plugin,\
135 \ DMI data plugin, DMI model plugin)"
137 - network-cm-proxy-inventory
140 description: "Query and get cm handle references for additional properties,\
141 \ public properties and registered DMI plugin (DMI plugin, DMI data plugin,\
142 \ DMI model plugin)."
143 operationId: searchCmHandleIds
145 - description: Boolean parameter to determine if returned value(s) will be cm
146 handle ids or alternate ids for a given query
148 name: outputAlternateId
157 $ref: '#/components/schemas/CmHandleQueryParameters'
173 message: Forbidden error message
174 details: Forbidden error details
176 $ref: '#/components/schemas/ErrorMessage'
177 description: Forbidden
183 message: Internal Server Error
184 details: Internal Server Error occurred
186 $ref: '#/components/schemas/ErrorMessage'
187 description: Internal Server Error
188 summary: Query for CM Handle IDs
190 - network-cm-proxy-inventory
191 /v1/ch/searchCmHandles:
193 description: Execute cm handle query search and return a list of cm handle details.
194 Any number of conditions can be applied. To be included in the result a cm-handle
195 must fulfill ALL the conditions. An empty collection will be returned in the
196 case that the cm handle does not match a condition. For more on cm handle
197 query search please refer to <a href="https://docs.onap.org/projects/onap-cps/en/latest/ncmp-cmhandle-querying.html">cm
198 handle query search Read the Docs</a>.<br/>By supplying a CPS Path it is possible
199 to query on any data related to the cm handle. For more on CPS Path please
200 refer to <a href="https://docs.onap.org/projects/onap-cps/en/latest/cps-path.html">CPS
201 Path Read the Docs</a>. The cm handle ancestor is automatically returned for
203 operationId: searchCmHandles
205 - description: Whether to include additional properties in the response.
207 name: includeCmHandlePropertiesInQuery
215 $ref: '#/components/schemas/CmHandleQueryParameters'
223 $ref: '#/components/schemas/RestOutputCmHandle'
231 message: Bad request error message
232 details: Bad request error details
234 $ref: '#/components/schemas/ErrorMessage'
235 description: Bad Request
241 message: Forbidden error message
242 details: Forbidden error details
244 $ref: '#/components/schemas/ErrorMessage'
245 description: Forbidden
251 message: Internal Server Error
252 details: Internal Server Error occurred
254 $ref: '#/components/schemas/ErrorMessage'
255 description: Internal Server Error
256 summary: Query Cm Handles for a requested DMI Service
258 - network-cm-proxy-inventory
261 dmiPluginIdentifierInQuery:
262 description: dmi-plugin-identifier
264 name: dmi-plugin-identifier
267 example: my-dmi-plugin
269 outputAlternateIdOptionInQuery:
270 description: Boolean parameter to determine if returned value(s) will be cm
271 handle ids or alternate ids for a given query
273 name: outputAlternateId
281 description: No Content
287 message: Bad request error message
288 details: Bad request error details
290 $ref: '#/components/schemas/ErrorMessage'
291 description: Bad Request
297 message: Forbidden error message
298 details: Forbidden error details
300 $ref: '#/components/schemas/ErrorMessage'
301 description: Forbidden
307 message: Internal Server Error
308 details: Internal Server Error occurred
310 $ref: '#/components/schemas/ErrorMessage'
311 description: Internal Server Error
313 RestDmiPluginRegistration:
316 - cmHandle: my-cm-handle
317 alternateId: "Subnetwork=Europe,ManagedElement=X123"
318 dataProducerIdentifier: my-data-producer-identifier
319 publicCmHandleProperties:
323 moduleSetTag: my-module-set-tag
325 - cmHandle: my-cm-handle
326 alternateId: "Subnetwork=Europe,ManagedElement=X123"
327 dataProducerIdentifier: my-data-producer-identifier
328 publicCmHandleProperties:
332 moduleSetTag: my-module-set-tag
335 - cmHandle: my-cm-handle
336 alternateId: "Subnetwork=Europe,ManagedElement=X123"
337 dataProducerIdentifier: my-data-producer-identifier
338 publicCmHandleProperties:
342 moduleSetTag: my-module-set-tag
344 - cmHandle: my-cm-handle
345 alternateId: "Subnetwork=Europe,ManagedElement=X123"
346 dataProducerIdentifier: my-data-producer-identifier
347 publicCmHandleProperties:
351 moduleSetTag: my-module-set-tag
353 dmiPlugin: my-dmi-plugin
354 dmiModelPlugin: my-dmi-model-plugin
360 moduleSetTag: my-module-set-tag
361 dmiDataPlugin: my-dmi-data-plugin
369 example: my-dmi-plugin
373 example: my-dmi-data-plugin
377 example: my-dmi-model-plugin
381 $ref: '#/components/schemas/RestInputCmHandle'
385 $ref: '#/components/schemas/RestInputCmHandle'
396 $ref: '#/components/schemas/UpgradedCmHandles'
400 cmHandle: my-cm-handle
401 alternateId: "Subnetwork=Europe,ManagedElement=X123"
402 dataProducerIdentifier: my-data-producer-identifier
403 publicCmHandleProperties:
407 moduleSetTag: my-module-set-tag
411 example: my-cm-handle
414 additionalProperties:
418 publicCmHandleProperties:
419 additionalProperties:
424 example: my-module-set-tag
433 example: "Subnetwork=Europe,ManagedElement=X123"
435 dataProducerIdentifier:
436 example: my-data-producer-identifier
447 moduleSetTag: my-module-set-tag
459 example: my-module-set-tag
478 DmiPluginRegistrationErrorResponse:
480 failedCreatedCmHandles:
481 - cmHandle: my-cm-handle
482 errorText: Unknown error. <error-details>
484 - cmHandle: my-cm-handle
485 errorText: Unknown error. <error-details>
487 failedUpgradeCmHandles:
488 - cmHandle: my-cm-handle
489 errorText: Unknown error. <error-details>
491 - cmHandle: my-cm-handle
492 errorText: Unknown error. <error-details>
494 failedRemovedCmHandles:
495 - cmHandle: my-cm-handle
496 errorText: Unknown error. <error-details>
498 - cmHandle: my-cm-handle
499 errorText: Unknown error. <error-details>
501 failedUpdatedCmHandles:
502 - cmHandle: my-cm-handle
503 errorText: Unknown error. <error-details>
505 - cmHandle: my-cm-handle
506 errorText: Unknown error. <error-details>
509 failedCreatedCmHandles:
511 $ref: '#/components/schemas/CmHandlerRegistrationErrorResponse'
513 failedUpdatedCmHandles:
515 $ref: '#/components/schemas/CmHandlerRegistrationErrorResponse'
517 failedRemovedCmHandles:
519 $ref: '#/components/schemas/CmHandlerRegistrationErrorResponse'
521 failedUpgradeCmHandles:
523 $ref: '#/components/schemas/CmHandlerRegistrationErrorResponse'
526 CmHandlerRegistrationErrorResponse:
528 cmHandle: my-cm-handle
529 errorText: Unknown error. <error-details>
533 example: my-cm-handle
539 example: Unknown error. <error-details>
542 CmHandleQueryParameters:
544 cmHandleQueryParameters:
545 - conditionParameters:
546 - key: conditionParameters
547 - key: conditionParameters
548 conditionName: conditionName
549 - conditionParameters:
550 - key: conditionParameters
551 - key: conditionParameters
552 conditionName: conditionName
556 - moduleName: my-module
557 - moduleName: my-module
560 - moduleName: my-module
561 - moduleName: my-module
563 cmHandleQueryParameters:
565 $ref: '#/components/schemas/ConditionProperties'
569 description: "not necessary, it is just for backward compatibility"
571 $ref: '#/components/schemas/OldConditionProperties'
573 title: Cm Handle query parameters for executing cm handle search
578 - key: conditionParameters
579 - key: conditionParameters
580 conditionName: conditionName
586 additionalProperties:
590 OldConditionProperties:
595 - moduleName: my-module
596 - moduleName: my-module
602 $ref: '#/components/schemas/ModuleNameAsJsonObject'
604 ModuleNameAsJsonObject:
606 moduleName: my-module
613 cmHandle: my-cm-handle1
614 alternateId: "Subnetwork=Europe,ManagedElement=X123"
615 dataProducerIdentifier: my-data-producer-identifier
616 publicCmHandleProperties:
622 dataSyncEnabled: false
625 lastSyncTime: 2022-12-31T20:30:40.000+0000
626 syncState: NONE_REQUESTED
628 lastSyncTime: 2022-12-31T20:30:40.000+0000
629 syncState: NONE_REQUESTED
630 cmHandleState: ADVISED
632 reason: LOCKED_MISBEHAVING
633 details: locked due to failure in module sync
634 lastUpdateTime: 2022-12-31T20:30:40.000+0000
636 moduleSetTag: my-module-set-tag
639 example: my-cm-handle1
641 publicCmHandleProperties:
643 additionalProperties:
650 additionalProperties:
655 $ref: '#/components/schemas/CmHandleCompositeState'
657 description: Current trust level of the relevant CM handle ID.
661 example: my-module-set-tag
664 example: "Subnetwork=Europe,ManagedElement=X123"
666 dataProducerIdentifier:
667 example: my-data-producer-identifier
669 title: CM handle Details
671 CmHandleCompositeState:
673 dataSyncEnabled: false
676 lastSyncTime: 2022-12-31T20:30:40.000+0000
677 syncState: NONE_REQUESTED
679 lastSyncTime: 2022-12-31T20:30:40.000+0000
680 syncState: NONE_REQUESTED
681 cmHandleState: ADVISED
683 reason: LOCKED_MISBEHAVING
684 details: locked due to failure in module sync
685 lastUpdateTime: 2022-12-31T20:30:40.000+0000
691 $ref: '#/components/schemas/lock-reason'
693 example: 2022-12-31T20:30:40.000+0000
699 $ref: '#/components/schemas/dataStores'
703 reason: LOCKED_MISBEHAVING
704 details: locked due to failure in module sync
707 example: LOCKED_MISBEHAVING
710 example: locked due to failure in module sync
716 lastSyncTime: 2022-12-31T20:30:40.000+0000
717 syncState: NONE_REQUESTED
719 lastSyncTime: 2022-12-31T20:30:40.000+0000
720 syncState: NONE_REQUESTED
723 $ref: '#/components/schemas/sync-state'
725 $ref: '#/components/schemas/sync-state'
729 lastSyncTime: 2022-12-31T20:30:40.000+0000
730 syncState: NONE_REQUESTED
733 example: NONE_REQUESTED
736 example: 2022-12-31T20:30:40.000+0000
740 description: Current trust level of the relevant CM handle ID.