mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 1 | openapi: 3.0.3 |
niamhcore | c1904c1 | 2021-10-11 16:38:53 +0100 | [diff] [blame] | 2 | info: |
niamhcore | c1904c1 | 2021-10-11 16:38:53 +0100 | [diff] [blame] | 3 | description: NCMP Inventory API |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 4 | title: NCMP Inventory API |
niamhcore | c1904c1 | 2021-10-11 16:38:53 +0100 | [diff] [blame] | 5 | version: "1.0" |
6 | servers: | ||||
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 7 | - url: /ncmpInventory |
seanbeirne | 16e2358 | 2023-01-26 09:21:44 +0000 | [diff] [blame] | 8 | security: |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 9 | - basicAuth: [] |
niamhcore | c1904c1 | 2021-10-11 16:38:53 +0100 | [diff] [blame] | 10 | paths: |
11 | /v1/ch: | ||||
12 | post: | ||||
niamhcore | c1904c1 | 2021-10-11 16:38:53 +0100 | [diff] [blame] | 13 | description: "Register a DMI Plugin with any new, updated or removed CM Handles." |
14 | operationId: updateDmiPluginRegistration | ||||
15 | requestBody: | ||||
16 | content: | ||||
17 | application/json: | ||||
18 | schema: | ||||
19 | $ref: '#/components/schemas/RestDmiPluginRegistration' | ||||
20 | required: true | ||||
21 | responses: | ||||
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 22 | "200": |
niamhcore | c1904c1 | 2021-10-11 16:38:53 +0100 | [diff] [blame] | 23 | content: {} |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 24 | description: No Content |
niamhcore | c1904c1 | 2021-10-11 16:38:53 +0100 | [diff] [blame] | 25 | "400": |
niamhcore | c1904c1 | 2021-10-11 16:38:53 +0100 | [diff] [blame] | 26 | content: |
27 | application/json: | ||||
DylanB95EST | 63132ce | 2021-12-14 16:34:38 +0000 | [diff] [blame] | 28 | example: |
29 | status: 400 BAD_REQUEST | ||||
30 | message: Bad request error message | ||||
31 | details: Bad request error details | ||||
niamhcore | c1904c1 | 2021-10-11 16:38:53 +0100 | [diff] [blame] | 32 | schema: |
33 | $ref: '#/components/schemas/ErrorMessage' | ||||
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 34 | description: Bad Request |
35 | "401": | ||||
36 | content: | ||||
37 | application/json: | ||||
DylanB95EST | 63132ce | 2021-12-14 16:34:38 +0000 | [diff] [blame] | 38 | example: |
39 | status: 401 | ||||
40 | message: Unauthorized error message | ||||
41 | details: Unauthorized error details | ||||
niamhcore | c1904c1 | 2021-10-11 16:38:53 +0100 | [diff] [blame] | 42 | schema: |
43 | $ref: '#/components/schemas/ErrorMessage' | ||||
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 44 | description: Unauthorized |
45 | "403": | ||||
46 | content: | ||||
47 | application/json: | ||||
DylanB95EST | 63132ce | 2021-12-14 16:34:38 +0000 | [diff] [blame] | 48 | example: |
49 | status: 403 | ||||
50 | message: Forbidden error message | ||||
51 | details: Forbidden error details | ||||
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 52 | schema: |
53 | $ref: '#/components/schemas/ErrorMessage' | ||||
54 | description: Forbidden | ||||
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 55 | "500": |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 56 | content: |
57 | application/json: | ||||
58 | example: | ||||
59 | failedCreatedCmHandles: | ||||
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 60 | - cmHandle: my-cm-handle-01 |
61 | errorCode: "00" | ||||
62 | errorText: Unknown error. <error-details> | ||||
63 | - cmHandle: my-cm-handle-02 | ||||
64 | errorCode: "01" | ||||
65 | errorText: cm-handle already exists | ||||
66 | - cmHandle: my-cm-handle-03 | ||||
67 | errorCode: "03" | ||||
68 | errorText: cm-handle has an invalid character(s) in id | ||||
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 69 | failedUpdatedCmHandles: |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 70 | - cmHandle: my-cm-handle-01 |
71 | errorCode: "00" | ||||
72 | errorText: Unknown error. <error-details> | ||||
73 | - cmHandle: my-cm-handle-02 | ||||
74 | errorCode: "02" | ||||
75 | errorText: cm-handle does not exist | ||||
76 | - cmHandle: my-cm-handle-03 | ||||
77 | errorCode: "03" | ||||
78 | errorText: cm-handle has an invalid character(s) in id | ||||
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 79 | failedRemovedCmHandles: |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 80 | - cmHandle: my-cm-handle-01 |
81 | errorCode: "00" | ||||
82 | errorText: Unknown error. <error-details> | ||||
83 | - cmHandle: my-cm-handle-02 | ||||
84 | errorCode: "02" | ||||
85 | errorText: cm-handle does not exists | ||||
86 | - cmHandle: my-cm-handle-03 | ||||
87 | errorCode: "03" | ||||
88 | errorText: cm-handle has an invalid character(s) in id | ||||
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 89 | schema: |
90 | $ref: '#/components/schemas/DmiPluginRegistrationErrorResponse' | ||||
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 91 | description: Partial or Complete failure. The error details are provided |
92 | in the response body and all supported error codes are documented in the | ||||
93 | example. | ||||
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 94 | summary: DMI notifies NCMP of new CM Handles |
95 | tags: | ||||
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 96 | - network-cm-proxy-inventory |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 97 | /v1/ch/cmHandles: |
98 | get: | ||||
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 99 | description: Get all cm handle IDs for a registered DMI plugin |
100 | operationId: getAllCmHandleIdsForRegisteredDmi | ||||
101 | parameters: | ||||
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 102 | - description: dmi-plugin-identifier |
103 | in: query | ||||
104 | name: dmi-plugin-identifier | ||||
105 | required: true | ||||
106 | schema: | ||||
107 | example: my-dmi-plugin | ||||
108 | type: string | ||||
seanbeirne | 16e2358 | 2023-01-26 09:21:44 +0000 | [diff] [blame] | 109 | responses: |
110 | "200": | ||||
seanbeirne | 16e2358 | 2023-01-26 09:21:44 +0000 | [diff] [blame] | 111 | content: |
112 | application/json: | ||||
113 | schema: | ||||
seanbeirne | 16e2358 | 2023-01-26 09:21:44 +0000 | [diff] [blame] | 114 | items: |
115 | type: string | ||||
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 116 | type: array |
117 | description: OK | ||||
seanbeirne | 16e2358 | 2023-01-26 09:21:44 +0000 | [diff] [blame] | 118 | "401": |
seanbeirne | 16e2358 | 2023-01-26 09:21:44 +0000 | [diff] [blame] | 119 | content: |
120 | application/json: | ||||
seanbeirne | 16e2358 | 2023-01-26 09:21:44 +0000 | [diff] [blame] | 121 | example: |
122 | status: 401 | ||||
123 | message: Unauthorized error message | ||||
124 | details: Unauthorized error details | ||||
seanbeirne | 16e2358 | 2023-01-26 09:21:44 +0000 | [diff] [blame] | 125 | schema: |
126 | $ref: '#/components/schemas/ErrorMessage' | ||||
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 127 | description: Unauthorized |
128 | "403": | ||||
129 | content: | ||||
130 | application/json: | ||||
seanbeirne | 16e2358 | 2023-01-26 09:21:44 +0000 | [diff] [blame] | 131 | example: |
132 | status: 403 | ||||
133 | message: Forbidden error message | ||||
134 | details: Forbidden error details | ||||
seanbeirne | 16e2358 | 2023-01-26 09:21:44 +0000 | [diff] [blame] | 135 | schema: |
136 | $ref: '#/components/schemas/ErrorMessage' | ||||
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 137 | description: Forbidden |
138 | "500": | ||||
139 | content: | ||||
140 | application/json: | ||||
seanbeirne | 16e2358 | 2023-01-26 09:21:44 +0000 | [diff] [blame] | 141 | example: |
142 | status: 500 | ||||
143 | message: Internal Server Error | ||||
144 | details: Internal Server Error occurred | ||||
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 145 | schema: |
146 | $ref: '#/components/schemas/ErrorMessage' | ||||
147 | description: Internal Server Error | ||||
148 | summary: "Get all cm handle IDs for a registered DMI plugin (DMI plugin, DMI\ | ||||
149 | \ data plugin, DMI model plugin)" | ||||
150 | tags: | ||||
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 151 | - network-cm-proxy-inventory |
seanbeirne | 16e2358 | 2023-01-26 09:21:44 +0000 | [diff] [blame] | 152 | /v1/ch/searches: |
153 | post: | ||||
seanbeirne | 16e2358 | 2023-01-26 09:21:44 +0000 | [diff] [blame] | 154 | description: "Query and get CMHandleIds for additional properties, public properties\ |
155 | \ and registered DMI plugin (DMI plugin, DMI data plugin, DMI model plugin)." | ||||
156 | operationId: searchCmHandleIds | ||||
157 | requestBody: | ||||
158 | content: | ||||
159 | application/json: | ||||
160 | schema: | ||||
161 | $ref: '#/components/schemas/CmHandleQueryParameters' | ||||
bmiklos | 96d54ef | 2022-09-07 16:11:57 +0200 | [diff] [blame] | 162 | required: true |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 163 | responses: |
164 | "200": | ||||
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 165 | content: |
166 | application/json: | ||||
167 | schema: | ||||
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 168 | items: |
169 | type: string | ||||
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 170 | type: array |
171 | description: OK | ||||
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 172 | "401": |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 173 | content: |
174 | application/json: | ||||
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 175 | example: |
176 | status: 401 | ||||
177 | message: Unauthorized error message | ||||
178 | details: Unauthorized error details | ||||
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 179 | schema: |
180 | $ref: '#/components/schemas/ErrorMessage' | ||||
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 181 | description: Unauthorized |
182 | "403": | ||||
183 | content: | ||||
184 | application/json: | ||||
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 185 | example: |
186 | status: 403 | ||||
187 | message: Forbidden error message | ||||
188 | details: Forbidden error details | ||||
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 189 | schema: |
190 | $ref: '#/components/schemas/ErrorMessage' | ||||
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 191 | description: Forbidden |
192 | "500": | ||||
193 | content: | ||||
194 | application/json: | ||||
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 195 | example: |
196 | status: 500 | ||||
197 | message: Internal Server Error | ||||
198 | details: Internal Server Error occurred | ||||
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 199 | schema: |
200 | $ref: '#/components/schemas/ErrorMessage' | ||||
201 | description: Internal Server Error | ||||
202 | summary: Query for CM Handle IDs | ||||
203 | tags: | ||||
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 204 | - network-cm-proxy-inventory |
niamhcore | c1904c1 | 2021-10-11 16:38:53 +0100 | [diff] [blame] | 205 | components: |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 206 | parameters: |
207 | dmiPluginIdentifierInQuery: | ||||
208 | description: dmi-plugin-identifier | ||||
209 | in: query | ||||
210 | name: dmi-plugin-identifier | ||||
211 | required: true | ||||
212 | schema: | ||||
213 | example: my-dmi-plugin | ||||
214 | type: string | ||||
215 | responses: | ||||
216 | NoContent: | ||||
217 | content: {} | ||||
218 | description: No Content | ||||
219 | BadRequest: | ||||
220 | content: | ||||
221 | application/json: | ||||
222 | example: | ||||
223 | status: 400 BAD_REQUEST | ||||
224 | message: Bad request error message | ||||
225 | details: Bad request error details | ||||
226 | schema: | ||||
227 | $ref: '#/components/schemas/ErrorMessage' | ||||
228 | description: Bad Request | ||||
229 | Unauthorized: | ||||
230 | content: | ||||
231 | application/json: | ||||
232 | example: | ||||
233 | status: 401 | ||||
234 | message: Unauthorized error message | ||||
235 | details: Unauthorized error details | ||||
236 | schema: | ||||
237 | $ref: '#/components/schemas/ErrorMessage' | ||||
238 | description: Unauthorized | ||||
239 | Forbidden: | ||||
240 | content: | ||||
241 | application/json: | ||||
242 | example: | ||||
243 | status: 403 | ||||
244 | message: Forbidden error message | ||||
245 | details: Forbidden error details | ||||
246 | schema: | ||||
247 | $ref: '#/components/schemas/ErrorMessage' | ||||
248 | description: Forbidden | ||||
249 | InternalServerError: | ||||
250 | content: | ||||
251 | application/json: | ||||
252 | example: | ||||
253 | status: 500 | ||||
254 | message: Internal Server Error | ||||
255 | details: Internal Server Error occurred | ||||
256 | schema: | ||||
257 | $ref: '#/components/schemas/ErrorMessage' | ||||
258 | description: Internal Server Error | ||||
niamhcore | c1904c1 | 2021-10-11 16:38:53 +0100 | [diff] [blame] | 259 | schemas: |
260 | RestDmiPluginRegistration: | ||||
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 261 | example: |
niamhcore | c1904c1 | 2021-10-11 16:38:53 +0100 | [diff] [blame] | 262 | updatedCmHandles: |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 263 | - cmHandle: my-cm-handle |
danielhanrahan | 3e14d39 | 2023-12-20 13:31:07 +0000 | [diff] [blame] | 264 | alternateId: my-alternate-id |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 265 | publicCmHandleProperties: |
266 | key: my-property | ||||
267 | cmHandleProperties: | ||||
268 | key: my-property | ||||
danielhanrahan | c3e7b0e | 2023-09-20 15:01:59 +0100 | [diff] [blame] | 269 | moduleSetTag: my-module-set-tag |
mpriyank | d74c2d2 | 2023-11-06 13:25:38 +0000 | [diff] [blame] | 270 | trustLevel: COMPLETE |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 271 | - cmHandle: my-cm-handle |
danielhanrahan | 3e14d39 | 2023-12-20 13:31:07 +0000 | [diff] [blame] | 272 | alternateId: my-alternate-id |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 273 | publicCmHandleProperties: |
274 | key: my-property | ||||
275 | cmHandleProperties: | ||||
276 | key: my-property | ||||
danielhanrahan | c3e7b0e | 2023-09-20 15:01:59 +0100 | [diff] [blame] | 277 | moduleSetTag: my-module-set-tag |
mpriyank | d74c2d2 | 2023-11-06 13:25:38 +0000 | [diff] [blame] | 278 | trustLevel: COMPLETE |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 279 | createdCmHandles: |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 280 | - cmHandle: my-cm-handle |
danielhanrahan | 3e14d39 | 2023-12-20 13:31:07 +0000 | [diff] [blame] | 281 | alternateId: my-alternate-id |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 282 | publicCmHandleProperties: |
283 | key: my-property | ||||
284 | cmHandleProperties: | ||||
285 | key: my-property | ||||
danielhanrahan | c3e7b0e | 2023-09-20 15:01:59 +0100 | [diff] [blame] | 286 | moduleSetTag: my-module-set-tag |
mpriyank | d74c2d2 | 2023-11-06 13:25:38 +0000 | [diff] [blame] | 287 | trustLevel: COMPLETE |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 288 | - cmHandle: my-cm-handle |
danielhanrahan | 3e14d39 | 2023-12-20 13:31:07 +0000 | [diff] [blame] | 289 | alternateId: my-alternate-id |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 290 | publicCmHandleProperties: |
291 | key: my-property | ||||
292 | cmHandleProperties: | ||||
293 | key: my-property | ||||
danielhanrahan | c3e7b0e | 2023-09-20 15:01:59 +0100 | [diff] [blame] | 294 | moduleSetTag: my-module-set-tag |
mpriyank | d74c2d2 | 2023-11-06 13:25:38 +0000 | [diff] [blame] | 295 | trustLevel: COMPLETE |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 296 | dmiPlugin: my-dmi-plugin |
297 | dmiModelPlugin: my-dmi-model-plugin | ||||
egernug | fb09b7c | 2023-10-12 13:33:08 +0100 | [diff] [blame] | 298 | upgradedCmHandles: |
299 | cmHandles: | ||||
300 | - my-cm-handle1 | ||||
301 | - my-cm-handle2 | ||||
302 | - my-cm-handle3 | ||||
303 | moduleSetTag: my-module-set-tag | ||||
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 304 | dmiDataPlugin: my-dmi-data-plugin |
niamhcore | c1904c1 | 2021-10-11 16:38:53 +0100 | [diff] [blame] | 305 | removedCmHandles: |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 306 | - my-cm-handle1 |
307 | - my-cm-handle2 | ||||
308 | - my-cm-handle3 | ||||
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 309 | properties: |
310 | dmiPlugin: | ||||
311 | default: "" | ||||
312 | example: my-dmi-plugin | ||||
313 | type: string | ||||
314 | dmiDataPlugin: | ||||
315 | default: "" | ||||
316 | example: my-dmi-data-plugin | ||||
317 | type: string | ||||
318 | dmiModelPlugin: | ||||
319 | default: "" | ||||
320 | example: my-dmi-model-plugin | ||||
321 | type: string | ||||
322 | createdCmHandles: | ||||
323 | items: | ||||
324 | $ref: '#/components/schemas/RestInputCmHandle' | ||||
325 | type: array | ||||
326 | updatedCmHandles: | ||||
327 | items: | ||||
328 | $ref: '#/components/schemas/RestInputCmHandle' | ||||
329 | type: array | ||||
330 | removedCmHandles: | ||||
331 | example: | ||||
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 332 | - my-cm-handle1 |
333 | - my-cm-handle2 | ||||
334 | - my-cm-handle3 | ||||
niamhcore | c1904c1 | 2021-10-11 16:38:53 +0100 | [diff] [blame] | 335 | items: |
336 | type: string | ||||
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 337 | type: array |
egernug | fb09b7c | 2023-10-12 13:33:08 +0100 | [diff] [blame] | 338 | upgradedCmHandles: |
339 | $ref: '#/components/schemas/UpgradedCmHandles' | ||||
niamhcore | c1904c1 | 2021-10-11 16:38:53 +0100 | [diff] [blame] | 340 | type: object |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 341 | RestInputCmHandle: |
342 | example: | ||||
343 | cmHandle: my-cm-handle | ||||
danielhanrahan | 3e14d39 | 2023-12-20 13:31:07 +0000 | [diff] [blame] | 344 | alternateId: my-alternate-id |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 345 | publicCmHandleProperties: |
346 | key: my-property | ||||
347 | cmHandleProperties: | ||||
348 | key: my-property | ||||
danielhanrahan | c3e7b0e | 2023-09-20 15:01:59 +0100 | [diff] [blame] | 349 | moduleSetTag: my-module-set-tag |
mpriyank | d74c2d2 | 2023-11-06 13:25:38 +0000 | [diff] [blame] | 350 | trustLevel: COMPLETE |
niamhcore | c1904c1 | 2021-10-11 16:38:53 +0100 | [diff] [blame] | 351 | properties: |
352 | cmHandle: | ||||
DylanB95EST | 63132ce | 2021-12-14 16:34:38 +0000 | [diff] [blame] | 353 | example: my-cm-handle |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 354 | type: string |
niamhcore | c1904c1 | 2021-10-11 16:38:53 +0100 | [diff] [blame] | 355 | cmHandleProperties: |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 356 | additionalProperties: |
357 | example: my-property | ||||
358 | type: string | ||||
359 | type: object | ||||
DylanB95EST | 63132ce | 2021-12-14 16:34:38 +0000 | [diff] [blame] | 360 | publicCmHandleProperties: |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 361 | additionalProperties: |
362 | example: my-property | ||||
363 | type: string | ||||
364 | type: object | ||||
danielhanrahan | c3e7b0e | 2023-09-20 15:01:59 +0100 | [diff] [blame] | 365 | moduleSetTag: |
366 | example: my-module-set-tag | ||||
367 | type: string | ||||
mpriyank | d74c2d2 | 2023-11-06 13:25:38 +0000 | [diff] [blame] | 368 | trustLevel: |
369 | enum: | ||||
370 | - COMPLETE | ||||
371 | - NONE | ||||
372 | example: COMPLETE | ||||
373 | type: string | ||||
danielhanrahan | 3e14d39 | 2023-12-20 13:31:07 +0000 | [diff] [blame] | 374 | alternateId: |
375 | example: my-alternate-id | ||||
376 | type: string | ||||
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 377 | required: |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 378 | - cmHandle |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 379 | type: object |
DylanB95EST | 63132ce | 2021-12-14 16:34:38 +0000 | [diff] [blame] | 380 | RestCmHandleProperties: |
niamhcore | c1904c1 | 2021-10-11 16:38:53 +0100 | [diff] [blame] | 381 | additionalProperties: |
DylanB95EST | 63132ce | 2021-12-14 16:34:38 +0000 | [diff] [blame] | 382 | example: my-property |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 383 | type: string |
niamhcore | c1904c1 | 2021-10-11 16:38:53 +0100 | [diff] [blame] | 384 | type: object |
egernug | fb09b7c | 2023-10-12 13:33:08 +0100 | [diff] [blame] | 385 | UpgradedCmHandles: |
386 | example: | ||||
387 | cmHandles: | ||||
388 | - my-cm-handle1 | ||||
389 | - my-cm-handle2 | ||||
390 | - my-cm-handle3 | ||||
391 | moduleSetTag: my-module-set-tag | ||||
392 | properties: | ||||
393 | cmHandles: | ||||
394 | example: | ||||
395 | - my-cm-handle1 | ||||
396 | - my-cm-handle2 | ||||
397 | - my-cm-handle3 | ||||
398 | items: | ||||
399 | type: string | ||||
400 | type: array | ||||
401 | moduleSetTag: | ||||
danielhanrahan | 3e14d39 | 2023-12-20 13:31:07 +0000 | [diff] [blame] | 402 | default: "" |
egernug | fb09b7c | 2023-10-12 13:33:08 +0100 | [diff] [blame] | 403 | example: my-module-set-tag |
404 | type: string | ||||
405 | required: | ||||
406 | - cmHandles | ||||
407 | type: object | ||||
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 408 | ErrorMessage: |
niamhcore | c1904c1 | 2021-10-11 16:38:53 +0100 | [diff] [blame] | 409 | properties: |
410 | status: | ||||
411 | type: string | ||||
412 | message: | ||||
413 | type: string | ||||
414 | details: | ||||
415 | type: string | ||||
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 416 | title: Error |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 417 | type: object |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 418 | DmiPluginRegistrationErrorResponse: |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 419 | properties: |
420 | failedCreatedCmHandles: | ||||
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 421 | items: |
422 | $ref: '#/components/schemas/CmHandlerRegistrationErrorResponse' | ||||
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 423 | type: array |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 424 | failedUpdatedCmHandles: |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 425 | items: |
426 | $ref: '#/components/schemas/CmHandlerRegistrationErrorResponse' | ||||
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 427 | type: array |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 428 | failedRemovedCmHandles: |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 429 | items: |
430 | $ref: '#/components/schemas/CmHandlerRegistrationErrorResponse' | ||||
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 431 | type: array |
egernug | fb09b7c | 2023-10-12 13:33:08 +0100 | [diff] [blame] | 432 | failedUpgradeCmHandles: |
433 | items: | ||||
434 | $ref: '#/components/schemas/CmHandlerRegistrationErrorResponse' | ||||
435 | type: array | ||||
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 436 | type: object |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 437 | CmHandlerRegistrationErrorResponse: |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 438 | properties: |
439 | cmHandle: | ||||
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 440 | example: my-cm-handle |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 441 | type: string |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 442 | errorCode: |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 443 | example: "00" |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 444 | type: string |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 445 | errorText: |
emaclee | afb1736 | 2022-09-02 14:40:17 +0100 | [diff] [blame] | 446 | example: Unknown error. <error-details> |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 447 | type: string |
seanbeirne | 16e2358 | 2023-01-26 09:21:44 +0000 | [diff] [blame] | 448 | type: object |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 449 | CmHandleQueryParameters: |
450 | example: | ||||
451 | cmHandleQueryParameters: | ||||
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 452 | - conditionParameters: |
453 | - key: conditionParameters | ||||
454 | - key: conditionParameters | ||||
455 | conditionName: conditionName | ||||
456 | - conditionParameters: | ||||
457 | - key: conditionParameters | ||||
458 | - key: conditionParameters | ||||
459 | conditionName: conditionName | ||||
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 460 | conditions: |
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 461 | - name: name |
462 | conditionParameters: | ||||
463 | - moduleName: my-module | ||||
464 | - moduleName: my-module | ||||
465 | - name: name | ||||
466 | conditionParameters: | ||||
467 | - moduleName: my-module | ||||
468 | - moduleName: my-module | ||||
seanbeirne | 16e2358 | 2023-01-26 09:21:44 +0000 | [diff] [blame] | 469 | properties: |
470 | cmHandleQueryParameters: | ||||
seanbeirne | 16e2358 | 2023-01-26 09:21:44 +0000 | [diff] [blame] | 471 | items: |
472 | $ref: '#/components/schemas/ConditionProperties' | ||||
seanbeirne | 16e2358 | 2023-01-26 09:21:44 +0000 | [diff] [blame] | 473 | type: array |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 474 | conditions: |
seanbeirne | 16e2358 | 2023-01-26 09:21:44 +0000 | [diff] [blame] | 475 | deprecated: true |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 476 | description: "not necessary, it is just for backward compatibility" |
seanbeirne | 16e2358 | 2023-01-26 09:21:44 +0000 | [diff] [blame] | 477 | items: |
478 | $ref: '#/components/schemas/OldConditionProperties' | ||||
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 479 | type: array |
480 | title: Cm Handle query parameters for executing cm handle search | ||||
481 | type: object | ||||
seanbeirne | 16e2358 | 2023-01-26 09:21:44 +0000 | [diff] [blame] | 482 | ConditionProperties: |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 483 | example: |
484 | conditionParameters: | ||||
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 485 | - key: conditionParameters |
486 | - key: conditionParameters | ||||
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 487 | conditionName: conditionName |
seanbeirne | 16e2358 | 2023-01-26 09:21:44 +0000 | [diff] [blame] | 488 | properties: |
489 | conditionName: | ||||
490 | type: string | ||||
491 | conditionParameters: | ||||
seanbeirne | 16e2358 | 2023-01-26 09:21:44 +0000 | [diff] [blame] | 492 | items: |
seanbeirne | 16e2358 | 2023-01-26 09:21:44 +0000 | [diff] [blame] | 493 | additionalProperties: |
494 | type: string | ||||
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 495 | type: object |
496 | type: array | ||||
seanbeirne | 16e2358 | 2023-01-26 09:21:44 +0000 | [diff] [blame] | 497 | OldConditionProperties: |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 498 | deprecated: true |
499 | example: | ||||
500 | name: name | ||||
501 | conditionParameters: | ||||
mpriyank | 41c7d00 | 2023-08-22 13:17:46 +0100 | [diff] [blame] | 502 | - moduleName: my-module |
503 | - moduleName: my-module | ||||
seanbeirne | 16e2358 | 2023-01-26 09:21:44 +0000 | [diff] [blame] | 504 | properties: |
505 | name: | ||||
506 | type: string | ||||
507 | conditionParameters: | ||||
seanbeirne | 16e2358 | 2023-01-26 09:21:44 +0000 | [diff] [blame] | 508 | items: |
509 | $ref: '#/components/schemas/ModuleNameAsJsonObject' | ||||
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 510 | type: array |
seanbeirne | 16e2358 | 2023-01-26 09:21:44 +0000 | [diff] [blame] | 511 | ModuleNameAsJsonObject: |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 512 | example: |
513 | moduleName: my-module | ||||
seanbeirne | 16e2358 | 2023-01-26 09:21:44 +0000 | [diff] [blame] | 514 | properties: |
515 | moduleName: | ||||
seanbeirne | 16e2358 | 2023-01-26 09:21:44 +0000 | [diff] [blame] | 516 | example: my-module |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 517 | type: string |
seanbeirne | 16e2358 | 2023-01-26 09:21:44 +0000 | [diff] [blame] | 518 | securitySchemes: |
519 | basicAuth: | ||||
seanbeirne | 16e2358 | 2023-01-26 09:21:44 +0000 | [diff] [blame] | 520 | scheme: basic |
mpriyank | 6da9541 | 2023-06-29 16:56:11 +0100 | [diff] [blame] | 521 | type: http |