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