blob: b3baa16863826775e2531669f4762111b705edf0 [file] [log] [blame]
egernugb0ee0382024-04-17 10:08:38 +01001openapi: 3.0.3
2info:
3 description: Support datajobs through one or more subjob for each DMI and Data Producer
4 Identifier combination
5 title: NCMP Data Subjob API
6 version: 1.0.0
7servers:
egernugd9a46152024-05-14 14:02:07 +01008- url: /dmi
egernugb0ee0382024-04-17 10:08:38 +01009tags:
egernugd9a46152024-05-14 14:02:07 +010010- description: DMI plugin rest apis
11 name: dmi-datajob
egernugb0ee0382024-04-17 10:08:38 +010012paths:
egernugd9a46152024-05-14 14:02:07 +010013 /dmi/v1/readJob/{requestId}:
egernugb0ee0382024-04-17 10:08:38 +010014 post:
15 description: Create a read request
egernugd9a46152024-05-14 14:02:07 +010016 operationId: readDataJob
egernugb0ee0382024-04-17 10:08:38 +010017 parameters:
egernugd9a46152024-05-14 14:02:07 +010018 - description: Identifier for the overall Datajob
19 explode: false
20 in: path
21 name: requestId
22 required: true
23 schema:
24 example: some-identifier
25 type: string
26 style: simple
egernugb0ee0382024-04-17 10:08:38 +010027 requestBody:
28 content:
29 application/3gpp-json-patch+json:
30 schema:
egernugd9a46152024-05-14 14:02:07 +010031 $ref: '#/components/schemas/SubjobReadRequest'
egernugb0ee0382024-04-17 10:08:38 +010032 description: Operation body
33 responses:
34 "200":
35 content:
36 application/json:
37 schema:
egernugd9a46152024-05-14 14:02:07 +010038 $ref: '#/components/schemas/readDataJob_200_response'
egernugb0ee0382024-04-17 10:08:38 +010039 description: Response for subjob
40 tags:
egernugd9a46152024-05-14 14:02:07 +010041 - dmi-datajob
42 /dmi/v1/writeJob/{requestId}:
43 post:
44 description: Create a write request
45 operationId: writeDataJob
46 parameters:
47 - description: Identifier for the overall Datajob
48 explode: false
49 in: path
50 name: requestId
51 required: true
52 schema:
53 example: some-identifier
54 type: string
55 style: simple
56 requestBody:
57 content:
58 application/3gpp-json-patch+json:
59 schema:
60 $ref: '#/components/schemas/SubjobWriteRequest'
61 description: Operation body
62 responses:
63 "200":
64 content:
65 application/json:
66 schema:
67 $ref: '#/components/schemas/readDataJob_200_response'
68 description: Response for subjob
69 tags:
70 - dmi-datajob
egernugb0ee0382024-04-17 10:08:38 +010071components:
72 parameters:
73 requestIdInPath:
74 description: Identifier for the overall Datajob
75 explode: false
76 in: path
77 name: requestId
78 required: true
79 schema:
80 example: some-identifier
81 type: string
82 style: simple
83 schemas:
egernugd9a46152024-05-14 14:02:07 +010084 SubjobReadRequest:
egernugb0ee0382024-04-17 10:08:38 +010085 properties:
86 dataAcceptType:
87 description: Defines the data response accept type
88 example: application/vnd.3gpp.object-tree-hierarchical+json
89 type: string
90 dataContentType:
91 description: Defines the data request content type
92 example: application/3gpp-json-patch+json
93 type: string
94 dataProducerId:
95 description: ID of the producer registered by DMI for the paths in the operations
96 in this request
97 example: my-data-producer-identifier
98 type: string
99 data:
egernugd9a46152024-05-14 14:02:07 +0100100 example:
101 op: read
102 operationId: 1
103 path: SubNetwork=Europe/SubNetwork=Ireland/MeContext=NR03gNodeBRadio00003/ManagedElement=NR03gNodeBRadio00003/GNBCUCPFunction=2
104 attributes: userLabel
105 scope:
106 scopeTyp: BASE_ONLY
107 items:
108 $ref: '#/components/schemas/SubjobReadRequest_data_inner'
109 type: array
egernugb0ee0382024-04-17 10:08:38 +0100110 required:
egernugd9a46152024-05-14 14:02:07 +0100111 - data
112 - dataProducerId
egernugb0ee0382024-04-17 10:08:38 +0100113 type: object
egernugd9a46152024-05-14 14:02:07 +0100114 SubjobWriteRequest:
115 properties:
116 dataAcceptType:
117 description: Defines the data response accept type
118 example: application/vnd.3gpp.object-tree-hierarchical+json
119 type: string
120 dataContentType:
121 description: Defines the data request content type
122 example: application/3gpp-json-patch+json
123 type: string
124 dataProducerId:
125 description: ID of the producer registered by DMI for the paths in the operations
126 in this request
127 example: my-data-producer-identifier
128 type: string
129 data:
130 example:
131 op: add
132 path: SubNetwork=Europe/SubNetwork=Ireland/MeContext=NR03gNodeBRadio00003/ManagedElement=NR03gNodeBRadio00003/GNBCUCPFunction=1/EUtraNetwork=1/EUtranFrequency=12
133 value:
134 id: 12
135 attributes:
136 userLabel: label12
137 items:
138 $ref: '#/components/schemas/SubjobWriteRequest_data_inner'
139 type: array
140 required:
141 - data
142 - dataProducerId
143 type: object
egernugb0ee0382024-04-17 10:08:38 +0100144 CmHandleProperties:
145 description: Private properties of the cm handle for the given path
146 type: object
147 Resource:
148 properties:
149 id:
150 description: Identifier of the resource object
151 example: resource-identifier
152 type: string
153 attributes:
154 additionalProperties:
155 example: "userLabel: label11"
156 type: string
157 description: Key value map representing the objects class attributes and
158 values
159 type: object
160 type: object
161 ActionParameters:
162 additionalProperties:
163 type: string
164 description: The input of the action in the form of key value pairs
165 type: object
166 Object:
167 type: object
egernugd9a46152024-05-14 14:02:07 +0100168 readDataJob_200_response:
egernugb0ee0382024-04-17 10:08:38 +0100169 example:
170 dataProducerJobId: dataProducerJobId
171 properties:
172 dataProducerJobId:
173 description: The data job ID.
174 type: string
175 type: object
egernugd9a46152024-05-14 14:02:07 +0100176 SubjobReadRequest_data_inner:
egernugb0ee0382024-04-17 10:08:38 +0100177 properties:
178 path:
179 description: Defines the resource on which operation is executed
180 example: SubNetwork=Europe/SubNetwork=Ireland/MeContext=NR03gNodeBRadio00003/ManagedElement=NR03gNodeBRadio00003
181 type: string
182 op:
183 description: Describes the operation to execute
184 example: read
185 type: string
186 operationId:
187 description: Unique identifier for the operation within the request
188 example: "1"
189 type: string
190 attributes:
191 description: This parameter specifies the attributes of the scoped resources
192 that are returned
193 items:
194 example: cellId
195 type: string
196 type: array
197 fields:
198 description: This parameter specifies the attribute fields of the scoped
199 resources that are returned
200 items:
201 type: string
202 type: array
203 filter:
204 description: This parameter is used to filter the scoped Managed Objects.
205 Only Managed Objects passing the filter criteria will be fetched
206 example: NRCellDU/attributes/administrativeState==LOCKED
207 type: string
208 scopeType:
209 description: ScopeType selects MOs depending on relationships with Base
210 Managed Object
211 example: BASE_ONLY
212 type: string
213 scopeLevel:
214 description: Only used when the scope type is BASE_NTH_LEVEL to specify
215 amount of levels to search
216 example: 0
217 type: integer
218 moduleSetTag:
219 description: Module set identifier
220 example: my-module-set-tag
221 type: string
222 cmHandleProperties:
223 description: Private properties of the cm handle for the given path
224 type: object
225 required:
egernugd9a46152024-05-14 14:02:07 +0100226 - op
227 - path
egernugb0ee0382024-04-17 10:08:38 +0100228 type: object
egernugd9a46152024-05-14 14:02:07 +0100229 SubjobWriteRequest_data_inner_value:
egernugb0ee0382024-04-17 10:08:38 +0100230 description: Value dependent on the op specified. Resource for an add. Object
231 for a replace. ActionParameters for an action.
232 oneOf:
egernugd9a46152024-05-14 14:02:07 +0100233 - $ref: '#/components/schemas/Resource'
234 - $ref: '#/components/schemas/ActionParameters'
235 - $ref: '#/components/schemas/Object'
egernugb0ee0382024-04-17 10:08:38 +0100236 type: object
egernugd9a46152024-05-14 14:02:07 +0100237 SubjobWriteRequest_data_inner:
egernugb0ee0382024-04-17 10:08:38 +0100238 properties:
239 path:
240 description: Defines the resource on which operation is executed
241 example: SubNetwork=Europe/SubNetwork=Ireland/MeContext=NR03gNodeBRadio00003/ManagedElement=NR03gNodeBRadio00003
242 type: string
243 op:
244 description: Describes the operation to execute
245 example: add
246 type: string
247 operationId:
248 description: Unique identifier for the operation within the request
249 example: "1"
250 type: string
egernugd9a46152024-05-14 14:02:07 +0100251 moduleSetTag:
252 description: Module set identifier
253 example: my-module-set-tag
254 type: string
255 cmHandleProperties:
256 description: Private properties of the cm handle for the given path
257 type: object
egernugb0ee0382024-04-17 10:08:38 +0100258 value:
egernugd9a46152024-05-14 14:02:07 +0100259 $ref: '#/components/schemas/SubjobWriteRequest_data_inner_value'
egernugb0ee0382024-04-17 10:08:38 +0100260 required:
egernugd9a46152024-05-14 14:02:07 +0100261 - op
262 - path
egernugb0ee0382024-04-17 10:08:38 +0100263 type: object