mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1 | openapi: 3.0.3 |
DylanB95EST | fee8699 | 2021-09-23 12:22:55 +0100 | [diff] [blame] | 2 | info: |
DylanB95EST | fee8699 | 2021-09-23 12:22:55 +0100 | [diff] [blame] | 3 | description: NCMP to CPS Proxy API |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 4 | title: NCMP to CPS Proxy API |
mpriyank | 205bd9f | 2024-12-03 16:14:53 +0000 | [diff] [blame] | 5 | version: 3.5.5 |
DylanB95EST | fee8699 | 2021-09-23 12:22:55 +0100 | [diff] [blame] | 6 | servers: |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 7 | - url: /ncmp |
seanbeirne | 16e2358 | 2023-01-26 09:21:44 +0000 | [diff] [blame] | 8 | security: |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 9 | - basicAuth: [] |
DylanB95EST | fee8699 | 2021-09-23 12:22:55 +0100 | [diff] [blame] | 10 | paths: |
lukegleeson | 20e7a73 | 2022-10-20 10:14:00 +0100 | [diff] [blame] | 11 | /v1/ch/{cm-handle}/data/ds/{datastore-name}: |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 12 | delete: |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 13 | description: Delete resource data from pass-through running for a given cm handle |
| 14 | operationId: deleteResourceDataRunningForCmHandle |
| 15 | parameters: |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 16 | - description: The type of the requested data |
| 17 | in: path |
| 18 | name: datastore-name |
| 19 | required: true |
| 20 | schema: |
| 21 | example: ncmp-datastore:running |
| 22 | type: string |
sourabh_sourabh | ef70022 | 2024-10-04 14:35:32 +0100 | [diff] [blame] | 23 | - description: "The identifier (cmHandle or alternate) for a network function,\ |
| 24 | \ network element, subnetwork or any other cm object by managed Network\ |
| 25 | \ CM Proxy" |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 26 | in: path |
| 27 | name: cm-handle |
| 28 | required: true |
| 29 | schema: |
sourabh_sourabh | ef70022 | 2024-10-04 14:35:32 +0100 | [diff] [blame] | 30 | example: my-cm-handle-reference |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 31 | type: string |
ToineSiebelink | 4fed286 | 2024-05-22 12:05:24 +0100 | [diff] [blame] | 32 | - description: The format of resource identifier depend on the associated DMI |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 33 | Plugin implementation. For ONAP DMI Plugin it will be RESTConf paths but |
| 34 | it can really be anything. |
| 35 | examples: |
| 36 | sample 1: |
| 37 | value: |
| 38 | resourceIdentifier: \shops\bookstore |
| 39 | sample 2: |
| 40 | value: |
| 41 | resourceIdentifier: "\\shops\\bookstore\\categories[@code=1]" |
| 42 | sample 3: |
| 43 | value: |
| 44 | resourceIdentifier: "parent=shops,child=bookstore" |
| 45 | in: query |
| 46 | name: resourceIdentifier |
| 47 | required: true |
| 48 | schema: |
| 49 | type: string |
| 50 | - description: "Content parameter for request, if content parameter is null,\ |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 51 | \ default value is application/json." |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 52 | in: header |
| 53 | name: Content-Type |
| 54 | required: false |
| 55 | schema: |
| 56 | default: application/json |
| 57 | example: application/yang-data+json |
| 58 | type: string |
mpriyank | 4a978d3 | 2024-02-29 14:39:00 +0000 | [diff] [blame] | 59 | - description: Authorization parameter for request. |
| 60 | in: header |
| 61 | name: Authorization |
| 62 | required: false |
| 63 | schema: |
| 64 | type: string |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 65 | responses: |
| 66 | "204": |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 67 | content: {} |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 68 | description: No Content |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 69 | "400": |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 70 | content: |
| 71 | application/json: |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 72 | example: |
danielhanrahan | ad46c25 | 2024-05-01 11:25:36 +0100 | [diff] [blame] | 73 | status: 400 |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 74 | message: Bad request error message |
| 75 | details: Bad request error details |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 76 | schema: |
| 77 | $ref: '#/components/schemas/ErrorMessage' |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 78 | description: Bad Request |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 79 | "403": |
| 80 | content: |
| 81 | application/json: |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 82 | example: |
| 83 | status: 403 |
| 84 | message: Forbidden error message |
| 85 | details: Forbidden error details |
DylanB95EST | fee8699 | 2021-09-23 12:22:55 +0100 | [diff] [blame] | 86 | schema: |
| 87 | $ref: '#/components/schemas/ErrorMessage' |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 88 | description: Forbidden |
| 89 | "404": |
| 90 | content: |
| 91 | application/json: |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 92 | example: |
| 93 | status: 400 |
| 94 | message: Not found error message |
| 95 | details: Not found error details |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 96 | schema: |
| 97 | $ref: '#/components/schemas/ErrorMessage' |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 98 | description: The specified resource was not found |
| 99 | "500": |
| 100 | content: |
| 101 | application/json: |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 102 | example: |
| 103 | status: 500 |
| 104 | message: Internal Server Error |
| 105 | details: Internal Server Error occurred |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 106 | schema: |
| 107 | $ref: '#/components/schemas/ErrorMessage' |
| 108 | description: Internal Server Error |
mpriyank | 93afc1e | 2022-03-28 15:47:47 +0530 | [diff] [blame] | 109 | "502": |
mpriyank | 93afc1e | 2022-03-28 15:47:47 +0530 | [diff] [blame] | 110 | content: |
| 111 | application/json: |
mpriyank | 93afc1e | 2022-03-28 15:47:47 +0530 | [diff] [blame] | 112 | example: |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 113 | message: Bad Gateway Error Message NCMP |
mpriyank | 93afc1e | 2022-03-28 15:47:47 +0530 | [diff] [blame] | 114 | dmi-response: |
| 115 | http-code: 400 |
| 116 | body: Bad Request |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 117 | schema: |
| 118 | $ref: '#/components/schemas/DmiErrorMessage' |
| 119 | description: Bad Gateway |
| 120 | summary: Delete resource data |
DylanB95EST | fee8699 | 2021-09-23 12:22:55 +0100 | [diff] [blame] | 121 | tags: |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 122 | - network-cm-proxy |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 123 | get: |
| 124 | description: Get resource data for given cm handle |
| 125 | operationId: getResourceDataForCmHandle |
| 126 | parameters: |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 127 | - description: The type of the requested data |
| 128 | in: path |
| 129 | name: datastore-name |
| 130 | required: true |
| 131 | schema: |
| 132 | example: ncmp-datastore:running |
| 133 | type: string |
sourabh_sourabh | ef70022 | 2024-10-04 14:35:32 +0100 | [diff] [blame] | 134 | - description: "The identifier (cmHandle or alternate) for a network function,\ |
| 135 | \ network element, subnetwork or any other cm object by managed Network\ |
| 136 | \ CM Proxy" |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 137 | in: path |
| 138 | name: cm-handle |
| 139 | required: true |
| 140 | schema: |
sourabh_sourabh | ef70022 | 2024-10-04 14:35:32 +0100 | [diff] [blame] | 141 | example: my-cm-handle-reference |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 142 | type: string |
ToineSiebelink | 4fed286 | 2024-05-22 12:05:24 +0100 | [diff] [blame] | 143 | - description: The format of resource identifier depend on the associated DMI |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 144 | Plugin implementation. For ONAP DMI Plugin it will be RESTConf paths but |
| 145 | it can really be anything. |
| 146 | examples: |
| 147 | sample 1: |
| 148 | value: |
| 149 | resourceIdentifier: \shops\bookstore |
| 150 | sample 2: |
| 151 | value: |
| 152 | resourceIdentifier: "\\shops\\bookstore\\categories[@code=1]" |
| 153 | sample 3: |
| 154 | value: |
| 155 | resourceIdentifier: "parent=shops,child=bookstore" |
| 156 | in: query |
| 157 | name: resourceIdentifier |
| 158 | required: true |
| 159 | schema: |
| 160 | type: string |
ToineSiebelink | 4fed286 | 2024-05-22 12:05:24 +0100 | [diff] [blame] | 161 | - description: "options parameter in query, it is mandatory to wrap key(s)=value(s)\ |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 162 | \ in parenthesis'()'. The format of options parameter depend on the associated\ |
| 163 | \ DMI Plugin implementation." |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 164 | examples: |
| 165 | sample 1: |
| 166 | value: |
| 167 | options: (depth=3) |
| 168 | sample 2: |
| 169 | value: |
| 170 | options: (fields=book) |
| 171 | sample 3: |
| 172 | value: |
| 173 | options: "(depth=2,fields=book/authors)" |
| 174 | in: query |
| 175 | name: options |
| 176 | required: false |
| 177 | schema: |
| 178 | type: string |
ToineSiebelink | 4fed286 | 2024-05-22 12:05:24 +0100 | [diff] [blame] | 179 | - description: topic parameter in query. |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 180 | examples: |
| 181 | sample 1: |
| 182 | value: |
| 183 | topic: my-topic-name |
| 184 | in: query |
| 185 | name: topic |
| 186 | required: false |
| 187 | schema: |
| 188 | type: string |
| 189 | - description: Determines if descendants are included in response |
| 190 | in: query |
| 191 | name: include-descendants |
| 192 | required: false |
| 193 | schema: |
| 194 | default: false |
| 195 | type: boolean |
mpriyank | 4a978d3 | 2024-02-29 14:39:00 +0000 | [diff] [blame] | 196 | - description: Authorization parameter for request. |
| 197 | in: header |
| 198 | name: Authorization |
| 199 | required: false |
| 200 | schema: |
| 201 | type: string |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 202 | responses: |
| 203 | "200": |
| 204 | content: |
| 205 | application/json: |
| 206 | examples: |
| 207 | dataSampleResponse: |
| 208 | $ref: '#/components/examples/dataSampleResponse' |
| 209 | value: null |
| 210 | schema: |
| 211 | type: object |
| 212 | description: OK |
| 213 | "400": |
| 214 | content: |
| 215 | application/json: |
| 216 | example: |
danielhanrahan | ad46c25 | 2024-05-01 11:25:36 +0100 | [diff] [blame] | 217 | status: 400 |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 218 | message: Bad request error message |
| 219 | details: Bad request error details |
| 220 | schema: |
| 221 | $ref: '#/components/schemas/ErrorMessage' |
| 222 | description: Bad Request |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 223 | "403": |
| 224 | content: |
| 225 | application/json: |
| 226 | example: |
| 227 | status: 403 |
| 228 | message: Forbidden error message |
| 229 | details: Forbidden error details |
| 230 | schema: |
| 231 | $ref: '#/components/schemas/ErrorMessage' |
| 232 | description: Forbidden |
| 233 | "500": |
| 234 | content: |
| 235 | application/json: |
| 236 | example: |
| 237 | status: 500 |
| 238 | message: Internal Server Error |
| 239 | details: Internal Server Error occurred |
| 240 | schema: |
| 241 | $ref: '#/components/schemas/ErrorMessage' |
| 242 | description: Internal Server Error |
| 243 | "502": |
| 244 | content: |
| 245 | application/json: |
| 246 | example: |
| 247 | message: Bad Gateway Error Message NCMP |
| 248 | dmi-response: |
| 249 | http-code: 400 |
| 250 | body: Bad Request |
| 251 | schema: |
| 252 | $ref: '#/components/schemas/DmiErrorMessage' |
| 253 | description: Bad Gateway |
| 254 | summary: Get resource data for cm handle |
| 255 | tags: |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 256 | - network-cm-proxy |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 257 | patch: |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 258 | description: Patch resource data from pass-through running for the given cm |
DylanB95EST | fee8699 | 2021-09-23 12:22:55 +0100 | [diff] [blame] | 259 | handle |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 260 | operationId: patchResourceDataRunningForCmHandle |
DylanB95EST | fee8699 | 2021-09-23 12:22:55 +0100 | [diff] [blame] | 261 | parameters: |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 262 | - description: The type of the requested data |
| 263 | in: path |
| 264 | name: datastore-name |
| 265 | required: true |
| 266 | schema: |
| 267 | example: ncmp-datastore:running |
| 268 | type: string |
sourabh_sourabh | ef70022 | 2024-10-04 14:35:32 +0100 | [diff] [blame] | 269 | - description: "The identifier (cmHandle or alternate) for a network function,\ |
| 270 | \ network element, subnetwork or any other cm object by managed Network\ |
| 271 | \ CM Proxy" |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 272 | in: path |
| 273 | name: cm-handle |
| 274 | required: true |
| 275 | schema: |
sourabh_sourabh | ef70022 | 2024-10-04 14:35:32 +0100 | [diff] [blame] | 276 | example: my-cm-handle-reference |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 277 | type: string |
ToineSiebelink | 4fed286 | 2024-05-22 12:05:24 +0100 | [diff] [blame] | 278 | - description: The format of resource identifier depend on the associated DMI |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 279 | Plugin implementation. For ONAP DMI Plugin it will be RESTConf paths but |
| 280 | it can really be anything. |
| 281 | examples: |
| 282 | sample 1: |
| 283 | value: |
| 284 | resourceIdentifier: \shops\bookstore |
| 285 | sample 2: |
| 286 | value: |
| 287 | resourceIdentifier: "\\shops\\bookstore\\categories[@code=1]" |
| 288 | sample 3: |
| 289 | value: |
| 290 | resourceIdentifier: "parent=shops,child=bookstore" |
| 291 | in: query |
| 292 | name: resourceIdentifier |
| 293 | required: true |
| 294 | schema: |
| 295 | type: string |
| 296 | - description: "Content parameter for request, if content parameter is null,\ |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 297 | \ default value is application/json." |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 298 | in: header |
| 299 | name: Content-Type |
| 300 | required: false |
| 301 | schema: |
| 302 | default: application/json |
| 303 | example: application/yang-data+json |
| 304 | type: string |
mpriyank | 4a978d3 | 2024-02-29 14:39:00 +0000 | [diff] [blame] | 305 | - description: Authorization parameter for request. |
| 306 | in: header |
| 307 | name: Authorization |
| 308 | required: false |
| 309 | schema: |
| 310 | type: string |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 311 | requestBody: |
| 312 | content: |
| 313 | '*/*': |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 314 | examples: |
| 315 | dataSampleRequest: |
| 316 | $ref: '#/components/examples/dataSamplePatchRequest' |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 317 | value: null |
| 318 | schema: |
| 319 | type: object |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 320 | required: true |
DylanB95EST | fee8699 | 2021-09-23 12:22:55 +0100 | [diff] [blame] | 321 | responses: |
| 322 | "200": |
DylanB95EST | fee8699 | 2021-09-23 12:22:55 +0100 | [diff] [blame] | 323 | content: |
| 324 | application/json: |
| 325 | schema: |
| 326 | type: object |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 327 | description: OK |
DylanB95EST | fee8699 | 2021-09-23 12:22:55 +0100 | [diff] [blame] | 328 | "400": |
DylanB95EST | fee8699 | 2021-09-23 12:22:55 +0100 | [diff] [blame] | 329 | content: |
| 330 | application/json: |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 331 | example: |
danielhanrahan | ad46c25 | 2024-05-01 11:25:36 +0100 | [diff] [blame] | 332 | status: 400 |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 333 | message: Bad request error message |
| 334 | details: Bad request error details |
DylanB95EST | fee8699 | 2021-09-23 12:22:55 +0100 | [diff] [blame] | 335 | schema: |
| 336 | $ref: '#/components/schemas/ErrorMessage' |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 337 | description: Bad Request |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 338 | "403": |
| 339 | content: |
| 340 | application/json: |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 341 | example: |
| 342 | status: 403 |
| 343 | message: Forbidden error message |
| 344 | details: Forbidden error details |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 345 | schema: |
| 346 | $ref: '#/components/schemas/ErrorMessage' |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 347 | description: Forbidden |
| 348 | "500": |
| 349 | content: |
| 350 | application/json: |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 351 | example: |
| 352 | status: 500 |
| 353 | message: Internal Server Error |
| 354 | details: Internal Server Error occurred |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 355 | schema: |
| 356 | $ref: '#/components/schemas/ErrorMessage' |
| 357 | description: Internal Server Error |
mpriyank | 93afc1e | 2022-03-28 15:47:47 +0530 | [diff] [blame] | 358 | "502": |
mpriyank | 93afc1e | 2022-03-28 15:47:47 +0530 | [diff] [blame] | 359 | content: |
| 360 | application/json: |
mpriyank | 93afc1e | 2022-03-28 15:47:47 +0530 | [diff] [blame] | 361 | example: |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 362 | message: Bad Gateway Error Message NCMP |
mpriyank | 93afc1e | 2022-03-28 15:47:47 +0530 | [diff] [blame] | 363 | dmi-response: |
| 364 | http-code: 400 |
| 365 | body: Bad Request |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 366 | schema: |
| 367 | $ref: '#/components/schemas/DmiErrorMessage' |
| 368 | description: Bad Gateway |
| 369 | summary: Patch resource data from pass-through running |
| 370 | tags: |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 371 | - network-cm-proxy |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 372 | post: |
| 373 | description: create resource data from pass-through running for given cm handle |
| 374 | operationId: createResourceDataRunningForCmHandle |
| 375 | parameters: |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 376 | - description: The type of the requested data |
| 377 | in: path |
| 378 | name: datastore-name |
| 379 | required: true |
| 380 | schema: |
| 381 | example: ncmp-datastore:running |
| 382 | type: string |
sourabh_sourabh | ef70022 | 2024-10-04 14:35:32 +0100 | [diff] [blame] | 383 | - description: "The identifier (cmHandle or alternate) for a network function,\ |
| 384 | \ network element, subnetwork or any other cm object by managed Network\ |
| 385 | \ CM Proxy" |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 386 | in: path |
| 387 | name: cm-handle |
| 388 | required: true |
| 389 | schema: |
sourabh_sourabh | ef70022 | 2024-10-04 14:35:32 +0100 | [diff] [blame] | 390 | example: my-cm-handle-reference |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 391 | type: string |
ToineSiebelink | 4fed286 | 2024-05-22 12:05:24 +0100 | [diff] [blame] | 392 | - description: The format of resource identifier depend on the associated DMI |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 393 | Plugin implementation. For ONAP DMI Plugin it will be RESTConf paths but |
| 394 | it can really be anything. |
| 395 | examples: |
| 396 | sample 1: |
| 397 | value: |
| 398 | resourceIdentifier: \shops\bookstore |
| 399 | sample 2: |
| 400 | value: |
| 401 | resourceIdentifier: "\\shops\\bookstore\\categories[@code=1]" |
| 402 | sample 3: |
| 403 | value: |
| 404 | resourceIdentifier: "parent=shops,child=bookstore" |
| 405 | in: query |
| 406 | name: resourceIdentifier |
| 407 | required: true |
| 408 | schema: |
| 409 | type: string |
| 410 | - description: "Content parameter for request, if content parameter is null,\ |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 411 | \ default value is application/json." |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 412 | in: header |
| 413 | name: Content-Type |
| 414 | required: false |
| 415 | schema: |
| 416 | default: application/json |
| 417 | example: application/yang-data+json |
| 418 | type: string |
mpriyank | 4a978d3 | 2024-02-29 14:39:00 +0000 | [diff] [blame] | 419 | - description: Authorization parameter for request. |
| 420 | in: header |
| 421 | name: Authorization |
| 422 | required: false |
| 423 | schema: |
| 424 | type: string |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 425 | requestBody: |
| 426 | content: |
| 427 | application/json: |
| 428 | examples: |
| 429 | dataSampleRequest: |
| 430 | $ref: '#/components/examples/dataSampleRequest' |
| 431 | value: null |
| 432 | schema: |
| 433 | type: object |
| 434 | application/yang-data+json: |
| 435 | examples: |
| 436 | dataSampleRequest: |
| 437 | $ref: '#/components/examples/dataSampleRequest' |
| 438 | value: null |
| 439 | schema: |
| 440 | type: object |
| 441 | required: true |
| 442 | responses: |
| 443 | "201": |
| 444 | content: {} |
| 445 | description: Created |
| 446 | "400": |
| 447 | content: |
| 448 | application/json: |
| 449 | example: |
danielhanrahan | ad46c25 | 2024-05-01 11:25:36 +0100 | [diff] [blame] | 450 | status: 400 |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 451 | message: Bad request error message |
| 452 | details: Bad request error details |
| 453 | schema: |
| 454 | $ref: '#/components/schemas/ErrorMessage' |
| 455 | description: Bad Request |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 456 | "403": |
| 457 | content: |
| 458 | application/json: |
| 459 | example: |
| 460 | status: 403 |
| 461 | message: Forbidden error message |
| 462 | details: Forbidden error details |
| 463 | schema: |
| 464 | $ref: '#/components/schemas/ErrorMessage' |
| 465 | description: Forbidden |
| 466 | "500": |
| 467 | content: |
| 468 | application/json: |
| 469 | example: |
| 470 | status: 500 |
| 471 | message: Internal Server Error |
| 472 | details: Internal Server Error occurred |
| 473 | schema: |
| 474 | $ref: '#/components/schemas/ErrorMessage' |
| 475 | description: Internal Server Error |
| 476 | "502": |
| 477 | content: |
| 478 | application/json: |
| 479 | example: |
| 480 | message: Bad Gateway Error Message NCMP |
| 481 | dmi-response: |
| 482 | http-code: 400 |
| 483 | body: Bad Request |
| 484 | schema: |
| 485 | $ref: '#/components/schemas/DmiErrorMessage' |
| 486 | description: Bad Gateway |
| 487 | summary: create resource data from pass-through running for cm handle |
| 488 | tags: |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 489 | - network-cm-proxy |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 490 | put: |
| 491 | description: Update resource data from pass-through running for the given cm |
| 492 | handle |
| 493 | operationId: updateResourceDataRunningForCmHandle |
| 494 | parameters: |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 495 | - description: The type of the requested data |
| 496 | in: path |
| 497 | name: datastore-name |
| 498 | required: true |
| 499 | schema: |
| 500 | example: ncmp-datastore:running |
| 501 | type: string |
sourabh_sourabh | ef70022 | 2024-10-04 14:35:32 +0100 | [diff] [blame] | 502 | - description: "The identifier (cmHandle or alternate) for a network function,\ |
| 503 | \ network element, subnetwork or any other cm object by managed Network\ |
| 504 | \ CM Proxy" |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 505 | in: path |
| 506 | name: cm-handle |
| 507 | required: true |
| 508 | schema: |
sourabh_sourabh | ef70022 | 2024-10-04 14:35:32 +0100 | [diff] [blame] | 509 | example: my-cm-handle-reference |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 510 | type: string |
ToineSiebelink | 4fed286 | 2024-05-22 12:05:24 +0100 | [diff] [blame] | 511 | - description: The format of resource identifier depend on the associated DMI |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 512 | Plugin implementation. For ONAP DMI Plugin it will be RESTConf paths but |
| 513 | it can really be anything. |
| 514 | examples: |
| 515 | sample 1: |
| 516 | value: |
| 517 | resourceIdentifier: \shops\bookstore |
| 518 | sample 2: |
| 519 | value: |
| 520 | resourceIdentifier: "\\shops\\bookstore\\categories[@code=1]" |
| 521 | sample 3: |
| 522 | value: |
| 523 | resourceIdentifier: "parent=shops,child=bookstore" |
| 524 | in: query |
| 525 | name: resourceIdentifier |
| 526 | required: true |
| 527 | schema: |
| 528 | type: string |
| 529 | - description: "Content parameter for request, if content parameter is null,\ |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 530 | \ default value is application/json." |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 531 | in: header |
| 532 | name: Content-Type |
| 533 | required: false |
| 534 | schema: |
| 535 | default: application/json |
| 536 | example: application/yang-data+json |
| 537 | type: string |
mpriyank | 4a978d3 | 2024-02-29 14:39:00 +0000 | [diff] [blame] | 538 | - description: Authorization parameter for request. |
| 539 | in: header |
| 540 | name: Authorization |
| 541 | required: false |
| 542 | schema: |
| 543 | type: string |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 544 | requestBody: |
| 545 | content: |
| 546 | application/json: |
| 547 | examples: |
| 548 | dataSampleRequest: |
| 549 | $ref: '#/components/examples/dataSampleRequest' |
| 550 | value: null |
| 551 | schema: |
| 552 | type: object |
| 553 | application/yang-data+json: |
| 554 | examples: |
| 555 | dataSampleRequest: |
| 556 | $ref: '#/components/examples/dataSampleRequest' |
| 557 | value: null |
| 558 | schema: |
| 559 | type: object |
| 560 | required: true |
| 561 | responses: |
| 562 | "200": |
| 563 | content: |
| 564 | application/json: |
| 565 | schema: |
| 566 | type: object |
| 567 | description: OK |
| 568 | "400": |
| 569 | content: |
| 570 | application/json: |
| 571 | example: |
danielhanrahan | ad46c25 | 2024-05-01 11:25:36 +0100 | [diff] [blame] | 572 | status: 400 |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 573 | message: Bad request error message |
| 574 | details: Bad request error details |
| 575 | schema: |
| 576 | $ref: '#/components/schemas/ErrorMessage' |
| 577 | description: Bad Request |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 578 | "403": |
| 579 | content: |
| 580 | application/json: |
| 581 | example: |
| 582 | status: 403 |
| 583 | message: Forbidden error message |
| 584 | details: Forbidden error details |
| 585 | schema: |
| 586 | $ref: '#/components/schemas/ErrorMessage' |
| 587 | description: Forbidden |
| 588 | "500": |
| 589 | content: |
| 590 | application/json: |
| 591 | example: |
| 592 | status: 500 |
| 593 | message: Internal Server Error |
| 594 | details: Internal Server Error occurred |
| 595 | schema: |
| 596 | $ref: '#/components/schemas/ErrorMessage' |
| 597 | description: Internal Server Error |
| 598 | "502": |
| 599 | content: |
| 600 | application/json: |
| 601 | example: |
| 602 | message: Bad Gateway Error Message NCMP |
| 603 | dmi-response: |
| 604 | http-code: 400 |
| 605 | body: Bad Request |
| 606 | schema: |
| 607 | $ref: '#/components/schemas/DmiErrorMessage' |
| 608 | description: Bad Gateway |
| 609 | summary: Update resource data from pass-through running for a cm handle |
| 610 | tags: |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 611 | - network-cm-proxy |
danielhanrahan | 5cec532 | 2023-06-15 11:08:54 +0100 | [diff] [blame] | 612 | /v1/data: |
mpriyank | 52c5e54 | 2023-05-02 15:58:55 +0100 | [diff] [blame] | 613 | post: |
mpriyank | 52c5e54 | 2023-05-02 15:58:55 +0100 | [diff] [blame] | 614 | description: This request will be handled asynchronously using messaging to |
| 615 | the supplied topic. The rest response will be an acknowledge with a requestId |
danielhanrahan | 9002b9f | 2024-08-21 14:51:19 +0100 | [diff] [blame] | 616 | to identify the relevant messages. A maximum of 200 cm handles per operation |
danielhanrahan | ad46c25 | 2024-05-01 11:25:36 +0100 | [diff] [blame] | 617 | is supported. |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 618 | operationId: executeDataOperationForCmHandles |
mpriyank | 52c5e54 | 2023-05-02 15:58:55 +0100 | [diff] [blame] | 619 | parameters: |
ToineSiebelink | 4fed286 | 2024-05-22 12:05:24 +0100 | [diff] [blame] | 620 | - description: mandatory topic parameter in query. |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 621 | examples: |
| 622 | sample 1: |
| 623 | value: |
| 624 | topic: my-topic-name |
| 625 | in: query |
| 626 | name: topic |
| 627 | required: true |
| 628 | schema: |
| 629 | type: string |
mpriyank | 4a978d3 | 2024-02-29 14:39:00 +0000 | [diff] [blame] | 630 | - description: Authorization parameter for request. |
| 631 | in: header |
| 632 | name: Authorization |
| 633 | required: false |
| 634 | schema: |
| 635 | type: string |
mpriyank | 52c5e54 | 2023-05-02 15:58:55 +0100 | [diff] [blame] | 636 | requestBody: |
| 637 | content: |
| 638 | application/json: |
| 639 | schema: |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 640 | $ref: '#/components/schemas/DataOperationRequest' |
mpriyank | 52c5e54 | 2023-05-02 15:58:55 +0100 | [diff] [blame] | 641 | required: true |
| 642 | responses: |
| 643 | "200": |
mpriyank | 52c5e54 | 2023-05-02 15:58:55 +0100 | [diff] [blame] | 644 | content: |
| 645 | application/json: |
| 646 | schema: |
| 647 | type: object |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 648 | description: OK |
mpriyank | 52c5e54 | 2023-05-02 15:58:55 +0100 | [diff] [blame] | 649 | "400": |
mpriyank | 52c5e54 | 2023-05-02 15:58:55 +0100 | [diff] [blame] | 650 | content: |
| 651 | application/json: |
mpriyank | 52c5e54 | 2023-05-02 15:58:55 +0100 | [diff] [blame] | 652 | example: |
danielhanrahan | ad46c25 | 2024-05-01 11:25:36 +0100 | [diff] [blame] | 653 | status: 400 |
mpriyank | 52c5e54 | 2023-05-02 15:58:55 +0100 | [diff] [blame] | 654 | message: Bad request error message |
| 655 | details: Bad request error details |
mpriyank | 52c5e54 | 2023-05-02 15:58:55 +0100 | [diff] [blame] | 656 | schema: |
| 657 | $ref: '#/components/schemas/ErrorMessage' |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 658 | description: Bad Request |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 659 | "403": |
| 660 | content: |
| 661 | application/json: |
mpriyank | 52c5e54 | 2023-05-02 15:58:55 +0100 | [diff] [blame] | 662 | example: |
| 663 | status: 403 |
| 664 | message: Forbidden error message |
| 665 | details: Forbidden error details |
mpriyank | 52c5e54 | 2023-05-02 15:58:55 +0100 | [diff] [blame] | 666 | schema: |
| 667 | $ref: '#/components/schemas/ErrorMessage' |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 668 | description: Forbidden |
danielhanrahan | ad46c25 | 2024-05-01 11:25:36 +0100 | [diff] [blame] | 669 | "413": |
| 670 | content: |
| 671 | application/json: |
| 672 | example: |
| 673 | status: 413 |
| 674 | message: Payload Too Large error message |
| 675 | details: Payload Too Large error details |
| 676 | schema: |
| 677 | $ref: '#/components/schemas/ErrorMessage' |
| 678 | description: The request is larger than the server is willing or able to |
| 679 | process |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 680 | "500": |
| 681 | content: |
| 682 | application/json: |
mpriyank | 52c5e54 | 2023-05-02 15:58:55 +0100 | [diff] [blame] | 683 | example: |
| 684 | status: 500 |
| 685 | message: Internal Server Error |
| 686 | details: Internal Server Error occurred |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 687 | schema: |
| 688 | $ref: '#/components/schemas/ErrorMessage' |
| 689 | description: Internal Server Error |
mpriyank | 52c5e54 | 2023-05-02 15:58:55 +0100 | [diff] [blame] | 690 | "502": |
mpriyank | 52c5e54 | 2023-05-02 15:58:55 +0100 | [diff] [blame] | 691 | content: |
| 692 | application/json: |
mpriyank | 52c5e54 | 2023-05-02 15:58:55 +0100 | [diff] [blame] | 693 | example: |
| 694 | message: Bad Gateway Error Message NCMP |
| 695 | dmi-response: |
| 696 | http-code: 400 |
| 697 | body: Bad Request |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 698 | schema: |
| 699 | $ref: '#/components/schemas/DmiErrorMessage' |
| 700 | description: Bad Gateway |
seanbeirne | a1a71f7 | 2024-10-21 16:18:27 +0100 | [diff] [blame] | 701 | summary: Execute a data operation for group of cm handle references |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 702 | tags: |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 703 | - network-cm-proxy |
seanbeirne | 16e2358 | 2023-01-26 09:21:44 +0000 | [diff] [blame] | 704 | /v1/ch/{cm-handle}/data/ds/{datastore-name}/query: |
| 705 | get: |
seanbeirne | 16e2358 | 2023-01-26 09:21:44 +0000 | [diff] [blame] | 706 | description: Query resource data for a given cm handle |
| 707 | operationId: queryResourceDataForCmHandle |
| 708 | parameters: |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 709 | - description: The type of the requested data |
| 710 | in: path |
| 711 | name: datastore-name |
| 712 | required: true |
| 713 | schema: |
| 714 | example: ncmp-datastore:running |
| 715 | type: string |
| 716 | - description: "The identifier for a network function, network element, subnetwork\ |
seanbeirne | 16e2358 | 2023-01-26 09:21:44 +0000 | [diff] [blame] | 717 | \ or any other cm object by managed Network CM Proxy" |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 718 | in: path |
| 719 | name: cm-handle |
| 720 | required: true |
| 721 | schema: |
| 722 | example: my-cm-handle |
| 723 | type: string |
| 724 | - description: "For more details on cps path, please refer https://docs.onap.org/projects/onap-cps/en/latest/cps-path.html" |
| 725 | examples: |
| 726 | container cps path: |
| 727 | value: //bookstore |
| 728 | list attributes cps path: |
| 729 | value: "//categories[@code=1]" |
| 730 | in: query |
| 731 | name: cps-path |
| 732 | required: false |
| 733 | schema: |
| 734 | default: / |
| 735 | type: string |
ToineSiebelink | 4fed286 | 2024-05-22 12:05:24 +0100 | [diff] [blame] | 736 | - description: "options parameter in query, it is mandatory to wrap key(s)=value(s)\ |
seanbeirne | 16e2358 | 2023-01-26 09:21:44 +0000 | [diff] [blame] | 737 | \ in parenthesis'()'. The format of options parameter depend on the associated\ |
| 738 | \ DMI Plugin implementation." |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 739 | examples: |
| 740 | sample 1: |
| 741 | value: |
| 742 | options: (depth=3) |
| 743 | sample 2: |
| 744 | value: |
| 745 | options: (fields=book) |
| 746 | sample 3: |
| 747 | value: |
| 748 | options: "(depth=2,fields=book/authors)" |
| 749 | in: query |
| 750 | name: options |
| 751 | required: false |
| 752 | schema: |
| 753 | type: string |
ToineSiebelink | 4fed286 | 2024-05-22 12:05:24 +0100 | [diff] [blame] | 754 | - description: topic parameter in query. |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 755 | examples: |
| 756 | sample 1: |
| 757 | value: |
| 758 | topic: my-topic-name |
| 759 | in: query |
| 760 | name: topic |
| 761 | required: false |
| 762 | schema: |
| 763 | type: string |
| 764 | - description: Determines if descendants are included in response |
| 765 | in: query |
| 766 | name: include-descendants |
| 767 | required: false |
| 768 | schema: |
| 769 | default: false |
| 770 | type: boolean |
seanbeirne | 16e2358 | 2023-01-26 09:21:44 +0000 | [diff] [blame] | 771 | responses: |
| 772 | "200": |
seanbeirne | 16e2358 | 2023-01-26 09:21:44 +0000 | [diff] [blame] | 773 | content: |
| 774 | application/json: |
seanbeirne | 16e2358 | 2023-01-26 09:21:44 +0000 | [diff] [blame] | 775 | examples: |
| 776 | dataSampleResponse: |
| 777 | $ref: '#/components/examples/dataSampleResponse' |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 778 | value: null |
| 779 | schema: |
| 780 | type: object |
| 781 | description: OK |
seanbeirne | 16e2358 | 2023-01-26 09:21:44 +0000 | [diff] [blame] | 782 | "400": |
seanbeirne | 16e2358 | 2023-01-26 09:21:44 +0000 | [diff] [blame] | 783 | content: |
| 784 | application/json: |
seanbeirne | 16e2358 | 2023-01-26 09:21:44 +0000 | [diff] [blame] | 785 | example: |
danielhanrahan | ad46c25 | 2024-05-01 11:25:36 +0100 | [diff] [blame] | 786 | status: 400 |
seanbeirne | 16e2358 | 2023-01-26 09:21:44 +0000 | [diff] [blame] | 787 | message: Bad request error message |
| 788 | details: Bad request error details |
seanbeirne | 16e2358 | 2023-01-26 09:21:44 +0000 | [diff] [blame] | 789 | schema: |
| 790 | $ref: '#/components/schemas/ErrorMessage' |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 791 | description: Bad Request |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 792 | "403": |
| 793 | content: |
| 794 | application/json: |
seanbeirne | 16e2358 | 2023-01-26 09:21:44 +0000 | [diff] [blame] | 795 | example: |
| 796 | status: 403 |
| 797 | message: Forbidden error message |
| 798 | details: Forbidden error details |
seanbeirne | 16e2358 | 2023-01-26 09:21:44 +0000 | [diff] [blame] | 799 | schema: |
| 800 | $ref: '#/components/schemas/ErrorMessage' |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 801 | description: Forbidden |
| 802 | "500": |
| 803 | content: |
| 804 | application/json: |
seanbeirne | 16e2358 | 2023-01-26 09:21:44 +0000 | [diff] [blame] | 805 | example: |
| 806 | status: 500 |
| 807 | message: Internal Server Error |
| 808 | details: Internal Server Error occurred |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 809 | schema: |
| 810 | $ref: '#/components/schemas/ErrorMessage' |
| 811 | description: Internal Server Error |
seanbeirne | 16e2358 | 2023-01-26 09:21:44 +0000 | [diff] [blame] | 812 | "502": |
seanbeirne | 16e2358 | 2023-01-26 09:21:44 +0000 | [diff] [blame] | 813 | content: |
| 814 | application/json: |
seanbeirne | 16e2358 | 2023-01-26 09:21:44 +0000 | [diff] [blame] | 815 | example: |
| 816 | message: Bad Gateway Error Message NCMP |
| 817 | dmi-response: |
| 818 | http-code: 400 |
| 819 | body: Bad Request |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 820 | schema: |
| 821 | $ref: '#/components/schemas/DmiErrorMessage' |
| 822 | description: Bad Gateway |
| 823 | summary: Query resource data for a given cm handle |
| 824 | tags: |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 825 | - network-cm-proxy |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 826 | /v1/ch/{cm-handle}/modules: |
| 827 | get: |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 828 | description: fetch all module references (name and revision) for a given cm |
| 829 | handle |
| 830 | operationId: getModuleReferencesByCmHandle |
| 831 | parameters: |
sourabh_sourabh | ef70022 | 2024-10-04 14:35:32 +0100 | [diff] [blame] | 832 | - description: "The identifier (cmHandle or alternate) for a network function,\ |
| 833 | \ network element, subnetwork or any other cm object by managed Network\ |
| 834 | \ CM Proxy" |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 835 | in: path |
| 836 | name: cm-handle |
| 837 | required: true |
| 838 | schema: |
sourabh_sourabh | ef70022 | 2024-10-04 14:35:32 +0100 | [diff] [blame] | 839 | example: my-cm-handle-reference |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 840 | type: string |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 841 | responses: |
| 842 | "200": |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 843 | content: |
| 844 | application/json: |
| 845 | schema: |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 846 | items: |
Bruno Sakoto | a1129b6 | 2022-03-15 08:09:07 -0400 | [diff] [blame] | 847 | $ref: '#/components/schemas/RestModuleReference' |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 848 | type: array |
| 849 | description: OK |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 850 | "400": |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 851 | content: |
| 852 | application/json: |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 853 | example: |
danielhanrahan | ad46c25 | 2024-05-01 11:25:36 +0100 | [diff] [blame] | 854 | status: 400 |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 855 | message: Bad request error message |
| 856 | details: Bad request error details |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 857 | schema: |
| 858 | $ref: '#/components/schemas/ErrorMessage' |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 859 | description: Bad Request |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 860 | "403": |
| 861 | content: |
| 862 | application/json: |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 863 | example: |
| 864 | status: 403 |
| 865 | message: Forbidden error message |
| 866 | details: Forbidden error details |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 867 | schema: |
| 868 | $ref: '#/components/schemas/ErrorMessage' |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 869 | description: Forbidden |
| 870 | "500": |
| 871 | content: |
| 872 | application/json: |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 873 | example: |
| 874 | status: 500 |
| 875 | message: Internal Server Error |
| 876 | details: Internal Server Error occurred |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 877 | schema: |
| 878 | $ref: '#/components/schemas/ErrorMessage' |
| 879 | description: Internal Server Error |
| 880 | summary: Fetch all module references (name and revision) for a given cm handle |
| 881 | tags: |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 882 | - network-cm-proxy |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 883 | /v1/ch/{cm-handle}/modules/definitions: |
| 884 | get: |
danielhanrahan | 7ce495b | 2024-02-07 14:21:58 +0000 | [diff] [blame] | 885 | description: "Get module definitions (module name, revision, yang resource)\ |
| 886 | \ with options to filter on module name and revision" |
| 887 | operationId: getModuleDefinitions |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 888 | parameters: |
sourabh_sourabh | ef70022 | 2024-10-04 14:35:32 +0100 | [diff] [blame] | 889 | - description: "The identifier (cmHandle or alternate) for a network function,\ |
| 890 | \ network element, subnetwork or any other cm object by managed Network\ |
| 891 | \ CM Proxy" |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 892 | in: path |
| 893 | name: cm-handle |
| 894 | required: true |
| 895 | schema: |
sourabh_sourabh | ef70022 | 2024-10-04 14:35:32 +0100 | [diff] [blame] | 896 | example: my-cm-handle-reference |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 897 | type: string |
danielhanrahan | 7ce495b | 2024-02-07 14:21:58 +0000 | [diff] [blame] | 898 | - description: Filter for a module name.This is an optional parameter |
| 899 | in: query |
| 900 | name: module-name |
| 901 | required: false |
| 902 | schema: |
| 903 | example: my-module |
| 904 | type: string |
| 905 | - description: Filter for a module revision.This is an optional parameter and |
| 906 | ignored when no module name is supplied |
| 907 | in: query |
| 908 | name: revision |
| 909 | required: false |
| 910 | schema: |
| 911 | example: 2024-01-22 |
| 912 | type: string |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 913 | responses: |
| 914 | "200": |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 915 | content: |
| 916 | application/json: |
| 917 | schema: |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 918 | items: |
| 919 | $ref: '#/components/schemas/RestModuleDefinition' |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 920 | type: array |
| 921 | description: OK |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 922 | "403": |
| 923 | content: |
| 924 | application/json: |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 925 | example: |
| 926 | status: 403 |
| 927 | message: Forbidden error message |
| 928 | details: Forbidden error details |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 929 | schema: |
| 930 | $ref: '#/components/schemas/ErrorMessage' |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 931 | description: Forbidden |
| 932 | "500": |
| 933 | content: |
| 934 | application/json: |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 935 | example: |
| 936 | status: 500 |
| 937 | message: Internal Server Error |
| 938 | details: Internal Server Error occurred |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 939 | schema: |
| 940 | $ref: '#/components/schemas/ErrorMessage' |
| 941 | description: Internal Server Error |
danielhanrahan | 7ce495b | 2024-02-07 14:21:58 +0000 | [diff] [blame] | 942 | summary: Get module definitions |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 943 | tags: |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 944 | - network-cm-proxy |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 945 | /v1/ch/searches: |
| 946 | post: |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 947 | description: Execute cm handle query search and return a list of cm handle details. |
| 948 | Any number of conditions can be applied. To be included in the result a cm-handle |
| 949 | must fulfill ALL the conditions. An empty collection will be returned in the |
| 950 | case that the cm handle does not match a condition. For more on cm handle |
| 951 | query search please refer to <a href="https://docs.onap.org/projects/onap-cps/en/latest/ncmp-cmhandle-querying.html">cm |
| 952 | handle query search Read the Docs</a>.<br/>By supplying a CPS Path it is possible |
| 953 | to query on any data related to the cm handle. For more on CPS Path please |
| 954 | refer to <a href="https://docs.onap.org/projects/onap-cps/en/latest/cps-path.html">CPS |
| 955 | Path Read the Docs</a>. The cm handle ancestor is automatically returned for |
| 956 | this query. |
| 957 | operationId: searchCmHandles |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 958 | requestBody: |
| 959 | content: |
| 960 | application/json: |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 961 | examples: |
| 962 | Cm handle properties query: |
| 963 | $ref: '#/components/examples/pubPropCmHandleQueryParameters' |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 964 | value: null |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 965 | Cm handle modules query: |
| 966 | $ref: '#/components/examples/modulesCmHandleQueryParameters' |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 967 | value: null |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 968 | All cm handle query parameters: |
| 969 | $ref: '#/components/examples/allCmHandleQueryParameters' |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 970 | value: null |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 971 | Cm handle with CPS path state query: |
| 972 | $ref: '#/components/examples/cpsPathCmHandleStateQueryParameters' |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 973 | value: null |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 974 | Cm handle with data sync flag query: |
| 975 | $ref: '#/components/examples/cpsPathCmHandleDataSyncQueryParameters' |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 976 | value: null |
| 977 | schema: |
| 978 | $ref: '#/components/schemas/CmHandleQueryParameters' |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 979 | required: true |
| 980 | responses: |
| 981 | "200": |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 982 | content: |
| 983 | application/json: |
| 984 | schema: |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 985 | items: |
| 986 | $ref: '#/components/schemas/RestOutputCmHandle' |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 987 | type: array |
| 988 | description: OK |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 989 | "400": |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 990 | content: |
| 991 | application/json: |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 992 | example: |
danielhanrahan | ad46c25 | 2024-05-01 11:25:36 +0100 | [diff] [blame] | 993 | status: 400 |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 994 | message: Bad request error message |
| 995 | details: Bad request error details |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 996 | schema: |
| 997 | $ref: '#/components/schemas/ErrorMessage' |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 998 | description: Bad Request |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 999 | "403": |
| 1000 | content: |
| 1001 | application/json: |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 1002 | example: |
| 1003 | status: 403 |
| 1004 | message: Forbidden error message |
| 1005 | details: Forbidden error details |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 1006 | schema: |
| 1007 | $ref: '#/components/schemas/ErrorMessage' |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1008 | description: Forbidden |
| 1009 | "500": |
| 1010 | content: |
| 1011 | application/json: |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 1012 | example: |
| 1013 | status: 500 |
| 1014 | message: Internal Server Error |
| 1015 | details: Internal Server Error occurred |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1016 | schema: |
| 1017 | $ref: '#/components/schemas/ErrorMessage' |
| 1018 | description: Internal Server Error |
| 1019 | summary: Execute cm handle search using the available conditions |
| 1020 | tags: |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 1021 | - network-cm-proxy |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 1022 | /v1/ch/{cm-handle}: |
| 1023 | get: |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 1024 | description: Retrieve CM handle details and properties by cm handle id |
| 1025 | operationId: retrieveCmHandleDetailsById |
| 1026 | parameters: |
sourabh_sourabh | ef70022 | 2024-10-04 14:35:32 +0100 | [diff] [blame] | 1027 | - description: "The identifier (cmHandle or alternate) for a network function,\ |
| 1028 | \ network element, subnetwork or any other cm object by managed Network\ |
| 1029 | \ CM Proxy" |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 1030 | in: path |
| 1031 | name: cm-handle |
| 1032 | required: true |
| 1033 | schema: |
sourabh_sourabh | ef70022 | 2024-10-04 14:35:32 +0100 | [diff] [blame] | 1034 | example: my-cm-handle-reference |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 1035 | type: string |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 1036 | responses: |
| 1037 | "200": |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 1038 | content: |
| 1039 | application/json: |
| 1040 | schema: |
| 1041 | $ref: '#/components/schemas/RestOutputCmHandle' |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1042 | description: OK |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 1043 | "400": |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 1044 | content: |
| 1045 | application/json: |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 1046 | example: |
danielhanrahan | ad46c25 | 2024-05-01 11:25:36 +0100 | [diff] [blame] | 1047 | status: 400 |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 1048 | message: Bad request error message |
| 1049 | details: Bad request error details |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 1050 | schema: |
| 1051 | $ref: '#/components/schemas/ErrorMessage' |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1052 | description: Bad Request |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1053 | "404": |
| 1054 | content: |
| 1055 | application/json: |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 1056 | example: |
| 1057 | status: 400 |
| 1058 | message: Not found error message |
| 1059 | details: Not found error details |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 1060 | schema: |
| 1061 | $ref: '#/components/schemas/ErrorMessage' |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1062 | description: The specified resource was not found |
| 1063 | "500": |
| 1064 | content: |
| 1065 | application/json: |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 1066 | example: |
| 1067 | status: 500 |
| 1068 | message: Internal Server Error |
| 1069 | details: Internal Server Error occurred |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1070 | schema: |
| 1071 | $ref: '#/components/schemas/ErrorMessage' |
| 1072 | description: Internal Server Error |
| 1073 | summary: Retrieve CM handle details |
| 1074 | tags: |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 1075 | - network-cm-proxy |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 1076 | /v1/ch/{cm-handle}/properties: |
| 1077 | get: |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 1078 | description: Get CM handle properties by cm handle id |
| 1079 | operationId: getCmHandlePublicPropertiesByCmHandleId |
| 1080 | parameters: |
sourabh_sourabh | ef70022 | 2024-10-04 14:35:32 +0100 | [diff] [blame] | 1081 | - description: "The identifier (cmHandle or alternate) for a network function,\ |
| 1082 | \ network element, subnetwork or any other cm object by managed Network\ |
| 1083 | \ CM Proxy" |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 1084 | in: path |
| 1085 | name: cm-handle |
| 1086 | required: true |
| 1087 | schema: |
sourabh_sourabh | ef70022 | 2024-10-04 14:35:32 +0100 | [diff] [blame] | 1088 | example: my-cm-handle-reference |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 1089 | type: string |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 1090 | responses: |
| 1091 | "200": |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 1092 | content: |
| 1093 | application/json: |
| 1094 | schema: |
| 1095 | $ref: '#/components/schemas/RestOutputCmHandlePublicProperties' |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1096 | description: OK |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 1097 | "400": |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 1098 | content: |
| 1099 | application/json: |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 1100 | example: |
danielhanrahan | ad46c25 | 2024-05-01 11:25:36 +0100 | [diff] [blame] | 1101 | status: 400 |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 1102 | message: Bad request error message |
| 1103 | details: Bad request error details |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 1104 | schema: |
| 1105 | $ref: '#/components/schemas/ErrorMessage' |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1106 | description: Bad Request |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1107 | "404": |
| 1108 | content: |
| 1109 | application/json: |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 1110 | example: |
| 1111 | status: 400 |
| 1112 | message: Not found error message |
| 1113 | details: Not found error details |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 1114 | schema: |
| 1115 | $ref: '#/components/schemas/ErrorMessage' |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1116 | description: The specified resource was not found |
| 1117 | "500": |
| 1118 | content: |
| 1119 | application/json: |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 1120 | example: |
| 1121 | status: 500 |
| 1122 | message: Internal Server Error |
| 1123 | details: Internal Server Error occurred |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1124 | schema: |
| 1125 | $ref: '#/components/schemas/ErrorMessage' |
| 1126 | description: Internal Server Error |
| 1127 | summary: Get CM handle properties |
| 1128 | tags: |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 1129 | - network-cm-proxy |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 1130 | /v1/ch/id-searches: |
| 1131 | post: |
danielhanrahan | 8271b87 | 2024-10-25 16:28:17 +0100 | [diff] [blame] | 1132 | description: Execute cm handle query search and return a list of cm handle references. |
seanbeirne | 9060818 | 2024-11-20 11:00:49 +0000 | [diff] [blame] | 1133 | Any number of conditions can be applied. To be included in the result a cm |
| 1134 | handle must fulfill ALL the conditions. An empty collection will be returned |
| 1135 | in the case that the cm handle does not match a condition. For more on cm |
| 1136 | handle query search please refer to <a href="https://docs.onap.org/projects/onap-cps/en/latest/ncmp-cmhandle-querying.html">cm |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 1137 | handle query search Read the Docs</a>.<br/>By supplying a CPS Path it is possible |
| 1138 | to query on any data related to the cm handle. For more on CPS Path please |
| 1139 | refer to <a href="https://docs.onap.org/projects/onap-cps/en/latest/cps-path.html">CPS |
| 1140 | Path Read the Docs</a>. The cm handle ancestor is automatically returned for |
| 1141 | this query. |
| 1142 | operationId: searchCmHandleIds |
danielhanrahan | 8271b87 | 2024-10-25 16:28:17 +0100 | [diff] [blame] | 1143 | parameters: |
seanbeirne | a1a71f7 | 2024-10-21 16:18:27 +0100 | [diff] [blame] | 1144 | - description: Boolean parameter to determine if returned value(s) will be cm |
seanbeirne | 9060818 | 2024-11-20 11:00:49 +0000 | [diff] [blame] | 1145 | handle ids or alternate ids for a given query |
danielhanrahan | 8271b87 | 2024-10-25 16:28:17 +0100 | [diff] [blame] | 1146 | in: query |
| 1147 | name: outputAlternateId |
| 1148 | required: false |
| 1149 | schema: |
| 1150 | default: false |
| 1151 | type: boolean |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 1152 | requestBody: |
| 1153 | content: |
| 1154 | application/json: |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 1155 | examples: |
| 1156 | Cm handle properties query: |
| 1157 | $ref: '#/components/examples/pubPropCmHandleQueryParameters' |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1158 | value: null |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 1159 | Cm handle modules query: |
| 1160 | $ref: '#/components/examples/modulesCmHandleQueryParameters' |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1161 | value: null |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 1162 | All cm handle query parameters: |
| 1163 | $ref: '#/components/examples/allCmHandleQueryParameters' |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1164 | value: null |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 1165 | Cm handle with CPS path state query: |
| 1166 | $ref: '#/components/examples/cpsPathCmHandleStateQueryParameters' |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1167 | value: null |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 1168 | Cm handle with data sync flag query: |
| 1169 | $ref: '#/components/examples/cpsPathCmHandleDataSyncQueryParameters' |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1170 | value: null |
| 1171 | schema: |
| 1172 | $ref: '#/components/schemas/CmHandleQueryParameters' |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 1173 | required: true |
| 1174 | responses: |
| 1175 | "200": |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 1176 | content: |
| 1177 | application/json: |
| 1178 | schema: |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 1179 | items: |
| 1180 | type: string |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1181 | type: array |
| 1182 | description: OK |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 1183 | "400": |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 1184 | content: |
| 1185 | application/json: |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 1186 | example: |
danielhanrahan | ad46c25 | 2024-05-01 11:25:36 +0100 | [diff] [blame] | 1187 | status: 400 |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 1188 | message: Bad request error message |
| 1189 | details: Bad request error details |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 1190 | schema: |
| 1191 | $ref: '#/components/schemas/ErrorMessage' |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1192 | description: Bad Request |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1193 | "403": |
| 1194 | content: |
| 1195 | application/json: |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 1196 | example: |
| 1197 | status: 403 |
| 1198 | message: Forbidden error message |
| 1199 | details: Forbidden error details |
DylanB95EST | fee8699 | 2021-09-23 12:22:55 +0100 | [diff] [blame] | 1200 | schema: |
| 1201 | $ref: '#/components/schemas/ErrorMessage' |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1202 | description: Forbidden |
| 1203 | "404": |
| 1204 | content: |
| 1205 | application/json: |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 1206 | example: |
| 1207 | status: 400 |
| 1208 | message: Not found error message |
| 1209 | details: Not found error details |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 1210 | schema: |
| 1211 | $ref: '#/components/schemas/ErrorMessage' |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1212 | description: The specified resource was not found |
| 1213 | "500": |
| 1214 | content: |
| 1215 | application/json: |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 1216 | example: |
| 1217 | status: 500 |
| 1218 | message: Internal Server Error |
| 1219 | details: Internal Server Error occurred |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1220 | schema: |
| 1221 | $ref: '#/components/schemas/ErrorMessage' |
| 1222 | description: Internal Server Error |
| 1223 | summary: Execute cm handle query upon a given set of query parameters |
| 1224 | tags: |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 1225 | - network-cm-proxy |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 1226 | /v1/ch/{cm-handle}/state: |
| 1227 | get: |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 1228 | description: Get CM handle state by cm handle id |
| 1229 | operationId: getCmHandleStateByCmHandleId |
| 1230 | parameters: |
sourabh_sourabh | ef70022 | 2024-10-04 14:35:32 +0100 | [diff] [blame] | 1231 | - description: "The identifier (cmHandle or alternate) for a network function,\ |
| 1232 | \ network element, subnetwork or any other cm object by managed Network\ |
| 1233 | \ CM Proxy" |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 1234 | in: path |
| 1235 | name: cm-handle |
| 1236 | required: true |
| 1237 | schema: |
sourabh_sourabh | ef70022 | 2024-10-04 14:35:32 +0100 | [diff] [blame] | 1238 | example: my-cm-handle-reference |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 1239 | type: string |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 1240 | responses: |
| 1241 | "200": |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 1242 | content: |
| 1243 | application/json: |
| 1244 | schema: |
| 1245 | $ref: '#/components/schemas/RestOutputCmHandleCompositeState' |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1246 | description: OK |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 1247 | "400": |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 1248 | content: |
| 1249 | application/json: |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 1250 | example: |
danielhanrahan | ad46c25 | 2024-05-01 11:25:36 +0100 | [diff] [blame] | 1251 | status: 400 |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 1252 | message: Bad request error message |
| 1253 | details: Bad request error details |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 1254 | schema: |
| 1255 | $ref: '#/components/schemas/ErrorMessage' |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1256 | description: Bad Request |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1257 | "404": |
| 1258 | content: |
| 1259 | application/json: |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 1260 | example: |
| 1261 | status: 400 |
| 1262 | message: Not found error message |
| 1263 | details: Not found error details |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 1264 | schema: |
| 1265 | $ref: '#/components/schemas/ErrorMessage' |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1266 | description: The specified resource was not found |
| 1267 | "500": |
| 1268 | content: |
| 1269 | application/json: |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 1270 | example: |
| 1271 | status: 500 |
| 1272 | message: Internal Server Error |
| 1273 | details: Internal Server Error occurred |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1274 | schema: |
| 1275 | $ref: '#/components/schemas/ErrorMessage' |
| 1276 | description: Internal Server Error |
| 1277 | summary: Get CM handle state |
| 1278 | tags: |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 1279 | - network-cm-proxy |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 1280 | /v1/ch/{cm-handle}/data-sync: |
| 1281 | put: |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 1282 | description: Set the data sync enabled flag to true or false for a specified |
| 1283 | Cm-Handle. This will in turn set the data sync state to UNSYNCHRONIZED and |
| 1284 | NONE_REQUESTED respectfully. |
| 1285 | operationId: setDataSyncEnabledFlagForCmHandle |
| 1286 | parameters: |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 1287 | - description: "The identifier for a network function, network element, subnetwork\ |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 1288 | \ or any other cm object by managed Network CM Proxy" |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 1289 | in: path |
| 1290 | name: cm-handle |
| 1291 | required: true |
| 1292 | schema: |
| 1293 | example: my-cm-handle |
| 1294 | type: string |
| 1295 | - description: Is used to enable or disable the data synchronization flag |
| 1296 | in: query |
| 1297 | name: dataSyncEnabled |
| 1298 | required: true |
| 1299 | schema: |
| 1300 | example: true |
| 1301 | type: boolean |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 1302 | responses: |
| 1303 | "200": |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 1304 | content: |
| 1305 | application/json: |
| 1306 | schema: |
| 1307 | type: object |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1308 | description: OK |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 1309 | "400": |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 1310 | content: |
| 1311 | application/json: |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 1312 | example: |
danielhanrahan | ad46c25 | 2024-05-01 11:25:36 +0100 | [diff] [blame] | 1313 | status: 400 |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 1314 | message: Bad request error message |
| 1315 | details: Bad request error details |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 1316 | schema: |
| 1317 | $ref: '#/components/schemas/ErrorMessage' |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1318 | description: Bad Request |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1319 | "403": |
| 1320 | content: |
| 1321 | application/json: |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 1322 | example: |
| 1323 | status: 403 |
| 1324 | message: Forbidden error message |
| 1325 | details: Forbidden error details |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 1326 | schema: |
| 1327 | $ref: '#/components/schemas/ErrorMessage' |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1328 | description: Forbidden |
| 1329 | "500": |
| 1330 | content: |
| 1331 | application/json: |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 1332 | example: |
| 1333 | status: 500 |
| 1334 | message: Internal Server Error |
| 1335 | details: Internal Server Error occurred |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1336 | schema: |
| 1337 | $ref: '#/components/schemas/ErrorMessage' |
| 1338 | description: Internal Server Error |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 1339 | "502": |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 1340 | content: |
| 1341 | application/json: |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 1342 | example: |
| 1343 | message: Bad Gateway Error Message NCMP |
| 1344 | dmi-response: |
| 1345 | http-code: 400 |
| 1346 | body: Bad Request |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1347 | schema: |
| 1348 | $ref: '#/components/schemas/DmiErrorMessage' |
| 1349 | description: Bad Gateway |
| 1350 | summary: Set the Data Sync Enabled Flag |
| 1351 | tags: |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 1352 | - network-cm-proxy |
DylanB95EST | fee8699 | 2021-09-23 12:22:55 +0100 | [diff] [blame] | 1353 | components: |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1354 | examples: |
| 1355 | dataSampleResponse: |
| 1356 | description: Sample response for selecting 'sample 1'. |
| 1357 | summary: Sample response |
| 1358 | value: |
| 1359 | bookstore: |
| 1360 | categories: |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 1361 | - code: "01" |
| 1362 | books: |
| 1363 | - authors: |
| 1364 | - Iain M. Banks |
| 1365 | - Ursula K. Le Guin |
| 1366 | name: SciFi |
| 1367 | - code: "02" |
| 1368 | books: |
| 1369 | - authors: |
| 1370 | - Philip Pullman |
| 1371 | name: kids |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1372 | dataSampleRequest: |
| 1373 | description: Sample request body |
| 1374 | summary: Sample request |
| 1375 | value: |
| 1376 | test:bookstore: |
| 1377 | bookstore-name: Chapters |
| 1378 | categories: |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 1379 | - code: "01" |
| 1380 | name: SciFi |
| 1381 | books: |
| 1382 | - authors: |
| 1383 | - Iain M. Banks |
| 1384 | - Ursula K. Le Guin |
| 1385 | - code: "02" |
| 1386 | name: kids |
| 1387 | books: |
| 1388 | - authors: |
| 1389 | - Philip Pullman |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1390 | dataSamplePatchRequest: |
| 1391 | description: Sample patch request body |
| 1392 | summary: Sample patch request |
| 1393 | value: |
| 1394 | ietf-restconf:yang-patch: |
| 1395 | patch-id: patch-1 |
| 1396 | edit: |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 1397 | - edit-id: edit1 |
| 1398 | operation: merge |
| 1399 | target: / |
| 1400 | value: |
| 1401 | test:bookstore: |
| 1402 | bookstore-name: Chapters |
| 1403 | categories: |
| 1404 | - code: "01" |
| 1405 | name: Science |
| 1406 | books: |
| 1407 | - authors: |
| 1408 | - Author1 |
| 1409 | - Author2 |
| 1410 | - code: "02" |
| 1411 | name: Arts |
| 1412 | books: |
| 1413 | - authors: |
| 1414 | - Author3 |
| 1415 | - edit-id: edit2 |
| 1416 | operation: merge |
| 1417 | target: / |
| 1418 | value: |
| 1419 | test:bookstore: |
| 1420 | bookstore-name: Novels |
| 1421 | categories: |
| 1422 | - code: "03" |
| 1423 | name: History |
| 1424 | books: |
| 1425 | - authors: |
| 1426 | - Iain M. Banks |
| 1427 | - Ursula K. Le Guin |
| 1428 | - code: "04" |
| 1429 | name: Fiction |
| 1430 | books: |
| 1431 | - authors: |
| 1432 | - Philip Pullman |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1433 | pubPropCmHandleQueryParameters: |
| 1434 | value: |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 1435 | cmHandleQueryParameters: |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 1436 | - conditionName: hasAllProperties |
| 1437 | conditionParameters: |
| 1438 | - Color: yellow |
| 1439 | - Shape: circle |
| 1440 | - Size: small |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1441 | modulesCmHandleQueryParameters: |
| 1442 | value: |
| 1443 | cmHandleQueryParameters: |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 1444 | - conditionName: hasAllModules |
| 1445 | conditionParameters: |
| 1446 | - moduleName: my-module-1 |
| 1447 | - moduleName: my-module-2 |
| 1448 | - moduleName: my-module-3 |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1449 | allCmHandleQueryParameters: |
| 1450 | value: |
| 1451 | cmHandleQueryParameters: |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 1452 | - conditionName: hasAllModules |
| 1453 | conditionParameters: |
| 1454 | - moduleName: my-module-1 |
| 1455 | - moduleName: my-module-2 |
| 1456 | - moduleName: my-module-3 |
| 1457 | - conditionName: hasAllProperties |
| 1458 | conditionParameters: |
| 1459 | - Color: yellow |
| 1460 | - Shape: circle |
| 1461 | - Size: small |
| 1462 | - conditionName: cmHandleWithCpsPath |
| 1463 | conditionParameters: |
| 1464 | - cpsPath: "//state[@cm-handle-state='ADVISED']" |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1465 | cpsPathCmHandleStateQueryParameters: |
| 1466 | value: |
| 1467 | cmHandleQueryParameters: |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 1468 | - conditionName: cmHandleWithCpsPath |
| 1469 | conditionParameters: |
| 1470 | - cpsPath: "//state[@cm-handle-state='LOCKED']" |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1471 | cpsPathCmHandleDataSyncQueryParameters: |
| 1472 | value: |
| 1473 | cmHandleQueryParameters: |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 1474 | - conditionName: cmHandleWithCpsPath |
| 1475 | conditionParameters: |
| 1476 | - cpsPath: "//state[@data-sync-enabled='true']" |
mpriyank | 52c5e54 | 2023-05-02 15:58:55 +0100 | [diff] [blame] | 1477 | parameters: |
| 1478 | datastoreName: |
mpriyank | 52c5e54 | 2023-05-02 15:58:55 +0100 | [diff] [blame] | 1479 | description: The type of the requested data |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1480 | in: path |
| 1481 | name: datastore-name |
mpriyank | 52c5e54 | 2023-05-02 15:58:55 +0100 | [diff] [blame] | 1482 | required: true |
| 1483 | schema: |
mpriyank | 52c5e54 | 2023-05-02 15:58:55 +0100 | [diff] [blame] | 1484 | example: ncmp-datastore:running |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1485 | type: string |
sourabh_sourabh | ef70022 | 2024-10-04 14:35:32 +0100 | [diff] [blame] | 1486 | cmHandleReferenceInPath: |
| 1487 | description: "The identifier (cmHandle or alternate) for a network function,\ |
| 1488 | \ network element, subnetwork or any other cm object by managed Network CM\ |
| 1489 | \ Proxy" |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1490 | in: path |
| 1491 | name: cm-handle |
mpriyank | 52c5e54 | 2023-05-02 15:58:55 +0100 | [diff] [blame] | 1492 | required: true |
| 1493 | schema: |
sourabh_sourabh | ef70022 | 2024-10-04 14:35:32 +0100 | [diff] [blame] | 1494 | example: my-cm-handle-reference |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1495 | type: string |
mpriyank | 52c5e54 | 2023-05-02 15:58:55 +0100 | [diff] [blame] | 1496 | resourceIdentifierInQuery: |
mpriyank | 52c5e54 | 2023-05-02 15:58:55 +0100 | [diff] [blame] | 1497 | description: The format of resource identifier depend on the associated DMI |
| 1498 | Plugin implementation. For ONAP DMI Plugin it will be RESTConf paths but it |
| 1499 | can really be anything. |
mpriyank | 52c5e54 | 2023-05-02 15:58:55 +0100 | [diff] [blame] | 1500 | examples: |
| 1501 | sample 1: |
| 1502 | value: |
| 1503 | resourceIdentifier: \shops\bookstore |
| 1504 | sample 2: |
| 1505 | value: |
| 1506 | resourceIdentifier: "\\shops\\bookstore\\categories[@code=1]" |
| 1507 | sample 3: |
| 1508 | value: |
| 1509 | resourceIdentifier: "parent=shops,child=bookstore" |
mpriyank | 52c5e54 | 2023-05-02 15:58:55 +0100 | [diff] [blame] | 1510 | in: query |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1511 | name: resourceIdentifier |
| 1512 | required: true |
| 1513 | schema: |
| 1514 | type: string |
| 1515 | optionsParamInQuery: |
mpriyank | 52c5e54 | 2023-05-02 15:58:55 +0100 | [diff] [blame] | 1516 | description: "options parameter in query, it is mandatory to wrap key(s)=value(s)\ |
| 1517 | \ in parenthesis'()'. The format of options parameter depend on the associated\ |
| 1518 | \ DMI Plugin implementation." |
mpriyank | 52c5e54 | 2023-05-02 15:58:55 +0100 | [diff] [blame] | 1519 | examples: |
| 1520 | sample 1: |
| 1521 | value: |
| 1522 | options: (depth=3) |
| 1523 | sample 2: |
| 1524 | value: |
| 1525 | options: (fields=book) |
| 1526 | sample 3: |
| 1527 | value: |
| 1528 | options: "(depth=2,fields=book/authors)" |
mpriyank | 52c5e54 | 2023-05-02 15:58:55 +0100 | [diff] [blame] | 1529 | in: query |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1530 | name: options |
mpriyank | 52c5e54 | 2023-05-02 15:58:55 +0100 | [diff] [blame] | 1531 | required: false |
mpriyank | 52c5e54 | 2023-05-02 15:58:55 +0100 | [diff] [blame] | 1532 | schema: |
| 1533 | type: string |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1534 | topicParamInQuery: |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1535 | description: topic parameter in query. |
mpriyank | 52c5e54 | 2023-05-02 15:58:55 +0100 | [diff] [blame] | 1536 | examples: |
| 1537 | sample 1: |
| 1538 | value: |
| 1539 | topic: my-topic-name |
mpriyank | 52c5e54 | 2023-05-02 15:58:55 +0100 | [diff] [blame] | 1540 | in: query |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1541 | name: topic |
mpriyank | 52c5e54 | 2023-05-02 15:58:55 +0100 | [diff] [blame] | 1542 | required: false |
| 1543 | schema: |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1544 | type: string |
| 1545 | includeDescendantsOptionInQuery: |
| 1546 | description: Determines if descendants are included in response |
| 1547 | in: query |
| 1548 | name: include-descendants |
| 1549 | required: false |
| 1550 | schema: |
mpriyank | 52c5e54 | 2023-05-02 15:58:55 +0100 | [diff] [blame] | 1551 | default: false |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1552 | type: boolean |
mpriyank | 4a978d3 | 2024-02-29 14:39:00 +0000 | [diff] [blame] | 1553 | authorizationParamInHeader: |
| 1554 | description: Authorization parameter for request. |
| 1555 | in: header |
| 1556 | name: Authorization |
| 1557 | required: false |
| 1558 | schema: |
| 1559 | type: string |
mpriyank | 52c5e54 | 2023-05-02 15:58:55 +0100 | [diff] [blame] | 1560 | contentParamInHeader: |
mpriyank | 52c5e54 | 2023-05-02 15:58:55 +0100 | [diff] [blame] | 1561 | description: "Content parameter for request, if content parameter is null, default\ |
| 1562 | \ value is application/json." |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1563 | in: header |
| 1564 | name: Content-Type |
mpriyank | 52c5e54 | 2023-05-02 15:58:55 +0100 | [diff] [blame] | 1565 | required: false |
| 1566 | schema: |
mpriyank | 52c5e54 | 2023-05-02 15:58:55 +0100 | [diff] [blame] | 1567 | default: application/json |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1568 | example: application/yang-data+json |
mpriyank | 52c5e54 | 2023-05-02 15:58:55 +0100 | [diff] [blame] | 1569 | type: string |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1570 | requiredTopicParamInQuery: |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1571 | description: mandatory topic parameter in query. |
mpriyank | 52c5e54 | 2023-05-02 15:58:55 +0100 | [diff] [blame] | 1572 | examples: |
| 1573 | sample 1: |
| 1574 | value: |
| 1575 | topic: my-topic-name |
mpriyank | 52c5e54 | 2023-05-02 15:58:55 +0100 | [diff] [blame] | 1576 | in: query |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1577 | name: topic |
| 1578 | required: true |
mpriyank | 52c5e54 | 2023-05-02 15:58:55 +0100 | [diff] [blame] | 1579 | schema: |
| 1580 | type: string |
sourabh_sourabh | ef70022 | 2024-10-04 14:35:32 +0100 | [diff] [blame] | 1581 | cmHandleInPath: |
| 1582 | description: "The identifier for a network function, network element, subnetwork\ |
| 1583 | \ or any other cm object by managed Network CM Proxy" |
| 1584 | in: path |
| 1585 | name: cm-handle |
| 1586 | required: true |
| 1587 | schema: |
| 1588 | example: my-cm-handle |
| 1589 | type: string |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1590 | cpsPathInQuery: |
| 1591 | description: "For more details on cps path, please refer https://docs.onap.org/projects/onap-cps/en/latest/cps-path.html" |
mpriyank | 52c5e54 | 2023-05-02 15:58:55 +0100 | [diff] [blame] | 1592 | examples: |
| 1593 | container cps path: |
| 1594 | value: //bookstore |
| 1595 | list attributes cps path: |
| 1596 | value: "//categories[@code=1]" |
mpriyank | 52c5e54 | 2023-05-02 15:58:55 +0100 | [diff] [blame] | 1597 | in: query |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1598 | name: cps-path |
| 1599 | required: false |
| 1600 | schema: |
| 1601 | default: / |
| 1602 | type: string |
danielhanrahan | 7ce495b | 2024-02-07 14:21:58 +0000 | [diff] [blame] | 1603 | moduleNameInQuery: |
| 1604 | description: Filter for a module name.This is an optional parameter |
| 1605 | in: query |
| 1606 | name: module-name |
| 1607 | required: false |
| 1608 | schema: |
| 1609 | example: my-module |
| 1610 | type: string |
| 1611 | revisionInQuery: |
| 1612 | description: Filter for a module revision.This is an optional parameter and |
| 1613 | ignored when no module name is supplied |
| 1614 | in: query |
| 1615 | name: revision |
| 1616 | required: false |
| 1617 | schema: |
| 1618 | example: 2024-01-22 |
| 1619 | type: string |
danielhanrahan | 8271b87 | 2024-10-25 16:28:17 +0100 | [diff] [blame] | 1620 | outputAlternateIdOptionInQuery: |
seanbeirne | a1a71f7 | 2024-10-21 16:18:27 +0100 | [diff] [blame] | 1621 | description: Boolean parameter to determine if returned value(s) will be cm |
seanbeirne | 9060818 | 2024-11-20 11:00:49 +0000 | [diff] [blame] | 1622 | handle ids or alternate ids for a given query |
danielhanrahan | 8271b87 | 2024-10-25 16:28:17 +0100 | [diff] [blame] | 1623 | in: query |
| 1624 | name: outputAlternateId |
| 1625 | required: false |
| 1626 | schema: |
| 1627 | default: false |
| 1628 | type: boolean |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1629 | dataSyncEnabled: |
mpriyank | 52c5e54 | 2023-05-02 15:58:55 +0100 | [diff] [blame] | 1630 | description: Is used to enable or disable the data synchronization flag |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1631 | in: query |
| 1632 | name: dataSyncEnabled |
mpriyank | 52c5e54 | 2023-05-02 15:58:55 +0100 | [diff] [blame] | 1633 | required: true |
| 1634 | schema: |
mpriyank | 52c5e54 | 2023-05-02 15:58:55 +0100 | [diff] [blame] | 1635 | example: true |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1636 | type: boolean |
| 1637 | responses: |
| 1638 | BadRequest: |
| 1639 | content: |
| 1640 | application/json: |
| 1641 | example: |
danielhanrahan | ad46c25 | 2024-05-01 11:25:36 +0100 | [diff] [blame] | 1642 | status: 400 |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1643 | message: Bad request error message |
| 1644 | details: Bad request error details |
| 1645 | schema: |
| 1646 | $ref: '#/components/schemas/ErrorMessage' |
| 1647 | description: Bad Request |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1648 | Forbidden: |
| 1649 | content: |
| 1650 | application/json: |
| 1651 | example: |
| 1652 | status: 403 |
| 1653 | message: Forbidden error message |
| 1654 | details: Forbidden error details |
| 1655 | schema: |
| 1656 | $ref: '#/components/schemas/ErrorMessage' |
| 1657 | description: Forbidden |
| 1658 | InternalServerError: |
| 1659 | content: |
| 1660 | application/json: |
| 1661 | example: |
| 1662 | status: 500 |
| 1663 | message: Internal Server Error |
| 1664 | details: Internal Server Error occurred |
| 1665 | schema: |
| 1666 | $ref: '#/components/schemas/ErrorMessage' |
| 1667 | description: Internal Server Error |
| 1668 | BadGateway: |
| 1669 | content: |
| 1670 | application/json: |
| 1671 | example: |
| 1672 | message: Bad Gateway Error Message NCMP |
| 1673 | dmi-response: |
| 1674 | http-code: 400 |
| 1675 | body: Bad Request |
| 1676 | schema: |
| 1677 | $ref: '#/components/schemas/DmiErrorMessage' |
| 1678 | description: Bad Gateway |
| 1679 | Ok: |
| 1680 | content: |
| 1681 | application/json: |
| 1682 | schema: |
| 1683 | type: object |
| 1684 | description: OK |
| 1685 | Created: |
| 1686 | content: {} |
| 1687 | description: Created |
| 1688 | NoContent: |
| 1689 | content: {} |
| 1690 | description: No Content |
| 1691 | NotFound: |
| 1692 | content: |
| 1693 | application/json: |
| 1694 | example: |
| 1695 | status: 400 |
| 1696 | message: Not found error message |
| 1697 | details: Not found error details |
| 1698 | schema: |
| 1699 | $ref: '#/components/schemas/ErrorMessage' |
| 1700 | description: The specified resource was not found |
danielhanrahan | ad46c25 | 2024-05-01 11:25:36 +0100 | [diff] [blame] | 1701 | PayloadTooLarge: |
| 1702 | content: |
| 1703 | application/json: |
| 1704 | example: |
| 1705 | status: 413 |
| 1706 | message: Payload Too Large error message |
| 1707 | details: Payload Too Large error details |
| 1708 | schema: |
| 1709 | $ref: '#/components/schemas/ErrorMessage' |
| 1710 | description: The request is larger than the server is willing or able to process |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1711 | schemas: |
| 1712 | ErrorMessage: |
| 1713 | properties: |
| 1714 | status: |
| 1715 | type: string |
| 1716 | message: |
| 1717 | type: string |
| 1718 | details: |
| 1719 | type: string |
| 1720 | title: Error |
| 1721 | type: object |
| 1722 | DmiErrorMessage: |
| 1723 | properties: |
| 1724 | message: |
| 1725 | example: Bad Gateway Error Message NCMP |
| 1726 | type: string |
| 1727 | dmi-response: |
| 1728 | $ref: '#/components/schemas/DmiErrorMessage_dmi_response' |
| 1729 | title: DMI Error Message |
| 1730 | type: object |
| 1731 | DataOperationRequest: |
| 1732 | example: |
| 1733 | operations: |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 1734 | - resourceIdentifier: parent/child |
| 1735 | targetIds: |
| 1736 | - "[\"da310eecdb8d44c2acc0ddaae01174b1\",\"c748c58f8e0b438f9fd1f28370b17d47\"\ |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1737 | ]" |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 1738 | - "[\"da310eecdb8d44c2acc0ddaae01174b1\",\"c748c58f8e0b438f9fd1f28370b17d47\"\ |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1739 | ]" |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 1740 | datastore: ncmp-datastore:passthrough-operational |
| 1741 | options: (fields=schemas/schema) |
| 1742 | operationId: "12" |
| 1743 | operation: read |
| 1744 | - resourceIdentifier: parent/child |
| 1745 | targetIds: |
| 1746 | - "[\"da310eecdb8d44c2acc0ddaae01174b1\",\"c748c58f8e0b438f9fd1f28370b17d47\"\ |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1747 | ]" |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 1748 | - "[\"da310eecdb8d44c2acc0ddaae01174b1\",\"c748c58f8e0b438f9fd1f28370b17d47\"\ |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1749 | ]" |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 1750 | datastore: ncmp-datastore:passthrough-operational |
| 1751 | options: (fields=schemas/schema) |
| 1752 | operationId: "12" |
| 1753 | operation: read |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1754 | properties: |
| 1755 | operations: |
| 1756 | description: contains group of data operation requests |
| 1757 | items: |
| 1758 | $ref: '#/components/schemas/DataOperationDefinition' |
| 1759 | type: array |
| 1760 | title: execute data operation for given array of operations |
| 1761 | type: object |
| 1762 | DataOperationDefinition: |
| 1763 | example: |
| 1764 | resourceIdentifier: parent/child |
| 1765 | targetIds: |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 1766 | - "[\"da310eecdb8d44c2acc0ddaae01174b1\",\"c748c58f8e0b438f9fd1f28370b17d47\"\ |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1767 | ]" |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 1768 | - "[\"da310eecdb8d44c2acc0ddaae01174b1\",\"c748c58f8e0b438f9fd1f28370b17d47\"\ |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1769 | ]" |
| 1770 | datastore: ncmp-datastore:passthrough-operational |
| 1771 | options: (fields=schemas/schema) |
| 1772 | operationId: "12" |
| 1773 | operation: read |
| 1774 | properties: |
| 1775 | operation: |
| 1776 | example: read |
| 1777 | type: string |
| 1778 | operationId: |
| 1779 | example: "12" |
| 1780 | type: string |
| 1781 | datastore: |
| 1782 | example: ncmp-datastore:passthrough-operational |
| 1783 | type: string |
| 1784 | options: |
| 1785 | example: (fields=schemas/schema) |
| 1786 | type: string |
| 1787 | resourceIdentifier: |
| 1788 | example: parent/child |
| 1789 | type: string |
| 1790 | targetIds: |
| 1791 | items: |
seanbeirne | a1a71f7 | 2024-10-21 16:18:27 +0100 | [diff] [blame] | 1792 | description: "targeted cm handle references, maximum of 200 supported.\ |
seanbeirne | c37dee4 | 2024-11-05 10:21:30 +0000 | [diff] [blame] | 1793 | \ If this limit is exceeded the request will be refused." |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1794 | example: "[\"da310eecdb8d44c2acc0ddaae01174b1\",\"c748c58f8e0b438f9fd1f28370b17d47\"\ |
| 1795 | ]" |
| 1796 | type: string |
| 1797 | type: array |
| 1798 | required: |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 1799 | - datastore |
| 1800 | - operation |
| 1801 | - operationId |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1802 | RestModuleReference: |
| 1803 | example: |
| 1804 | moduleName: my-module-name |
| 1805 | revision: my-module-revision |
| 1806 | properties: |
| 1807 | moduleName: |
| 1808 | example: my-module-name |
| 1809 | type: string |
| 1810 | revision: |
| 1811 | example: my-module-revision |
| 1812 | type: string |
| 1813 | title: Module reference details |
| 1814 | type: object |
| 1815 | RestModuleDefinition: |
| 1816 | example: |
| 1817 | moduleName: my-module-name |
| 1818 | content: | |
| 1819 | module stores { |
| 1820 | yang-version 1.1; |
| 1821 | namespace 'org:onap:ccsdk:sample'; |
| 1822 | prefix book-store; |
| 1823 | revision '2020-09-15' { |
| 1824 | description |
| 1825 | 'Sample Model'; |
| 1826 | } |
| 1827 | } |
| 1828 | revision: 2020-09-15 |
| 1829 | properties: |
| 1830 | moduleName: |
| 1831 | example: my-module-name |
| 1832 | type: string |
| 1833 | revision: |
| 1834 | example: 2020-09-15 |
| 1835 | type: string |
| 1836 | content: |
| 1837 | example: | |
| 1838 | module stores { |
| 1839 | yang-version 1.1; |
| 1840 | namespace 'org:onap:ccsdk:sample'; |
| 1841 | prefix book-store; |
| 1842 | revision '2020-09-15' { |
| 1843 | description |
| 1844 | 'Sample Model'; |
| 1845 | } |
| 1846 | } |
| 1847 | type: string |
| 1848 | title: Module definitions |
| 1849 | type: object |
| 1850 | CmHandleQueryParameters: |
| 1851 | example: |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 1852 | cmHandleQueryParameters: |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 1853 | - conditionParameters: |
| 1854 | - key: conditionParameters |
| 1855 | - key: conditionParameters |
| 1856 | conditionName: conditionName |
| 1857 | - conditionParameters: |
| 1858 | - key: conditionParameters |
| 1859 | - key: conditionParameters |
| 1860 | conditionName: conditionName |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1861 | conditions: |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 1862 | - name: name |
| 1863 | conditionParameters: |
| 1864 | - moduleName: my-module |
| 1865 | - moduleName: my-module |
| 1866 | - name: name |
| 1867 | conditionParameters: |
| 1868 | - moduleName: my-module |
| 1869 | - moduleName: my-module |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1870 | properties: |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 1871 | cmHandleQueryParameters: |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1872 | items: |
| 1873 | $ref: '#/components/schemas/ConditionProperties' |
| 1874 | type: array |
| 1875 | conditions: |
| 1876 | deprecated: true |
| 1877 | description: "not necessary, it is just for backward compatibility" |
| 1878 | items: |
| 1879 | $ref: '#/components/schemas/OldConditionProperties' |
| 1880 | type: array |
| 1881 | title: Cm Handle query parameters for executing cm handle search |
| 1882 | type: object |
| 1883 | ConditionProperties: |
| 1884 | example: |
| 1885 | conditionParameters: |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 1886 | - key: conditionParameters |
| 1887 | - key: conditionParameters |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1888 | conditionName: conditionName |
| 1889 | properties: |
| 1890 | conditionName: |
| 1891 | type: string |
| 1892 | conditionParameters: |
| 1893 | items: |
| 1894 | additionalProperties: |
| 1895 | type: string |
| 1896 | type: object |
| 1897 | type: array |
| 1898 | OldConditionProperties: |
| 1899 | deprecated: true |
| 1900 | example: |
| 1901 | name: name |
| 1902 | conditionParameters: |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 1903 | - moduleName: my-module |
| 1904 | - moduleName: my-module |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1905 | properties: |
| 1906 | name: |
| 1907 | type: string |
| 1908 | conditionParameters: |
| 1909 | items: |
| 1910 | $ref: '#/components/schemas/ModuleNameAsJsonObject' |
| 1911 | type: array |
| 1912 | ModuleNameAsJsonObject: |
| 1913 | example: |
| 1914 | moduleName: my-module |
| 1915 | properties: |
| 1916 | moduleName: |
| 1917 | example: my-module |
| 1918 | type: string |
| 1919 | RestOutputCmHandle: |
| 1920 | example: |
| 1921 | cmHandle: my-cm-handle1 |
JvD_Ericsson | e14fe9a | 2024-02-26 13:45:47 +0000 | [diff] [blame] | 1922 | alternateId: my-alternate-id |
| 1923 | dataProducerIdentifier: my-data-producer-identifier |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1924 | publicCmHandleProperties: |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 1925 | - key: Book Type |
| 1926 | - key: Book Type |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1927 | state: |
| 1928 | dataSyncEnabled: false |
| 1929 | dataSyncState: |
| 1930 | running: |
| 1931 | lastSyncTime: 2022-12-31T20:30:40.000+0000 |
| 1932 | syncState: NONE_REQUESTED |
| 1933 | operational: |
| 1934 | lastSyncTime: 2022-12-31T20:30:40.000+0000 |
| 1935 | syncState: NONE_REQUESTED |
| 1936 | cmHandleState: ADVISED |
| 1937 | lockReason: |
| 1938 | reason: LOCKED_MISBEHAVING |
| 1939 | details: locked due to failure in module sync |
| 1940 | lastUpdateTime: 2022-12-31T20:30:40.000+0000 |
danielhanrahan | 3e14d39 | 2023-12-20 13:31:07 +0000 | [diff] [blame] | 1941 | trustLevel: COMPLETE |
JvD_Ericsson | e14fe9a | 2024-02-26 13:45:47 +0000 | [diff] [blame] | 1942 | moduleSetTag: my-module-set-tag |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1943 | properties: |
| 1944 | cmHandle: |
| 1945 | example: my-cm-handle1 |
| 1946 | type: string |
| 1947 | publicCmHandleProperties: |
| 1948 | items: |
| 1949 | additionalProperties: |
| 1950 | example: Book Type |
| 1951 | type: string |
| 1952 | type: object |
| 1953 | type: array |
| 1954 | state: |
| 1955 | $ref: '#/components/schemas/CmHandleCompositeState' |
danielhanrahan | 3e14d39 | 2023-12-20 13:31:07 +0000 | [diff] [blame] | 1956 | trustLevel: |
| 1957 | description: Current trust level of the relevant CM handle ID. |
| 1958 | example: COMPLETE |
| 1959 | type: string |
JvD_Ericsson | e14fe9a | 2024-02-26 13:45:47 +0000 | [diff] [blame] | 1960 | moduleSetTag: |
| 1961 | example: my-module-set-tag |
| 1962 | type: string |
| 1963 | alternateId: |
| 1964 | example: my-alternate-id |
| 1965 | type: string |
| 1966 | dataProducerIdentifier: |
| 1967 | example: my-data-producer-identifier |
| 1968 | type: string |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1969 | title: CM handle Details |
| 1970 | type: object |
| 1971 | CmHandlePublicProperties: |
| 1972 | items: |
| 1973 | additionalProperties: |
| 1974 | example: Book Type |
| 1975 | type: string |
| 1976 | type: object |
| 1977 | type: array |
| 1978 | CmHandleCompositeState: |
| 1979 | example: |
| 1980 | dataSyncEnabled: false |
| 1981 | dataSyncState: |
| 1982 | running: |
| 1983 | lastSyncTime: 2022-12-31T20:30:40.000+0000 |
| 1984 | syncState: NONE_REQUESTED |
| 1985 | operational: |
| 1986 | lastSyncTime: 2022-12-31T20:30:40.000+0000 |
| 1987 | syncState: NONE_REQUESTED |
| 1988 | cmHandleState: ADVISED |
| 1989 | lockReason: |
| 1990 | reason: LOCKED_MISBEHAVING |
| 1991 | details: locked due to failure in module sync |
| 1992 | lastUpdateTime: 2022-12-31T20:30:40.000+0000 |
| 1993 | properties: |
| 1994 | cmHandleState: |
| 1995 | example: ADVISED |
| 1996 | type: string |
| 1997 | lockReason: |
| 1998 | $ref: '#/components/schemas/lock-reason' |
| 1999 | lastUpdateTime: |
| 2000 | example: 2022-12-31T20:30:40.000+0000 |
| 2001 | type: string |
| 2002 | dataSyncEnabled: |
| 2003 | example: false |
| 2004 | type: boolean |
| 2005 | dataSyncState: |
| 2006 | $ref: '#/components/schemas/dataStores' |
| 2007 | type: object |
| 2008 | lock-reason: |
| 2009 | example: |
| 2010 | reason: LOCKED_MISBEHAVING |
| 2011 | details: locked due to failure in module sync |
| 2012 | properties: |
| 2013 | reason: |
| 2014 | example: LOCKED_MISBEHAVING |
| 2015 | type: string |
| 2016 | details: |
| 2017 | example: locked due to failure in module sync |
| 2018 | type: string |
| 2019 | type: object |
| 2020 | dataStores: |
| 2021 | example: |
| 2022 | running: |
| 2023 | lastSyncTime: 2022-12-31T20:30:40.000+0000 |
| 2024 | syncState: NONE_REQUESTED |
| 2025 | operational: |
| 2026 | lastSyncTime: 2022-12-31T20:30:40.000+0000 |
| 2027 | syncState: NONE_REQUESTED |
| 2028 | properties: |
| 2029 | operational: |
| 2030 | $ref: '#/components/schemas/sync-state' |
| 2031 | running: |
| 2032 | $ref: '#/components/schemas/sync-state' |
| 2033 | type: object |
| 2034 | sync-state: |
| 2035 | example: |
| 2036 | lastSyncTime: 2022-12-31T20:30:40.000+0000 |
| 2037 | syncState: NONE_REQUESTED |
| 2038 | properties: |
| 2039 | syncState: |
| 2040 | example: NONE_REQUESTED |
| 2041 | type: string |
| 2042 | lastSyncTime: |
| 2043 | example: 2022-12-31T20:30:40.000+0000 |
| 2044 | type: string |
| 2045 | type: object |
danielhanrahan | 3e14d39 | 2023-12-20 13:31:07 +0000 | [diff] [blame] | 2046 | CmHandleTrustLevel: |
| 2047 | description: Current trust level of the relevant CM handle ID. |
| 2048 | example: COMPLETE |
| 2049 | type: string |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 2050 | RestOutputCmHandlePublicProperties: |
| 2051 | example: |
| 2052 | publicCmHandleProperties: |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 2053 | - key: Book Type |
| 2054 | - key: Book Type |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 2055 | properties: |
| 2056 | publicCmHandleProperties: |
| 2057 | items: |
| 2058 | additionalProperties: |
| 2059 | example: Book Type |
| 2060 | type: string |
| 2061 | type: object |
| 2062 | type: array |
| 2063 | type: object |
| 2064 | RestOutputCmHandleCompositeState: |
| 2065 | example: |
| 2066 | state: |
| 2067 | dataSyncEnabled: false |
| 2068 | dataSyncState: |
| 2069 | running: |
| 2070 | lastSyncTime: 2022-12-31T20:30:40.000+0000 |
| 2071 | syncState: NONE_REQUESTED |
| 2072 | operational: |
| 2073 | lastSyncTime: 2022-12-31T20:30:40.000+0000 |
| 2074 | syncState: NONE_REQUESTED |
| 2075 | cmHandleState: ADVISED |
| 2076 | lockReason: |
| 2077 | reason: LOCKED_MISBEHAVING |
| 2078 | details: locked due to failure in module sync |
| 2079 | lastUpdateTime: 2022-12-31T20:30:40.000+0000 |
| 2080 | properties: |
| 2081 | state: |
| 2082 | $ref: '#/components/schemas/CmHandleCompositeState' |
| 2083 | type: object |
| 2084 | DmiErrorMessage_dmi_response: |
| 2085 | properties: |
| 2086 | http-code: |
| 2087 | example: 400 |
| 2088 | type: integer |
| 2089 | body: |
| 2090 | example: Bad Request |
| 2091 | type: string |
| 2092 | type: object |
seanbeirne | 16e2358 | 2023-01-26 09:21:44 +0000 | [diff] [blame] | 2093 | securitySchemes: |
| 2094 | basicAuth: |
seanbeirne | 16e2358 | 2023-01-26 09:21:44 +0000 | [diff] [blame] | 2095 | scheme: basic |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 2096 | type: http |