blob: 3142654d5db823ca52b48118d2496bcc0d829491 [file] [log] [blame]
puthuparambil.aditya39450c52022-03-29 11:22:31 +01001# ============LICENSE_START=======================================================
leventecsanyifff80c02023-04-05 11:42:30 +02002# Copyright (C) 2021-2023 Nordix Foundation
puthuparambil.aditya39450c52022-03-29 11:22:31 +01003# Modifications Copyright (C) 2022 Bell Canada
4# ================================================================================
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16#
17# SPDX-License-Identifier: Apache-2.0
18# ============LICENSE_END=========================================================
19
DylanB95ESTb5a23832021-06-02 19:45:46 +010020components:
JosephKeenandfe45ff2022-10-26 15:17:59 +010021 securitySchemes:
22 basicAuth:
23 type: http
24 scheme: basic
DylanB95ESTb5a23832021-06-02 19:45:46 +010025 schemas:
26 ErrorMessage:
27 type: object
28 title: Error
29 properties:
30 status:
31 type: string
32 message:
33 type: string
34 details:
35 type: string
36
tragait2270d762021-07-08 15:42:19 +010037 CmHandles:
38 type: object
39 properties:
40 cmHandles:
41 type: array
lukegleeson996152a2021-11-30 17:06:03 +000042 example: ["cmHandleId1","cmHandleId2","cmHandleId3"]
tragait2270d762021-07-08 15:42:19 +010043 items:
44 type: string
45
niamhcoreacc0f8b2021-10-06 09:49:12 +010046 ModuleReferencesRequest:
niamhcore3139ece2021-07-30 16:25:16 +010047 type: object
48 properties:
leventecsanyi8db6a302024-04-02 14:37:57 +020049 moduleSetTag:
50 type: string
niamhcoreacc0f8b2021-10-06 09:49:12 +010051 cmHandleProperties:
52 $ref: '#/components/schemas/cmHandleProperties'
53
raviteja.karumuri97843842023-06-19 16:43:32 +010054 ResourceDataOperationRequests:
raviteja.karumuri7272f112023-05-24 18:23:38 +010055 type: array
56 items:
57 type: object
raviteja.karumuri97843842023-06-19 16:43:32 +010058 title: 'DataOperationRequest'
raviteja.karumuri7272f112023-05-24 18:23:38 +010059 properties:
60 operation:
61 type: string
62 example: 'read'
63 operationId:
64 description: 'it is recommended that the operationId is unique within the scope of the request'
65 type: string
66 example: '12'
67 datastore:
68 type: string
69 example: 'ncmp-datastore:passthrough-operational'
70 options:
71 type: string
72 example: 'some option'
73 resourceIdentifier:
74 type: string
75 example: 'some resource identifier'
76 cmHandles:
77 type: array
78 items:
david.mcweeney3cadc192024-05-08 12:37:02 +010079 $ref: '#/components/schemas/dmiOperationCmHandle'
raviteja.karumuri7272f112023-05-24 18:23:38 +010080 required:
81 - operation
82 - operationId
83 - datastore
84 - cmHandles
85
david.mcweeney3cadc192024-05-08 12:37:02 +010086 dmiOperationCmHandle:
raviteja.karumuri7272f112023-05-24 18:23:38 +010087 type: object
david.mcweeney3cadc192024-05-08 12:37:02 +010088 title: 'CmHandle with properties for DMI'
raviteja.karumuri7272f112023-05-24 18:23:38 +010089 properties:
90 id:
91 type: string
92 cmHandleProperties:
93 additionalProperties:
94 type: string
david.mcweeney3cadc192024-05-08 12:37:02 +010095 moduleSetTag:
96 type: string
97 example: module-set-tag1
raviteja.karumuri7272f112023-05-24 18:23:38 +010098 example:
99 id: cmHandle123
100 cmHandleProperties:
101 myProp: some value
102 otherProp: other value
david.mcweeney3cadc192024-05-08 12:37:02 +0100103 moduleSetTag: module-set-tag1
raviteja.karumuri7272f112023-05-24 18:23:38 +0100104
niamhcoreacc0f8b2021-10-06 09:49:12 +0100105 ModuleResourcesReadRequest:
106 type: object
107 properties:
david.mcweeneyee0c3be2024-04-30 10:24:41 +0100108 moduleSetTag:
109 type: string
110 description: Module set tag of the given cm handle
111 example: Module-set-tag-1
112 required: false
niamhcore3139ece2021-07-30 16:25:16 +0100113 data:
114 type: object
115 properties:
116 modules:
117 type: array
118 items:
119 type: object
120 properties:
121 name:
lukegleeson996152a2021-11-30 17:06:03 +0000122 type: string
123 example: my-name
niamhcore3139ece2021-07-30 16:25:16 +0100124 revision:
lukegleeson996152a2021-11-30 17:06:03 +0000125 type: string
126 example: my-revision
niamhcore3139ece2021-07-30 16:25:16 +0100127 cmHandleProperties:
tragait907e3782021-10-04 16:02:57 +0100128 $ref: '#/components/schemas/cmHandleProperties'
niamhcore3139ece2021-07-30 16:25:16 +0100129
niamhcore577efb02021-08-11 16:13:53 +0100130 ModuleSet:
131 type: object
132 properties:
133 schemas:
134 type: array
135 items:
136 type: object
137 properties:
138 moduleName:
139 type: string
lukegleeson996152a2021-11-30 17:06:03 +0000140 example: my-module-name
niamhcore577efb02021-08-11 16:13:53 +0100141 revision:
lukegleeson996152a2021-11-30 17:06:03 +0000142 type: string
143 example: my-revision
niamhcore577efb02021-08-11 16:13:53 +0100144 namespace:
145 type: string
lukegleeson996152a2021-11-30 17:06:03 +0000146 example: my-namespace
niamhcore577efb02021-08-11 16:13:53 +0100147
niamhcore4f431882021-09-21 16:08:29 +0100148 YangResources:
149 type: array
150 items:
niamhcore4f431882021-09-21 16:08:29 +0100151 $ref: '#/components/schemas/YangResource'
152
153 YangResource:
154 properties:
155 yangSource:
156 type: string
lukegleeson996152a2021-11-30 17:06:03 +0000157 example: my-yang-source
niamhcore4f431882021-09-21 16:08:29 +0100158 moduleName:
159 type: string
lukegleeson996152a2021-11-30 17:06:03 +0000160 example: my-module-name
niamhcore4f431882021-09-21 16:08:29 +0100161 revision:
lukegleeson996152a2021-11-30 17:06:03 +0000162 type: string
163 example: my-revision
niamhcore4f431882021-09-21 16:08:29 +0100164
DylanB95EST5fe0dae2021-11-09 13:54:35 +0000165 DataAccessRequest:
tragaite398be52021-08-06 17:01:31 +0100166 type: object
167 properties:
168 operation:
169 type: string
tragaitdffff5d2022-01-10 12:16:25 +0000170 enum: [ read, create, update, patch, delete ]
lukegleeson996152a2021-11-30 17:06:03 +0000171 example: read
niamhcore79e41e02021-08-20 11:24:06 +0100172 dataType:
173 type: string
lukegleeson996152a2021-11-30 17:06:03 +0000174 example: my-data-type
niamhcore79e41e02021-08-20 11:24:06 +0100175 data:
tragaitfa11e9c2021-09-14 13:47:52 +0100176 type: string
lukegleeson996152a2021-11-30 17:06:03 +0000177 example: my-data
niamhcore79e41e02021-08-20 11:24:06 +0100178 cmHandleProperties:
tragait907e3782021-10-04 16:02:57 +0100179 $ref: '#/components/schemas/cmHandleProperties'
mpriyank78e1d062022-04-08 15:12:22 +0530180 requestId:
181 type: string
JosephKeenan2cd8b982022-05-23 15:43:05 +0100182 example: 3a9ce55c-e365-4dc9-8da3-a06f07cbc6d7
tragait907e3782021-10-04 16:02:57 +0100183
184 cmHandleProperties:
185 type: object
egernug1118bed2023-06-28 10:57:53 +0100186 nullable: true
tragait907e3782021-10-04 16:02:57 +0100187 additionalProperties:
188 type: string
189 example: {"prop1":"value1","prop2":"value2"}
niamhcore79e41e02021-08-20 11:24:06 +0100190
DylanB95ESTb5a23832021-06-02 19:45:46 +0100191 responses:
lukegleeson996152a2021-11-30 17:06:03 +0000192 NoContent:
193 description: No Content
194 content: {}
raviteja.karumuri7272f112023-05-24 18:23:38 +0100195
DylanB95ESTb5a23832021-06-02 19:45:46 +0100196 BadRequest:
197 description: Bad Request
198 content:
199 application/json:
200 schema:
201 $ref: '#/components/schemas/ErrorMessage'
lukegleeson996152a2021-11-30 17:06:03 +0000202 example:
203 status: 400
204 message: Bad Request
205 details: The provided request is not valid
raviteja.karumuri7272f112023-05-24 18:23:38 +0100206
lukegleeson996152a2021-11-30 17:06:03 +0000207 NotFound:
208 description: The specified resource was not found
209 content:
210 application/json:
211 schema:
212 $ref: '#/components/schemas/ErrorMessage'
213 example:
214 status: 404
215 message: Resource Not Found
216 details: The requested resource is not found
raviteja.karumuri7272f112023-05-24 18:23:38 +0100217
puthuparambil.adityabdcccb52022-01-20 15:26:52 +0000218 ServerError:
219 description: Internal Server Error
DylanB95ESTb5a23832021-06-02 19:45:46 +0100220 content:
221 application/json:
222 schema:
223 $ref: '#/components/schemas/ErrorMessage'
lukegleeson996152a2021-11-30 17:06:03 +0000224 example:
puthuparambil.adityabdcccb52022-01-20 15:26:52 +0000225 status: 500
226 message: Internal Server Error
227 details: Internal Server Error occured
raviteja.karumuri7272f112023-05-24 18:23:38 +0100228
leventecsanyifff80c02023-04-05 11:42:30 +0200229 NotImplemented:
230 description: Not Implemented
231 content:
232 application/json:
233 schema:
234 $ref: '#/components/schemas/ErrorMessage'
235 example:
236 status: 501
237 message: Not Implemented
238 details: Method Not Implemented
raviteja.karumuri7272f112023-05-24 18:23:38 +0100239
niamhcore3139ece2021-07-30 16:25:16 +0100240 parameters:
241 cmHandleInPath:
242 name: cmHandle
243 in: path
244 description: The identifier for a network function, network element, subnetwork, or any other cm object by managed Network CM Proxy
245 required: true
246 schema:
tragaitf01d5672021-08-19 11:19:54 +0100247 type: string
lukegleeson996152a2021-11-30 17:06:03 +0000248 example: my-cm-handle
tragaitf01d5672021-08-19 11:19:54 +0100249
niamhcore2fb3f662021-09-29 15:32:32 +0100250 resourceIdentifierInQuery:
tragaitf01d5672021-08-19 11:19:54 +0100251 name: resourceIdentifier
niamhcore2fb3f662021-09-29 15:32:32 +0100252 in: query
tragaitf01d5672021-08-19 11:19:54 +0100253 description: Resource identifier to get/set the resource data
254 required: true
255 schema:
256 type: string
lukegleeson996152a2021-11-30 17:06:03 +0000257 example: my-schema:my-node
tragaitf01d5672021-08-19 11:19:54 +0100258
tragait907e3782021-10-04 16:02:57 +0100259 optionsParamInQuery:
260 name: options
tragaitf01d5672021-08-19 11:19:54 +0100261 in: query
tragait907e3782021-10-04 16:02:57 +0100262 description: options parameter in query, it is mandatory to wrap key(s)=value(s) in parenthesis'()'.
tragaitf01d5672021-08-19 11:19:54 +0100263 required: false
264 schema:
265 type: string
tragait907e3782021-10-04 16:02:57 +0100266 examples:
267 sample1:
268 value:
269 options: (key1=value1,key2=value2)
270 sample2:
271 value:
272 options: (key1=value1,key2=value1/value2)
273 sample3:
274 value:
mpriyank78e1d062022-04-08 15:12:22 +0530275 options: (key1=10,key2=value2,key3=val31,val32)
raviteja.karumuri7272f112023-05-24 18:23:38 +0100276
mpriyank78e1d062022-04-08 15:12:22 +0530277 topicParamInQuery:
JosephKeenan2cd8b982022-05-23 15:43:05 +0100278 name: topic
mpriyank78e1d062022-04-08 15:12:22 +0530279 in: query
mpriyank7b7297c2022-09-14 10:47:45 +0100280 description: topic name passed from client(NCMP).
mpriyank78e1d062022-04-08 15:12:22 +0530281 required: false
282 schema:
283 type: string
mpriyank78e1d062022-04-08 15:12:22 +0530284 examples:
285 sample1:
JosephKeenan2cd8b982022-05-23 15:43:05 +0100286 value: my-topic-name
raviteja.karumuri7272f112023-05-24 18:23:38 +0100287
288 requiredTopicParamInQuery:
289 name: topic
290 in: query
291 description: mandatory topic name passed from client(NCMP).
292 required: true
293 schema:
294 type: string
raviteja.karumuri7272f112023-05-24 18:23:38 +0100295 examples:
296 sample1:
297 value:
298 topic: my-topic-name
299
david.mcweeney184b6812024-05-02 15:14:52 +0100300 moduleSetTagParamInQuery:
301 name: moduleSetTag
302 in: query
303 description: Module set tag of the given cm handle.
304 required: false
305 schema:
306 type: string
307 examples:
308 sample1:
309 value: tag1
310
raviteja.karumuri7272f112023-05-24 18:23:38 +0100311 requiredRequestIdParamInQuery:
312 name: requestId
313 in: query
314 description: request Id generated by NCMP and sent as an acknowledgement for the client request the same including here.
315 required: true
316 schema:
317 type: string
raviteja.karumuri7272f112023-05-24 18:23:38 +0100318 examples:
319 sample1:
320 value: 4753fc1f-7de2-449a-b306-a6204b5370b3
321
sourabh_sourabhe648aba2023-03-13 15:49:35 +0000322 datastoreName:
323 name: datastore-name
324 in: path
325 description: The type of the requested data
326 required: true
327 schema:
328 type: string
329 example: ncmp-datastore:passthrough-operational or ncmp-datastore:passthrough-running
JosephKeenandfe45ff2022-10-26 15:17:59 +0100330
331security:
ToineSiebelink190c30c2024-05-22 11:54:23 +0100332 - basicAuth: []