blob: 0cb1cdffb1818a319073a6603334f2a87d408aac [file] [log] [blame]
tragait34a94b92021-03-30 12:02:27 +01001# ============LICENSE_START=======================================================
halil.cakal04280e22024-01-23 10:05:36 +00002# Copyright (C) 2021-2024 Nordix Foundation
lukegleeson15b93e72021-07-07 15:25:30 +01003# Modifications Copyright (C) 2021 Pantheon.tech
puthuparambil.adityad69742c2022-03-29 11:03:52 +01004# Modifications Copyright (C) 2021-2022 Bell Canada
tragait34a94b92021-03-30 12:02:27 +01005# ================================================================================
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
lukegleeson15b93e72021-07-07 15:25:30 +010011#
tragait34a94b92021-03-30 12:02:27 +010012# 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=========================================================
bmiklosbbaf5012022-08-25 18:28:16 +020020
bmiklos440dc8a2022-09-05 18:25:46 +020021resourceDataForCmHandle:
tragaitc3285512021-08-16 15:12:36 +010022 get:
23 tags:
24 - network-cm-proxy
bmiklosbbaf5012022-08-25 18:28:16 +020025 summary: Get resource data for cm handle
26 description: Get resource data for given cm handle
27 operationId: getResourceDataForCmHandle
tragaitc3285512021-08-16 15:12:36 +010028 parameters:
bmiklosbbaf5012022-08-25 18:28:16 +020029 - $ref: 'components.yaml#/components/parameters/datastoreName'
tragaitc3285512021-08-16 15:12:36 +010030 - $ref: 'components.yaml#/components/parameters/cmHandleInPath'
niamhcorefd2e6dd2021-09-29 16:43:35 +010031 - $ref: 'components.yaml#/components/parameters/resourceIdentifierInQuery'
tragaitabdff1b2021-10-06 11:04:18 +010032 - $ref: 'components.yaml#/components/parameters/optionsParamInQuery'
sourabh_sourabh1f2e66e2022-02-16 21:53:41 +053033 - $ref: 'components.yaml#/components/parameters/topicParamInQuery'
bmiklosbbaf5012022-08-25 18:28:16 +020034 - $ref: 'components.yaml#/components/parameters/includeDescendantsOptionInQuery'
danielhanrahanc5222a72024-02-28 16:05:07 +000035 - $ref: 'components.yaml#/components/parameters/authorizationParamInHeader'
tragaitc3285512021-08-16 15:12:36 +010036 responses:
37 200:
emaclee844cab32021-12-01 09:42:37 +000038 description: OK
39 content:
40 application/json:
41 schema:
42 type: object
43 examples:
44 dataSampleResponse:
45 $ref: 'components.yaml#/components/examples/dataSampleResponse'
tragaitc3285512021-08-16 15:12:36 +010046 400:
47 $ref: 'components.yaml#/components/responses/BadRequest'
tragaitc3285512021-08-16 15:12:36 +010048 403:
49 $ref: 'components.yaml#/components/responses/Forbidden'
JosephKeenane0873dd2022-01-28 11:22:22 +000050 500:
51 $ref: 'components.yaml#/components/responses/InternalServerError'
mpriyank93afc1e2022-03-28 15:47:47 +053052 502:
53 $ref: 'components.yaml#/components/responses/BadGateway'
tragait888dcd42021-08-19 15:17:56 +010054
tragaitc584bf22021-08-20 15:45:58 +010055 post:
56 tags:
57 - network-cm-proxy
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
61 parameters:
bmiklos440dc8a2022-09-05 18:25:46 +020062 - $ref: 'components.yaml#/components/parameters/datastoreName'
tragaitc584bf22021-08-20 15:45:58 +010063 - $ref: 'components.yaml#/components/parameters/cmHandleInPath'
niamhcorefd2e6dd2021-09-29 16:43:35 +010064 - $ref: 'components.yaml#/components/parameters/resourceIdentifierInQuery'
tragaitc584bf22021-08-20 15:45:58 +010065 - $ref: 'components.yaml#/components/parameters/contentParamInHeader'
danielhanrahanc5222a72024-02-28 16:05:07 +000066 - $ref: 'components.yaml#/components/parameters/authorizationParamInHeader'
tragaitc584bf22021-08-20 15:45:58 +010067 requestBody:
68 required: true
69 content:
70 application/json:
71 schema:
puthuparambil.adityad0007332021-12-08 18:53:39 +000072 type: object
emaclee844cab32021-12-01 09:42:37 +000073 examples:
74 dataSampleRequest:
75 $ref: 'components.yaml#/components/examples/dataSampleRequest'
tragaitc584bf22021-08-20 15:45:58 +010076 application/yang-data+json:
77 schema:
puthuparambil.adityad0007332021-12-08 18:53:39 +000078 type: object
79 examples:
80 dataSampleRequest:
81 $ref: 'components.yaml#/components/examples/dataSampleRequest'
tragaitc584bf22021-08-20 15:45:58 +010082 responses:
83 201:
84 $ref: 'components.yaml#/components/responses/Created'
85 400:
86 $ref: 'components.yaml#/components/responses/BadRequest'
tragaitc584bf22021-08-20 15:45:58 +010087 403:
88 $ref: 'components.yaml#/components/responses/Forbidden'
JosephKeenane0873dd2022-01-28 11:22:22 +000089 500:
90 $ref: 'components.yaml#/components/responses/InternalServerError'
mpriyank93afc1e2022-03-28 15:47:47 +053091 502:
92 $ref: 'components.yaml#/components/responses/BadGateway'
niamhcorec309f242021-09-07 10:27:18 +010093
niamhcore919e9062021-11-02 14:08:16 +000094 put:
95 tags:
96 - network-cm-proxy
97 summary: Update resource data from pass-through running for a cm handle
98 description: Update resource data from pass-through running for the given cm handle
99 operationId: updateResourceDataRunningForCmHandle
100 parameters:
bmiklos440dc8a2022-09-05 18:25:46 +0200101 - $ref: 'components.yaml#/components/parameters/datastoreName'
niamhcore919e9062021-11-02 14:08:16 +0000102 - $ref: 'components.yaml#/components/parameters/cmHandleInPath'
103 - $ref: 'components.yaml#/components/parameters/resourceIdentifierInQuery'
104 - $ref: 'components.yaml#/components/parameters/contentParamInHeader'
danielhanrahanc5222a72024-02-28 16:05:07 +0000105 - $ref: 'components.yaml#/components/parameters/authorizationParamInHeader'
niamhcore919e9062021-11-02 14:08:16 +0000106 requestBody:
107 required: true
108 content:
109 application/json:
110 schema:
puthuparambil.adityad0007332021-12-08 18:53:39 +0000111 type: object
emaclee844cab32021-12-01 09:42:37 +0000112 examples:
113 dataSampleRequest:
114 $ref: 'components.yaml#/components/examples/dataSampleRequest'
niamhcore919e9062021-11-02 14:08:16 +0000115 application/yang-data+json:
116 schema:
puthuparambil.adityad0007332021-12-08 18:53:39 +0000117 type: object
118 examples:
119 dataSampleRequest:
120 $ref: 'components.yaml#/components/examples/dataSampleRequest'
niamhcore919e9062021-11-02 14:08:16 +0000121 responses:
122 200:
123 $ref: 'components.yaml#/components/responses/Ok'
124 400:
125 $ref: 'components.yaml#/components/responses/BadRequest'
niamhcore919e9062021-11-02 14:08:16 +0000126 403:
127 $ref: 'components.yaml#/components/responses/Forbidden'
JosephKeenane0873dd2022-01-28 11:22:22 +0000128 500:
129 $ref: 'components.yaml#/components/responses/InternalServerError'
mpriyank93afc1e2022-03-28 15:47:47 +0530130 502:
131 $ref: 'components.yaml#/components/responses/BadGateway'
niamhcore919e9062021-11-02 14:08:16 +0000132
niamhcore4314e7b2021-11-24 10:53:51 +0000133 patch:
134 tags:
135 - network-cm-proxy
136 summary: Patch resource data from pass-through running
137 description: Patch resource data from pass-through running for the given cm handle
138 operationId: patchResourceDataRunningForCmHandle
139 parameters:
bmiklos440dc8a2022-09-05 18:25:46 +0200140 - $ref: 'components.yaml#/components/parameters/datastoreName'
niamhcore4314e7b2021-11-24 10:53:51 +0000141 - $ref: 'components.yaml#/components/parameters/cmHandleInPath'
142 - $ref: 'components.yaml#/components/parameters/resourceIdentifierInQuery'
143 - $ref: 'components.yaml#/components/parameters/contentParamInHeader'
danielhanrahanc5222a72024-02-28 16:05:07 +0000144 - $ref: 'components.yaml#/components/parameters/authorizationParamInHeader'
niamhcore4314e7b2021-11-24 10:53:51 +0000145 requestBody:
146 required: true
147 content:
tragaitecd7f5e2022-01-13 13:15:14 +0000148 '*/*':
niamhcore4314e7b2021-11-24 10:53:51 +0000149 schema:
150 type: object
puthuparambil.adityad0007332021-12-08 18:53:39 +0000151 examples:
152 dataSampleRequest:
tragaitecd7f5e2022-01-13 13:15:14 +0000153 $ref: 'components.yaml#/components/examples/dataSamplePatchRequest'
niamhcore4314e7b2021-11-24 10:53:51 +0000154 responses:
155 200:
156 $ref: 'components.yaml#/components/responses/Ok'
157 400:
158 $ref: 'components.yaml#/components/responses/BadRequest'
niamhcore4314e7b2021-11-24 10:53:51 +0000159 403:
160 $ref: 'components.yaml#/components/responses/Forbidden'
JosephKeenane0873dd2022-01-28 11:22:22 +0000161 500:
162 $ref: 'components.yaml#/components/responses/InternalServerError'
mpriyank93afc1e2022-03-28 15:47:47 +0530163 502:
164 $ref: 'components.yaml#/components/responses/BadGateway'
niamhcore4314e7b2021-11-24 10:53:51 +0000165
DylanB95ESTeeef2ae2021-11-30 15:07:35 +0000166 delete:
167 tags:
168 - network-cm-proxy
169 summary: Delete resource data
170 description: Delete resource data from pass-through running for a given cm handle
171 operationId: deleteResourceDataRunningForCmHandle
172 parameters:
bmiklos440dc8a2022-09-05 18:25:46 +0200173 - $ref: 'components.yaml#/components/parameters/datastoreName'
DylanB95ESTeeef2ae2021-11-30 15:07:35 +0000174 - $ref: 'components.yaml#/components/parameters/cmHandleInPath'
175 - $ref: 'components.yaml#/components/parameters/resourceIdentifierInQuery'
176 - $ref: 'components.yaml#/components/parameters/contentParamInHeader'
danielhanrahanc5222a72024-02-28 16:05:07 +0000177 - $ref: 'components.yaml#/components/parameters/authorizationParamInHeader'
DylanB95ESTeeef2ae2021-11-30 15:07:35 +0000178 responses:
179 204:
180 $ref: 'components.yaml#/components/responses/NoContent'
181 400:
182 $ref: 'components.yaml#/components/responses/BadRequest'
DylanB95ESTeeef2ae2021-11-30 15:07:35 +0000183 403:
184 $ref: 'components.yaml#/components/responses/Forbidden'
185 404:
186 $ref: 'components.yaml#/components/responses/NotFound'
JosephKeenane0873dd2022-01-28 11:22:22 +0000187 500:
188 $ref: 'components.yaml#/components/responses/InternalServerError'
mpriyank93afc1e2022-03-28 15:47:47 +0530189 502:
190 $ref: 'components.yaml#/components/responses/BadGateway'
DylanB95ESTeeef2ae2021-11-30 15:07:35 +0000191
raviteja.karumuri977f7c32023-06-20 19:10:21 +0100192dataOperationForCmHandle:
sourabh_sourabh4031d432023-03-27 14:36:20 +0100193 post:
194 tags:
195 - network-cm-proxy
raviteja.karumuri977f7c32023-06-20 19:10:21 +0100196 summary: Execute a data operation for group of cm handle ids
sourabh_sourabh4031d432023-03-27 14:36:20 +0100197 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.karumuri977f7c32023-06-20 19:10:21 +0100198 operationId: executeDataOperationForCmHandles
sourabh_sourabh4031d432023-03-27 14:36:20 +0100199 parameters:
sourabh_sourabh4031d432023-03-27 14:36:20 +0100200 - $ref: 'components.yaml#/components/parameters/requiredTopicParamInQuery'
danielhanrahanc5222a72024-02-28 16:05:07 +0000201 - $ref: 'components.yaml#/components/parameters/authorizationParamInHeader'
sourabh_sourabh4031d432023-03-27 14:36:20 +0100202 requestBody:
203 required: true
204 content:
205 application/json:
206 schema:
raviteja.karumuri977f7c32023-06-20 19:10:21 +0100207 $ref: 'components.yaml#/components/schemas/DataOperationRequest'
sourabh_sourabh4031d432023-03-27 14:36:20 +0100208 responses:
209 200:
210 description: OK
211 content:
212 application/json:
213 schema:
214 type: object
215 400:
216 $ref: 'components.yaml#/components/responses/BadRequest'
sourabh_sourabh4031d432023-03-27 14:36:20 +0100217 403:
218 $ref: 'components.yaml#/components/responses/Forbidden'
219 500:
220 $ref: 'components.yaml#/components/responses/InternalServerError'
221 502:
222 $ref: 'components.yaml#/components/responses/BadGateway'
223
lukegleeson20e7a732022-10-20 10:14:00 +0100224queryResourceDataForCmHandle:
225 get:
226 tags:
227 - network-cm-proxy
228 summary: Query resource data for a given cm handle
229 description: Query resource data for a given cm handle
230 operationId: queryResourceDataForCmHandle
231 parameters:
232 - $ref: 'components.yaml#/components/parameters/datastoreName'
233 - $ref: 'components.yaml#/components/parameters/cmHandleInPath'
234 - $ref: 'components.yaml#/components/parameters/cpsPathInQuery'
235 - $ref: 'components.yaml#/components/parameters/optionsParamInQuery'
236 - $ref: 'components.yaml#/components/parameters/topicParamInQuery'
237 - $ref: 'components.yaml#/components/parameters/includeDescendantsOptionInQuery'
238 responses:
239 200:
240 description: OK
241 content:
242 application/json:
243 schema:
244 type: object
245 examples:
246 dataSampleResponse:
247 $ref: 'components.yaml#/components/examples/dataSampleResponse'
248 400:
249 $ref: 'components.yaml#/components/responses/BadRequest'
lukegleeson20e7a732022-10-20 10:14:00 +0100250 403:
251 $ref: 'components.yaml#/components/responses/Forbidden'
252 500:
253 $ref: 'components.yaml#/components/responses/InternalServerError'
254 502:
255 $ref: 'components.yaml#/components/responses/BadGateway'
256
niamhcorec309f242021-09-07 10:27:18 +0100257fetchModuleReferencesByCmHandle:
258 get:
259 description: fetch all module references (name and revision) for a given cm handle
260 tags:
261 - network-cm-proxy
262 summary: Fetch all module references (name and revision) for a given cm handle
263 operationId: getModuleReferencesByCmHandle
264 parameters:
265 - $ref: 'components.yaml#/components/parameters/cmHandleInPath'
266 responses:
267 200:
268 description: OK
269 content:
270 application/json:
271 schema:
puthuparambil.adityad0007332021-12-08 18:53:39 +0000272 type: array
273 items:
lukegleesond5bda882022-03-02 14:32:47 +0000274 $ref: 'components.yaml#/components/schemas/RestModuleReference'
niamhcorec309f242021-09-07 10:27:18 +0100275 400:
276 $ref: 'components.yaml#/components/responses/BadRequest'
niamhcorec309f242021-09-07 10:27:18 +0100277 403:
278 $ref: 'components.yaml#/components/responses/Forbidden'
JosephKeenane0873dd2022-01-28 11:22:22 +0000279 500:
280 $ref: 'components.yaml#/components/responses/InternalServerError'
niamhcore66017b42021-10-19 11:07:02 +0100281
halil.cakal04280e22024-01-23 10:05:36 +0000282getModuleDefinitions:
emacleee1f73e22022-06-17 17:42:56 +0100283 get:
emacleee1f73e22022-06-17 17:42:56 +0100284 tags:
285 - network-cm-proxy
halil.cakal04280e22024-01-23 10:05:36 +0000286 summary: Get module definitions
287 description: Get module definitions (module name, revision, yang resource) with options to filter on module name and revision
288 operationId: getModuleDefinitions
emacleee1f73e22022-06-17 17:42:56 +0100289 parameters:
290 - $ref: 'components.yaml#/components/parameters/cmHandleInPath'
halil.cakal04280e22024-01-23 10:05:36 +0000291 - $ref: 'components.yaml#/components/parameters/moduleNameInQuery'
292 - $ref: 'components.yaml#/components/parameters/revisionInQuery'
emacleee1f73e22022-06-17 17:42:56 +0100293 responses:
294 200:
295 description: OK
296 content:
297 application/json:
298 schema:
299 type: array
300 items:
301 $ref: 'components.yaml#/components/schemas/RestModuleDefinition'
emacleee1f73e22022-06-17 17:42:56 +0100302 403:
303 $ref: 'components.yaml#/components/responses/Forbidden'
304 500:
305 $ref: 'components.yaml#/components/responses/InternalServerError'
306
kissande9ed5812022-05-12 15:59:18 +0200307searchCmHandles:
niamhcore66017b42021-10-19 11:07:02 +0100308 post:
lukegleesonde294742022-07-25 11:00:11 +0100309 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.
niamhcore66017b42021-10-19 11:07:02 +0100310 tags:
311 - network-cm-proxy
312 summary: Execute cm handle search using the available conditions
kissande9ed5812022-05-12 15:59:18 +0200313 operationId: searchCmHandles
niamhcore66017b42021-10-19 11:07:02 +0100314 requestBody:
315 required: true
316 content:
317 application/json:
318 schema:
kissande9ed5812022-05-12 15:59:18 +0200319 $ref: 'components.yaml#/components/schemas/CmHandleQueryParameters'
lukegleeson82a550f2022-07-11 10:55:53 +0100320 examples:
321 Cm handle properties query:
322 $ref: 'components.yaml#/components/examples/pubPropCmHandleQueryParameters'
323 Cm handle modules query:
324 $ref: 'components.yaml#/components/examples/modulesCmHandleQueryParameters'
325 All cm handle query parameters:
326 $ref: 'components.yaml#/components/examples/allCmHandleQueryParameters'
327 Cm handle with CPS path state query:
328 $ref: 'components.yaml#/components/examples/cpsPathCmHandleStateQueryParameters'
329 Cm handle with data sync flag query:
330 $ref: 'components.yaml#/components/examples/cpsPathCmHandleDataSyncQueryParameters'
niamhcore66017b42021-10-19 11:07:02 +0100331 responses:
332 200:
333 description: OK
334 content:
335 application/json:
336 schema:
kissande9ed5812022-05-12 15:59:18 +0200337 type: array
338 items:
339 $ref: 'components.yaml#/components/schemas/RestOutputCmHandle'
niamhcore66017b42021-10-19 11:07:02 +0100340 400:
341 $ref: 'components.yaml#/components/responses/BadRequest'
niamhcore66017b42021-10-19 11:07:02 +0100342 403:
ToineSiebelink18a79eb2021-12-23 12:36:40 +0000343 $ref: 'components.yaml#/components/responses/Forbidden'
JosephKeenane0873dd2022-01-28 11:22:22 +0000344 500:
345 $ref: 'components.yaml#/components/responses/InternalServerError'
DylanB95ESTe5573382022-01-27 17:12:52 +0000346
347retrieveCmHandleDetailsById:
348 get:
349 description: Retrieve CM handle details and properties by cm handle id
350 tags:
351 - network-cm-proxy
352 summary: Retrieve CM handle details
353 operationId: retrieveCmHandleDetailsById
354 parameters:
355 - $ref: 'components.yaml#/components/parameters/cmHandleInPath'
356 responses:
357 200:
358 description: OK
359 content:
360 application/json:
361 schema:
362 $ref: 'components.yaml#/components/schemas/RestOutputCmHandle'
lukegleeson78062a12022-06-02 10:56:43 +0100363 400:
364 $ref: 'components.yaml#/components/responses/BadRequest'
JosephKeenandeac4772022-03-28 12:26:07 +0100365 404:
366 $ref: 'components.yaml#/components/responses/NotFound'
367 500:
368 $ref: 'components.yaml#/components/responses/InternalServerError'
369
lukegleesonbed18fd2022-05-06 12:02:42 +0100370getCmHandlePropertiesById:
371 get:
372 description: Get CM handle properties by cm handle id
373 tags:
374 - network-cm-proxy
375 summary: Get CM handle properties
376 operationId: getCmHandlePublicPropertiesByCmHandleId
377 parameters:
378 - $ref: 'components.yaml#/components/parameters/cmHandleInPath'
379 responses:
380 200:
381 description: OK
382 content:
383 application/json:
384 schema:
385 $ref: 'components.yaml#/components/schemas/RestOutputCmHandlePublicProperties'
lukegleeson78062a12022-06-02 10:56:43 +0100386 400:
387 $ref: 'components.yaml#/components/responses/BadRequest'
lukegleeson78062a12022-06-02 10:56:43 +0100388 404:
389 $ref: 'components.yaml#/components/responses/NotFound'
390 500:
391 $ref: 'components.yaml#/components/responses/InternalServerError'
392
393getCmHandleStateById:
394 get:
395 description: Get CM handle state by cm handle id
396 tags:
397 - network-cm-proxy
398 summary: Get CM handle state
399 operationId: getCmHandleStateByCmHandleId
400 parameters:
401 - $ref: 'components.yaml#/components/parameters/cmHandleInPath'
402 responses:
403 200:
404 description: OK
405 content:
406 application/json:
407 schema:
408 $ref: 'components.yaml#/components/schemas/RestOutputCmHandleCompositeState'
409 400:
410 $ref: 'components.yaml#/components/responses/BadRequest'
lukegleesonbed18fd2022-05-06 12:02:42 +0100411 404:
412 $ref: 'components.yaml#/components/responses/NotFound'
413 500:
414 $ref: 'components.yaml#/components/responses/InternalServerError'
415
kissande9ed5812022-05-12 15:59:18 +0200416searchCmHandleIds:
JosephKeenandeac4772022-03-28 12:26:07 +0100417 post:
lukegleesonde294742022-07-25 11:00:11 +0100418 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.
JosephKeenandeac4772022-03-28 12:26:07 +0100419 tags:
420 - network-cm-proxy
421 summary: Execute cm handle query upon a given set of query parameters
kissande9ed5812022-05-12 15:59:18 +0200422 operationId: searchCmHandleIds
JosephKeenandeac4772022-03-28 12:26:07 +0100423 requestBody:
424 required: true
425 content:
426 application/json:
427 schema:
kissande9ed5812022-05-12 15:59:18 +0200428 $ref: 'components.yaml#/components/schemas/CmHandleQueryParameters'
lukegleeson82a550f2022-07-11 10:55:53 +0100429 examples:
430 Cm handle properties query:
431 $ref: 'components.yaml#/components/examples/pubPropCmHandleQueryParameters'
432 Cm handle modules query:
433 $ref: 'components.yaml#/components/examples/modulesCmHandleQueryParameters'
434 All cm handle query parameters:
435 $ref: 'components.yaml#/components/examples/allCmHandleQueryParameters'
436 Cm handle with CPS path state query:
437 $ref: 'components.yaml#/components/examples/cpsPathCmHandleStateQueryParameters'
438 Cm handle with data sync flag query:
439 $ref: 'components.yaml#/components/examples/cpsPathCmHandleDataSyncQueryParameters'
JosephKeenandeac4772022-03-28 12:26:07 +0100440 responses:
441 200:
442 description: OK
443 content:
444 application/json:
445 schema:
446 type: array
447 items:
448 type: string
DylanB95ESTe5573382022-01-27 17:12:52 +0000449 400:
450 $ref: 'components.yaml#/components/responses/BadRequest'
DylanB95ESTe5573382022-01-27 17:12:52 +0000451 403:
452 $ref: 'components.yaml#/components/responses/Forbidden'
453 404:
454 $ref: 'components.yaml#/components/responses/NotFound'
455 500:
DylanB95EST6ddbe4a2022-07-19 11:36:10 +0100456 $ref: 'components.yaml#/components/responses/InternalServerError'
457
458setDataSyncEnabledFlag:
459 put:
460 tags:
461 - network-cm-proxy
462 summary: Set the Data Sync Enabled Flag
463 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.
464 operationId: setDataSyncEnabledFlagForCmHandle
465 parameters:
466 - $ref: 'components.yaml#/components/parameters/cmHandleInPath'
467 - $ref: 'components.yaml#/components/parameters/dataSyncEnabled'
468 responses:
469 200:
470 $ref: 'components.yaml#/components/responses/Ok'
471 400:
472 $ref: 'components.yaml#/components/responses/BadRequest'
DylanB95EST6ddbe4a2022-07-19 11:36:10 +0100473 403:
474 $ref: 'components.yaml#/components/responses/Forbidden'
475 500:
476 $ref: 'components.yaml#/components/responses/InternalServerError'
477 502:
danielhanrahanc5222a72024-02-28 16:05:07 +0000478 $ref: 'components.yaml#/components/responses/BadGateway'