1 # ============LICENSE_START=======================================================
2 # Copyright (C) 2021-2025 OpenInfra Foundation Europe. All rights reserved.
3 # Modifications Copyright (C) 2021 Pantheon.tech
4 # Modifications Copyright (C) 2021-2022 Bell Canada
5 # ================================================================================
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
10 # http://www.apache.org/licenses/LICENSE-2.0
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
18 # SPDX-License-Identifier: Apache-2.0
19 # ============LICENSE_END=========================================================
21 resourceDataForCmHandle:
25 summary: Get resource data for cm handle
26 description: Get resource data for given cm handle
27 operationId: getResourceDataForCmHandle
29 - $ref: 'components.yaml#/components/parameters/datastoreName'
30 - $ref: 'components.yaml#/components/parameters/cmHandleReferenceInPath'
31 - $ref: 'components.yaml#/components/parameters/resourceIdentifierInQuery'
32 - $ref: 'components.yaml#/components/parameters/optionsParamInQuery'
33 - $ref: 'components.yaml#/components/parameters/topicParamInQuery'
34 - $ref: 'components.yaml#/components/parameters/includeDescendantsOptionInQuery'
35 - $ref: 'components.yaml#/components/parameters/authorizationParamInHeader'
45 $ref: 'components.yaml#/components/examples/dataSampleResponse'
47 $ref: 'components.yaml#/components/responses/BadRequest'
49 $ref: 'components.yaml#/components/responses/Forbidden'
51 $ref: 'components.yaml#/components/responses/InternalServerError'
53 $ref: 'components.yaml#/components/responses/BadGateway'
58 summary: create resource data from pass-through running for cm handle
59 description: create resource data from pass-through running for given cm handle
60 operationId: createResourceDataRunningForCmHandle
62 - $ref: 'components.yaml#/components/parameters/datastoreName'
63 - $ref: 'components.yaml#/components/parameters/cmHandleReferenceInPath'
64 - $ref: 'components.yaml#/components/parameters/resourceIdentifierInQuery'
65 - $ref: 'components.yaml#/components/parameters/contentParamInHeader'
66 - $ref: 'components.yaml#/components/parameters/authorizationParamInHeader'
75 $ref: 'components.yaml#/components/examples/dataSampleRequest'
76 application/yang-data+json:
81 $ref: 'components.yaml#/components/examples/dataSampleRequest'
84 $ref: 'components.yaml#/components/responses/Created'
86 $ref: 'components.yaml#/components/responses/BadRequest'
88 $ref: 'components.yaml#/components/responses/Forbidden'
90 $ref: 'components.yaml#/components/responses/Conflict'
92 $ref: 'components.yaml#/components/responses/InternalServerError'
94 $ref: 'components.yaml#/components/responses/BadGateway'
99 summary: Update resource data from pass-through running for a cm handle
100 description: Update resource data from pass-through running for the given cm handle
101 operationId: updateResourceDataRunningForCmHandle
103 - $ref: 'components.yaml#/components/parameters/datastoreName'
104 - $ref: 'components.yaml#/components/parameters/cmHandleReferenceInPath'
105 - $ref: 'components.yaml#/components/parameters/resourceIdentifierInQuery'
106 - $ref: 'components.yaml#/components/parameters/contentParamInHeader'
107 - $ref: 'components.yaml#/components/parameters/authorizationParamInHeader'
116 $ref: 'components.yaml#/components/examples/dataSampleRequest'
117 application/yang-data+json:
122 $ref: 'components.yaml#/components/examples/dataSampleRequest'
125 $ref: 'components.yaml#/components/responses/Ok'
127 $ref: 'components.yaml#/components/responses/BadRequest'
129 $ref: 'components.yaml#/components/responses/Forbidden'
131 $ref: 'components.yaml#/components/responses/Conflict'
133 $ref: 'components.yaml#/components/responses/InternalServerError'
135 $ref: 'components.yaml#/components/responses/BadGateway'
140 summary: Patch resource data from pass-through running
141 description: Patch resource data from pass-through running for the given cm handle
142 operationId: patchResourceDataRunningForCmHandle
144 - $ref: 'components.yaml#/components/parameters/datastoreName'
145 - $ref: 'components.yaml#/components/parameters/cmHandleReferenceInPath'
146 - $ref: 'components.yaml#/components/parameters/resourceIdentifierInQuery'
147 - $ref: 'components.yaml#/components/parameters/contentParamInHeader'
148 - $ref: 'components.yaml#/components/parameters/authorizationParamInHeader'
157 $ref: 'components.yaml#/components/examples/dataSamplePatchRequest'
160 $ref: 'components.yaml#/components/responses/Ok'
162 $ref: 'components.yaml#/components/responses/BadRequest'
164 $ref: 'components.yaml#/components/responses/Forbidden'
166 $ref: 'components.yaml#/components/responses/Conflict'
168 $ref: 'components.yaml#/components/responses/InternalServerError'
170 $ref: 'components.yaml#/components/responses/BadGateway'
175 summary: Delete resource data
176 description: Delete resource data from pass-through running for a given cm handle
177 operationId: deleteResourceDataRunningForCmHandle
179 - $ref: 'components.yaml#/components/parameters/datastoreName'
180 - $ref: 'components.yaml#/components/parameters/cmHandleReferenceInPath'
181 - $ref: 'components.yaml#/components/parameters/resourceIdentifierInQuery'
182 - $ref: 'components.yaml#/components/parameters/contentParamInHeader'
183 - $ref: 'components.yaml#/components/parameters/authorizationParamInHeader'
186 $ref: 'components.yaml#/components/responses/NoContent'
188 $ref: 'components.yaml#/components/responses/BadRequest'
190 $ref: 'components.yaml#/components/responses/Forbidden'
192 $ref: 'components.yaml#/components/responses/NotFound'
194 $ref: 'components.yaml#/components/responses/Conflict'
196 $ref: 'components.yaml#/components/responses/InternalServerError'
198 $ref: 'components.yaml#/components/responses/BadGateway'
200 dataOperationForCmHandle:
204 summary: Execute a data operation for group of cm handle references
205 description: This request will be handled asynchronously using messaging to the supplied topic. The rest response will be an acknowledge with a requestId to identify the relevant messages. A maximum of 200 cm handles per operation is supported.
206 operationId: executeDataOperationForCmHandles
208 - $ref: 'components.yaml#/components/parameters/requiredTopicParamInQuery'
209 - $ref: 'components.yaml#/components/parameters/authorizationParamInHeader'
215 $ref: 'components.yaml#/components/schemas/DataOperationRequest'
224 $ref: 'components.yaml#/components/responses/BadRequest'
226 $ref: 'components.yaml#/components/responses/Forbidden'
228 $ref: 'components.yaml#/components/responses/PayloadTooLarge'
230 $ref: 'components.yaml#/components/responses/InternalServerError'
232 $ref: 'components.yaml#/components/responses/BadGateway'
234 queryResourceDataForCmHandle:
238 summary: Query resource data for a given cm handle
239 description: Query resource data for a given cm handle
240 operationId: queryResourceDataForCmHandle
242 - $ref: 'components.yaml#/components/parameters/datastoreName'
243 - $ref: 'components.yaml#/components/parameters/cmHandleInPath'
244 - $ref: 'components.yaml#/components/parameters/cpsPathInQuery'
245 - $ref: 'components.yaml#/components/parameters/optionsParamInQuery'
246 - $ref: 'components.yaml#/components/parameters/topicParamInQuery'
247 - $ref: 'components.yaml#/components/parameters/includeDescendantsOptionInQuery'
257 $ref: 'components.yaml#/components/examples/dataSampleResponse'
259 $ref: 'components.yaml#/components/responses/BadRequest'
261 $ref: 'components.yaml#/components/responses/Forbidden'
263 $ref: 'components.yaml#/components/responses/InternalServerError'
265 $ref: 'components.yaml#/components/responses/BadGateway'
267 fetchModuleReferencesByCmHandle:
269 description: fetch all module references (name and revision) for a given cm handle
272 summary: Fetch all module references (name and revision) for a given cm handle
273 operationId: getModuleReferencesByCmHandle
275 - $ref: 'components.yaml#/components/parameters/cmHandleReferenceInPath'
284 $ref: 'components.yaml#/components/schemas/RestModuleReference'
286 $ref: 'components.yaml#/components/responses/BadRequest'
288 $ref: 'components.yaml#/components/responses/Forbidden'
290 $ref: 'components.yaml#/components/responses/InternalServerError'
292 getModuleDefinitions:
296 summary: Get module definitions
297 description: Get module definitions (module name, revision, yang resource) with options to filter on module name and revision
298 operationId: getModuleDefinitions
300 - $ref: 'components.yaml#/components/parameters/cmHandleReferenceInPath'
301 - $ref: 'components.yaml#/components/parameters/moduleNameInQuery'
302 - $ref: 'components.yaml#/components/parameters/revisionInQuery'
311 $ref: 'components.yaml#/components/schemas/RestModuleDefinition'
313 $ref: 'components.yaml#/components/responses/Forbidden'
315 $ref: 'components.yaml#/components/responses/InternalServerError'
319 description: Execute cm handle query search and return a list of cm handle details. Any number of conditions can be applied. To be included in the result a cm-handle must fulfill ALL the conditions. An empty collection will be returned in the case that the cm handle does not match a condition. For more on cm handle query search please refer to <a href="https://docs.onap.org/projects/onap-cps/en/latest/ncmp-cmhandle-querying.html">cm handle query search Read the Docs</a>.<br/>By supplying a CPS Path it is possible to query on any data related to the cm handle. For more on CPS Path please refer to <a href="https://docs.onap.org/projects/onap-cps/en/latest/cps-path.html">CPS Path Read the Docs</a>. The cm handle ancestor is automatically returned for this query.
322 summary: Execute cm handle search using the available conditions
323 operationId: searchCmHandles
329 $ref: 'components.yaml#/components/schemas/CmHandleQueryParameters'
331 Cm handle properties query:
332 $ref: 'components.yaml#/components/examples/pubPropCmHandleQueryParameters'
333 Cm handle modules query:
334 $ref: 'components.yaml#/components/examples/modulesCmHandleQueryParameters'
335 All cm handle query parameters:
336 $ref: 'components.yaml#/components/examples/allCmHandleQueryParameters'
337 Cm handle with CPS path state query:
338 $ref: 'components.yaml#/components/examples/cpsPathCmHandleStateQueryParameters'
339 Cm handle with data sync flag query:
340 $ref: 'components.yaml#/components/examples/cpsPathCmHandleDataSyncQueryParameters'
349 $ref: 'components.yaml#/components/schemas/RestOutputCmHandle'
351 $ref: 'components.yaml#/components/responses/BadRequest'
353 $ref: 'components.yaml#/components/responses/Forbidden'
355 $ref: 'components.yaml#/components/responses/InternalServerError'
357 retrieveCmHandleDetailsById:
359 description: Retrieve CM handle details and properties by cm handle id
362 summary: Retrieve CM handle details
363 operationId: retrieveCmHandleDetailsById
365 - $ref: 'components.yaml#/components/parameters/cmHandleReferenceInPath'
372 $ref: 'components.yaml#/components/schemas/RestOutputCmHandle'
374 $ref: 'components.yaml#/components/responses/BadRequest'
376 $ref: 'components.yaml#/components/responses/NotFound'
378 $ref: 'components.yaml#/components/responses/InternalServerError'
380 getCmHandlePropertiesById:
382 description: Get CM handle properties by cm handle id
385 summary: Get CM handle properties
386 operationId: getPublicCmHandlePropertiesByCmHandleId
388 - $ref: 'components.yaml#/components/parameters/cmHandleReferenceInPath'
395 $ref: 'components.yaml#/components/schemas/RestOutputPublicCmHandleProperties'
397 $ref: 'components.yaml#/components/responses/BadRequest'
399 $ref: 'components.yaml#/components/responses/NotFound'
401 $ref: 'components.yaml#/components/responses/InternalServerError'
403 getCmHandleStateById:
405 description: Get CM handle state by cm handle id
408 summary: Get CM handle state
409 operationId: getCmHandleStateByCmHandleId
411 - $ref: 'components.yaml#/components/parameters/cmHandleReferenceInPath'
418 $ref: 'components.yaml#/components/schemas/RestOutputCmHandleCompositeState'
420 $ref: 'components.yaml#/components/responses/BadRequest'
422 $ref: 'components.yaml#/components/responses/NotFound'
424 $ref: 'components.yaml#/components/responses/InternalServerError'
428 description: Execute cm handle query search and return a list of cm handle references. Any number of conditions can be applied. To be included in the result a cm handle must fulfill ALL the conditions. An empty collection will be returned in the case that the cm handle does not match a condition. For more on cm handle query search please refer to <a href="https://docs.onap.org/projects/onap-cps/en/latest/ncmp-cmhandle-querying.html">cm handle query search Read the Docs</a>.<br/>By supplying a CPS Path it is possible to query on any data related to the cm handle. For more on CPS Path please refer to <a href="https://docs.onap.org/projects/onap-cps/en/latest/cps-path.html">CPS Path Read the Docs</a>. The cm handle ancestor is automatically returned for this query.
431 summary: Execute cm handle query upon a given set of query parameters
432 operationId: searchCmHandleIds
434 - $ref: 'components.yaml#/components/parameters/outputAlternateIdOptionInQuery'
440 $ref: 'components.yaml#/components/schemas/CmHandleQueryParameters'
442 Cm handle properties query:
443 $ref: 'components.yaml#/components/examples/pubPropCmHandleQueryParameters'
444 Cm handle modules query:
445 $ref: 'components.yaml#/components/examples/modulesCmHandleQueryParameters'
446 All cm handle query parameters:
447 $ref: 'components.yaml#/components/examples/allCmHandleQueryParameters'
448 Cm handle with CPS path state query:
449 $ref: 'components.yaml#/components/examples/cpsPathCmHandleStateQueryParameters'
450 Cm handle with data sync flag query:
451 $ref: 'components.yaml#/components/examples/cpsPathCmHandleDataSyncQueryParameters'
462 $ref: 'components.yaml#/components/responses/BadRequest'
464 $ref: 'components.yaml#/components/responses/Forbidden'
466 $ref: 'components.yaml#/components/responses/NotFound'
468 $ref: 'components.yaml#/components/responses/InternalServerError'
470 setDataSyncEnabledFlag:
474 summary: Set the Data Sync Enabled Flag
475 description: Set the data sync enabled flag to true or false for a specified Cm-Handle. This will in turn set the data sync state to UNSYNCHRONIZED and NONE_REQUESTED respectfully.
476 operationId: setDataSyncEnabledFlagForCmHandle
478 - $ref: 'components.yaml#/components/parameters/cmHandleInPath'
479 - $ref: 'components.yaml#/components/parameters/dataSyncEnabled'
482 $ref: 'components.yaml#/components/responses/Ok'
484 $ref: 'components.yaml#/components/responses/BadRequest'
486 $ref: 'components.yaml#/components/responses/Forbidden'
488 $ref: 'components.yaml#/components/responses/InternalServerError'
490 $ref: 'components.yaml#/components/responses/BadGateway'