tragait | 34a94b9 | 2021-03-30 12:02:27 +0100 | [diff] [blame] | 1 | # ============LICENSE_START======================================================= |
halil.cakal | 04280e2 | 2024-01-23 10:05:36 +0000 | [diff] [blame] | 2 | # Copyright (C) 2021-2024 Nordix Foundation |
lukegleeson | 15b93e7 | 2021-07-07 15:25:30 +0100 | [diff] [blame] | 3 | # Modifications Copyright (C) 2021 Pantheon.tech |
puthuparambil.aditya | d69742c | 2022-03-29 11:03:52 +0100 | [diff] [blame] | 4 | # Modifications Copyright (C) 2021-2022 Bell Canada |
tragait | 34a94b9 | 2021-03-30 12:02:27 +0100 | [diff] [blame] | 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 |
| 9 | # |
| 10 | # http://www.apache.org/licenses/LICENSE-2.0 |
lukegleeson | 15b93e7 | 2021-07-07 15:25:30 +0100 | [diff] [blame] | 11 | # |
tragait | 34a94b9 | 2021-03-30 12:02:27 +0100 | [diff] [blame] | 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. |
| 17 | # |
| 18 | # SPDX-License-Identifier: Apache-2.0 |
| 19 | # ============LICENSE_END========================================================= |
bmiklos | bbaf501 | 2022-08-25 18:28:16 +0200 | [diff] [blame] | 20 | |
bmiklos | 440dc8a | 2022-09-05 18:25:46 +0200 | [diff] [blame] | 21 | resourceDataForCmHandle: |
tragait | c328551 | 2021-08-16 15:12:36 +0100 | [diff] [blame] | 22 | get: |
| 23 | tags: |
| 24 | - network-cm-proxy |
bmiklos | bbaf501 | 2022-08-25 18:28:16 +0200 | [diff] [blame] | 25 | summary: Get resource data for cm handle |
| 26 | description: Get resource data for given cm handle |
| 27 | operationId: getResourceDataForCmHandle |
tragait | c328551 | 2021-08-16 15:12:36 +0100 | [diff] [blame] | 28 | parameters: |
bmiklos | bbaf501 | 2022-08-25 18:28:16 +0200 | [diff] [blame] | 29 | - $ref: 'components.yaml#/components/parameters/datastoreName' |
tragait | c328551 | 2021-08-16 15:12:36 +0100 | [diff] [blame] | 30 | - $ref: 'components.yaml#/components/parameters/cmHandleInPath' |
niamhcore | fd2e6dd | 2021-09-29 16:43:35 +0100 | [diff] [blame] | 31 | - $ref: 'components.yaml#/components/parameters/resourceIdentifierInQuery' |
tragait | abdff1b | 2021-10-06 11:04:18 +0100 | [diff] [blame] | 32 | - $ref: 'components.yaml#/components/parameters/optionsParamInQuery' |
sourabh_sourabh | 1f2e66e | 2022-02-16 21:53:41 +0530 | [diff] [blame] | 33 | - $ref: 'components.yaml#/components/parameters/topicParamInQuery' |
bmiklos | bbaf501 | 2022-08-25 18:28:16 +0200 | [diff] [blame] | 34 | - $ref: 'components.yaml#/components/parameters/includeDescendantsOptionInQuery' |
tragait | c328551 | 2021-08-16 15:12:36 +0100 | [diff] [blame] | 35 | responses: |
| 36 | 200: |
emaclee | 844cab3 | 2021-12-01 09:42:37 +0000 | [diff] [blame] | 37 | description: OK |
| 38 | content: |
| 39 | application/json: |
| 40 | schema: |
| 41 | type: object |
| 42 | examples: |
| 43 | dataSampleResponse: |
| 44 | $ref: 'components.yaml#/components/examples/dataSampleResponse' |
tragait | c328551 | 2021-08-16 15:12:36 +0100 | [diff] [blame] | 45 | 400: |
| 46 | $ref: 'components.yaml#/components/responses/BadRequest' |
| 47 | 401: |
| 48 | $ref: 'components.yaml#/components/responses/Unauthorized' |
| 49 | 403: |
| 50 | $ref: 'components.yaml#/components/responses/Forbidden' |
JosephKeenan | e0873dd | 2022-01-28 11:22:22 +0000 | [diff] [blame] | 51 | 500: |
| 52 | $ref: 'components.yaml#/components/responses/InternalServerError' |
mpriyank | 93afc1e | 2022-03-28 15:47:47 +0530 | [diff] [blame] | 53 | 502: |
| 54 | $ref: 'components.yaml#/components/responses/BadGateway' |
tragait | 888dcd4 | 2021-08-19 15:17:56 +0100 | [diff] [blame] | 55 | |
tragait | c584bf2 | 2021-08-20 15:45:58 +0100 | [diff] [blame] | 56 | post: |
| 57 | tags: |
| 58 | - network-cm-proxy |
| 59 | summary: create resource data from pass-through running for cm handle |
| 60 | description: create resource data from pass-through running for given cm handle |
| 61 | operationId: createResourceDataRunningForCmHandle |
| 62 | parameters: |
bmiklos | 440dc8a | 2022-09-05 18:25:46 +0200 | [diff] [blame] | 63 | - $ref: 'components.yaml#/components/parameters/datastoreName' |
tragait | c584bf2 | 2021-08-20 15:45:58 +0100 | [diff] [blame] | 64 | - $ref: 'components.yaml#/components/parameters/cmHandleInPath' |
niamhcore | fd2e6dd | 2021-09-29 16:43:35 +0100 | [diff] [blame] | 65 | - $ref: 'components.yaml#/components/parameters/resourceIdentifierInQuery' |
tragait | c584bf2 | 2021-08-20 15:45:58 +0100 | [diff] [blame] | 66 | - $ref: 'components.yaml#/components/parameters/contentParamInHeader' |
| 67 | requestBody: |
| 68 | required: true |
| 69 | content: |
| 70 | application/json: |
| 71 | schema: |
puthuparambil.aditya | d000733 | 2021-12-08 18:53:39 +0000 | [diff] [blame] | 72 | type: object |
emaclee | 844cab3 | 2021-12-01 09:42:37 +0000 | [diff] [blame] | 73 | examples: |
| 74 | dataSampleRequest: |
| 75 | $ref: 'components.yaml#/components/examples/dataSampleRequest' |
tragait | c584bf2 | 2021-08-20 15:45:58 +0100 | [diff] [blame] | 76 | application/yang-data+json: |
| 77 | schema: |
puthuparambil.aditya | d000733 | 2021-12-08 18:53:39 +0000 | [diff] [blame] | 78 | type: object |
| 79 | examples: |
| 80 | dataSampleRequest: |
| 81 | $ref: 'components.yaml#/components/examples/dataSampleRequest' |
tragait | c584bf2 | 2021-08-20 15:45:58 +0100 | [diff] [blame] | 82 | responses: |
| 83 | 201: |
| 84 | $ref: 'components.yaml#/components/responses/Created' |
| 85 | 400: |
| 86 | $ref: 'components.yaml#/components/responses/BadRequest' |
| 87 | 401: |
| 88 | $ref: 'components.yaml#/components/responses/Unauthorized' |
| 89 | 403: |
| 90 | $ref: 'components.yaml#/components/responses/Forbidden' |
JosephKeenan | e0873dd | 2022-01-28 11:22:22 +0000 | [diff] [blame] | 91 | 500: |
| 92 | $ref: 'components.yaml#/components/responses/InternalServerError' |
mpriyank | 93afc1e | 2022-03-28 15:47:47 +0530 | [diff] [blame] | 93 | 502: |
| 94 | $ref: 'components.yaml#/components/responses/BadGateway' |
niamhcore | c309f24 | 2021-09-07 10:27:18 +0100 | [diff] [blame] | 95 | |
niamhcore | 919e906 | 2021-11-02 14:08:16 +0000 | [diff] [blame] | 96 | put: |
| 97 | tags: |
| 98 | - network-cm-proxy |
| 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 |
| 102 | parameters: |
bmiklos | 440dc8a | 2022-09-05 18:25:46 +0200 | [diff] [blame] | 103 | - $ref: 'components.yaml#/components/parameters/datastoreName' |
niamhcore | 919e906 | 2021-11-02 14:08:16 +0000 | [diff] [blame] | 104 | - $ref: 'components.yaml#/components/parameters/cmHandleInPath' |
| 105 | - $ref: 'components.yaml#/components/parameters/resourceIdentifierInQuery' |
| 106 | - $ref: 'components.yaml#/components/parameters/contentParamInHeader' |
| 107 | requestBody: |
| 108 | required: true |
| 109 | content: |
| 110 | application/json: |
| 111 | schema: |
puthuparambil.aditya | d000733 | 2021-12-08 18:53:39 +0000 | [diff] [blame] | 112 | type: object |
emaclee | 844cab3 | 2021-12-01 09:42:37 +0000 | [diff] [blame] | 113 | examples: |
| 114 | dataSampleRequest: |
| 115 | $ref: 'components.yaml#/components/examples/dataSampleRequest' |
niamhcore | 919e906 | 2021-11-02 14:08:16 +0000 | [diff] [blame] | 116 | application/yang-data+json: |
| 117 | schema: |
puthuparambil.aditya | d000733 | 2021-12-08 18:53:39 +0000 | [diff] [blame] | 118 | type: object |
| 119 | examples: |
| 120 | dataSampleRequest: |
| 121 | $ref: 'components.yaml#/components/examples/dataSampleRequest' |
niamhcore | 919e906 | 2021-11-02 14:08:16 +0000 | [diff] [blame] | 122 | responses: |
| 123 | 200: |
| 124 | $ref: 'components.yaml#/components/responses/Ok' |
| 125 | 400: |
| 126 | $ref: 'components.yaml#/components/responses/BadRequest' |
| 127 | 401: |
| 128 | $ref: 'components.yaml#/components/responses/Unauthorized' |
| 129 | 403: |
| 130 | $ref: 'components.yaml#/components/responses/Forbidden' |
JosephKeenan | e0873dd | 2022-01-28 11:22:22 +0000 | [diff] [blame] | 131 | 500: |
| 132 | $ref: 'components.yaml#/components/responses/InternalServerError' |
mpriyank | 93afc1e | 2022-03-28 15:47:47 +0530 | [diff] [blame] | 133 | 502: |
| 134 | $ref: 'components.yaml#/components/responses/BadGateway' |
niamhcore | 919e906 | 2021-11-02 14:08:16 +0000 | [diff] [blame] | 135 | |
niamhcore | 4314e7b | 2021-11-24 10:53:51 +0000 | [diff] [blame] | 136 | patch: |
| 137 | tags: |
| 138 | - network-cm-proxy |
| 139 | summary: Patch resource data from pass-through running |
| 140 | description: Patch resource data from pass-through running for the given cm handle |
| 141 | operationId: patchResourceDataRunningForCmHandle |
| 142 | parameters: |
bmiklos | 440dc8a | 2022-09-05 18:25:46 +0200 | [diff] [blame] | 143 | - $ref: 'components.yaml#/components/parameters/datastoreName' |
niamhcore | 4314e7b | 2021-11-24 10:53:51 +0000 | [diff] [blame] | 144 | - $ref: 'components.yaml#/components/parameters/cmHandleInPath' |
| 145 | - $ref: 'components.yaml#/components/parameters/resourceIdentifierInQuery' |
| 146 | - $ref: 'components.yaml#/components/parameters/contentParamInHeader' |
| 147 | requestBody: |
| 148 | required: true |
| 149 | content: |
tragait | ecd7f5e | 2022-01-13 13:15:14 +0000 | [diff] [blame] | 150 | '*/*': |
niamhcore | 4314e7b | 2021-11-24 10:53:51 +0000 | [diff] [blame] | 151 | schema: |
| 152 | type: object |
puthuparambil.aditya | d000733 | 2021-12-08 18:53:39 +0000 | [diff] [blame] | 153 | examples: |
| 154 | dataSampleRequest: |
tragait | ecd7f5e | 2022-01-13 13:15:14 +0000 | [diff] [blame] | 155 | $ref: 'components.yaml#/components/examples/dataSamplePatchRequest' |
niamhcore | 4314e7b | 2021-11-24 10:53:51 +0000 | [diff] [blame] | 156 | responses: |
| 157 | 200: |
| 158 | $ref: 'components.yaml#/components/responses/Ok' |
| 159 | 400: |
| 160 | $ref: 'components.yaml#/components/responses/BadRequest' |
| 161 | 401: |
| 162 | $ref: 'components.yaml#/components/responses/Unauthorized' |
| 163 | 403: |
| 164 | $ref: 'components.yaml#/components/responses/Forbidden' |
JosephKeenan | e0873dd | 2022-01-28 11:22:22 +0000 | [diff] [blame] | 165 | 500: |
| 166 | $ref: 'components.yaml#/components/responses/InternalServerError' |
mpriyank | 93afc1e | 2022-03-28 15:47:47 +0530 | [diff] [blame] | 167 | 502: |
| 168 | $ref: 'components.yaml#/components/responses/BadGateway' |
niamhcore | 4314e7b | 2021-11-24 10:53:51 +0000 | [diff] [blame] | 169 | |
DylanB95EST | eeef2ae | 2021-11-30 15:07:35 +0000 | [diff] [blame] | 170 | delete: |
| 171 | tags: |
| 172 | - network-cm-proxy |
| 173 | summary: Delete resource data |
| 174 | description: Delete resource data from pass-through running for a given cm handle |
| 175 | operationId: deleteResourceDataRunningForCmHandle |
| 176 | parameters: |
bmiklos | 440dc8a | 2022-09-05 18:25:46 +0200 | [diff] [blame] | 177 | - $ref: 'components.yaml#/components/parameters/datastoreName' |
DylanB95EST | eeef2ae | 2021-11-30 15:07:35 +0000 | [diff] [blame] | 178 | - $ref: 'components.yaml#/components/parameters/cmHandleInPath' |
| 179 | - $ref: 'components.yaml#/components/parameters/resourceIdentifierInQuery' |
| 180 | - $ref: 'components.yaml#/components/parameters/contentParamInHeader' |
DylanB95EST | eeef2ae | 2021-11-30 15:07:35 +0000 | [diff] [blame] | 181 | responses: |
| 182 | 204: |
| 183 | $ref: 'components.yaml#/components/responses/NoContent' |
| 184 | 400: |
| 185 | $ref: 'components.yaml#/components/responses/BadRequest' |
| 186 | 401: |
| 187 | $ref: 'components.yaml#/components/responses/Unauthorized' |
| 188 | 403: |
| 189 | $ref: 'components.yaml#/components/responses/Forbidden' |
| 190 | 404: |
| 191 | $ref: 'components.yaml#/components/responses/NotFound' |
JosephKeenan | e0873dd | 2022-01-28 11:22:22 +0000 | [diff] [blame] | 192 | 500: |
| 193 | $ref: 'components.yaml#/components/responses/InternalServerError' |
mpriyank | 93afc1e | 2022-03-28 15:47:47 +0530 | [diff] [blame] | 194 | 502: |
| 195 | $ref: 'components.yaml#/components/responses/BadGateway' |
DylanB95EST | eeef2ae | 2021-11-30 15:07:35 +0000 | [diff] [blame] | 196 | |
raviteja.karumuri | 977f7c3 | 2023-06-20 19:10:21 +0100 | [diff] [blame] | 197 | dataOperationForCmHandle: |
sourabh_sourabh | 4031d43 | 2023-03-27 14:36:20 +0100 | [diff] [blame] | 198 | post: |
| 199 | tags: |
| 200 | - network-cm-proxy |
raviteja.karumuri | 977f7c3 | 2023-06-20 19:10:21 +0100 | [diff] [blame] | 201 | summary: Execute a data operation for group of cm handle ids |
sourabh_sourabh | 4031d43 | 2023-03-27 14:36:20 +0100 | [diff] [blame] | 202 | 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. |
raviteja.karumuri | 977f7c3 | 2023-06-20 19:10:21 +0100 | [diff] [blame] | 203 | operationId: executeDataOperationForCmHandles |
sourabh_sourabh | 4031d43 | 2023-03-27 14:36:20 +0100 | [diff] [blame] | 204 | parameters: |
sourabh_sourabh | 4031d43 | 2023-03-27 14:36:20 +0100 | [diff] [blame] | 205 | - $ref: 'components.yaml#/components/parameters/requiredTopicParamInQuery' |
sourabh_sourabh | 4031d43 | 2023-03-27 14:36:20 +0100 | [diff] [blame] | 206 | requestBody: |
| 207 | required: true |
| 208 | content: |
| 209 | application/json: |
| 210 | schema: |
raviteja.karumuri | 977f7c3 | 2023-06-20 19:10:21 +0100 | [diff] [blame] | 211 | $ref: 'components.yaml#/components/schemas/DataOperationRequest' |
sourabh_sourabh | 4031d43 | 2023-03-27 14:36:20 +0100 | [diff] [blame] | 212 | responses: |
| 213 | 200: |
| 214 | description: OK |
| 215 | content: |
| 216 | application/json: |
| 217 | schema: |
| 218 | type: object |
| 219 | 400: |
| 220 | $ref: 'components.yaml#/components/responses/BadRequest' |
| 221 | 401: |
| 222 | $ref: 'components.yaml#/components/responses/Unauthorized' |
| 223 | 403: |
| 224 | $ref: 'components.yaml#/components/responses/Forbidden' |
| 225 | 500: |
| 226 | $ref: 'components.yaml#/components/responses/InternalServerError' |
| 227 | 502: |
| 228 | $ref: 'components.yaml#/components/responses/BadGateway' |
| 229 | |
lukegleeson | 20e7a73 | 2022-10-20 10:14:00 +0100 | [diff] [blame] | 230 | queryResourceDataForCmHandle: |
| 231 | get: |
| 232 | tags: |
| 233 | - network-cm-proxy |
| 234 | summary: Query resource data for a given cm handle |
| 235 | description: Query resource data for a given cm handle |
| 236 | operationId: queryResourceDataForCmHandle |
| 237 | parameters: |
| 238 | - $ref: 'components.yaml#/components/parameters/datastoreName' |
| 239 | - $ref: 'components.yaml#/components/parameters/cmHandleInPath' |
| 240 | - $ref: 'components.yaml#/components/parameters/cpsPathInQuery' |
| 241 | - $ref: 'components.yaml#/components/parameters/optionsParamInQuery' |
| 242 | - $ref: 'components.yaml#/components/parameters/topicParamInQuery' |
| 243 | - $ref: 'components.yaml#/components/parameters/includeDescendantsOptionInQuery' |
| 244 | responses: |
| 245 | 200: |
| 246 | description: OK |
| 247 | content: |
| 248 | application/json: |
| 249 | schema: |
| 250 | type: object |
| 251 | examples: |
| 252 | dataSampleResponse: |
| 253 | $ref: 'components.yaml#/components/examples/dataSampleResponse' |
| 254 | 400: |
| 255 | $ref: 'components.yaml#/components/responses/BadRequest' |
| 256 | 401: |
| 257 | $ref: 'components.yaml#/components/responses/Unauthorized' |
| 258 | 403: |
| 259 | $ref: 'components.yaml#/components/responses/Forbidden' |
| 260 | 500: |
| 261 | $ref: 'components.yaml#/components/responses/InternalServerError' |
| 262 | 502: |
| 263 | $ref: 'components.yaml#/components/responses/BadGateway' |
| 264 | |
niamhcore | c309f24 | 2021-09-07 10:27:18 +0100 | [diff] [blame] | 265 | fetchModuleReferencesByCmHandle: |
| 266 | get: |
| 267 | description: fetch all module references (name and revision) for a given cm handle |
| 268 | tags: |
| 269 | - network-cm-proxy |
| 270 | summary: Fetch all module references (name and revision) for a given cm handle |
| 271 | operationId: getModuleReferencesByCmHandle |
| 272 | parameters: |
| 273 | - $ref: 'components.yaml#/components/parameters/cmHandleInPath' |
| 274 | responses: |
| 275 | 200: |
| 276 | description: OK |
| 277 | content: |
| 278 | application/json: |
| 279 | schema: |
puthuparambil.aditya | d000733 | 2021-12-08 18:53:39 +0000 | [diff] [blame] | 280 | type: array |
| 281 | items: |
lukegleeson | d5bda88 | 2022-03-02 14:32:47 +0000 | [diff] [blame] | 282 | $ref: 'components.yaml#/components/schemas/RestModuleReference' |
niamhcore | c309f24 | 2021-09-07 10:27:18 +0100 | [diff] [blame] | 283 | 400: |
| 284 | $ref: 'components.yaml#/components/responses/BadRequest' |
| 285 | 401: |
| 286 | $ref: 'components.yaml#/components/responses/Unauthorized' |
| 287 | 403: |
| 288 | $ref: 'components.yaml#/components/responses/Forbidden' |
JosephKeenan | e0873dd | 2022-01-28 11:22:22 +0000 | [diff] [blame] | 289 | 500: |
| 290 | $ref: 'components.yaml#/components/responses/InternalServerError' |
niamhcore | 66017b4 | 2021-10-19 11:07:02 +0100 | [diff] [blame] | 291 | |
halil.cakal | 04280e2 | 2024-01-23 10:05:36 +0000 | [diff] [blame] | 292 | getModuleDefinitions: |
emaclee | e1f73e2 | 2022-06-17 17:42:56 +0100 | [diff] [blame] | 293 | get: |
emaclee | e1f73e2 | 2022-06-17 17:42:56 +0100 | [diff] [blame] | 294 | tags: |
| 295 | - network-cm-proxy |
halil.cakal | 04280e2 | 2024-01-23 10:05:36 +0000 | [diff] [blame] | 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 |
emaclee | e1f73e2 | 2022-06-17 17:42:56 +0100 | [diff] [blame] | 299 | parameters: |
| 300 | - $ref: 'components.yaml#/components/parameters/cmHandleInPath' |
halil.cakal | 04280e2 | 2024-01-23 10:05:36 +0000 | [diff] [blame] | 301 | - $ref: 'components.yaml#/components/parameters/moduleNameInQuery' |
| 302 | - $ref: 'components.yaml#/components/parameters/revisionInQuery' |
emaclee | e1f73e2 | 2022-06-17 17:42:56 +0100 | [diff] [blame] | 303 | responses: |
| 304 | 200: |
| 305 | description: OK |
| 306 | content: |
| 307 | application/json: |
| 308 | schema: |
| 309 | type: array |
| 310 | items: |
| 311 | $ref: 'components.yaml#/components/schemas/RestModuleDefinition' |
| 312 | 401: |
| 313 | $ref: 'components.yaml#/components/responses/Unauthorized' |
| 314 | 403: |
| 315 | $ref: 'components.yaml#/components/responses/Forbidden' |
| 316 | 500: |
| 317 | $ref: 'components.yaml#/components/responses/InternalServerError' |
| 318 | |
kissand | e9ed581 | 2022-05-12 15:59:18 +0200 | [diff] [blame] | 319 | searchCmHandles: |
niamhcore | 66017b4 | 2021-10-19 11:07:02 +0100 | [diff] [blame] | 320 | post: |
lukegleeson | de29474 | 2022-07-25 11:00:11 +0100 | [diff] [blame] | 321 | 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. |
niamhcore | 66017b4 | 2021-10-19 11:07:02 +0100 | [diff] [blame] | 322 | tags: |
| 323 | - network-cm-proxy |
| 324 | summary: Execute cm handle search using the available conditions |
kissand | e9ed581 | 2022-05-12 15:59:18 +0200 | [diff] [blame] | 325 | operationId: searchCmHandles |
niamhcore | 66017b4 | 2021-10-19 11:07:02 +0100 | [diff] [blame] | 326 | requestBody: |
| 327 | required: true |
| 328 | content: |
| 329 | application/json: |
| 330 | schema: |
kissand | e9ed581 | 2022-05-12 15:59:18 +0200 | [diff] [blame] | 331 | $ref: 'components.yaml#/components/schemas/CmHandleQueryParameters' |
lukegleeson | 82a550f | 2022-07-11 10:55:53 +0100 | [diff] [blame] | 332 | examples: |
| 333 | Cm handle properties query: |
| 334 | $ref: 'components.yaml#/components/examples/pubPropCmHandleQueryParameters' |
| 335 | Cm handle modules query: |
| 336 | $ref: 'components.yaml#/components/examples/modulesCmHandleQueryParameters' |
| 337 | All cm handle query parameters: |
| 338 | $ref: 'components.yaml#/components/examples/allCmHandleQueryParameters' |
| 339 | Cm handle with CPS path state query: |
| 340 | $ref: 'components.yaml#/components/examples/cpsPathCmHandleStateQueryParameters' |
| 341 | Cm handle with data sync flag query: |
| 342 | $ref: 'components.yaml#/components/examples/cpsPathCmHandleDataSyncQueryParameters' |
niamhcore | 66017b4 | 2021-10-19 11:07:02 +0100 | [diff] [blame] | 343 | responses: |
| 344 | 200: |
| 345 | description: OK |
| 346 | content: |
| 347 | application/json: |
| 348 | schema: |
kissand | e9ed581 | 2022-05-12 15:59:18 +0200 | [diff] [blame] | 349 | type: array |
| 350 | items: |
| 351 | $ref: 'components.yaml#/components/schemas/RestOutputCmHandle' |
niamhcore | 66017b4 | 2021-10-19 11:07:02 +0100 | [diff] [blame] | 352 | 400: |
| 353 | $ref: 'components.yaml#/components/responses/BadRequest' |
| 354 | 401: |
| 355 | $ref: 'components.yaml#/components/responses/Unauthorized' |
| 356 | 403: |
ToineSiebelink | 18a79eb | 2021-12-23 12:36:40 +0000 | [diff] [blame] | 357 | $ref: 'components.yaml#/components/responses/Forbidden' |
JosephKeenan | e0873dd | 2022-01-28 11:22:22 +0000 | [diff] [blame] | 358 | 500: |
| 359 | $ref: 'components.yaml#/components/responses/InternalServerError' |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 360 | |
| 361 | retrieveCmHandleDetailsById: |
| 362 | get: |
| 363 | description: Retrieve CM handle details and properties by cm handle id |
| 364 | tags: |
| 365 | - network-cm-proxy |
| 366 | summary: Retrieve CM handle details |
| 367 | operationId: retrieveCmHandleDetailsById |
| 368 | parameters: |
| 369 | - $ref: 'components.yaml#/components/parameters/cmHandleInPath' |
| 370 | responses: |
| 371 | 200: |
| 372 | description: OK |
| 373 | content: |
| 374 | application/json: |
| 375 | schema: |
| 376 | $ref: 'components.yaml#/components/schemas/RestOutputCmHandle' |
lukegleeson | 78062a1 | 2022-06-02 10:56:43 +0100 | [diff] [blame] | 377 | 400: |
| 378 | $ref: 'components.yaml#/components/responses/BadRequest' |
| 379 | 401: |
| 380 | $ref: 'components.yaml#/components/responses/Unauthorized' |
JosephKeenan | deac477 | 2022-03-28 12:26:07 +0100 | [diff] [blame] | 381 | 404: |
| 382 | $ref: 'components.yaml#/components/responses/NotFound' |
| 383 | 500: |
| 384 | $ref: 'components.yaml#/components/responses/InternalServerError' |
| 385 | |
lukegleeson | bed18fd | 2022-05-06 12:02:42 +0100 | [diff] [blame] | 386 | getCmHandlePropertiesById: |
| 387 | get: |
| 388 | description: Get CM handle properties by cm handle id |
| 389 | tags: |
| 390 | - network-cm-proxy |
| 391 | summary: Get CM handle properties |
| 392 | operationId: getCmHandlePublicPropertiesByCmHandleId |
| 393 | parameters: |
| 394 | - $ref: 'components.yaml#/components/parameters/cmHandleInPath' |
| 395 | responses: |
| 396 | 200: |
| 397 | description: OK |
| 398 | content: |
| 399 | application/json: |
| 400 | schema: |
| 401 | $ref: 'components.yaml#/components/schemas/RestOutputCmHandlePublicProperties' |
lukegleeson | 78062a1 | 2022-06-02 10:56:43 +0100 | [diff] [blame] | 402 | 400: |
| 403 | $ref: 'components.yaml#/components/responses/BadRequest' |
| 404 | 401: |
| 405 | $ref: 'components.yaml#/components/responses/Unauthorized' |
| 406 | 404: |
| 407 | $ref: 'components.yaml#/components/responses/NotFound' |
| 408 | 500: |
| 409 | $ref: 'components.yaml#/components/responses/InternalServerError' |
| 410 | |
| 411 | getCmHandleStateById: |
| 412 | get: |
| 413 | description: Get CM handle state by cm handle id |
| 414 | tags: |
| 415 | - network-cm-proxy |
| 416 | summary: Get CM handle state |
| 417 | operationId: getCmHandleStateByCmHandleId |
| 418 | parameters: |
| 419 | - $ref: 'components.yaml#/components/parameters/cmHandleInPath' |
| 420 | responses: |
| 421 | 200: |
| 422 | description: OK |
| 423 | content: |
| 424 | application/json: |
| 425 | schema: |
| 426 | $ref: 'components.yaml#/components/schemas/RestOutputCmHandleCompositeState' |
| 427 | 400: |
| 428 | $ref: 'components.yaml#/components/responses/BadRequest' |
| 429 | 401: |
| 430 | $ref: 'components.yaml#/components/responses/Unauthorized' |
lukegleeson | bed18fd | 2022-05-06 12:02:42 +0100 | [diff] [blame] | 431 | 404: |
| 432 | $ref: 'components.yaml#/components/responses/NotFound' |
| 433 | 500: |
| 434 | $ref: 'components.yaml#/components/responses/InternalServerError' |
| 435 | |
kissand | e9ed581 | 2022-05-12 15:59:18 +0200 | [diff] [blame] | 436 | searchCmHandleIds: |
JosephKeenan | deac477 | 2022-03-28 12:26:07 +0100 | [diff] [blame] | 437 | post: |
lukegleeson | de29474 | 2022-07-25 11:00:11 +0100 | [diff] [blame] | 438 | description: Execute cm handle query search and return a list of cm handle ids. 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. |
JosephKeenan | deac477 | 2022-03-28 12:26:07 +0100 | [diff] [blame] | 439 | tags: |
| 440 | - network-cm-proxy |
| 441 | summary: Execute cm handle query upon a given set of query parameters |
kissand | e9ed581 | 2022-05-12 15:59:18 +0200 | [diff] [blame] | 442 | operationId: searchCmHandleIds |
JosephKeenan | deac477 | 2022-03-28 12:26:07 +0100 | [diff] [blame] | 443 | requestBody: |
| 444 | required: true |
| 445 | content: |
| 446 | application/json: |
| 447 | schema: |
kissand | e9ed581 | 2022-05-12 15:59:18 +0200 | [diff] [blame] | 448 | $ref: 'components.yaml#/components/schemas/CmHandleQueryParameters' |
lukegleeson | 82a550f | 2022-07-11 10:55:53 +0100 | [diff] [blame] | 449 | examples: |
| 450 | Cm handle properties query: |
| 451 | $ref: 'components.yaml#/components/examples/pubPropCmHandleQueryParameters' |
| 452 | Cm handle modules query: |
| 453 | $ref: 'components.yaml#/components/examples/modulesCmHandleQueryParameters' |
| 454 | All cm handle query parameters: |
| 455 | $ref: 'components.yaml#/components/examples/allCmHandleQueryParameters' |
| 456 | Cm handle with CPS path state query: |
| 457 | $ref: 'components.yaml#/components/examples/cpsPathCmHandleStateQueryParameters' |
| 458 | Cm handle with data sync flag query: |
| 459 | $ref: 'components.yaml#/components/examples/cpsPathCmHandleDataSyncQueryParameters' |
JosephKeenan | deac477 | 2022-03-28 12:26:07 +0100 | [diff] [blame] | 460 | responses: |
| 461 | 200: |
| 462 | description: OK |
| 463 | content: |
| 464 | application/json: |
| 465 | schema: |
| 466 | type: array |
| 467 | items: |
| 468 | type: string |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 469 | 400: |
| 470 | $ref: 'components.yaml#/components/responses/BadRequest' |
| 471 | 401: |
| 472 | $ref: 'components.yaml#/components/responses/Unauthorized' |
| 473 | 403: |
| 474 | $ref: 'components.yaml#/components/responses/Forbidden' |
| 475 | 404: |
| 476 | $ref: 'components.yaml#/components/responses/NotFound' |
| 477 | 500: |
DylanB95EST | 6ddbe4a | 2022-07-19 11:36:10 +0100 | [diff] [blame] | 478 | $ref: 'components.yaml#/components/responses/InternalServerError' |
| 479 | |
| 480 | setDataSyncEnabledFlag: |
| 481 | put: |
| 482 | tags: |
| 483 | - network-cm-proxy |
| 484 | summary: Set the Data Sync Enabled Flag |
| 485 | 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. |
| 486 | operationId: setDataSyncEnabledFlagForCmHandle |
| 487 | parameters: |
| 488 | - $ref: 'components.yaml#/components/parameters/cmHandleInPath' |
| 489 | - $ref: 'components.yaml#/components/parameters/dataSyncEnabled' |
| 490 | responses: |
| 491 | 200: |
| 492 | $ref: 'components.yaml#/components/responses/Ok' |
| 493 | 400: |
| 494 | $ref: 'components.yaml#/components/responses/BadRequest' |
| 495 | 401: |
| 496 | $ref: 'components.yaml#/components/responses/Unauthorized' |
| 497 | 403: |
| 498 | $ref: 'components.yaml#/components/responses/Forbidden' |
| 499 | 500: |
| 500 | $ref: 'components.yaml#/components/responses/InternalServerError' |
| 501 | 502: |
| 502 | $ref: 'components.yaml#/components/responses/BadGateway' |