blob: 076007c578864efd174c28930a9ecb68ccd6aec2 [file] [log] [blame]
lapentafd16e6e7e2022-11-02 10:08:16 +00001# ============LICENSE_START=======================================================
saul.gilladfe6d22023-01-10 11:11:08 +00002# Copyright (C) 2022-2023 Nordix Foundation
lapentafd16e6e7e2022-11-02 10:08:16 +00003# ================================================================================
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16# SPDX-License-Identifier: Apache-2.0
17# ============LICENSE_END=========================================================
18openapi: 3.0.1
19info:
20 title: Api Documentation
21 description: Api Documentation
22 termsOfService: urn:tos
23 contact: {}
24 license:
25 name: Apache 2.0
26 url: http://www.apache.org/licenses/LICENSE-2.0
27 version: "1.0"
28servers:
29 - url: https://{server}
30 variables:
31 server:
32 default: onap/acm/v3
33 description: This value is assigned by the service provider
34tags:
liamfallonf5ebd502022-12-16 10:17:46 +000035- name: Participant Monitoring
36 description: Pariticipant Monitoring Controller, for monitoring of and requesting information from participants
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +000037- name: Automation Composition Definition
liamfallonf5ebd502022-12-16 10:17:46 +000038 description: Automation Composition Definition Controller, for definition and management of Automation Composition Types
39- name: Automation Composition Instance
40 description: Automation Composition Instance Controller, for definition and management of Automation Composition Instances
lapentafd16e6e7e2022-11-02 10:08:16 +000041
42paths:
liamfallonf5ebd502022-12-16 10:17:46 +000043 /participants:
44 get:
45 tags:
46 - Participant Monitoring
47 summary: Query Particicpants
48 description: Query the participants that are registered on the ACM runtime
49 operationId: queryParticipants
50 parameters:
51 - name: name
52 in: query
53 required: false
54 description: Automation composition definition name. Regular expressions are supported for filtering. If
55 this parameter is not specified, all automation composition definitions are returned.
56 schema:
57 type: string
58 - name: version
59 in: query
60 required: false
61 description: Automation composition definition version. Regular expressions are supported for filtering. If this
62 parameter is not specified, all automation composition definitions that match the "name" filter are are returned.
63 schema:
64 type: string
65 - name: X-onap-RequestId
66 in: header
67 description: RequestID for http transaction
liamfallonf5ebd502022-12-16 10:17:46 +000068 schema:
69 type: string
70 format: uuid
71 responses:
72 200:
73 description: OK, serialised array of instances of
lapentafdf0e3c822023-04-14 12:41:20 +010074 [ParticipantInformation](https://github.com/onap/policy-clamp/blob/master/models/src/main/java/org/onap/policy/clamp/models/acm/concepts/ParticipantInformation.java)
liamfallonf5ebd502022-12-16 10:17:46 +000075 that contains information on participants with their information and status. Each participant entry contains
76 a list of AC Element types on the participant. Each AC Element type entry contains a list of AC Element
77 instances on the Participant.
78 headers:
79 X-LatestVersion:
aravind.est7b322ef2023-07-13 14:40:32 +010080 $ref: '#/components/headers/X-LatestVersion'
liamfallonf5ebd502022-12-16 10:17:46 +000081 X-PatchVersion:
aravind.est7b322ef2023-07-13 14:40:32 +010082 $ref: '#/components/headers/X-PatchVersion'
liamfallonf5ebd502022-12-16 10:17:46 +000083 X-MinorVersion:
aravind.est7b322ef2023-07-13 14:40:32 +010084 $ref: '#/components/headers/X-MinorVersion'
liamfallonf5ebd502022-12-16 10:17:46 +000085 X-onap-RequestId:
aravind.est7b322ef2023-07-13 14:40:32 +010086 $ref: '#/components/headers/X-onap-RequestId'
liamfallonf5ebd502022-12-16 10:17:46 +000087 content:
88 application/json:
89 schema:
90 type: array
91 items:
92 $ref: '#/components/schemas/ParticipantInformation'
93 example:
lapentafdf0e3c822023-04-14 12:41:20 +010094 externalValue: 'https://raw.githubusercontent.com/onap/policy-clamp/master/runtime-acm/src/main/resources/openapi/examples/getMultiParticipantResponse.json'
liamfallonf5ebd502022-12-16 10:17:46 +000095 application/yaml:
96 schema:
97 type: array
98 items:
99 $ref: '#/components/schemas/ParticipantInformation'
100 example:
lapentafdf0e3c822023-04-14 12:41:20 +0100101 externalValue: 'https://raw.githubusercontent.com/onap/policy-clamp/master/runtime-acm/src/main/resources/openapi/examples/getMultiParticipantResponse.yaml'
liamfallonf5ebd502022-12-16 10:17:46 +0000102 401:
103 description: Authentication Error, returns an instance of
104 [SimpleResponse](https://github.com/onap/policy-clamp/blob/master/models/src/main/java/org/onap/policy/clamp/models/acm/messages/rest/SimpleResponse.java)
105 headers:
106 X-LatestVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100107 $ref: '#/components/headers/X-LatestVersion'
liamfallonf5ebd502022-12-16 10:17:46 +0000108 X-PatchVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100109 $ref: '#/components/headers/X-PatchVersion'
liamfallonf5ebd502022-12-16 10:17:46 +0000110 X-MinorVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100111 $ref: '#/components/headers/X-MinorVersion'
liamfallonf5ebd502022-12-16 10:17:46 +0000112 X-onap-RequestId:
aravind.est7b322ef2023-07-13 14:40:32 +0100113 $ref: '#/components/headers/X-onap-RequestId'
liamfallonf5ebd502022-12-16 10:17:46 +0000114 content:
115 application/json:
116 schema:
117 $ref: '#/components/schemas/SimpleResponse'
rameshiyer27478775d2023-06-09 13:38:46 +0100118 500:
119 description: Internal Server Error, returns an instance of
120 [SimpleResponse](https://github.com/onap/policy-clamp/blob/master/models/src/main/java/org/onap/policy/clamp/models/acm/messages/rest/SimpleResponse.java)
121 headers:
122 X-LatestVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100123 $ref: '#/components/headers/X-LatestVersion'
rameshiyer27478775d2023-06-09 13:38:46 +0100124 X-PatchVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100125 $ref: '#/components/headers/X-PatchVersion'
rameshiyer27478775d2023-06-09 13:38:46 +0100126 X-MinorVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100127 $ref: '#/components/headers/X-MinorVersion'
rameshiyer27478775d2023-06-09 13:38:46 +0100128 X-onap-RequestId:
aravind.est7b322ef2023-07-13 14:40:32 +0100129 $ref: '#/components/headers/X-onap-RequestId'
rameshiyer27478775d2023-06-09 13:38:46 +0100130 content:
131 application/json:
132 schema:
133 $ref: '#/components/schemas/SimpleResponse'
liamfallonf5ebd502022-12-16 10:17:46 +0000134 security:
135 - basicAuth: []
136 x-interface info:
137 api-version: 1.0.0
138 last-mod-release: London
139 put:
140 tags:
141 - Participant Monitoring
142 summary: Order an immendiate Participant Report from all participants
143 description: Requests all participants to immediately generate a heartbeat report with their information and status
144 and the information and status of all their AC Element Types and Instances. The results are published on subsequent
145 GET REST requests on the "participants" endpoint.
saul.gilladfe6d22023-01-10 11:11:08 +0000146 operationId: orderAllParticipantsReport
liamfallonf5ebd502022-12-16 10:17:46 +0000147 parameters:
148 - name: X-onap-RequestId
149 in: header
150 description: RequestID for http transaction
151 schema:
152 type: string
153 format: uuid
154 responses:
155 202:
156 description: Accepted, the request has been accepted and forwarded to participants
157 headers:
158 X-LatestVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100159 $ref: '#/components/headers/X-LatestVersion'
liamfallonf5ebd502022-12-16 10:17:46 +0000160 X-PatchVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100161 $ref: '#/components/headers/X-PatchVersion'
liamfallonf5ebd502022-12-16 10:17:46 +0000162 X-MinorVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100163 $ref: '#/components/headers/X-MinorVersion'
liamfallonf5ebd502022-12-16 10:17:46 +0000164 X-onap-RequestId:
aravind.est7b322ef2023-07-13 14:40:32 +0100165 $ref: '#/components/headers/X-onap-RequestId'
liamfallonf5ebd502022-12-16 10:17:46 +0000166 400:
167 description: Bad Request, returns an instance of
168 [SimpleResponse](https://github.com/onap/policy-clamp/blob/master/models/src/main/java/org/onap/policy/clamp/models/acm/messages/rest/SimpleResponse.java)
169 headers:
170 X-LatestVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100171 $ref: '#/components/headers/X-LatestVersion'
liamfallonf5ebd502022-12-16 10:17:46 +0000172 X-PatchVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100173 $ref: '#/components/headers/X-PatchVersion'
liamfallonf5ebd502022-12-16 10:17:46 +0000174 X-MinorVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100175 $ref: '#/components/headers/X-MinorVersion'
liamfallonf5ebd502022-12-16 10:17:46 +0000176 X-onap-RequestId:
aravind.est7b322ef2023-07-13 14:40:32 +0100177 $ref: '#/components/headers/X-onap-RequestId'
liamfallonf5ebd502022-12-16 10:17:46 +0000178 content:
179 application/json:
180 schema:
181 $ref: '#/components/schemas/SimpleResponse'
182 401:
183 description: Authentication Error, returns an instance of
184 [SimpleResponse](https://github.com/onap/policy-clamp/blob/master/models/src/main/java/org/onap/policy/clamp/models/acm/messages/rest/SimpleResponse.java)
185 headers:
186 X-LatestVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100187 $ref: '#/components/headers/X-LatestVersion'
liamfallonf5ebd502022-12-16 10:17:46 +0000188 X-PatchVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100189 $ref: '#/components/headers/X-PatchVersion'
liamfallonf5ebd502022-12-16 10:17:46 +0000190 X-MinorVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100191 $ref: '#/components/headers/X-MinorVersion'
liamfallonf5ebd502022-12-16 10:17:46 +0000192 X-onap-RequestId:
aravind.est7b322ef2023-07-13 14:40:32 +0100193 $ref: '#/components/headers/X-onap-RequestId'
liamfallonf5ebd502022-12-16 10:17:46 +0000194 content:
195 application/json:
196 schema:
197 $ref: '#/components/schemas/SimpleResponse'
rameshiyer27478775d2023-06-09 13:38:46 +0100198 500:
199 description: Internal Server Error, returns an instance of
200 [SimpleResponse](https://github.com/onap/policy-clamp/blob/master/models/src/main/java/org/onap/policy/clamp/models/acm/messages/rest/SimpleResponse.java)
201 headers:
202 X-LatestVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100203 $ref: '#/components/headers/X-LatestVersion'
rameshiyer27478775d2023-06-09 13:38:46 +0100204 X-PatchVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100205 $ref: '#/components/headers/X-PatchVersion'
rameshiyer27478775d2023-06-09 13:38:46 +0100206 X-MinorVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100207 $ref: '#/components/headers/X-MinorVersion'
rameshiyer27478775d2023-06-09 13:38:46 +0100208 X-onap-RequestId:
aravind.est7b322ef2023-07-13 14:40:32 +0100209 $ref: '#/components/headers/X-onap-RequestId'
rameshiyer27478775d2023-06-09 13:38:46 +0100210 content:
211 application/json:
212 schema:
213 $ref: '#/components/schemas/SimpleResponse'
liamfallonf5ebd502022-12-16 10:17:46 +0000214 security:
215 - basicAuth: []
216 x-interface info:
217 api-version: 1.0.0
218 last-mod-release: London
219 x-codegen-request-body-name: body
220 /participants/{participantId}:
221 get:
222 tags:
223 - Participant Monitoring
224 summary: Get details of the requested participant
225 definitions
226 description: Get details of the requested commissioned participant, returning all pariticipant details
227 operationId: getParticipant
228 parameters:
229 - name : participantId
230 in: path
231 description: The UUID of the participant to get
232 required: true
233 schema:
234 type: string
235 format: uuid
236 - name: X-onap-RequestId
237 in: header
238 description: RequestID for http transaction
liamfallonf5ebd502022-12-16 10:17:46 +0000239 schema:
240 type: string
241 format: uuid
242 responses:
243 200:
244 description: Serialised instance of
lapentafdf0e3c822023-04-14 12:41:20 +0100245 [ParticipantInformation](https://github.com/onap/policy-clamp/blob/master/models/src/main/java/org/onap/policy/clamp/models/acm/concepts/ParticipantInformation.java)
liamfallonf5ebd502022-12-16 10:17:46 +0000246 that information on the participant with its information and status. The participant entry contains
247 a list of AC Element types on the participant. Each AC Element type entry contains a list of AC Element
248 instances on the Participant.
249 headers:
250 X-LatestVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100251 $ref: '#/components/headers/X-LatestVersion'
liamfallonf5ebd502022-12-16 10:17:46 +0000252 X-PatchVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100253 $ref: '#/components/headers/X-PatchVersion'
liamfallonf5ebd502022-12-16 10:17:46 +0000254 X-MinorVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100255 $ref: '#/components/headers/X-MinorVersion'
liamfallonf5ebd502022-12-16 10:17:46 +0000256 X-onap-RequestId:
aravind.est7b322ef2023-07-13 14:40:32 +0100257 $ref: '#/components/headers/X-onap-RequestId'
liamfallonf5ebd502022-12-16 10:17:46 +0000258 content:
259 application/json:
260 schema:
261 $ref: '#/components/schemas/ParticipantInformation'
262 example:
lapentafdf0e3c822023-04-14 12:41:20 +0100263 externalValue: 'https://raw.githubusercontent.com/onap/policy-clamp/master/runtime-acm/src/main/resources/openapi/examples/getSingleParticipantResponse.json'
liamfallonf5ebd502022-12-16 10:17:46 +0000264 application/yaml:
265 schema:
266 $ref: '#/components/schemas/ToscaServiceTemplate'
267 example:
lapentafdf0e3c822023-04-14 12:41:20 +0100268 externalValue: 'https://raw.githubusercontent.com/onap/policy-clamp/master/runtime-acm/src/main/resources/openapi/examples/getParticipantResponse.yaml'
liamfallonf5ebd502022-12-16 10:17:46 +0000269 401:
270 description: Authentication Error, returns an instance of
271 [SimpleResponse](https://github.com/onap/policy-clamp/blob/master/models/src/main/java/org/onap/policy/clamp/models/acm/messages/rest/SimpleResponse.java)
272 headers:
273 X-LatestVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100274 $ref: '#/components/headers/X-LatestVersion'
liamfallonf5ebd502022-12-16 10:17:46 +0000275 X-PatchVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100276 $ref: '#/components/headers/X-PatchVersion'
liamfallonf5ebd502022-12-16 10:17:46 +0000277 X-MinorVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100278 $ref: '#/components/headers/X-MinorVersion'
liamfallonf5ebd502022-12-16 10:17:46 +0000279 X-onap-RequestId:
aravind.est7b322ef2023-07-13 14:40:32 +0100280 $ref: '#/components/headers/X-onap-RequestId'
liamfallonf5ebd502022-12-16 10:17:46 +0000281 content:
282 application/json:
283 schema:
284 $ref: '#/components/schemas/SimpleResponse'
285 404:
286 description: Specified participant not found, returns an instance of
287 [SimpleResponse](https://github.com/onap/policy-clamp/blob/master/models/src/main/java/org/onap/policy/clamp/models/acm/messages/rest/SimpleResponse.java)
288 headers:
289 X-LatestVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100290 $ref: '#/components/headers/X-LatestVersion'
liamfallonf5ebd502022-12-16 10:17:46 +0000291 X-PatchVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100292 $ref: '#/components/headers/X-PatchVersion'
liamfallonf5ebd502022-12-16 10:17:46 +0000293 X-MinorVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100294 $ref: '#/components/headers/X-MinorVersion'
liamfallonf5ebd502022-12-16 10:17:46 +0000295 X-onap-RequestId:
aravind.est7b322ef2023-07-13 14:40:32 +0100296 $ref: '#/components/headers/X-onap-RequestId'
liamfallonf5ebd502022-12-16 10:17:46 +0000297 content:
298 application/json:
299 schema:
300 $ref: '#/components/schemas/SimpleResponse'
rameshiyer27478775d2023-06-09 13:38:46 +0100301 500:
302 description: Internal Server Error, returns an instance of
303 [SimpleResponse](https://github.com/onap/policy-clamp/blob/master/models/src/main/java/org/onap/policy/clamp/models/acm/messages/rest/SimpleResponse.java)
304 headers:
305 X-LatestVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100306 $ref: '#/components/headers/X-LatestVersion'
rameshiyer27478775d2023-06-09 13:38:46 +0100307 X-PatchVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100308 $ref: '#/components/headers/X-PatchVersion'
rameshiyer27478775d2023-06-09 13:38:46 +0100309 X-MinorVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100310 $ref: '#/components/headers/X-MinorVersion'
rameshiyer27478775d2023-06-09 13:38:46 +0100311 X-onap-RequestId:
aravind.est7b322ef2023-07-13 14:40:32 +0100312 $ref: '#/components/headers/X-onap-RequestId'
rameshiyer27478775d2023-06-09 13:38:46 +0100313 content:
314 application/json:
315 schema:
316 $ref: '#/components/schemas/SimpleResponse'
liamfallonf5ebd502022-12-16 10:17:46 +0000317 security:
318 - basicAuth: []
319 x-interface info:
320 api-version: 1.0.0
321 last-mod-release: London
322 put:
323 tags:
324 - Participant Monitoring
325 summary: Order an immendiate Participant Report from a participant
326 description: Requests the participants to immediately generate a heartbeat report with its information and status
327 and the information and status of all its AC Element Types and Instances. The results are published on subsequent
328 GET REST requests on the "participants" endpoint.
329 operationId: orderParticipantReport
330 parameters:
331 - name : participantId
332 in: path
333 description: The UUID of the participant to get
334 required: true
335 schema:
336 type: string
337 format: uuid
338 - name: X-onap-RequestId
339 in: header
liamfallonf5ebd502022-12-16 10:17:46 +0000340 description: RequestID for http transaction
341 schema:
342 type: string
343 format: uuid
344 responses:
345 202:
346 description: Accepted, the request has been accepted and forwarded to participants
347 headers:
348 X-LatestVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100349 $ref: '#/components/headers/X-LatestVersion'
liamfallonf5ebd502022-12-16 10:17:46 +0000350 X-PatchVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100351 $ref: '#/components/headers/X-PatchVersion'
liamfallonf5ebd502022-12-16 10:17:46 +0000352 X-MinorVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100353 $ref: '#/components/headers/X-MinorVersion'
liamfallonf5ebd502022-12-16 10:17:46 +0000354 X-onap-RequestId:
aravind.est7b322ef2023-07-13 14:40:32 +0100355 $ref: '#/components/headers/X-onap-RequestId'
liamfallonf5ebd502022-12-16 10:17:46 +0000356 400:
357 description: Bad Request, returns an instance of
358 [SimpleResponse](https://github.com/onap/policy-clamp/blob/master/models/src/main/java/org/onap/policy/clamp/models/acm/messages/rest/SimpleResponse.java)
359 headers:
360 X-LatestVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100361 $ref: '#/components/headers/X-LatestVersion'
liamfallonf5ebd502022-12-16 10:17:46 +0000362 X-PatchVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100363 $ref: '#/components/headers/X-PatchVersion'
liamfallonf5ebd502022-12-16 10:17:46 +0000364 X-MinorVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100365 $ref: '#/components/headers/X-MinorVersion'
liamfallonf5ebd502022-12-16 10:17:46 +0000366 X-onap-RequestId:
aravind.est7b322ef2023-07-13 14:40:32 +0100367 $ref: '#/components/headers/X-onap-RequestId'
liamfallonf5ebd502022-12-16 10:17:46 +0000368 content:
369 application/json:
370 schema:
371 $ref: '#/components/schemas/SimpleResponse'
372 401:
373 description: Authentication Error, returns an instance of
374 [SimpleResponse](https://github.com/onap/policy-clamp/blob/master/models/src/main/java/org/onap/policy/clamp/models/acm/messages/rest/SimpleResponse.java)
375 headers:
376 X-LatestVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100377 $ref: '#/components/headers/X-LatestVersion'
liamfallonf5ebd502022-12-16 10:17:46 +0000378 X-PatchVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100379 $ref: '#/components/headers/X-PatchVersion'
liamfallonf5ebd502022-12-16 10:17:46 +0000380 X-MinorVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100381 $ref: '#/components/headers/X-MinorVersion'
liamfallonf5ebd502022-12-16 10:17:46 +0000382 X-onap-RequestId:
aravind.est7b322ef2023-07-13 14:40:32 +0100383 $ref: '#/components/headers/X-onap-RequestId'
liamfallonf5ebd502022-12-16 10:17:46 +0000384 content:
385 application/json:
386 schema:
387 $ref: '#/components/schemas/SimpleResponse'
388 404:
389 description: Specified participant not found, returns an instance of
390 [SimpleResponse](https://github.com/onap/policy-clamp/blob/master/models/src/main/java/org/onap/policy/clamp/models/acm/messages/rest/SimpleResponse.java)
391 headers:
392 X-LatestVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100393 $ref: '#/components/headers/X-LatestVersion'
liamfallonf5ebd502022-12-16 10:17:46 +0000394 X-PatchVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100395 $ref: '#/components/headers/X-PatchVersion'
liamfallonf5ebd502022-12-16 10:17:46 +0000396 X-MinorVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100397 $ref: '#/components/headers/X-MinorVersion'
liamfallonf5ebd502022-12-16 10:17:46 +0000398 X-onap-RequestId:
aravind.est7b322ef2023-07-13 14:40:32 +0100399 $ref: '#/components/headers/X-onap-RequestId'
liamfallonf5ebd502022-12-16 10:17:46 +0000400 content:
401 application/json:
402 schema:
403 $ref: '#/components/schemas/SimpleResponse'
rameshiyer27478775d2023-06-09 13:38:46 +0100404 500:
405 description: Internal Server Error, returns an instance of
406 [SimpleResponse](https://github.com/onap/policy-clamp/blob/master/models/src/main/java/org/onap/policy/clamp/models/acm/messages/rest/SimpleResponse.java)
407 headers:
408 X-LatestVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100409 $ref: '#/components/headers/X-LatestVersion'
rameshiyer27478775d2023-06-09 13:38:46 +0100410 X-PatchVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100411 $ref: '#/components/headers/X-PatchVersion'
rameshiyer27478775d2023-06-09 13:38:46 +0100412 X-MinorVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100413 $ref: '#/components/headers/X-MinorVersion'
rameshiyer27478775d2023-06-09 13:38:46 +0100414 X-onap-RequestId:
aravind.est7b322ef2023-07-13 14:40:32 +0100415 $ref: '#/components/headers/X-onap-RequestId'
rameshiyer27478775d2023-06-09 13:38:46 +0100416 content:
417 application/json:
418 schema:
419 $ref: '#/components/schemas/SimpleResponse'
liamfallonf5ebd502022-12-16 10:17:46 +0000420 security:
421 - basicAuth: []
422 x-interface info:
423 api-version: 1.0.0
424 last-mod-release: London
425 x-codegen-request-body-name: body
lapentafd16e6e7e2022-11-02 10:08:16 +0000426 /compositions:
427 get:
428 tags:
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +0000429 - Automation Composition Definition
lapentafd16e6e7e2022-11-02 10:08:16 +0000430 summary: Query the commissioned automation composition definitions
431 definitions
432 description: Query the commissioned automation composition
433 definitions, returning the automation composition details
434 operationId: queryCompositionDefinitions
435 parameters:
436 - name: name
437 in: query
liamfallonf5ebd502022-12-16 10:17:46 +0000438 required: false
lapentafd16e6e7e2022-11-02 10:08:16 +0000439 description: Automation composition definition name. Regular expressions are supported for filtering. If
440 this parameter is not specified, all automation composition definitions are returned.
441 schema:
442 type: string
443 - name: version
444 in: query
liamfallonf5ebd502022-12-16 10:17:46 +0000445 required: false
lapentafd16e6e7e2022-11-02 10:08:16 +0000446 description: Automation composition definition version. Regular expressions are supported for filtering. If this
447 parameter is not specified, all automation composition definitions that match the "name" filter are are returned.
448 schema:
449 type: string
450 - name: X-onap-RequestId
451 in: header
452 description: RequestID for http transaction
453 schema:
454 type: string
455 format: uuid
456 responses:
457 200:
458 description: Serialised instance of
liamfallonc998a3a2022-11-11 13:43:16 +0000459 [ToscaServiceTemplates](https://github.com/onap/policy-models/blob/master/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaServiceTemplates.java)
lapentafd16e6e7e2022-11-02 10:08:16 +0000460 that contains the automation composition definitions that match the requested filters.
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +0000461 headers:
462 X-LatestVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100463 $ref: '#/components/headers/X-LatestVersion'
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +0000464 X-PatchVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100465 $ref: '#/components/headers/X-PatchVersion'
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +0000466 X-MinorVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100467 $ref: '#/components/headers/X-MinorVersion'
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +0000468 X-onap-RequestId:
aravind.est7b322ef2023-07-13 14:40:32 +0100469 $ref: '#/components/headers/X-onap-RequestId'
lapentafd16e6e7e2022-11-02 10:08:16 +0000470 content:
471 application/json:
472 schema:
liamfallonc998a3a2022-11-11 13:43:16 +0000473 $ref: '#/components/schemas/ToscaServiceTemplates'
lapentafd16e6e7e2022-11-02 10:08:16 +0000474 example:
475 externalValue: 'https://raw.githubusercontent.com/onap/policy-clamp/master/runtime-acm/src/main/resources/openapi/examples/getAllCompositionDefinitions.json'
476 application/yaml:
477 schema:
liamfallonc998a3a2022-11-11 13:43:16 +0000478 $ref: '#/components/schemas/ToscaServiceTemplates'
lapentafd16e6e7e2022-11-02 10:08:16 +0000479 example:
480 externalValue: 'https://raw.githubusercontent.com/onap/policy-clamp/master/runtime-acm/src/main/resources/openapi/examples/getAllCompositionDefinitions.yaml'
481 401:
liamfallonc998a3a2022-11-11 13:43:16 +0000482 description: Authentication Error, returns an instance of
483 [SimpleResponse](https://github.com/onap/policy-clamp/blob/master/models/src/main/java/org/onap/policy/clamp/models/acm/messages/rest/SimpleResponse.java)
lapentafd16e6e7e2022-11-02 10:08:16 +0000484 headers:
485 X-LatestVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100486 $ref: '#/components/headers/X-LatestVersion'
lapentafd16e6e7e2022-11-02 10:08:16 +0000487 X-PatchVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100488 $ref: '#/components/headers/X-PatchVersion'
lapentafd16e6e7e2022-11-02 10:08:16 +0000489 X-MinorVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100490 $ref: '#/components/headers/X-MinorVersion'
lapentafd16e6e7e2022-11-02 10:08:16 +0000491 X-onap-RequestId:
aravind.est7b322ef2023-07-13 14:40:32 +0100492 $ref: '#/components/headers/X-onap-RequestId'
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +0000493 content:
494 application/json:
lapentafd16e6e7e2022-11-02 10:08:16 +0000495 schema:
liamfallonc998a3a2022-11-11 13:43:16 +0000496 $ref: '#/components/schemas/SimpleResponse'
rameshiyer27478775d2023-06-09 13:38:46 +0100497 500:
498 description: Internal Server Error, returns an instance of
499 [SimpleResponse](https://github.com/onap/policy-clamp/blob/master/models/src/main/java/org/onap/policy/clamp/models/acm/messages/rest/SimpleResponse.java)
500 headers:
501 X-LatestVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100502 $ref: '#/components/headers/X-LatestVersion'
rameshiyer27478775d2023-06-09 13:38:46 +0100503 X-PatchVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100504 $ref: '#/components/headers/X-PatchVersion'
rameshiyer27478775d2023-06-09 13:38:46 +0100505 X-MinorVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100506 $ref: '#/components/headers/X-MinorVersion'
rameshiyer27478775d2023-06-09 13:38:46 +0100507 X-onap-RequestId:
aravind.est7b322ef2023-07-13 14:40:32 +0100508 $ref: '#/components/headers/X-onap-RequestId'
rameshiyer27478775d2023-06-09 13:38:46 +0100509 content:
510 application/json:
511 schema:
512 $ref: '#/components/schemas/SimpleResponse'
lapentafd16e6e7e2022-11-02 10:08:16 +0000513 security:
514 - basicAuth: []
515 x-interface info:
516 api-version: 1.0.0
517 last-mod-release: London
518 post:
519 tags:
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +0000520 - Automation Composition Definition
lapentafd16e6e7e2022-11-02 10:08:16 +0000521 summary: Commissions automation composition definitions
522 description: Commissions automation composition definitions, returning the UUIDs of
523 automation composition definitions commissioned by this request.
524 operationId: createCompositionDefinitions
525 parameters:
526 - name: X-onap-RequestId
527 in: header
528 description: RequestID for http transaction
529 schema:
530 type: string
531 format: uuid
532 requestBody:
533 description: Serialised instance of
534 [ToscaServiceTemplate](https://github.com/onap/policy-models/blob/master/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaServiceTemplate.java)
535 containing the automation composition definitions to be commissioned.
536 content:
537 application/json:
538 schema:
liamfallonc998a3a2022-11-11 13:43:16 +0000539 $ref: '#/components/schemas/ToscaServiceTemplate'
lapentafd16e6e7e2022-11-02 10:08:16 +0000540 example:
541 externalValue: 'https://raw.githubusercontent.com/onap/policy-clamp/master/runtime-acm/src/main/resources/openapi/examples/postCompositionDefinitions.json'
542 application/yaml:
543 schema:
liamfallonc998a3a2022-11-11 13:43:16 +0000544 $ref: '#/components/schemas/ToscaServiceTemplate'
lapentafd16e6e7e2022-11-02 10:08:16 +0000545 example:
546 externalValue: 'https://raw.githubusercontent.com/onap/policy-clamp/master/runtime-acm/src/main/resources/openapi/examples/postCompositionDefinitions.yaml'
547 required: true
548 responses:
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +0000549 201:
lapentafd16e6e7e2022-11-02 10:08:16 +0000550 description: Serialised instance of
551 [CommissioningResponse](https://github.com/onap/policy-clamp/blob/master/models/src/main/java/org/onap/policy/clamp/models/acm/messages/rest/commissioning/CommissioningResponse.java)
552 containing the UUIDs of automation composition definitions created by this request
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +0000553 headers:
554 X-LatestVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100555 $ref: '#/components/headers/X-LatestVersion'
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +0000556 X-PatchVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100557 $ref: '#/components/headers/X-PatchVersion'
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +0000558 X-MinorVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100559 $ref: '#/components/headers/X-MinorVersion'
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +0000560 X-onap-RequestId:
aravind.est7b322ef2023-07-13 14:40:32 +0100561 $ref: '#/components/headers/X-onap-RequestId'
lapentafd16e6e7e2022-11-02 10:08:16 +0000562 content:
563 application/json:
564 schema:
liamfallonc998a3a2022-11-11 13:43:16 +0000565 $ref: '#/components/schemas/CommissioningResponse'
lapentafd16e6e7e2022-11-02 10:08:16 +0000566 example:
567 externalValue: 'https://raw.githubusercontent.com/onap/policy-clamp/master/runtime-acm/src/main/resources/openapi/examples/postCommissionCompositionDefinitionsResponse.json'
568 application/yaml:
569 schema:
liamfallonc998a3a2022-11-11 13:43:16 +0000570 $ref: '#/components/schemas/CommissioningResponse'
lapentafd16e6e7e2022-11-02 10:08:16 +0000571 example:
572 externalValue: 'https://raw.githubusercontent.com/onap/policy-clamp/master/runtime-acm/src/main/resources/openapi/examples/postCommissionCompositionDefinitionsResponse.yaml'
lapentafd16e6e7e2022-11-02 10:08:16 +0000573 401:
liamfallonc998a3a2022-11-11 13:43:16 +0000574 description: Authentication Error, returns an instance of
575 [SimpleResponse](https://github.com/onap/policy-clamp/blob/master/models/src/main/java/org/onap/policy/clamp/models/acm/messages/rest/SimpleResponse.java)
lapentafd16e6e7e2022-11-02 10:08:16 +0000576 headers:
577 X-LatestVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100578 $ref: '#/components/headers/X-LatestVersion'
lapentafd16e6e7e2022-11-02 10:08:16 +0000579 X-PatchVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100580 $ref: '#/components/headers/X-PatchVersion'
lapentafd16e6e7e2022-11-02 10:08:16 +0000581 X-MinorVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100582 $ref: '#/components/headers/X-MinorVersion'
lapentafd16e6e7e2022-11-02 10:08:16 +0000583 X-onap-RequestId:
aravind.est7b322ef2023-07-13 14:40:32 +0100584 $ref: '#/components/headers/X-onap-RequestId'
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +0000585 content:
586 application/json:
587 schema:
liamfallonc998a3a2022-11-11 13:43:16 +0000588 $ref: '#/components/schemas/SimpleResponse'
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +0000589 400:
liamfallonc998a3a2022-11-11 13:43:16 +0000590 description: Bad Request, returns an instance of
591 [SimpleResponse](https://github.com/onap/policy-clamp/blob/master/models/src/main/java/org/onap/policy/clamp/models/acm/messages/rest/SimpleResponse.java)
lapentafd16e6e7e2022-11-02 10:08:16 +0000592 headers:
593 X-LatestVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100594 $ref: '#/components/headers/X-LatestVersion'
lapentafd16e6e7e2022-11-02 10:08:16 +0000595 X-PatchVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100596 $ref: '#/components/headers/X-PatchVersion'
lapentafd16e6e7e2022-11-02 10:08:16 +0000597 X-MinorVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100598 $ref: '#/components/headers/X-MinorVersion'
lapentafd16e6e7e2022-11-02 10:08:16 +0000599 X-onap-RequestId:
aravind.est7b322ef2023-07-13 14:40:32 +0100600 $ref: '#/components/headers/X-onap-RequestId'
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +0000601 content:
602 application/json:
lapentafd16e6e7e2022-11-02 10:08:16 +0000603 schema:
liamfallonc998a3a2022-11-11 13:43:16 +0000604 $ref: '#/components/schemas/SimpleResponse'
rameshiyer27478775d2023-06-09 13:38:46 +0100605 500:
606 description: Internal Server Error, returns an instance of
607 [SimpleResponse](https://github.com/onap/policy-clamp/blob/master/models/src/main/java/org/onap/policy/clamp/models/acm/messages/rest/SimpleResponse.java)
608 headers:
609 X-LatestVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100610 $ref: '#/components/headers/X-LatestVersion'
rameshiyer27478775d2023-06-09 13:38:46 +0100611 X-PatchVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100612 $ref: '#/components/headers/X-PatchVersion'
rameshiyer27478775d2023-06-09 13:38:46 +0100613 X-MinorVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100614 $ref: '#/components/headers/X-MinorVersion'
rameshiyer27478775d2023-06-09 13:38:46 +0100615 X-onap-RequestId:
aravind.est7b322ef2023-07-13 14:40:32 +0100616 $ref: '#/components/headers/X-onap-RequestId'
rameshiyer27478775d2023-06-09 13:38:46 +0100617 content:
618 application/json:
619 schema:
620 $ref: '#/components/schemas/SimpleResponse'
lapentafd16e6e7e2022-11-02 10:08:16 +0000621 security:
622 - basicAuth: []
623 x-interface info:
624 api-version: 1.0.0
625 last-mod-release: London
626 x-codegen-request-body-name: body
627 /compositions/{compositionId}:
628 get:
629 tags:
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +0000630 - Automation Composition Definition
lapentafd16e6e7e2022-11-02 10:08:16 +0000631 summary: Get details of the requested commissioned automation composition
632 definitions
633 description: Get details of the requested commissioned automation composition
634 definitions, returning all automation composition details
635 operationId: getCompositionDefinition
636 parameters:
637 - name : compositionId
638 in: path
639 description: The UUID of the automation composition definition to get
640 required: true
641 schema:
642 type: string
643 format: uuid
644 - name: X-onap-RequestId
645 in: header
646 description: RequestID for http transaction
647 schema:
648 type: string
649 format: uuid
650 responses:
651 200:
652 description:
653 Serialised instance of
FrancescoFioraEstdb615d92023-01-24 16:27:21 +0000654 [AutomationCompositionDefinition](https://github.com/onap/policy-clamp/blob/master/models/src/main/java/org/onap/policy/clamp/models/acm/concepts/AutomationCompositionDefinition.java)
lapentafd16e6e7e2022-11-02 10:08:16 +0000655 containing the requested automation composition definition.
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +0000656 headers:
657 X-LatestVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100658 $ref: '#/components/headers/X-LatestVersion'
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +0000659 X-PatchVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100660 $ref: '#/components/headers/X-PatchVersion'
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +0000661 X-MinorVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100662 $ref: '#/components/headers/X-MinorVersion'
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +0000663 X-onap-RequestId:
aravind.est7b322ef2023-07-13 14:40:32 +0100664 $ref: '#/components/headers/X-onap-RequestId'
lapentafd16e6e7e2022-11-02 10:08:16 +0000665 content:
666 application/json:
667 schema:
FrancescoFioraEstdb615d92023-01-24 16:27:21 +0000668 $ref: '#/components/schemas/AutomationCompositionDefinition'
lapentafd16e6e7e2022-11-02 10:08:16 +0000669 example:
670 externalValue: 'https://raw.githubusercontent.com/onap/policy-clamp/master/runtime-acm/src/main/resources/openapi/examples/getSingleCompositionDefinition.json'
671 application/yaml:
672 schema:
FrancescoFioraEstdb615d92023-01-24 16:27:21 +0000673 $ref: '#/components/schemas/AutomationCompositionDefinition'
lapentafd16e6e7e2022-11-02 10:08:16 +0000674 example:
675 externalValue: 'https://raw.githubusercontent.com/onap/policy-clamp/master/runtime-acm/src/main/resources/openapi/examples/getSingleCompositionDefinition.yaml'
676 401:
liamfallonc998a3a2022-11-11 13:43:16 +0000677 description: Authentication Error, returns an instance of
678 [SimpleResponse](https://github.com/onap/policy-clamp/blob/master/models/src/main/java/org/onap/policy/clamp/models/acm/messages/rest/SimpleResponse.java)
lapentafd16e6e7e2022-11-02 10:08:16 +0000679 headers:
680 X-LatestVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100681 $ref: '#/components/headers/X-LatestVersion'
lapentafd16e6e7e2022-11-02 10:08:16 +0000682 X-PatchVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100683 $ref: '#/components/headers/X-PatchVersion'
lapentafd16e6e7e2022-11-02 10:08:16 +0000684 X-MinorVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100685 $ref: '#/components/headers/X-MinorVersion'
lapentafd16e6e7e2022-11-02 10:08:16 +0000686 X-onap-RequestId:
aravind.est7b322ef2023-07-13 14:40:32 +0100687 $ref: '#/components/headers/X-onap-RequestId'
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +0000688 content:
689 application/json:
lapentafd16e6e7e2022-11-02 10:08:16 +0000690 schema:
liamfallonc998a3a2022-11-11 13:43:16 +0000691 $ref: '#/components/schemas/SimpleResponse'
lapentafd16e6e7e2022-11-02 10:08:16 +0000692 404:
liamfallonc998a3a2022-11-11 13:43:16 +0000693 description: Specified automation composition definition not found, returns an instance of
694 [SimpleResponse](https://github.com/onap/policy-clamp/blob/master/models/src/main/java/org/onap/policy/clamp/models/acm/messages/rest/SimpleResponse.java)
lapentafd16e6e7e2022-11-02 10:08:16 +0000695 headers:
696 X-LatestVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100697 $ref: '#/components/headers/X-LatestVersion'
lapentafd16e6e7e2022-11-02 10:08:16 +0000698 X-PatchVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100699 $ref: '#/components/headers/X-PatchVersion'
lapentafd16e6e7e2022-11-02 10:08:16 +0000700 X-MinorVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100701 $ref: '#/components/headers/X-MinorVersion'
lapentafd16e6e7e2022-11-02 10:08:16 +0000702 X-onap-RequestId:
aravind.est7b322ef2023-07-13 14:40:32 +0100703 $ref: '#/components/headers/X-onap-RequestId'
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +0000704 content:
705 application/json:
706 schema:
liamfallonc998a3a2022-11-11 13:43:16 +0000707 $ref: '#/components/schemas/SimpleResponse'
rameshiyer27478775d2023-06-09 13:38:46 +0100708 500:
709 description: Internal Server Error, returns an instance of
710 [SimpleResponse](https://github.com/onap/policy-clamp/blob/master/models/src/main/java/org/onap/policy/clamp/models/acm/messages/rest/SimpleResponse.java)
711 headers:
712 X-LatestVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100713 $ref: '#/components/headers/X-LatestVersion'
rameshiyer27478775d2023-06-09 13:38:46 +0100714 X-PatchVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100715 $ref: '#/components/headers/X-PatchVersion'
rameshiyer27478775d2023-06-09 13:38:46 +0100716 X-MinorVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100717 $ref: '#/components/headers/X-MinorVersion'
rameshiyer27478775d2023-06-09 13:38:46 +0100718 X-onap-RequestId:
aravind.est7b322ef2023-07-13 14:40:32 +0100719 $ref: '#/components/headers/X-onap-RequestId'
rameshiyer27478775d2023-06-09 13:38:46 +0100720 content:
721 application/json:
722 schema:
723 $ref: '#/components/schemas/SimpleResponse'
lapentafd16e6e7e2022-11-02 10:08:16 +0000724 security:
725 - basicAuth: []
726 x-interface info:
727 api-version: 1.0.0
728 last-mod-release: London
729 put:
730 tags:
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +0000731 - Automation Composition Definition
liamfallonf5ebd502022-12-16 10:17:46 +0000732 summary: Primes or deprimes an automation composition definition
733 description: Primes or deprimes an automation composition definition by sending the AC Element Types to participants and
734 getting participants to take responsibility for AC Element Types in this AC Type.
735 operationId: compositionDefinitionPriming
lapentafd16e6e7e2022-11-02 10:08:16 +0000736 parameters:
737 - name : compositionId
738 in: path
739 description: The UUID of the automation composition definition to update
740 required: true
741 schema:
742 type: string
743 format: uuid
744 - name: X-onap-RequestId
745 in: header
746 description: RequestID for http transaction
747 schema:
748 type: string
749 format: uuid
750 requestBody:
751 description: Serialised instance of
liamfallonf5ebd502022-12-16 10:17:46 +0000752 [AcTypeStateUpdate](https://github.com/onap/policy-clamp/blob/master/models/src/main/java/org/onap/policy/clamp/models/acm/messages/rest/commissioning/AcTypeStateUpdate.java)
753 which specifies the requested state change on the automation concept instance
lapentafd16e6e7e2022-11-02 10:08:16 +0000754 content:
755 application/json:
756 schema:
liamfallonf5ebd502022-12-16 10:17:46 +0000757 $ref: '#/components/schemas/AcTypeStateUpdate'
lapentafd16e6e7e2022-11-02 10:08:16 +0000758 example:
liamfallonf5ebd502022-12-16 10:17:46 +0000759 externalValue: 'https://raw.githubusercontent.com/onap/policy-clamp/master/runtime-acm/src/main/resources/openapi/examples/putAcTypeStateUpdate.json'
lapentafd16e6e7e2022-11-02 10:08:16 +0000760 application/yaml:
761 schema:
liamfallonf5ebd502022-12-16 10:17:46 +0000762 $ref: '#/components/schemas/AcTypeStateUpdate'
lapentafd16e6e7e2022-11-02 10:08:16 +0000763 example:
liamfallonf5ebd502022-12-16 10:17:46 +0000764 externalValue: 'https://raw.githubusercontent.com/onap/policy-clamp/master/runtime-acm/src/main/resources/openapi/examples/putAcTypeStateUpdate.yaml'
lapentafd16e6e7e2022-11-02 10:08:16 +0000765 responses:
liamfallonf5ebd502022-12-16 10:17:46 +0000766 202:
767 description: Accepted, the request has been accepted and forwarded to participants
768 headers:
769 X-LatestVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100770 $ref: '#/components/headers/X-LatestVersion'
liamfallonf5ebd502022-12-16 10:17:46 +0000771 X-PatchVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100772 $ref: '#/components/headers/X-PatchVersion'
liamfallonf5ebd502022-12-16 10:17:46 +0000773 X-MinorVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100774 $ref: '#/components/headers/X-MinorVersion'
liamfallonf5ebd502022-12-16 10:17:46 +0000775 X-onap-RequestId:
aravind.est7b322ef2023-07-13 14:40:32 +0100776 $ref: '#/components/headers/X-onap-RequestId'
liamfallonf5ebd502022-12-16 10:17:46 +0000777 400:
778 description: Bad Request, returns an instance of
779 [SimpleResponse](https://github.com/onap/policy-clamp/blob/master/models/src/main/java/org/onap/policy/clamp/models/acm/messages/rest/SimpleResponse.java)
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +0000780 headers:
781 X-LatestVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100782 $ref: '#/components/headers/X-LatestVersion'
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +0000783 X-PatchVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100784 $ref: '#/components/headers/X-PatchVersion'
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +0000785 X-MinorVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100786 $ref: '#/components/headers/X-MinorVersion'
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +0000787 X-onap-RequestId:
aravind.est7b322ef2023-07-13 14:40:32 +0100788 $ref: '#/components/headers/X-onap-RequestId'
lapentafd16e6e7e2022-11-02 10:08:16 +0000789 content:
790 application/json:
791 schema:
liamfallonf5ebd502022-12-16 10:17:46 +0000792 $ref: '#/components/schemas/SimpleResponse'
lapentafd16e6e7e2022-11-02 10:08:16 +0000793 401:
liamfallonc998a3a2022-11-11 13:43:16 +0000794 description: Authentication Error, returns an instance of
795 [SimpleResponse](https://github.com/onap/policy-clamp/blob/master/models/src/main/java/org/onap/policy/clamp/models/acm/messages/rest/SimpleResponse.java)
lapentafd16e6e7e2022-11-02 10:08:16 +0000796 headers:
797 X-LatestVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100798 $ref: '#/components/headers/X-LatestVersion'
lapentafd16e6e7e2022-11-02 10:08:16 +0000799 X-PatchVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100800 $ref: '#/components/headers/X-PatchVersion'
lapentafd16e6e7e2022-11-02 10:08:16 +0000801 X-MinorVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100802 $ref: '#/components/headers/X-MinorVersion'
lapentafd16e6e7e2022-11-02 10:08:16 +0000803 X-onap-RequestId:
aravind.est7b322ef2023-07-13 14:40:32 +0100804 $ref: '#/components/headers/X-onap-RequestId'
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +0000805 content:
806 application/json:
lapentafd16e6e7e2022-11-02 10:08:16 +0000807 schema:
liamfallonc998a3a2022-11-11 13:43:16 +0000808 $ref: '#/components/schemas/SimpleResponse'
lapentafd16e6e7e2022-11-02 10:08:16 +0000809 404:
liamfallonc998a3a2022-11-11 13:43:16 +0000810 description: Specified automation composition definition not found, returns an instance of
811 [SimpleResponse](https://github.com/onap/policy-clamp/blob/master/models/src/main/java/org/onap/policy/clamp/models/acm/messages/rest/SimpleResponse.java)
lapentafd16e6e7e2022-11-02 10:08:16 +0000812 headers:
813 X-LatestVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100814 $ref: '#/components/headers/X-LatestVersion'
lapentafd16e6e7e2022-11-02 10:08:16 +0000815 X-PatchVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100816 $ref: '#/components/headers/X-PatchVersion'
lapentafd16e6e7e2022-11-02 10:08:16 +0000817 X-MinorVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100818 $ref: '#/components/headers/X-MinorVersion'
lapentafd16e6e7e2022-11-02 10:08:16 +0000819 X-onap-RequestId:
aravind.est7b322ef2023-07-13 14:40:32 +0100820 $ref: '#/components/headers/X-onap-RequestId'
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +0000821 content:
822 application/json:
823 schema:
liamfallonc998a3a2022-11-11 13:43:16 +0000824 $ref: '#/components/schemas/SimpleResponse'
rameshiyer27478775d2023-06-09 13:38:46 +0100825 500:
826 description: Internal Server Error, returns an instance of
827 [SimpleResponse](https://github.com/onap/policy-clamp/blob/master/models/src/main/java/org/onap/policy/clamp/models/acm/messages/rest/SimpleResponse.java)
828 headers:
829 X-LatestVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100830 $ref: '#/components/headers/X-LatestVersion'
rameshiyer27478775d2023-06-09 13:38:46 +0100831 X-PatchVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100832 $ref: '#/components/headers/X-PatchVersion'
rameshiyer27478775d2023-06-09 13:38:46 +0100833 X-MinorVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100834 $ref: '#/components/headers/X-MinorVersion'
rameshiyer27478775d2023-06-09 13:38:46 +0100835 X-onap-RequestId:
aravind.est7b322ef2023-07-13 14:40:32 +0100836 $ref: '#/components/headers/X-onap-RequestId'
rameshiyer27478775d2023-06-09 13:38:46 +0100837 content:
838 application/json:
839 schema:
840 $ref: '#/components/schemas/SimpleResponse'
lapentafd16e6e7e2022-11-02 10:08:16 +0000841 security:
842 - basicAuth: []
843 x-interface info:
844 api-version: 1.0.0
845 last-mod-release: London
846 x-codegen-request-body-name: body
847 delete:
848 tags:
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +0000849 - Automation Composition Definition
lapentafd16e6e7e2022-11-02 10:08:16 +0000850 summary: Delete a commissioned automation composition definition
851 description: Deletes a commissioned automation composition definition,returning the UUID of the automation composition definition deleted by this request
852 operationId: deleteCompositionDefinition
853 parameters:
854 - name : compositionId
855 in: path
856 description: The UUID of the automation composition definition to delete
857 required: true
858 schema:
859 type: string
860 format: uuid
861 - name: X-onap-RequestId
862 in: header
863 description: RequestID for http transaction
864 schema:
865 type: string
866 format: uuid
867 responses:
868 200:
869 description: Serialised instance of
870 [CommissioningResponse](https://github.com/onap/policy-clamp/blob/master/models/src/main/java/org/onap/policy/clamp/models/acm/messages/rest/commissioning/CommissioningResponse.java)
871 containing the UUID of the automation composition deleted by this request
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +0000872 headers:
873 X-LatestVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100874 $ref: '#/components/headers/X-LatestVersion'
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +0000875 X-PatchVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100876 $ref: '#/components/headers/X-PatchVersion'
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +0000877 X-MinorVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100878 $ref: '#/components/headers/X-MinorVersion'
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +0000879 X-onap-RequestId:
aravind.est7b322ef2023-07-13 14:40:32 +0100880 $ref: '#/components/headers/X-onap-RequestId'
lapentafd16e6e7e2022-11-02 10:08:16 +0000881 content:
882 application/json:
883 schema:
liamfallonc998a3a2022-11-11 13:43:16 +0000884 $ref: '#/components/schemas/CommissioningResponse'
lapentafd16e6e7e2022-11-02 10:08:16 +0000885 example:
886 externalValue: 'https://raw.githubusercontent.com/onap/policy-clamp/master/runtime-acm/src/main/resources/openapi/examples/deleteCompositionDefinitionResponse.json'
887 application/yaml:
888 schema:
liamfallonc998a3a2022-11-11 13:43:16 +0000889 $ref: '#/components/schemas/CommissioningResponse'
lapentafd16e6e7e2022-11-02 10:08:16 +0000890 example:
891 externalValue: 'https://raw.githubusercontent.com/onap/policy-clamp/master/runtime-acm/src/main/resources/openapi/examples/deleteCompositionDefinitionResponse.yaml'
892 401:
liamfallonc998a3a2022-11-11 13:43:16 +0000893 description: Authentication Error, returns an instance of
894 [SimpleResponse](https://github.com/onap/policy-clamp/blob/master/models/src/main/java/org/onap/policy/clamp/models/acm/messages/rest/SimpleResponse.java)
lapentafd16e6e7e2022-11-02 10:08:16 +0000895 headers:
896 X-LatestVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100897 $ref: '#/components/headers/X-LatestVersion'
lapentafd16e6e7e2022-11-02 10:08:16 +0000898 X-PatchVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100899 $ref: '#/components/headers/X-PatchVersion'
lapentafd16e6e7e2022-11-02 10:08:16 +0000900 X-MinorVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100901 $ref: '#/components/headers/X-MinorVersion'
lapentafd16e6e7e2022-11-02 10:08:16 +0000902 X-onap-RequestId:
aravind.est7b322ef2023-07-13 14:40:32 +0100903 $ref: '#/components/headers/X-onap-RequestId'
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +0000904 content:
905 application/json:
lapentafd16e6e7e2022-11-02 10:08:16 +0000906 schema:
liamfallonc998a3a2022-11-11 13:43:16 +0000907 $ref: '#/components/schemas/SimpleResponse'
lapentafd16e6e7e2022-11-02 10:08:16 +0000908 404:
liamfallonc998a3a2022-11-11 13:43:16 +0000909 description: Specified automation composition definition not found, returns an instance of
910 [SimpleResponse](https://github.com/onap/policy-clamp/blob/master/models/src/main/java/org/onap/policy/clamp/models/acm/messages/rest/SimpleResponse.java)
lapentafd16e6e7e2022-11-02 10:08:16 +0000911 headers:
912 X-LatestVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100913 $ref: '#/components/headers/X-LatestVersion'
lapentafd16e6e7e2022-11-02 10:08:16 +0000914 X-PatchVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100915 $ref: '#/components/headers/X-PatchVersion'
lapentafd16e6e7e2022-11-02 10:08:16 +0000916 X-MinorVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100917 $ref: '#/components/headers/X-MinorVersion'
lapentafd16e6e7e2022-11-02 10:08:16 +0000918 X-onap-RequestId:
aravind.est7b322ef2023-07-13 14:40:32 +0100919 $ref: '#/components/headers/X-onap-RequestId'
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +0000920 content:
921 application/json:
922 schema:
liamfallonc998a3a2022-11-11 13:43:16 +0000923 $ref: '#/components/schemas/SimpleResponse'
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +0000924 400:
liamfallonc998a3a2022-11-11 13:43:16 +0000925 description: Bad Request, returns an instance of
926 [SimpleResponse](https://github.com/onap/policy-clamp/blob/master/models/src/main/java/org/onap/policy/clamp/models/acm/messages/rest/SimpleResponse.java)
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +0000927 headers:
928 X-LatestVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100929 $ref: '#/components/headers/X-LatestVersion'
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +0000930 X-PatchVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100931 $ref: '#/components/headers/X-PatchVersion'
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +0000932 X-MinorVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100933 $ref: '#/components/headers/X-MinorVersion'
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +0000934 X-onap-RequestId:
aravind.est7b322ef2023-07-13 14:40:32 +0100935 $ref: '#/components/headers/X-onap-RequestId'
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +0000936 content:
937 application/json:
938 schema:
liamfallonc998a3a2022-11-11 13:43:16 +0000939 $ref: '#/components/schemas/SimpleResponse'
rameshiyer27478775d2023-06-09 13:38:46 +0100940 500:
941 description: Internal Server Error, returns an instance of
942 [SimpleResponse](https://github.com/onap/policy-clamp/blob/master/models/src/main/java/org/onap/policy/clamp/models/acm/messages/rest/SimpleResponse.java)
943 headers:
944 X-LatestVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100945 $ref: '#/components/headers/X-LatestVersion'
rameshiyer27478775d2023-06-09 13:38:46 +0100946 X-PatchVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100947 $ref: '#/components/headers/X-PatchVersion'
rameshiyer27478775d2023-06-09 13:38:46 +0100948 X-MinorVersion:
aravind.est7b322ef2023-07-13 14:40:32 +0100949 $ref: '#/components/headers/X-MinorVersion'
rameshiyer27478775d2023-06-09 13:38:46 +0100950 X-onap-RequestId:
aravind.est7b322ef2023-07-13 14:40:32 +0100951 $ref: '#/components/headers/X-onap-RequestId'
rameshiyer27478775d2023-06-09 13:38:46 +0100952 content:
953 application/json:
954 schema:
955 $ref: '#/components/schemas/SimpleResponse'
lapentafd16e6e7e2022-11-02 10:08:16 +0000956 security:
957 - basicAuth: []
958 x-interface info:
959 api-version: 1.0.0
960 last-mod-release: London
961 /compositions/{compositionId}/instances:
962 get:
963 tags:
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +0000964 - Automation Composition Instance
lapentafd16e6e7e2022-11-02 10:08:16 +0000965 summary: Query details of the requested automation composition instances
966 description: Query details of the requested automation composition instances for the given automation composition definition ID, returning
967 details of all its automation composition instances
968 operationId: queryCompositionInstances
969 parameters:
970 - name : compositionId
971 in: path
972 description: The UUID of the automation composition definition for which to return instances
973 required: true
974 schema:
975 type: string
976 format: uuid
977 - name: name
978 in: query
979 description: Automation composition instance name. Regular expressions are supported for filtering. If
980 this parameter is not specified, all automation composition instances for the specified definition are returned.
981 schema:
982 type: string
983 - name: version
984 in: query
985 description: Automation composition instance version. Regular expressions are supported for filtering. If this
986 parameter is not specified, all automation composition instances for the specified definition that match the "name" filter are are returned.
987 schema:
988 type: string
989 - name: X-onap-RequestId
990 in: header
991 description: RequestID for http transaction
992 schema:
993 type: string
994 format: uuid
995 responses:
996 200:
997 description: Serialised instance of
998 [AutomationCompositions](https://github.com/onap/policy-clamp/blob/master/models/src/main/java/org/onap/policy/clamp/models/acm/concepts/AutomationCompositions.java)
999 containing a list of automation composition instances found
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +00001000 headers:
1001 X-LatestVersion:
aravind.est7b322ef2023-07-13 14:40:32 +01001002 $ref: '#/components/headers/X-LatestVersion'
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +00001003 X-PatchVersion:
aravind.est7b322ef2023-07-13 14:40:32 +01001004 $ref: '#/components/headers/X-PatchVersion'
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +00001005 X-MinorVersion:
aravind.est7b322ef2023-07-13 14:40:32 +01001006 $ref: '#/components/headers/X-MinorVersion'
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +00001007 X-onap-RequestId:
aravind.est7b322ef2023-07-13 14:40:32 +01001008 $ref: '#/components/headers/X-onap-RequestId'
lapentafd16e6e7e2022-11-02 10:08:16 +00001009 content:
1010 application/json:
1011 schema:
liamfallonc998a3a2022-11-11 13:43:16 +00001012 $ref: '#/components/schemas/AutomationCompositions'
lapentafd16e6e7e2022-11-02 10:08:16 +00001013 example:
1014 externalValue: 'https://raw.githubusercontent.com/onap/policy-clamp/master/runtime-acm/src/main/resources/openapi/examples/getCompositionInstancesResponse.json'
1015 application/yaml:
1016 schema:
liamfallonc998a3a2022-11-11 13:43:16 +00001017 $ref: '#/components/schemas/AutomationCompositions'
lapentafd16e6e7e2022-11-02 10:08:16 +00001018 example:
1019 externalValue: 'https://raw.githubusercontent.com/onap/policy-clamp/master/runtime-acm/src/main/resources/openapi/examples/getCompositionInstancesResponse.yaml'
1020 401:
liamfallonc998a3a2022-11-11 13:43:16 +00001021 description: Authentication Error, returns an instance of
1022 [SimpleResponse](https://github.com/onap/policy-clamp/blob/master/models/src/main/java/org/onap/policy/clamp/models/acm/messages/rest/SimpleResponse.java)
lapentafd16e6e7e2022-11-02 10:08:16 +00001023 headers:
1024 X-LatestVersion:
aravind.est7b322ef2023-07-13 14:40:32 +01001025 $ref: '#/components/headers/X-LatestVersion'
lapentafd16e6e7e2022-11-02 10:08:16 +00001026 X-PatchVersion:
aravind.est7b322ef2023-07-13 14:40:32 +01001027 $ref: '#/components/headers/X-PatchVersion'
lapentafd16e6e7e2022-11-02 10:08:16 +00001028 X-MinorVersion:
aravind.est7b322ef2023-07-13 14:40:32 +01001029 $ref: '#/components/headers/X-MinorVersion'
lapentafd16e6e7e2022-11-02 10:08:16 +00001030 X-onap-RequestId:
aravind.est7b322ef2023-07-13 14:40:32 +01001031 $ref: '#/components/headers/X-onap-RequestId'
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +00001032 content:
1033 application/json:
lapentafd16e6e7e2022-11-02 10:08:16 +00001034 schema:
liamfallonc998a3a2022-11-11 13:43:16 +00001035 $ref: '#/components/schemas/SimpleResponse'
lapentafd16e6e7e2022-11-02 10:08:16 +00001036 404:
liamfallonc998a3a2022-11-11 13:43:16 +00001037 description: The specified automation composition definition was not found, returns an instance of
1038 [SimpleResponse](https://github.com/onap/policy-clamp/blob/master/models/src/main/java/org/onap/policy/clamp/models/acm/messages/rest/SimpleResponse.java)
lapentafd16e6e7e2022-11-02 10:08:16 +00001039 headers:
1040 X-LatestVersion:
aravind.est7b322ef2023-07-13 14:40:32 +01001041 $ref: '#/components/headers/X-LatestVersion'
lapentafd16e6e7e2022-11-02 10:08:16 +00001042 X-PatchVersion:
aravind.est7b322ef2023-07-13 14:40:32 +01001043 $ref: '#/components/headers/X-PatchVersion'
lapentafd16e6e7e2022-11-02 10:08:16 +00001044 X-MinorVersion:
aravind.est7b322ef2023-07-13 14:40:32 +01001045 $ref: '#/components/headers/X-MinorVersion'
lapentafd16e6e7e2022-11-02 10:08:16 +00001046 X-onap-RequestId:
aravind.est7b322ef2023-07-13 14:40:32 +01001047 $ref: '#/components/headers/X-onap-RequestId'
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +00001048 content:
1049 application/json:
1050 schema:
liamfallonc998a3a2022-11-11 13:43:16 +00001051 $ref: '#/components/schemas/SimpleResponse'
rameshiyer27478775d2023-06-09 13:38:46 +01001052 500:
1053 description: Internal Server Error, returns an instance of
1054 [SimpleResponse](https://github.com/onap/policy-clamp/blob/master/models/src/main/java/org/onap/policy/clamp/models/acm/messages/rest/SimpleResponse.java)
1055 headers:
1056 X-LatestVersion:
aravind.est7b322ef2023-07-13 14:40:32 +01001057 $ref: '#/components/headers/X-LatestVersion'
rameshiyer27478775d2023-06-09 13:38:46 +01001058 X-PatchVersion:
aravind.est7b322ef2023-07-13 14:40:32 +01001059 $ref: '#/components/headers/X-PatchVersion'
rameshiyer27478775d2023-06-09 13:38:46 +01001060 X-MinorVersion:
aravind.est7b322ef2023-07-13 14:40:32 +01001061 $ref: '#/components/headers/X-MinorVersion'
rameshiyer27478775d2023-06-09 13:38:46 +01001062 X-onap-RequestId:
aravind.est7b322ef2023-07-13 14:40:32 +01001063 $ref: '#/components/headers/X-onap-RequestId'
rameshiyer27478775d2023-06-09 13:38:46 +01001064 content:
1065 application/json:
1066 schema:
1067 $ref: '#/components/schemas/SimpleResponse'
lapentafd16e6e7e2022-11-02 10:08:16 +00001068 security:
1069 - basicAuth: []
1070 x-interface info:
1071 api-version: 1.0.0
1072 last-mod-release: London
1073 post:
1074 tags:
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +00001075 - Automation Composition Instance
FrancescoFioraEstb5d62892022-12-01 09:15:22 +00001076 summary: Create automation composition instance
1077 description: Creates automation composition instance that use the sepcified automation composition definition. The ID of the created
1078 automation composition instance is returned.
1079 operationId: createCompositionInstance
lapentafd16e6e7e2022-11-02 10:08:16 +00001080 parameters:
1081 - name : compositionId
1082 in: path
FrancescoFioraEstb5d62892022-12-01 09:15:22 +00001083 description: The UUID of the automation composition definition on which to create instance
lapentafd16e6e7e2022-11-02 10:08:16 +00001084 required: true
1085 schema:
1086 type: string
1087 format: uuid
1088 - name: X-onap-RequestId
1089 in: header
1090 description: RequestID for http transaction
1091 schema:
1092 type: string
1093 format: uuid
1094 requestBody:
1095 description: Serialised instance of
FrancescoFioraEstb5d62892022-12-01 09:15:22 +00001096 [AutomationComposition](https://github.com/onap/policy-clamp/blob/master/models/src/main/java/org/onap/policy/clamp/models/acm/concepts/AutomationComposition.java)
1097 containing a automation composition instance to create
lapentafd16e6e7e2022-11-02 10:08:16 +00001098 content:
1099 application/json:
1100 schema:
FrancescoFioraEstb5d62892022-12-01 09:15:22 +00001101 $ref: '#/components/schemas/AutomationComposition'
lapentafd16e6e7e2022-11-02 10:08:16 +00001102 example:
FrancescoFioraEstb5d62892022-12-01 09:15:22 +00001103 externalValue: 'https://raw.githubusercontent.com/onap/policy-clamp/master/runtime-acm/src/main/resources/openapi/examples/postCompositionInstance.json'
lapentafd16e6e7e2022-11-02 10:08:16 +00001104 application/yaml:
1105 schema:
FrancescoFioraEstb5d62892022-12-01 09:15:22 +00001106 $ref: '#/components/schemas/AutomationComposition'
lapentafd16e6e7e2022-11-02 10:08:16 +00001107 example:
FrancescoFioraEstb5d62892022-12-01 09:15:22 +00001108 externalValue: 'https://raw.githubusercontent.com/onap/policy-clamp/master/runtime-acm/src/main/resources/openapi/examples/postCompositionInstance.yaml'
lapentafd16e6e7e2022-11-02 10:08:16 +00001109 required: true
1110 responses:
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +00001111 201:
lapentafd16e6e7e2022-11-02 10:08:16 +00001112 description: Serialised instance of
1113 [InstantiationResponse](https://github.com/onap/policy-clamp/blob/master/models/src/main/java/org/onap/policy/clamp/models/acm/messages/rest/instantiation/InstantiationResponse.java)
FrancescoFioraEstb5d62892022-12-01 09:15:22 +00001114 containing the UUID of the created automation composition instance
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +00001115 headers:
1116 X-LatestVersion:
aravind.est7b322ef2023-07-13 14:40:32 +01001117 $ref: '#/components/headers/X-LatestVersion'
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +00001118 X-PatchVersion:
aravind.est7b322ef2023-07-13 14:40:32 +01001119 $ref: '#/components/headers/X-PatchVersion'
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +00001120 X-MinorVersion:
aravind.est7b322ef2023-07-13 14:40:32 +01001121 $ref: '#/components/headers/X-MinorVersion'
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +00001122 X-onap-RequestId:
aravind.est7b322ef2023-07-13 14:40:32 +01001123 $ref: '#/components/headers/X-onap-RequestId'
lapentafd16e6e7e2022-11-02 10:08:16 +00001124 content:
1125 application/json:
1126 schema:
liamfallonc998a3a2022-11-11 13:43:16 +00001127 $ref: '#/components/schemas/InstantiationResponse'
lapentafd16e6e7e2022-11-02 10:08:16 +00001128 example:
1129 externalValue: 'https://raw.githubusercontent.com/onap/policy-clamp/master/runtime-acm/src/main/resources/openapi/examples/postCompositionInstancesResponse.json'
1130 application/yaml:
1131 schema:
liamfallonc998a3a2022-11-11 13:43:16 +00001132 $ref: '#/components/schemas/InstantiationResponse'
lapentafd16e6e7e2022-11-02 10:08:16 +00001133 example:
1134 externalValue: 'https://raw.githubusercontent.com/onap/policy-clamp/master/runtime-acm/src/main/resources/openapi/examples/postCompositionInstancesResponse.yaml'
lapentafd16e6e7e2022-11-02 10:08:16 +00001135 401:
liamfallonc998a3a2022-11-11 13:43:16 +00001136 description: Authentication Error, returns an instance of
1137 [SimpleResponse](https://github.com/onap/policy-clamp/blob/master/models/src/main/java/org/onap/policy/clamp/models/acm/messages/rest/SimpleResponse.java)
lapentafd16e6e7e2022-11-02 10:08:16 +00001138 headers:
1139 X-LatestVersion:
aravind.est7b322ef2023-07-13 14:40:32 +01001140 $ref: '#/components/headers/X-LatestVersion'
lapentafd16e6e7e2022-11-02 10:08:16 +00001141 X-PatchVersion:
aravind.est7b322ef2023-07-13 14:40:32 +01001142 $ref: '#/components/headers/X-PatchVersion'
lapentafd16e6e7e2022-11-02 10:08:16 +00001143 X-MinorVersion:
aravind.est7b322ef2023-07-13 14:40:32 +01001144 $ref: '#/components/headers/X-MinorVersion'
lapentafd16e6e7e2022-11-02 10:08:16 +00001145 X-onap-RequestId:
aravind.est7b322ef2023-07-13 14:40:32 +01001146 $ref: '#/components/headers/X-onap-RequestId'
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +00001147 content:
1148 application/json:
lapentafd16e6e7e2022-11-02 10:08:16 +00001149 schema:
liamfallonc998a3a2022-11-11 13:43:16 +00001150 $ref: '#/components/schemas/SimpleResponse'
lapentafd16e6e7e2022-11-02 10:08:16 +00001151 404:
liamfallonc998a3a2022-11-11 13:43:16 +00001152 description: The specified automation composition definition was not found, returns an instance of
1153 [SimpleResponse](https://github.com/onap/policy-clamp/blob/master/models/src/main/java/org/onap/policy/clamp/models/acm/messages/rest/SimpleResponse.java)
lapentafd16e6e7e2022-11-02 10:08:16 +00001154 headers:
1155 X-LatestVersion:
aravind.est7b322ef2023-07-13 14:40:32 +01001156 $ref: '#/components/headers/X-LatestVersion'
lapentafd16e6e7e2022-11-02 10:08:16 +00001157 X-PatchVersion:
aravind.est7b322ef2023-07-13 14:40:32 +01001158 $ref: '#/components/headers/X-PatchVersion'
lapentafd16e6e7e2022-11-02 10:08:16 +00001159 X-MinorVersion:
aravind.est7b322ef2023-07-13 14:40:32 +01001160 $ref: '#/components/headers/X-MinorVersion'
lapentafd16e6e7e2022-11-02 10:08:16 +00001161 X-onap-RequestId:
aravind.est7b322ef2023-07-13 14:40:32 +01001162 $ref: '#/components/headers/X-onap-RequestId'
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +00001163 content:
1164 application/json:
1165 schema:
liamfallonc998a3a2022-11-11 13:43:16 +00001166 $ref: '#/components/schemas/SimpleResponse'
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +00001167 400:
liamfallonc998a3a2022-11-11 13:43:16 +00001168 description: Bad Request, returns an instance of
1169 [SimpleResponse](https://github.com/onap/policy-clamp/blob/master/models/src/main/java/org/onap/policy/clamp/models/acm/messages/rest/SimpleResponse.java)
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +00001170 headers:
1171 X-LatestVersion:
aravind.est7b322ef2023-07-13 14:40:32 +01001172 $ref: '#/components/headers/X-LatestVersion'
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +00001173 X-PatchVersion:
aravind.est7b322ef2023-07-13 14:40:32 +01001174 $ref: '#/components/headers/X-PatchVersion'
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +00001175 X-MinorVersion:
aravind.est7b322ef2023-07-13 14:40:32 +01001176 $ref: '#/components/headers/X-MinorVersion'
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +00001177 X-onap-RequestId:
aravind.est7b322ef2023-07-13 14:40:32 +01001178 $ref: '#/components/headers/X-onap-RequestId'
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +00001179 content:
1180 application/json:
1181 schema:
liamfallonc998a3a2022-11-11 13:43:16 +00001182 $ref: '#/components/schemas/SimpleResponse'
rameshiyer27478775d2023-06-09 13:38:46 +01001183 500:
1184 description: Internal Server Error, returns an instance of
1185 [SimpleResponse](https://github.com/onap/policy-clamp/blob/master/models/src/main/java/org/onap/policy/clamp/models/acm/messages/rest/SimpleResponse.java)
1186 headers:
1187 X-LatestVersion:
aravind.est7b322ef2023-07-13 14:40:32 +01001188 $ref: '#/components/headers/X-LatestVersion'
rameshiyer27478775d2023-06-09 13:38:46 +01001189 X-PatchVersion:
aravind.est7b322ef2023-07-13 14:40:32 +01001190 $ref: '#/components/headers/X-PatchVersion'
rameshiyer27478775d2023-06-09 13:38:46 +01001191 X-MinorVersion:
aravind.est7b322ef2023-07-13 14:40:32 +01001192 $ref: '#/components/headers/X-MinorVersion'
rameshiyer27478775d2023-06-09 13:38:46 +01001193 X-onap-RequestId:
aravind.est7b322ef2023-07-13 14:40:32 +01001194 $ref: '#/components/headers/X-onap-RequestId'
rameshiyer27478775d2023-06-09 13:38:46 +01001195 content:
1196 application/json:
1197 schema:
1198 $ref: '#/components/schemas/SimpleResponse'
lapentafd16e6e7e2022-11-02 10:08:16 +00001199 security:
1200 - basicAuth: []
1201 x-interface info:
1202 api-version: 1.0.0
1203 last-mod-release: London
1204 x-codegen-request-body-name: body
1205 /compositions/{compositionId}/instances/{instanceId}:
1206 get:
1207 tags:
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +00001208 - Automation Composition Instance
lapentafd16e6e7e2022-11-02 10:08:16 +00001209 summary: Get automation composition instance details.
1210 description: Get details of the requested automation composition instance.
1211 operationId: getCompositionInstance
1212 parameters:
1213 - name : compositionId
1214 in: path
1215 description: The UUID of the automation composition definition on which to get an instance
1216 required: true
1217 schema:
1218 type: string
1219 format: uuid
1220 - name : instanceId
1221 in: path
1222 description: The UUID of the automation composition instance to get
1223 required: true
1224 schema:
1225 type: string
1226 format: uuid
1227 - name: X-onap-RequestId
1228 in: header
1229 description: RequestID for http transaction
1230 schema:
1231 type: string
1232 format: uuid
1233 responses:
1234 200:
1235 description: Serialised instance of
FrancescoFioraEstb5d62892022-12-01 09:15:22 +00001236 [AutomationComposition](https://github.com/onap/policy-clamp/blob/master/models/src/main/java/org/onap/policy/clamp/models/acm/concepts/AutomationComposition.java)
1237 containing the automation composition instance
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +00001238 headers:
1239 X-LatestVersion:
aravind.est7b322ef2023-07-13 14:40:32 +01001240 $ref: '#/components/headers/X-LatestVersion'
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +00001241 X-PatchVersion:
aravind.est7b322ef2023-07-13 14:40:32 +01001242 $ref: '#/components/headers/X-PatchVersion'
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +00001243 X-MinorVersion:
aravind.est7b322ef2023-07-13 14:40:32 +01001244 $ref: '#/components/headers/X-MinorVersion'
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +00001245 X-onap-RequestId:
aravind.est7b322ef2023-07-13 14:40:32 +01001246 $ref: '#/components/headers/X-onap-RequestId'
lapentafd16e6e7e2022-11-02 10:08:16 +00001247 content:
1248 application/json:
1249 schema:
FrancescoFioraEstb5d62892022-12-01 09:15:22 +00001250 $ref: '#/components/schemas/AutomationComposition'
lapentafd16e6e7e2022-11-02 10:08:16 +00001251 example:
1252 externalValue: 'https://raw.githubusercontent.com/onap/policy-clamp/master/runtime-acm/src/main/resources/openapi/examples/getCompositionInstanceResponse.json'
1253 application/yaml:
1254 schema:
FrancescoFioraEstb5d62892022-12-01 09:15:22 +00001255 $ref: '#/components/schemas/AutomationComposition'
lapentafd16e6e7e2022-11-02 10:08:16 +00001256 example:
1257 externalValue: 'https://raw.githubusercontent.com/onap/policy-clamp/master/runtime-acm/src/main/resources/openapi/examples/getCompositionInstanceResponse.yaml'
1258 401:
liamfallonc998a3a2022-11-11 13:43:16 +00001259 description: Authentication Error, returns an instance of
1260 [SimpleResponse](https://github.com/onap/policy-clamp/blob/master/models/src/main/java/org/onap/policy/clamp/models/acm/messages/rest/SimpleResponse.java)
lapentafd16e6e7e2022-11-02 10:08:16 +00001261 headers:
1262 X-LatestVersion:
aravind.est7b322ef2023-07-13 14:40:32 +01001263 $ref: '#/components/headers/X-LatestVersion'
lapentafd16e6e7e2022-11-02 10:08:16 +00001264 X-PatchVersion:
aravind.est7b322ef2023-07-13 14:40:32 +01001265 $ref: '#/components/headers/X-PatchVersion'
lapentafd16e6e7e2022-11-02 10:08:16 +00001266 X-MinorVersion:
aravind.est7b322ef2023-07-13 14:40:32 +01001267 $ref: '#/components/headers/X-MinorVersion'
lapentafd16e6e7e2022-11-02 10:08:16 +00001268 X-onap-RequestId:
aravind.est7b322ef2023-07-13 14:40:32 +01001269 $ref: '#/components/headers/X-onap-RequestId'
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +00001270 content:
1271 application/json:
lapentafd16e6e7e2022-11-02 10:08:16 +00001272 schema:
liamfallonc998a3a2022-11-11 13:43:16 +00001273 $ref: '#/components/schemas/SimpleResponse'
lapentafd16e6e7e2022-11-02 10:08:16 +00001274 404:
liamfallonc998a3a2022-11-11 13:43:16 +00001275 description: The automation composition instance was not found, returns an instance of
1276 [SimpleResponse](https://github.com/onap/policy-clamp/blob/master/models/src/main/java/org/onap/policy/clamp/models/acm/messages/rest/SimpleResponse.java)
lapentafd16e6e7e2022-11-02 10:08:16 +00001277 headers:
1278 X-LatestVersion:
aravind.est7b322ef2023-07-13 14:40:32 +01001279 $ref: '#/components/headers/X-LatestVersion'
lapentafd16e6e7e2022-11-02 10:08:16 +00001280 X-PatchVersion:
aravind.est7b322ef2023-07-13 14:40:32 +01001281 $ref: '#/components/headers/X-PatchVersion'
lapentafd16e6e7e2022-11-02 10:08:16 +00001282 X-MinorVersion:
aravind.est7b322ef2023-07-13 14:40:32 +01001283 $ref: '#/components/headers/X-MinorVersion'
lapentafd16e6e7e2022-11-02 10:08:16 +00001284 X-onap-RequestId:
aravind.est7b322ef2023-07-13 14:40:32 +01001285 $ref: '#/components/headers/X-onap-RequestId'
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +00001286 content:
1287 application/json:
1288 schema:
liamfallonc998a3a2022-11-11 13:43:16 +00001289 $ref: '#/components/schemas/SimpleResponse'
rameshiyer27478775d2023-06-09 13:38:46 +01001290 500:
1291 description: Internal Server Error, returns an instance of
1292 [SimpleResponse](https://github.com/onap/policy-clamp/blob/master/models/src/main/java/org/onap/policy/clamp/models/acm/messages/rest/SimpleResponse.java)
1293 headers:
1294 X-LatestVersion:
aravind.est7b322ef2023-07-13 14:40:32 +01001295 $ref: '#/components/headers/X-LatestVersion'
rameshiyer27478775d2023-06-09 13:38:46 +01001296 X-PatchVersion:
aravind.est7b322ef2023-07-13 14:40:32 +01001297 $ref: '#/components/headers/X-PatchVersion'
rameshiyer27478775d2023-06-09 13:38:46 +01001298 X-MinorVersion:
aravind.est7b322ef2023-07-13 14:40:32 +01001299 $ref: '#/components/headers/X-MinorVersion'
rameshiyer27478775d2023-06-09 13:38:46 +01001300 X-onap-RequestId:
aravind.est7b322ef2023-07-13 14:40:32 +01001301 $ref: '#/components/headers/X-onap-RequestId'
rameshiyer27478775d2023-06-09 13:38:46 +01001302 content:
1303 application/json:
1304 schema:
1305 $ref: '#/components/schemas/SimpleResponse'
lapentafd16e6e7e2022-11-02 10:08:16 +00001306 security:
1307 - basicAuth: []
1308 x-interface info:
1309 api-version: 1.0.0
1310 last-mod-release: London
1311 put:
1312 tags:
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +00001313 - Automation Composition Instance
liamfallonf5ebd502022-12-16 10:17:46 +00001314 summary: Manage deployment and locking of an automation composition instance
1315 description: This request manages deployment and locking of an automation composition instance. This endpoint can
1316 order deployment and undeployment of an AC Instance to participants and order unlocking and locking of AC instances
1317 on participants
FrancescoFioraEsta76f5612023-01-03 16:15:39 +00001318 operationId: compositionInstanceState
lapentafd16e6e7e2022-11-02 10:08:16 +00001319 parameters:
1320 - name : compositionId
1321 in: path
1322 description: The UUID of the automation composition definition on which to update an instance
1323 required: true
1324 schema:
1325 type: string
1326 format: uuid
1327 - name : instanceId
1328 in: path
1329 description: The UUID of the automation composition instance to update
1330 required: true
1331 schema:
1332 type: string
1333 format: uuid
1334 - name: X-onap-RequestId
1335 in: header
1336 description: RequestID for http transaction
1337 schema:
1338 type: string
1339 format: uuid
1340 requestBody:
1341 description: Serialised instance of
liamfallonf5ebd502022-12-16 10:17:46 +00001342 [AcInstanceStateUpdate](https://github.com/onap/policy-clamp/blob/master/models/src/main/java/org/onap/policy/clamp/models/acm/messages/rest/instantiation/AcInstanceStateUpdate.java)
1343 which specifies the requested state change on the automation concept instance
lapentafd16e6e7e2022-11-02 10:08:16 +00001344 content:
1345 application/json:
1346 schema:
liamfallonf5ebd502022-12-16 10:17:46 +00001347 $ref: '#/components/schemas/AcInstanceStateUpdate'
lapentafd16e6e7e2022-11-02 10:08:16 +00001348 example:
liamfallonf5ebd502022-12-16 10:17:46 +00001349 externalValue: 'https://raw.githubusercontent.com/onap/policy-clamp/master/runtime-acm/src/main/resources/openapi/examples/putAcInstanceStateUpdate.json'
lapentafd16e6e7e2022-11-02 10:08:16 +00001350 application/yaml:
1351 schema:
liamfallonf5ebd502022-12-16 10:17:46 +00001352 $ref: '#/components/schemas/AcInstanceStateUpdate'
lapentafd16e6e7e2022-11-02 10:08:16 +00001353 example:
liamfallonf5ebd502022-12-16 10:17:46 +00001354 externalValue: 'https://raw.githubusercontent.com/onap/policy-clamp/master/runtime-acm/src/main/resources/openapi/examples/putAcInstanceStateUpdate.yaml'
lapentafd16e6e7e2022-11-02 10:08:16 +00001355 required: true
1356 responses:
liamfallonf5ebd502022-12-16 10:17:46 +00001357 202:
1358 description: Accepted, the request has been accepted and forwarded to participants
1359 headers:
1360 X-LatestVersion:
aravind.est7b322ef2023-07-13 14:40:32 +01001361 $ref: '#/components/headers/X-LatestVersion'
liamfallonf5ebd502022-12-16 10:17:46 +00001362 X-PatchVersion:
aravind.est7b322ef2023-07-13 14:40:32 +01001363 $ref: '#/components/headers/X-PatchVersion'
liamfallonf5ebd502022-12-16 10:17:46 +00001364 X-MinorVersion:
aravind.est7b322ef2023-07-13 14:40:32 +01001365 $ref: '#/components/headers/X-MinorVersion'
liamfallonf5ebd502022-12-16 10:17:46 +00001366 X-onap-RequestId:
aravind.est7b322ef2023-07-13 14:40:32 +01001367 $ref: '#/components/headers/X-onap-RequestId'
liamfallonf5ebd502022-12-16 10:17:46 +00001368 400:
1369 description: Bad Request, returns an instance of
1370 [SimpleResponse](https://github.com/onap/policy-clamp/blob/master/models/src/main/java/org/onap/policy/clamp/models/acm/messages/rest/SimpleResponse.java)
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +00001371 headers:
1372 X-LatestVersion:
aravind.est7b322ef2023-07-13 14:40:32 +01001373 $ref: '#/components/headers/X-LatestVersion'
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +00001374 X-PatchVersion:
aravind.est7b322ef2023-07-13 14:40:32 +01001375 $ref: '#/components/headers/X-PatchVersion'
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +00001376 X-MinorVersion:
aravind.est7b322ef2023-07-13 14:40:32 +01001377 $ref: '#/components/headers/X-MinorVersion'
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +00001378 X-onap-RequestId:
aravind.est7b322ef2023-07-13 14:40:32 +01001379 $ref: '#/components/headers/X-onap-RequestId'
lapentafd16e6e7e2022-11-02 10:08:16 +00001380 content:
1381 application/json:
1382 schema:
liamfallonf5ebd502022-12-16 10:17:46 +00001383 $ref: '#/components/schemas/SimpleResponse'
lapentafd16e6e7e2022-11-02 10:08:16 +00001384 401:
liamfallonc998a3a2022-11-11 13:43:16 +00001385 description: Authentication Error, returns an instance of
1386 [SimpleResponse](https://github.com/onap/policy-clamp/blob/master/models/src/main/java/org/onap/policy/clamp/models/acm/messages/rest/SimpleResponse.java)
lapentafd16e6e7e2022-11-02 10:08:16 +00001387 headers:
1388 X-LatestVersion:
aravind.est7b322ef2023-07-13 14:40:32 +01001389 $ref: '#/components/headers/X-LatestVersion'
lapentafd16e6e7e2022-11-02 10:08:16 +00001390 X-PatchVersion:
aravind.est7b322ef2023-07-13 14:40:32 +01001391 $ref: '#/components/headers/X-PatchVersion'
lapentafd16e6e7e2022-11-02 10:08:16 +00001392 X-MinorVersion:
aravind.est7b322ef2023-07-13 14:40:32 +01001393 $ref: '#/components/headers/X-MinorVersion'
lapentafd16e6e7e2022-11-02 10:08:16 +00001394 X-onap-RequestId:
aravind.est7b322ef2023-07-13 14:40:32 +01001395 $ref: '#/components/headers/X-onap-RequestId'
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +00001396 content:
1397 application/json:
lapentafd16e6e7e2022-11-02 10:08:16 +00001398 schema:
liamfallonc998a3a2022-11-11 13:43:16 +00001399 $ref: '#/components/schemas/SimpleResponse'
lapentafd16e6e7e2022-11-02 10:08:16 +00001400 404:
liamfallonc998a3a2022-11-11 13:43:16 +00001401 description: The specified automation composition instance was not found, returns an instance of
1402 [SimpleResponse](https://github.com/onap/policy-clamp/blob/master/models/src/main/java/org/onap/policy/clamp/models/acm/messages/rest/SimpleResponse.java)
lapentafd16e6e7e2022-11-02 10:08:16 +00001403 headers:
1404 X-LatestVersion:
aravind.est7b322ef2023-07-13 14:40:32 +01001405 $ref: '#/components/headers/X-LatestVersion'
lapentafd16e6e7e2022-11-02 10:08:16 +00001406 X-PatchVersion:
aravind.est7b322ef2023-07-13 14:40:32 +01001407 $ref: '#/components/headers/X-PatchVersion'
lapentafd16e6e7e2022-11-02 10:08:16 +00001408 X-MinorVersion:
aravind.est7b322ef2023-07-13 14:40:32 +01001409 $ref: '#/components/headers/X-MinorVersion'
lapentafd16e6e7e2022-11-02 10:08:16 +00001410 X-onap-RequestId:
aravind.est7b322ef2023-07-13 14:40:32 +01001411 $ref: '#/components/headers/X-onap-RequestId'
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +00001412 content:
1413 application/json:
1414 schema:
liamfallonc998a3a2022-11-11 13:43:16 +00001415 $ref: '#/components/schemas/SimpleResponse'
rameshiyer27478775d2023-06-09 13:38:46 +01001416 500:
1417 description: Internal Server Error, returns an instance of
1418 [SimpleResponse](https://github.com/onap/policy-clamp/blob/master/models/src/main/java/org/onap/policy/clamp/models/acm/messages/rest/SimpleResponse.java)
1419 headers:
1420 X-LatestVersion:
aravind.est7b322ef2023-07-13 14:40:32 +01001421 $ref: '#/components/headers/X-LatestVersion'
rameshiyer27478775d2023-06-09 13:38:46 +01001422 X-PatchVersion:
aravind.est7b322ef2023-07-13 14:40:32 +01001423 $ref: '#/components/headers/X-PatchVersion'
rameshiyer27478775d2023-06-09 13:38:46 +01001424 X-MinorVersion:
aravind.est7b322ef2023-07-13 14:40:32 +01001425 $ref: '#/components/headers/X-MinorVersion'
rameshiyer27478775d2023-06-09 13:38:46 +01001426 X-onap-RequestId:
aravind.est7b322ef2023-07-13 14:40:32 +01001427 $ref: '#/components/headers/X-onap-RequestId'
rameshiyer27478775d2023-06-09 13:38:46 +01001428 content:
1429 application/json:
1430 schema:
1431 $ref: '#/components/schemas/SimpleResponse'
lapentafd16e6e7e2022-11-02 10:08:16 +00001432 security:
1433 - basicAuth: []
1434 x-interface info:
1435 api-version: 1.0.0
1436 last-mod-release: London
1437 x-codegen-request-body-name: body
1438 delete:
1439 tags:
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +00001440 - Automation Composition Instance
lapentafd16e6e7e2022-11-02 10:08:16 +00001441 summary: Delete an automation composition instance
rameshiyer27478775d2023-06-09 13:38:46 +01001442 description: Order a deletion of an automation composition instance, returning the UUID of the automation composition instance to be deleted
lapentafd16e6e7e2022-11-02 10:08:16 +00001443 operationId: deleteCompositionInstance
1444 parameters:
1445 - name : compositionId
1446 in: path
1447 description: The UUID of the automation composition definition on which to delete an instance
1448 required: true
1449 schema:
1450 type: string
1451 format: uuid
1452 - name : instanceId
1453 in: path
1454 description: The UUID of the automation composition instance to delete
1455 required: true
1456 schema:
1457 type: string
1458 format: uuid
1459 - name: X-onap-RequestId
1460 in: header
1461 description: RequestID for http transaction
1462 schema:
1463 type: string
1464 format: uuid
1465 responses:
rameshiyer27478775d2023-06-09 13:38:46 +01001466 202:
lapentafd16e6e7e2022-11-02 10:08:16 +00001467 description: Serialised instance of
1468 [InstantiationResponse](https://github.com/onap/policy-clamp/blob/master/models/src/main/java/org/onap/policy/clamp/models/acm/messages/rest/instantiation/InstantiationResponse.java)
1469 containing the UUID of the deleted automation composition instance
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +00001470 headers:
1471 X-LatestVersion:
aravind.est7b322ef2023-07-13 14:40:32 +01001472 $ref: '#/components/headers/X-LatestVersion'
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +00001473 X-PatchVersion:
aravind.est7b322ef2023-07-13 14:40:32 +01001474 $ref: '#/components/headers/X-PatchVersion'
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +00001475 X-MinorVersion:
aravind.est7b322ef2023-07-13 14:40:32 +01001476 $ref: '#/components/headers/X-MinorVersion'
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +00001477 X-onap-RequestId:
aravind.est7b322ef2023-07-13 14:40:32 +01001478 $ref: '#/components/headers/X-onap-RequestId'
lapentafd16e6e7e2022-11-02 10:08:16 +00001479 content:
1480 application/json:
1481 schema:
liamfallonc998a3a2022-11-11 13:43:16 +00001482 $ref: '#/components/schemas/InstantiationResponse'
lapentafd16e6e7e2022-11-02 10:08:16 +00001483 example:
1484 externalValue: 'https://raw.githubusercontent.com/onap/policy-clamp/master/runtime-acm/src/main/resources/openapi/examples/deleteCompositionInstanceResponse.json'
1485 application/yaml:
1486 schema:
liamfallonc998a3a2022-11-11 13:43:16 +00001487 $ref: '#/components/schemas/InstantiationResponse'
lapentafd16e6e7e2022-11-02 10:08:16 +00001488 example:
1489 externalValue: 'https://raw.githubusercontent.com/onap/policy-clamp/master/runtime-acm/src/main/resources/openapi/examples/deleteCompositionInstanceResponse.yaml'
1490 401:
liamfallonc998a3a2022-11-11 13:43:16 +00001491 description: Authentication Error, returns an instance of
1492 [SimpleResponse](https://github.com/onap/policy-clamp/blob/master/models/src/main/java/org/onap/policy/clamp/models/acm/messages/rest/SimpleResponse.java)
lapentafd16e6e7e2022-11-02 10:08:16 +00001493 headers:
1494 X-LatestVersion:
aravind.est7b322ef2023-07-13 14:40:32 +01001495 $ref: '#/components/headers/X-LatestVersion'
lapentafd16e6e7e2022-11-02 10:08:16 +00001496 X-PatchVersion:
aravind.est7b322ef2023-07-13 14:40:32 +01001497 $ref: '#/components/headers/X-PatchVersion'
lapentafd16e6e7e2022-11-02 10:08:16 +00001498 X-MinorVersion:
aravind.est7b322ef2023-07-13 14:40:32 +01001499 $ref: '#/components/headers/X-MinorVersion'
lapentafd16e6e7e2022-11-02 10:08:16 +00001500 X-onap-RequestId:
aravind.est7b322ef2023-07-13 14:40:32 +01001501 $ref: '#/components/headers/X-onap-RequestId'
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +00001502 content:
1503 application/json:
lapentafd16e6e7e2022-11-02 10:08:16 +00001504 schema:
liamfallonc998a3a2022-11-11 13:43:16 +00001505 $ref: '#/components/schemas/SimpleResponse'
lapentafd16e6e7e2022-11-02 10:08:16 +00001506 404:
liamfallonc998a3a2022-11-11 13:43:16 +00001507 description: The specified automation composition instance was not found, returns an instance of
1508 [SimpleResponse](https://github.com/onap/policy-clamp/blob/master/models/src/main/java/org/onap/policy/clamp/models/acm/messages/rest/SimpleResponse.java)
lapentafd16e6e7e2022-11-02 10:08:16 +00001509 headers:
1510 X-LatestVersion:
aravind.est7b322ef2023-07-13 14:40:32 +01001511 $ref: '#/components/headers/X-LatestVersion'
lapentafd16e6e7e2022-11-02 10:08:16 +00001512 X-PatchVersion:
aravind.est7b322ef2023-07-13 14:40:32 +01001513 $ref: '#/components/headers/X-PatchVersion'
lapentafd16e6e7e2022-11-02 10:08:16 +00001514 X-MinorVersion:
aravind.est7b322ef2023-07-13 14:40:32 +01001515 $ref: '#/components/headers/X-MinorVersion'
lapentafd16e6e7e2022-11-02 10:08:16 +00001516 X-onap-RequestId:
aravind.est7b322ef2023-07-13 14:40:32 +01001517 $ref: '#/components/headers/X-onap-RequestId'
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +00001518 content:
1519 application/json:
1520 schema:
liamfallonc998a3a2022-11-11 13:43:16 +00001521 $ref: '#/components/schemas/SimpleResponse'
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +00001522 400:
liamfallonc998a3a2022-11-11 13:43:16 +00001523 description: Bad Request, returns an instance of
1524 [SimpleResponse](https://github.com/onap/policy-clamp/blob/master/models/src/main/java/org/onap/policy/clamp/models/acm/messages/rest/SimpleResponse.java)
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +00001525 headers:
1526 X-LatestVersion:
aravind.est7b322ef2023-07-13 14:40:32 +01001527 $ref: '#/components/headers/X-LatestVersion'
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +00001528 X-PatchVersion:
aravind.est7b322ef2023-07-13 14:40:32 +01001529 $ref: '#/components/headers/X-PatchVersion'
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +00001530 X-MinorVersion:
aravind.est7b322ef2023-07-13 14:40:32 +01001531 $ref: '#/components/headers/X-MinorVersion'
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +00001532 X-onap-RequestId:
aravind.est7b322ef2023-07-13 14:40:32 +01001533 $ref: '#/components/headers/X-onap-RequestId'
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +00001534 content:
1535 application/json:
1536 schema:
liamfallonc998a3a2022-11-11 13:43:16 +00001537 $ref: '#/components/schemas/SimpleResponse'
rameshiyer27478775d2023-06-09 13:38:46 +01001538 500:
1539 description: Internal Server Error, returns an instance of
1540 [SimpleResponse](https://github.com/onap/policy-clamp/blob/master/models/src/main/java/org/onap/policy/clamp/models/acm/messages/rest/SimpleResponse.java)
1541 headers:
1542 X-LatestVersion:
aravind.est7b322ef2023-07-13 14:40:32 +01001543 $ref: '#/components/headers/X-LatestVersion'
rameshiyer27478775d2023-06-09 13:38:46 +01001544 X-PatchVersion:
aravind.est7b322ef2023-07-13 14:40:32 +01001545 $ref: '#/components/headers/X-PatchVersion'
rameshiyer27478775d2023-06-09 13:38:46 +01001546 X-MinorVersion:
aravind.est7b322ef2023-07-13 14:40:32 +01001547 $ref: '#/components/headers/X-MinorVersion'
rameshiyer27478775d2023-06-09 13:38:46 +01001548 X-onap-RequestId:
aravind.est7b322ef2023-07-13 14:40:32 +01001549 $ref: '#/components/headers/X-onap-RequestId'
rameshiyer27478775d2023-06-09 13:38:46 +01001550 content:
1551 application/json:
1552 schema:
1553 $ref: '#/components/schemas/SimpleResponse'
lapentafd16e6e7e2022-11-02 10:08:16 +00001554 security:
1555 - basicAuth: []
1556 x-interface info:
1557 api-version: 1.0.0
1558 last-mod-release: London
1559
1560components:
1561 securitySchemes:
1562 basicAuth:
1563 type: http
1564 scheme: basic
liamfallonc998a3a2022-11-11 13:43:16 +00001565 schemas:
liamfallonf5ebd502022-12-16 10:17:46 +00001566 ParticipantInformation:
1567 title: ParticipantInformation
1568 type: object
liamfallonc998a3a2022-11-11 13:43:16 +00001569 ToscaServiceTemplates:
1570 title: ToscaServiceTemplates
1571 type: object
1572 ToscaServiceTemplate:
1573 title: ToscaServiceTemplate
1574 type: object
FrancescoFioraEstdb615d92023-01-24 16:27:21 +00001575 AutomationCompositionDefinition:
1576 title: AutomationCompositionDefinition
1577 type: object
FrancescoFioraEstb5d62892022-12-01 09:15:22 +00001578 AutomationComposition:
1579 title: AutomationComposition
1580 type: object
liamfallonc998a3a2022-11-11 13:43:16 +00001581 AutomationCompositions:
1582 title: AutomationCompositions
1583 type: object
1584 SimpleResponse:
1585 title: SimpleResponse
1586 type: object
1587 CommissioningResponse:
1588 title: CommissioningResponse
1589 type: object
liamfallonf5ebd502022-12-16 10:17:46 +00001590 AcTypeStateUpdate:
1591 title: AcTypeStateUpdate
1592 type: object
1593 AcInstanceStateUpdate:
1594 title: AcInstanceStateUpdate
FrancescoFioraEst5e0f7912022-12-09 14:38:10 +00001595 type: object
liamfallonc998a3a2022-11-11 13:43:16 +00001596 InstantiationResponse:
1597 title: InstantiationResponse
1598 type: object
aravind.est7b322ef2023-07-13 14:40:32 +01001599 headers:
1600 X-LatestVersion:
1601 schema:
1602 type: string
1603 X-PatchVersion:
1604 schema:
1605 type: string
1606 X-MinorVersion:
1607 schema:
1608 type: string
1609 X-onap-RequestId:
1610 schema:
1611 type: string
1612 format: uuid