Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 1 | openapi: 3.0.1 |
| 2 | info: |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 3 | description: Adds Data Model Inventory Registry capability for ONAP |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame] | 4 | title: NCMP DMI Plugin |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 5 | version: 1.0.0 |
| 6 | servers: |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame] | 7 | - url: /dmi |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 8 | tags: |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame] | 9 | - description: DMI plugin internal rest apis |
| 10 | name: dmi-plugin-internal |
| 11 | - description: DMI plugin rest apis |
| 12 | name: dmi-plugin |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 13 | paths: |
| 14 | /v1/ch/{cmHandle}/modules: |
| 15 | post: |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 16 | description: Get all modules for given cm handle |
| 17 | operationId: getModuleReferences |
| 18 | parameters: |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame] | 19 | - description: "The identifier for a network function, network element, subnetwork,\ |
| 20 | \ or any other cm object by managed Network CM Proxy" |
| 21 | in: path |
| 22 | name: cmHandle |
| 23 | required: true |
| 24 | schema: |
| 25 | example: my-cm-handle |
| 26 | type: string |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 27 | requestBody: |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 28 | content: |
| 29 | application/json: |
| 30 | schema: |
| 31 | $ref: '#/components/schemas/ModuleReferencesRequest' |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame] | 32 | description: Operational body |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 33 | responses: |
| 34 | "200": |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 35 | content: |
| 36 | application/json: |
| 37 | schema: |
| 38 | $ref: '#/components/schemas/ModuleSet' |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame] | 39 | description: OK |
puthuparambil.aditya | bdcccb5 | 2022-01-20 15:26:52 +0000 | [diff] [blame] | 40 | "404": |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 41 | content: |
| 42 | application/json: |
puthuparambil.aditya | bdcccb5 | 2022-01-20 15:26:52 +0000 | [diff] [blame] | 43 | example: |
| 44 | status: 404 |
| 45 | message: Resource Not Found |
| 46 | details: The requested resource is not found |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 47 | schema: |
| 48 | $ref: '#/components/schemas/ErrorMessage' |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame] | 49 | description: The specified resource was not found |
| 50 | "500": |
| 51 | content: |
| 52 | application/json: |
puthuparambil.aditya | bdcccb5 | 2022-01-20 15:26:52 +0000 | [diff] [blame] | 53 | example: |
| 54 | status: 500 |
| 55 | message: Internal Server Error |
| 56 | details: Internal Server Error occured |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame] | 57 | schema: |
| 58 | $ref: '#/components/schemas/ErrorMessage' |
| 59 | description: Internal Server Error |
| 60 | summary: Get all modules for cm handle |
| 61 | tags: |
| 62 | - dmi-plugin |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 63 | /v1/ch/{cmHandle}/moduleResources: |
| 64 | post: |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 65 | description: Retrieve module resources for one or more modules |
| 66 | operationId: retrieveModuleResources |
| 67 | parameters: |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame] | 68 | - description: "The identifier for a network function, network element, subnetwork,\ |
| 69 | \ or any other cm object by managed Network CM Proxy" |
| 70 | in: path |
| 71 | name: cmHandle |
| 72 | required: true |
| 73 | schema: |
| 74 | example: my-cm-handle |
| 75 | type: string |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 76 | requestBody: |
| 77 | content: |
| 78 | application/json: |
| 79 | schema: |
| 80 | $ref: '#/components/schemas/ModuleResourcesReadRequest' |
| 81 | required: true |
| 82 | responses: |
| 83 | "200": |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 84 | content: |
| 85 | application/json: |
| 86 | schema: |
| 87 | $ref: '#/components/schemas/YangResources' |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame] | 88 | description: OK |
puthuparambil.aditya | bdcccb5 | 2022-01-20 15:26:52 +0000 | [diff] [blame] | 89 | "404": |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 90 | content: |
| 91 | application/json: |
puthuparambil.aditya | bdcccb5 | 2022-01-20 15:26:52 +0000 | [diff] [blame] | 92 | example: |
| 93 | status: 404 |
| 94 | message: Resource Not Found |
| 95 | details: The requested resource is not found |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 96 | schema: |
| 97 | $ref: '#/components/schemas/ErrorMessage' |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame] | 98 | description: The specified resource was not found |
| 99 | "500": |
| 100 | content: |
| 101 | application/json: |
puthuparambil.aditya | bdcccb5 | 2022-01-20 15:26:52 +0000 | [diff] [blame] | 102 | example: |
| 103 | status: 500 |
| 104 | message: Internal Server Error |
| 105 | details: Internal Server Error occured |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame] | 106 | schema: |
| 107 | $ref: '#/components/schemas/ErrorMessage' |
| 108 | description: Internal Server Error |
| 109 | summary: Retrieve module resources |
| 110 | tags: |
| 111 | - dmi-plugin |
DylanB95EST | 5fe0dae | 2021-11-09 13:54:35 +0000 | [diff] [blame] | 112 | /v1/inventory/cmHandles: |
| 113 | post: |
DylanB95EST | 5fe0dae | 2021-11-09 13:54:35 +0000 | [diff] [blame] | 114 | description: register given list of cm handles (internal use only) |
| 115 | operationId: registerCmHandles |
| 116 | requestBody: |
DylanB95EST | 5fe0dae | 2021-11-09 13:54:35 +0000 | [diff] [blame] | 117 | content: |
| 118 | application/json: |
| 119 | schema: |
| 120 | $ref: '#/components/schemas/CmHandles' |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame] | 121 | description: list of cm handles |
DylanB95EST | 5fe0dae | 2021-11-09 13:54:35 +0000 | [diff] [blame] | 122 | required: true |
| 123 | responses: |
| 124 | "201": |
DylanB95EST | 5fe0dae | 2021-11-09 13:54:35 +0000 | [diff] [blame] | 125 | content: |
| 126 | text/plain: |
| 127 | schema: |
puthuparambil.aditya | bdcccb5 | 2022-01-20 15:26:52 +0000 | [diff] [blame] | 128 | example: cm-handle registered successfully |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 129 | type: string |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame] | 130 | description: Created |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 131 | "400": |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 132 | content: |
| 133 | application/json: |
puthuparambil.aditya | bdcccb5 | 2022-01-20 15:26:52 +0000 | [diff] [blame] | 134 | example: |
| 135 | status: 400 |
| 136 | message: Bad Request |
| 137 | details: The provided request is not valid |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 138 | schema: |
| 139 | $ref: '#/components/schemas/ErrorMessage' |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame] | 140 | description: Bad Request |
| 141 | "500": |
| 142 | content: |
| 143 | application/json: |
puthuparambil.aditya | bdcccb5 | 2022-01-20 15:26:52 +0000 | [diff] [blame] | 144 | example: |
| 145 | status: 500 |
| 146 | message: Internal Server Error |
| 147 | details: Internal Server Error occured |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame] | 148 | schema: |
| 149 | $ref: '#/components/schemas/ErrorMessage' |
| 150 | description: Internal Server Error |
| 151 | summary: register given list of cm handles (internal use only) |
| 152 | tags: |
| 153 | - dmi-plugin-internal |
| 154 | x-api-audience: component-internal |
| 155 | /v1/ch/{cmHandle}/data/ds/{datastore-name}: |
| 156 | post: |
| 157 | description: Get resource data from passthrough operational or running for a |
| 158 | cm handle |
| 159 | operationId: dataAccessPassthrough |
| 160 | parameters: |
| 161 | - description: The type of the requested data |
| 162 | in: path |
| 163 | name: datastore-name |
| 164 | required: true |
| 165 | schema: |
| 166 | example: ncmp-datastore:passthrough-operational or ncmp-datastore:passthrough-running |
| 167 | type: string |
| 168 | - description: "The identifier for a network function, network element, subnetwork,\ |
| 169 | \ or any other cm object by managed Network CM Proxy" |
| 170 | in: path |
| 171 | name: cmHandle |
| 172 | required: true |
| 173 | schema: |
| 174 | example: my-cm-handle |
| 175 | type: string |
| 176 | - allowReserved: true |
| 177 | description: Resource identifier to get/set the resource data |
| 178 | in: query |
| 179 | name: resourceIdentifier |
| 180 | required: true |
| 181 | schema: |
| 182 | example: my-schema:my-node |
| 183 | type: string |
| 184 | - allowReserved: true |
| 185 | description: "options parameter in query, it is mandatory to wrap key(s)=value(s)\ |
| 186 | \ in parenthesis'()'." |
| 187 | examples: |
| 188 | sample1: |
| 189 | value: |
| 190 | options: "(key1=value1,key2=value2)" |
| 191 | sample2: |
| 192 | value: |
| 193 | options: "(key1=value1,key2=value1/value2)" |
| 194 | sample3: |
| 195 | value: |
| 196 | options: "(key1=10,key2=value2,key3=val31,val32)" |
| 197 | in: query |
| 198 | name: options |
| 199 | required: false |
| 200 | schema: |
| 201 | type: string |
| 202 | - allowReserved: true |
| 203 | description: topic name passed from client(NCMP). |
| 204 | examples: |
| 205 | sample1: |
| 206 | value: my-topic-name |
| 207 | in: query |
| 208 | name: topic |
| 209 | required: false |
| 210 | schema: |
| 211 | type: string |
david.mcweeney | 184b681 | 2024-05-02 15:14:52 +0100 | [diff] [blame^] | 212 | - name: moduleSetTag |
| 213 | description: Module set tag of the given cm handle. |
| 214 | in: query |
| 215 | examples: |
| 216 | sample1: |
| 217 | value: module-set-tag1 |
| 218 | required: false |
| 219 | schema: |
| 220 | type: string |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame] | 221 | requestBody: |
| 222 | content: |
| 223 | application/json: |
| 224 | schema: |
| 225 | $ref: '#/components/schemas/DataAccessRequest' |
| 226 | description: Contains collection of cm handles with it's private properties |
| 227 | and requestId |
| 228 | responses: |
| 229 | "200": |
| 230 | content: |
| 231 | application/json: |
| 232 | schema: |
| 233 | example: |
| 234 | - yangSource: my-yang-source |
| 235 | moduleName: my-module-name |
| 236 | revision: my-revision |
| 237 | type: object |
| 238 | description: OK |
| 239 | "400": |
| 240 | content: |
| 241 | application/json: |
| 242 | example: |
| 243 | status: 400 |
| 244 | message: Bad Request |
| 245 | details: The provided request is not valid |
| 246 | schema: |
| 247 | $ref: '#/components/schemas/ErrorMessage' |
| 248 | description: Bad Request |
| 249 | "500": |
| 250 | content: |
| 251 | application/json: |
| 252 | example: |
| 253 | status: 500 |
| 254 | message: Internal Server Error |
| 255 | details: Internal Server Error occured |
| 256 | schema: |
| 257 | $ref: '#/components/schemas/ErrorMessage' |
| 258 | description: Internal Server Error |
| 259 | summary: Get resource data from passthrough operational or running for a cm |
| 260 | handle |
| 261 | tags: |
| 262 | - dmi-plugin |
| 263 | /v1/data: |
| 264 | post: |
| 265 | description: Execute a data operation for group of cm handle ids by supplied |
| 266 | operation details |
| 267 | operationId: getResourceDataForCmHandleDataOperation |
| 268 | parameters: |
| 269 | - allowReserved: true |
| 270 | description: mandatory topic name passed from client(NCMP). |
| 271 | examples: |
| 272 | sample1: |
| 273 | value: |
| 274 | topic: my-topic-name |
| 275 | in: query |
| 276 | name: topic |
| 277 | required: true |
| 278 | schema: |
| 279 | type: string |
| 280 | - allowReserved: true |
| 281 | description: request Id generated by NCMP and sent as an acknowledgement for |
| 282 | the client request the same including here. |
| 283 | examples: |
| 284 | sample1: |
| 285 | value: 4753fc1f-7de2-449a-b306-a6204b5370b3 |
| 286 | in: query |
| 287 | name: requestId |
| 288 | required: true |
| 289 | schema: |
| 290 | type: string |
| 291 | requestBody: |
| 292 | content: |
| 293 | application/json: |
| 294 | schema: |
| 295 | $ref: '#/components/schemas/ResourceDataOperationRequests' |
| 296 | description: list of operation details |
| 297 | responses: |
| 298 | "202": |
| 299 | description: Accepted |
| 300 | "400": |
| 301 | content: |
| 302 | application/json: |
| 303 | example: |
| 304 | status: 400 |
| 305 | message: Bad Request |
| 306 | details: The provided request is not valid |
| 307 | schema: |
| 308 | $ref: '#/components/schemas/ErrorMessage' |
| 309 | description: Bad Request |
| 310 | "500": |
| 311 | content: |
| 312 | application/json: |
| 313 | example: |
| 314 | status: 500 |
| 315 | message: Internal Server Error |
| 316 | details: Internal Server Error occured |
| 317 | schema: |
| 318 | $ref: '#/components/schemas/ErrorMessage' |
| 319 | description: Internal Server Error |
| 320 | "501": |
| 321 | content: |
| 322 | application/json: |
| 323 | example: |
| 324 | status: 501 |
| 325 | message: Not Implemented |
| 326 | details: Method Not Implemented |
| 327 | schema: |
| 328 | $ref: '#/components/schemas/ErrorMessage' |
| 329 | description: Not Implemented |
| 330 | summary: Execute a data operation for group of cm handle ids. |
| 331 | tags: |
| 332 | - dmi-plugin |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 333 | components: |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame] | 334 | parameters: |
| 335 | cmHandleInPath: |
| 336 | description: "The identifier for a network function, network element, subnetwork,\ |
| 337 | \ or any other cm object by managed Network CM Proxy" |
| 338 | in: path |
| 339 | name: cmHandle |
| 340 | required: true |
| 341 | schema: |
| 342 | example: my-cm-handle |
| 343 | type: string |
| 344 | datastoreName: |
| 345 | description: The type of the requested data |
| 346 | in: path |
| 347 | name: datastore-name |
| 348 | required: true |
| 349 | schema: |
| 350 | example: ncmp-datastore:passthrough-operational or ncmp-datastore:passthrough-running |
| 351 | type: string |
| 352 | resourceIdentifierInQuery: |
| 353 | allowReserved: true |
| 354 | description: Resource identifier to get/set the resource data |
| 355 | in: query |
| 356 | name: resourceIdentifier |
| 357 | required: true |
| 358 | schema: |
| 359 | example: my-schema:my-node |
| 360 | type: string |
| 361 | optionsParamInQuery: |
| 362 | allowReserved: true |
| 363 | description: "options parameter in query, it is mandatory to wrap key(s)=value(s)\ |
| 364 | \ in parenthesis'()'." |
| 365 | examples: |
| 366 | sample1: |
| 367 | value: |
| 368 | options: "(key1=value1,key2=value2)" |
| 369 | sample2: |
| 370 | value: |
| 371 | options: "(key1=value1,key2=value1/value2)" |
| 372 | sample3: |
| 373 | value: |
| 374 | options: "(key1=10,key2=value2,key3=val31,val32)" |
| 375 | in: query |
| 376 | name: options |
| 377 | required: false |
| 378 | schema: |
| 379 | type: string |
| 380 | topicParamInQuery: |
| 381 | allowReserved: true |
| 382 | description: topic name passed from client(NCMP). |
| 383 | examples: |
| 384 | sample1: |
| 385 | value: my-topic-name |
| 386 | in: query |
| 387 | name: topic |
| 388 | required: false |
| 389 | schema: |
| 390 | type: string |
david.mcweeney | 184b681 | 2024-05-02 15:14:52 +0100 | [diff] [blame^] | 391 | moduleSetTagParamInQuery: |
| 392 | name: moduleSetTag |
| 393 | in: query |
| 394 | description: Module set tag of the given cm handle. |
| 395 | required: false |
| 396 | schema: |
| 397 | type: string |
| 398 | examples: |
| 399 | sample1: |
| 400 | value: module-set-tag1 |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame] | 401 | requiredTopicParamInQuery: |
| 402 | allowReserved: true |
| 403 | description: mandatory topic name passed from client(NCMP). |
| 404 | examples: |
| 405 | sample1: |
| 406 | value: |
| 407 | topic: my-topic-name |
| 408 | in: query |
| 409 | name: topic |
| 410 | required: true |
| 411 | schema: |
| 412 | type: string |
| 413 | requiredRequestIdParamInQuery: |
| 414 | allowReserved: true |
| 415 | description: request Id generated by NCMP and sent as an acknowledgement for |
| 416 | the client request the same including here. |
| 417 | examples: |
| 418 | sample1: |
| 419 | value: 4753fc1f-7de2-449a-b306-a6204b5370b3 |
| 420 | in: query |
| 421 | name: requestId |
| 422 | required: true |
| 423 | schema: |
| 424 | type: string |
| 425 | responses: |
| 426 | NotFound: |
| 427 | content: |
| 428 | application/json: |
| 429 | example: |
| 430 | status: 404 |
| 431 | message: Resource Not Found |
| 432 | details: The requested resource is not found |
| 433 | schema: |
| 434 | $ref: '#/components/schemas/ErrorMessage' |
| 435 | description: The specified resource was not found |
| 436 | ServerError: |
| 437 | content: |
| 438 | application/json: |
| 439 | example: |
| 440 | status: 500 |
| 441 | message: Internal Server Error |
| 442 | details: Internal Server Error occured |
| 443 | schema: |
| 444 | $ref: '#/components/schemas/ErrorMessage' |
| 445 | description: Internal Server Error |
| 446 | BadRequest: |
| 447 | content: |
| 448 | application/json: |
| 449 | example: |
| 450 | status: 400 |
| 451 | message: Bad Request |
| 452 | details: The provided request is not valid |
| 453 | schema: |
| 454 | $ref: '#/components/schemas/ErrorMessage' |
| 455 | description: Bad Request |
| 456 | NotImplemented: |
| 457 | content: |
| 458 | application/json: |
| 459 | example: |
| 460 | status: 501 |
| 461 | message: Not Implemented |
| 462 | details: Method Not Implemented |
| 463 | schema: |
| 464 | $ref: '#/components/schemas/ErrorMessage' |
| 465 | description: Not Implemented |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 466 | schemas: |
| 467 | ModuleReferencesRequest: |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame] | 468 | example: |
| 469 | moduleSetTag: moduleSetTag |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 470 | cmHandleProperties: |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame] | 471 | key: "{\"prop1\":\"value1\",\"prop2\":\"value2\"}" |
| 472 | properties: |
| 473 | moduleSetTag: |
| 474 | type: string |
| 475 | cmHandleProperties: |
| 476 | additionalProperties: |
| 477 | example: "{\"prop1\":\"value1\",\"prop2\":\"value2\"}" |
| 478 | type: string |
| 479 | nullable: true |
| 480 | type: object |
| 481 | type: object |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 482 | cmHandleProperties: |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 483 | additionalProperties: |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame] | 484 | example: "{\"prop1\":\"value1\",\"prop2\":\"value2\"}" |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 485 | type: string |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame] | 486 | nullable: true |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 487 | type: object |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame] | 488 | ModuleSet: |
| 489 | example: |
| 490 | schemas: |
| 491 | - moduleName: my-module-name |
| 492 | namespace: my-namespace |
| 493 | revision: my-revision |
| 494 | - moduleName: my-module-name |
| 495 | namespace: my-namespace |
| 496 | revision: my-revision |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 497 | properties: |
| 498 | schemas: |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 499 | items: |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame] | 500 | $ref: '#/components/schemas/ModuleSet_schemas_inner' |
| 501 | type: array |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 502 | type: object |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame] | 503 | ErrorMessage: |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 504 | properties: |
| 505 | status: |
| 506 | type: string |
| 507 | message: |
| 508 | type: string |
| 509 | details: |
| 510 | type: string |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame] | 511 | title: Error |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 512 | type: object |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame] | 513 | ModuleResourcesReadRequest: |
| 514 | example: |
david.mcweeney | ee0c3be | 2024-04-30 10:24:41 +0100 | [diff] [blame] | 515 | moduleSetTag: module-set-tag1 |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame] | 516 | data: |
| 517 | modules: |
| 518 | - name: my-name |
| 519 | revision: my-revision |
| 520 | - name: my-name |
| 521 | revision: my-revision |
| 522 | cmHandleProperties: |
| 523 | key: "{\"prop1\":\"value1\",\"prop2\":\"value2\"}" |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 524 | properties: |
| 525 | data: |
| 526 | $ref: '#/components/schemas/ModuleResourcesReadRequest_data' |
| 527 | cmHandleProperties: |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame] | 528 | additionalProperties: |
| 529 | example: "{\"prop1\":\"value1\",\"prop2\":\"value2\"}" |
| 530 | type: string |
| 531 | nullable: true |
| 532 | type: object |
| 533 | type: object |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 534 | YangResources: |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 535 | items: |
| 536 | $ref: '#/components/schemas/YangResource' |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame] | 537 | type: array |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 538 | YangResource: |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame] | 539 | example: |
| 540 | yangSource: my-yang-source |
| 541 | moduleName: my-module-name |
| 542 | revision: my-revision |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 543 | properties: |
| 544 | yangSource: |
puthuparambil.aditya | bdcccb5 | 2022-01-20 15:26:52 +0000 | [diff] [blame] | 545 | example: my-yang-source |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame] | 546 | type: string |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 547 | moduleName: |
puthuparambil.aditya | bdcccb5 | 2022-01-20 15:26:52 +0000 | [diff] [blame] | 548 | example: my-module-name |
puthuparambil.aditya | bdcccb5 | 2022-01-20 15:26:52 +0000 | [diff] [blame] | 549 | type: string |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame] | 550 | revision: |
puthuparambil.aditya | bdcccb5 | 2022-01-20 15:26:52 +0000 | [diff] [blame] | 551 | example: my-revision |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame] | 552 | type: string |
DylanB95EST | 5fe0dae | 2021-11-09 13:54:35 +0000 | [diff] [blame] | 553 | CmHandles: |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame] | 554 | example: |
DylanB95EST | 5fe0dae | 2021-11-09 13:54:35 +0000 | [diff] [blame] | 555 | cmHandles: |
Bruno Sakoto | e830dce | 2022-03-15 11:57:45 -0400 | [diff] [blame] | 556 | - cmHandleId1 |
| 557 | - cmHandleId2 |
| 558 | - cmHandleId3 |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame] | 559 | properties: |
| 560 | cmHandles: |
| 561 | example: |
| 562 | - cmHandleId1 |
| 563 | - cmHandleId2 |
| 564 | - cmHandleId3 |
DylanB95EST | 5fe0dae | 2021-11-09 13:54:35 +0000 | [diff] [blame] | 565 | items: |
| 566 | type: string |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame] | 567 | type: array |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 568 | type: object |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame] | 569 | DataAccessRequest: |
| 570 | example: |
| 571 | data: my-data |
| 572 | requestId: 3a9ce55c-e365-4dc9-8da3-a06f07cbc6d7 |
| 573 | dataType: my-data-type |
| 574 | cmHandleProperties: |
| 575 | key: "{\"prop1\":\"value1\",\"prop2\":\"value2\"}" |
| 576 | operation: read |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 577 | properties: |
| 578 | operation: |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 579 | enum: |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame] | 580 | - read |
| 581 | - create |
| 582 | - update |
| 583 | - patch |
| 584 | - delete |
| 585 | example: read |
| 586 | type: string |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 587 | dataType: |
puthuparambil.aditya | bdcccb5 | 2022-01-20 15:26:52 +0000 | [diff] [blame] | 588 | example: my-data-type |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame] | 589 | type: string |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 590 | data: |
puthuparambil.aditya | bdcccb5 | 2022-01-20 15:26:52 +0000 | [diff] [blame] | 591 | example: my-data |
mpriyank | 78e1d06 | 2022-04-08 15:12:22 +0530 | [diff] [blame] | 592 | type: string |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame] | 593 | cmHandleProperties: |
| 594 | additionalProperties: |
| 595 | example: "{\"prop1\":\"value1\",\"prop2\":\"value2\"}" |
| 596 | type: string |
| 597 | nullable: true |
| 598 | type: object |
| 599 | requestId: |
JosephKeenan | 2cd8b98 | 2022-05-23 15:43:05 +0100 | [diff] [blame] | 600 | example: 3a9ce55c-e365-4dc9-8da3-a06f07cbc6d7 |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame] | 601 | type: string |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 602 | type: object |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame] | 603 | ResourceDataOperationRequests: |
| 604 | items: |
| 605 | $ref: '#/components/schemas/DataOperationRequest' |
| 606 | type: array |
| 607 | cmHandle: |
| 608 | example: |
| 609 | id: cmHandle123 |
| 610 | cmHandleProperties: |
| 611 | myProp: some value |
| 612 | otherProp: other value |
| 613 | properties: |
| 614 | id: |
| 615 | type: string |
| 616 | cmHandleProperties: |
| 617 | additionalProperties: |
| 618 | type: string |
| 619 | type: object |
| 620 | title: cmHandle |
| 621 | type: object |
| 622 | ModuleSet_schemas_inner: |
| 623 | example: |
| 624 | moduleName: my-module-name |
| 625 | namespace: my-namespace |
| 626 | revision: my-revision |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 627 | properties: |
| 628 | moduleName: |
puthuparambil.aditya | bdcccb5 | 2022-01-20 15:26:52 +0000 | [diff] [blame] | 629 | example: my-module-name |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame] | 630 | type: string |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 631 | revision: |
puthuparambil.aditya | bdcccb5 | 2022-01-20 15:26:52 +0000 | [diff] [blame] | 632 | example: my-revision |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 633 | type: string |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame] | 634 | namespace: |
puthuparambil.aditya | bdcccb5 | 2022-01-20 15:26:52 +0000 | [diff] [blame] | 635 | example: my-namespace |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame] | 636 | type: string |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 637 | type: object |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame] | 638 | ModuleResourcesReadRequest_data_modules_inner: |
| 639 | example: |
| 640 | name: my-name |
| 641 | revision: my-revision |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 642 | properties: |
| 643 | name: |
puthuparambil.aditya | bdcccb5 | 2022-01-20 15:26:52 +0000 | [diff] [blame] | 644 | example: my-name |
puthuparambil.aditya | bdcccb5 | 2022-01-20 15:26:52 +0000 | [diff] [blame] | 645 | type: string |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame] | 646 | revision: |
puthuparambil.aditya | bdcccb5 | 2022-01-20 15:26:52 +0000 | [diff] [blame] | 647 | example: my-revision |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame] | 648 | type: string |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 649 | type: object |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame] | 650 | ModuleResourcesReadRequest_data: |
| 651 | example: |
| 652 | modules: |
| 653 | - name: my-name |
| 654 | revision: my-revision |
| 655 | - name: my-name |
| 656 | revision: my-revision |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 657 | properties: |
| 658 | modules: |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 659 | items: |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame] | 660 | $ref: '#/components/schemas/ModuleResourcesReadRequest_data_modules_inner' |
| 661 | type: array |
| 662 | type: object |
| 663 | DataOperationRequest: |
| 664 | example: |
| 665 | resourceIdentifier: some resource identifier |
| 666 | datastore: ncmp-datastore:passthrough-operational |
| 667 | options: some option |
| 668 | operationId: "12" |
| 669 | cmHandles: |
| 670 | - id: cmHandle123 |
| 671 | cmHandleProperties: |
| 672 | myProp: some value |
| 673 | otherProp: other value |
| 674 | - id: cmHandle123 |
| 675 | cmHandleProperties: |
| 676 | myProp: some value |
| 677 | otherProp: other value |
| 678 | operation: read |
| 679 | properties: |
| 680 | operation: |
| 681 | example: read |
| 682 | type: string |
| 683 | operationId: |
| 684 | description: it is recommended that the operationId is unique within the |
| 685 | scope of the request |
| 686 | example: "12" |
| 687 | type: string |
| 688 | datastore: |
| 689 | example: ncmp-datastore:passthrough-operational |
| 690 | type: string |
| 691 | options: |
| 692 | example: some option |
| 693 | type: string |
| 694 | resourceIdentifier: |
| 695 | example: some resource identifier |
| 696 | type: string |
| 697 | cmHandles: |
| 698 | items: |
| 699 | $ref: '#/components/schemas/cmHandle' |
| 700 | type: array |
| 701 | required: |
| 702 | - cmHandles |
| 703 | - datastore |
| 704 | - operation |
| 705 | - operationId |
| 706 | title: DataOperationRequest |
| 707 | type: object |