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 |
| 212 | requestBody: |
| 213 | content: |
| 214 | application/json: |
| 215 | schema: |
| 216 | $ref: '#/components/schemas/DataAccessRequest' |
| 217 | description: Contains collection of cm handles with it's private properties |
| 218 | and requestId |
| 219 | responses: |
| 220 | "200": |
| 221 | content: |
| 222 | application/json: |
| 223 | schema: |
| 224 | example: |
| 225 | - yangSource: my-yang-source |
| 226 | moduleName: my-module-name |
| 227 | revision: my-revision |
| 228 | type: object |
| 229 | description: OK |
| 230 | "400": |
| 231 | content: |
| 232 | application/json: |
| 233 | example: |
| 234 | status: 400 |
| 235 | message: Bad Request |
| 236 | details: The provided request is not valid |
| 237 | schema: |
| 238 | $ref: '#/components/schemas/ErrorMessage' |
| 239 | description: Bad Request |
| 240 | "500": |
| 241 | content: |
| 242 | application/json: |
| 243 | example: |
| 244 | status: 500 |
| 245 | message: Internal Server Error |
| 246 | details: Internal Server Error occured |
| 247 | schema: |
| 248 | $ref: '#/components/schemas/ErrorMessage' |
| 249 | description: Internal Server Error |
| 250 | summary: Get resource data from passthrough operational or running for a cm |
| 251 | handle |
| 252 | tags: |
| 253 | - dmi-plugin |
| 254 | /v1/data: |
| 255 | post: |
| 256 | description: Execute a data operation for group of cm handle ids by supplied |
| 257 | operation details |
| 258 | operationId: getResourceDataForCmHandleDataOperation |
| 259 | parameters: |
| 260 | - allowReserved: true |
| 261 | description: mandatory topic name passed from client(NCMP). |
| 262 | examples: |
| 263 | sample1: |
| 264 | value: |
| 265 | topic: my-topic-name |
| 266 | in: query |
| 267 | name: topic |
| 268 | required: true |
| 269 | schema: |
| 270 | type: string |
| 271 | - allowReserved: true |
| 272 | description: request Id generated by NCMP and sent as an acknowledgement for |
| 273 | the client request the same including here. |
| 274 | examples: |
| 275 | sample1: |
| 276 | value: 4753fc1f-7de2-449a-b306-a6204b5370b3 |
| 277 | in: query |
| 278 | name: requestId |
| 279 | required: true |
| 280 | schema: |
| 281 | type: string |
| 282 | requestBody: |
| 283 | content: |
| 284 | application/json: |
| 285 | schema: |
| 286 | $ref: '#/components/schemas/ResourceDataOperationRequests' |
| 287 | description: list of operation details |
| 288 | responses: |
| 289 | "202": |
| 290 | description: Accepted |
| 291 | "400": |
| 292 | content: |
| 293 | application/json: |
| 294 | example: |
| 295 | status: 400 |
| 296 | message: Bad Request |
| 297 | details: The provided request is not valid |
| 298 | schema: |
| 299 | $ref: '#/components/schemas/ErrorMessage' |
| 300 | description: Bad Request |
| 301 | "500": |
| 302 | content: |
| 303 | application/json: |
| 304 | example: |
| 305 | status: 500 |
| 306 | message: Internal Server Error |
| 307 | details: Internal Server Error occured |
| 308 | schema: |
| 309 | $ref: '#/components/schemas/ErrorMessage' |
| 310 | description: Internal Server Error |
| 311 | "501": |
| 312 | content: |
| 313 | application/json: |
| 314 | example: |
| 315 | status: 501 |
| 316 | message: Not Implemented |
| 317 | details: Method Not Implemented |
| 318 | schema: |
| 319 | $ref: '#/components/schemas/ErrorMessage' |
| 320 | description: Not Implemented |
| 321 | summary: Execute a data operation for group of cm handle ids. |
| 322 | tags: |
| 323 | - dmi-plugin |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 324 | components: |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame^] | 325 | parameters: |
| 326 | cmHandleInPath: |
| 327 | description: "The identifier for a network function, network element, subnetwork,\ |
| 328 | \ or any other cm object by managed Network CM Proxy" |
| 329 | in: path |
| 330 | name: cmHandle |
| 331 | required: true |
| 332 | schema: |
| 333 | example: my-cm-handle |
| 334 | type: string |
| 335 | datastoreName: |
| 336 | description: The type of the requested data |
| 337 | in: path |
| 338 | name: datastore-name |
| 339 | required: true |
| 340 | schema: |
| 341 | example: ncmp-datastore:passthrough-operational or ncmp-datastore:passthrough-running |
| 342 | type: string |
| 343 | resourceIdentifierInQuery: |
| 344 | allowReserved: true |
| 345 | description: Resource identifier to get/set the resource data |
| 346 | in: query |
| 347 | name: resourceIdentifier |
| 348 | required: true |
| 349 | schema: |
| 350 | example: my-schema:my-node |
| 351 | type: string |
| 352 | optionsParamInQuery: |
| 353 | allowReserved: true |
| 354 | description: "options parameter in query, it is mandatory to wrap key(s)=value(s)\ |
| 355 | \ in parenthesis'()'." |
| 356 | examples: |
| 357 | sample1: |
| 358 | value: |
| 359 | options: "(key1=value1,key2=value2)" |
| 360 | sample2: |
| 361 | value: |
| 362 | options: "(key1=value1,key2=value1/value2)" |
| 363 | sample3: |
| 364 | value: |
| 365 | options: "(key1=10,key2=value2,key3=val31,val32)" |
| 366 | in: query |
| 367 | name: options |
| 368 | required: false |
| 369 | schema: |
| 370 | type: string |
| 371 | topicParamInQuery: |
| 372 | allowReserved: true |
| 373 | description: topic name passed from client(NCMP). |
| 374 | examples: |
| 375 | sample1: |
| 376 | value: my-topic-name |
| 377 | in: query |
| 378 | name: topic |
| 379 | required: false |
| 380 | schema: |
| 381 | type: string |
| 382 | requiredTopicParamInQuery: |
| 383 | allowReserved: true |
| 384 | description: mandatory topic name passed from client(NCMP). |
| 385 | examples: |
| 386 | sample1: |
| 387 | value: |
| 388 | topic: my-topic-name |
| 389 | in: query |
| 390 | name: topic |
| 391 | required: true |
| 392 | schema: |
| 393 | type: string |
| 394 | requiredRequestIdParamInQuery: |
| 395 | allowReserved: true |
| 396 | description: request Id generated by NCMP and sent as an acknowledgement for |
| 397 | the client request the same including here. |
| 398 | examples: |
| 399 | sample1: |
| 400 | value: 4753fc1f-7de2-449a-b306-a6204b5370b3 |
| 401 | in: query |
| 402 | name: requestId |
| 403 | required: true |
| 404 | schema: |
| 405 | type: string |
| 406 | responses: |
| 407 | NotFound: |
| 408 | content: |
| 409 | application/json: |
| 410 | example: |
| 411 | status: 404 |
| 412 | message: Resource Not Found |
| 413 | details: The requested resource is not found |
| 414 | schema: |
| 415 | $ref: '#/components/schemas/ErrorMessage' |
| 416 | description: The specified resource was not found |
| 417 | ServerError: |
| 418 | content: |
| 419 | application/json: |
| 420 | example: |
| 421 | status: 500 |
| 422 | message: Internal Server Error |
| 423 | details: Internal Server Error occured |
| 424 | schema: |
| 425 | $ref: '#/components/schemas/ErrorMessage' |
| 426 | description: Internal Server Error |
| 427 | BadRequest: |
| 428 | content: |
| 429 | application/json: |
| 430 | example: |
| 431 | status: 400 |
| 432 | message: Bad Request |
| 433 | details: The provided request is not valid |
| 434 | schema: |
| 435 | $ref: '#/components/schemas/ErrorMessage' |
| 436 | description: Bad Request |
| 437 | NotImplemented: |
| 438 | content: |
| 439 | application/json: |
| 440 | example: |
| 441 | status: 501 |
| 442 | message: Not Implemented |
| 443 | details: Method Not Implemented |
| 444 | schema: |
| 445 | $ref: '#/components/schemas/ErrorMessage' |
| 446 | description: Not Implemented |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 447 | schemas: |
| 448 | ModuleReferencesRequest: |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame^] | 449 | example: |
| 450 | moduleSetTag: moduleSetTag |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 451 | cmHandleProperties: |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame^] | 452 | key: "{\"prop1\":\"value1\",\"prop2\":\"value2\"}" |
| 453 | properties: |
| 454 | moduleSetTag: |
| 455 | type: string |
| 456 | cmHandleProperties: |
| 457 | additionalProperties: |
| 458 | example: "{\"prop1\":\"value1\",\"prop2\":\"value2\"}" |
| 459 | type: string |
| 460 | nullable: true |
| 461 | type: object |
| 462 | type: object |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 463 | cmHandleProperties: |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 464 | additionalProperties: |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame^] | 465 | example: "{\"prop1\":\"value1\",\"prop2\":\"value2\"}" |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 466 | type: string |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame^] | 467 | nullable: true |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 468 | type: object |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame^] | 469 | ModuleSet: |
| 470 | example: |
| 471 | schemas: |
| 472 | - moduleName: my-module-name |
| 473 | namespace: my-namespace |
| 474 | revision: my-revision |
| 475 | - moduleName: my-module-name |
| 476 | namespace: my-namespace |
| 477 | revision: my-revision |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 478 | properties: |
| 479 | schemas: |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 480 | items: |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame^] | 481 | $ref: '#/components/schemas/ModuleSet_schemas_inner' |
| 482 | type: array |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 483 | type: object |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame^] | 484 | ErrorMessage: |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 485 | properties: |
| 486 | status: |
| 487 | type: string |
| 488 | message: |
| 489 | type: string |
| 490 | details: |
| 491 | type: string |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame^] | 492 | title: Error |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 493 | type: object |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame^] | 494 | ModuleResourcesReadRequest: |
| 495 | example: |
| 496 | data: |
| 497 | modules: |
| 498 | - name: my-name |
| 499 | revision: my-revision |
| 500 | - name: my-name |
| 501 | revision: my-revision |
| 502 | cmHandleProperties: |
| 503 | key: "{\"prop1\":\"value1\",\"prop2\":\"value2\"}" |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 504 | properties: |
| 505 | data: |
| 506 | $ref: '#/components/schemas/ModuleResourcesReadRequest_data' |
| 507 | cmHandleProperties: |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame^] | 508 | additionalProperties: |
| 509 | example: "{\"prop1\":\"value1\",\"prop2\":\"value2\"}" |
| 510 | type: string |
| 511 | nullable: true |
| 512 | type: object |
| 513 | type: object |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 514 | YangResources: |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 515 | items: |
| 516 | $ref: '#/components/schemas/YangResource' |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame^] | 517 | type: array |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 518 | YangResource: |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame^] | 519 | example: |
| 520 | yangSource: my-yang-source |
| 521 | moduleName: my-module-name |
| 522 | revision: my-revision |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 523 | properties: |
| 524 | yangSource: |
puthuparambil.aditya | bdcccb5 | 2022-01-20 15:26:52 +0000 | [diff] [blame] | 525 | example: my-yang-source |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame^] | 526 | type: string |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 527 | moduleName: |
puthuparambil.aditya | bdcccb5 | 2022-01-20 15:26:52 +0000 | [diff] [blame] | 528 | example: my-module-name |
puthuparambil.aditya | bdcccb5 | 2022-01-20 15:26:52 +0000 | [diff] [blame] | 529 | type: string |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame^] | 530 | revision: |
puthuparambil.aditya | bdcccb5 | 2022-01-20 15:26:52 +0000 | [diff] [blame] | 531 | example: my-revision |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame^] | 532 | type: string |
DylanB95EST | 5fe0dae | 2021-11-09 13:54:35 +0000 | [diff] [blame] | 533 | CmHandles: |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame^] | 534 | example: |
DylanB95EST | 5fe0dae | 2021-11-09 13:54:35 +0000 | [diff] [blame] | 535 | cmHandles: |
Bruno Sakoto | e830dce | 2022-03-15 11:57:45 -0400 | [diff] [blame] | 536 | - cmHandleId1 |
| 537 | - cmHandleId2 |
| 538 | - cmHandleId3 |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame^] | 539 | properties: |
| 540 | cmHandles: |
| 541 | example: |
| 542 | - cmHandleId1 |
| 543 | - cmHandleId2 |
| 544 | - cmHandleId3 |
DylanB95EST | 5fe0dae | 2021-11-09 13:54:35 +0000 | [diff] [blame] | 545 | items: |
| 546 | type: string |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame^] | 547 | type: array |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 548 | type: object |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame^] | 549 | DataAccessRequest: |
| 550 | example: |
| 551 | data: my-data |
| 552 | requestId: 3a9ce55c-e365-4dc9-8da3-a06f07cbc6d7 |
| 553 | dataType: my-data-type |
| 554 | cmHandleProperties: |
| 555 | key: "{\"prop1\":\"value1\",\"prop2\":\"value2\"}" |
| 556 | operation: read |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 557 | properties: |
| 558 | operation: |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 559 | enum: |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame^] | 560 | - read |
| 561 | - create |
| 562 | - update |
| 563 | - patch |
| 564 | - delete |
| 565 | example: read |
| 566 | type: string |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 567 | dataType: |
puthuparambil.aditya | bdcccb5 | 2022-01-20 15:26:52 +0000 | [diff] [blame] | 568 | example: my-data-type |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame^] | 569 | type: string |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 570 | data: |
puthuparambil.aditya | bdcccb5 | 2022-01-20 15:26:52 +0000 | [diff] [blame] | 571 | example: my-data |
mpriyank | 78e1d06 | 2022-04-08 15:12:22 +0530 | [diff] [blame] | 572 | type: string |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame^] | 573 | cmHandleProperties: |
| 574 | additionalProperties: |
| 575 | example: "{\"prop1\":\"value1\",\"prop2\":\"value2\"}" |
| 576 | type: string |
| 577 | nullable: true |
| 578 | type: object |
| 579 | requestId: |
JosephKeenan | 2cd8b98 | 2022-05-23 15:43:05 +0100 | [diff] [blame] | 580 | example: 3a9ce55c-e365-4dc9-8da3-a06f07cbc6d7 |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame^] | 581 | type: string |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 582 | type: object |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame^] | 583 | ResourceDataOperationRequests: |
| 584 | items: |
| 585 | $ref: '#/components/schemas/DataOperationRequest' |
| 586 | type: array |
| 587 | cmHandle: |
| 588 | example: |
| 589 | id: cmHandle123 |
| 590 | cmHandleProperties: |
| 591 | myProp: some value |
| 592 | otherProp: other value |
| 593 | properties: |
| 594 | id: |
| 595 | type: string |
| 596 | cmHandleProperties: |
| 597 | additionalProperties: |
| 598 | type: string |
| 599 | type: object |
| 600 | title: cmHandle |
| 601 | type: object |
| 602 | ModuleSet_schemas_inner: |
| 603 | example: |
| 604 | moduleName: my-module-name |
| 605 | namespace: my-namespace |
| 606 | revision: my-revision |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 607 | properties: |
| 608 | moduleName: |
puthuparambil.aditya | bdcccb5 | 2022-01-20 15:26:52 +0000 | [diff] [blame] | 609 | example: my-module-name |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame^] | 610 | type: string |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 611 | revision: |
puthuparambil.aditya | bdcccb5 | 2022-01-20 15:26:52 +0000 | [diff] [blame] | 612 | example: my-revision |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 613 | type: string |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame^] | 614 | namespace: |
puthuparambil.aditya | bdcccb5 | 2022-01-20 15:26:52 +0000 | [diff] [blame] | 615 | example: my-namespace |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame^] | 616 | type: string |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 617 | type: object |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame^] | 618 | ModuleResourcesReadRequest_data_modules_inner: |
| 619 | example: |
| 620 | name: my-name |
| 621 | revision: my-revision |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 622 | properties: |
| 623 | name: |
puthuparambil.aditya | bdcccb5 | 2022-01-20 15:26:52 +0000 | [diff] [blame] | 624 | example: my-name |
puthuparambil.aditya | bdcccb5 | 2022-01-20 15:26:52 +0000 | [diff] [blame] | 625 | type: string |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame^] | 626 | revision: |
puthuparambil.aditya | bdcccb5 | 2022-01-20 15:26:52 +0000 | [diff] [blame] | 627 | example: my-revision |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame^] | 628 | type: string |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 629 | type: object |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame^] | 630 | ModuleResourcesReadRequest_data: |
| 631 | example: |
| 632 | modules: |
| 633 | - name: my-name |
| 634 | revision: my-revision |
| 635 | - name: my-name |
| 636 | revision: my-revision |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 637 | properties: |
| 638 | modules: |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 639 | items: |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame^] | 640 | $ref: '#/components/schemas/ModuleResourcesReadRequest_data_modules_inner' |
| 641 | type: array |
| 642 | type: object |
| 643 | DataOperationRequest: |
| 644 | example: |
| 645 | resourceIdentifier: some resource identifier |
| 646 | datastore: ncmp-datastore:passthrough-operational |
| 647 | options: some option |
| 648 | operationId: "12" |
| 649 | cmHandles: |
| 650 | - id: cmHandle123 |
| 651 | cmHandleProperties: |
| 652 | myProp: some value |
| 653 | otherProp: other value |
| 654 | - id: cmHandle123 |
| 655 | cmHandleProperties: |
| 656 | myProp: some value |
| 657 | otherProp: other value |
| 658 | operation: read |
| 659 | properties: |
| 660 | operation: |
| 661 | example: read |
| 662 | type: string |
| 663 | operationId: |
| 664 | description: it is recommended that the operationId is unique within the |
| 665 | scope of the request |
| 666 | example: "12" |
| 667 | type: string |
| 668 | datastore: |
| 669 | example: ncmp-datastore:passthrough-operational |
| 670 | type: string |
| 671 | options: |
| 672 | example: some option |
| 673 | type: string |
| 674 | resourceIdentifier: |
| 675 | example: some resource identifier |
| 676 | type: string |
| 677 | cmHandles: |
| 678 | items: |
| 679 | $ref: '#/components/schemas/cmHandle' |
| 680 | type: array |
| 681 | required: |
| 682 | - cmHandles |
| 683 | - datastore |
| 684 | - operation |
| 685 | - operationId |
| 686 | title: DataOperationRequest |
| 687 | type: object |