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