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