1 # ============LICENSE_START=======================================================
2 # Copyright (C) 2021 Bell Canada
3 # Modifications Copyright (C) 2021-2022 Nordix Foundation
4 # ================================================================================
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
17 # SPDX-License-Identifier: Apache-2.0
18 # ============LICENSE_END=========================================================
20 updateDmiRegistration:
22 description: Register a DMI Plugin with any new, updated or removed CM Handles.
24 - network-cm-proxy-inventory
25 summary: DMI notifies NCMP of new CM Handles
26 operationId: updateDmiPluginRegistration
32 $ref: 'components.yaml#/components/schemas/RestDmiPluginRegistration'
35 $ref: 'components.yaml#/components/responses/NoContent'
37 $ref: 'components.yaml#/components/responses/BadRequest'
39 $ref: 'components.yaml#/components/responses/Unauthorized'
41 $ref: 'components.yaml#/components/responses/Forbidden'
43 description: Partial or Complete failure. The error details are provided in the response body and all supported error codes are documented in the example.
47 $ref: 'components.yaml#/components/schemas/DmiPluginRegistrationErrorResponse'
49 failedCreatedCmHandles: [
51 "cmHandle": "my-cm-handle-01",
53 "errorText": "Unknown error. <error-details>"
56 "cmHandle": "my-cm-handle-02",
58 "errorText": "cm-handle already exists"
61 "cmHandle": "my-cm-handle-03",
63 "errorText": "cm-handle has an invalid character(s) in id"
66 failedUpdatedCmHandles: [
68 "cmHandle": "my-cm-handle-01",
70 "errorText": "Unknown error. <error-details>"
73 "cmHandle": "my-cm-handle-02",
75 "errorText": "cm-handle does not exist"
78 "cmHandle": "my-cm-handle-03",
80 "errorText": "cm-handle has an invalid character(s) in id"
83 failedRemovedCmHandles: [
85 "cmHandle": "my-cm-handle-01",
87 "errorText": "Unknown error. <error-details>"
90 "cmHandle": "my-cm-handle-02",
92 "errorText": "cm-handle does not exists"
95 "cmHandle": "my-cm-handle-03",
97 "errorText": "cm-handle has an invalid character(s) in id"