blob: 726f76d75485772d447293c2fea0168389232619 [file] [log] [blame]
Michael Landodb0e8982018-06-06 11:44:25 +03001{
2 "swagger": "2.0",
3 "info": {
4 "version": "1.2.0",
5 "title": "DistributionAndExternalAPIs"
6 },
7 "basePath": "/sdc",
8 "tags": [
9 {
10 "name": "Distribution Catalog Servlet"
11 },
12 {
13 "name": "Distribution Servlet"
14 },
15 {
16 "name": "Artifact External Servlet"
17 },
18 {
19 "name": "Asset Metadata External Servlet"
20 },
21 {
22 "name": "CRUD External Servlet"
23 },
24 {
25 "name": "Service Activation External Servlet"
26 }
27 ],
28 "paths": {
29 "/v1/catalog/services/{serviceName}/{serviceVersion}/artifacts/{artifactName}": {
30 "get": {
31 "tags": [
32 "Distribution Catalog Servlet"
33 ],
34 "summary": "Download service artifact",
35 "description": "Returns downloaded artifact",
36 "operationId": "downloadServiceArtifact",
37 "consumes": [
38 "application/json"
39 ],
40 "produces": [
41 "application/octet-stream"
42 ],
43 "parameters": [
44 {
45 "name": "X-ECOMP-RequestID",
46 "in": "header",
47 "description": "X-ECOMP-RequestID header",
48 "required": false,
49 "type": "string"
50 },
51 {
52 "name": "X-ECOMP-InstanceID",
53 "in": "header",
54 "description": "X-ECOMP-InstanceID header",
55 "required": true,
56 "type": "string"
57 },
58 {
59 "name": "Accept",
60 "in": "header",
61 "description": "Determines the format of the body of the response",
62 "required": false,
63 "type": "string"
64 },
65 {
66 "name": "Authorization",
67 "in": "header",
68 "description": "The username and password",
69 "required": true,
70 "type": "string"
71 },
72 {
73 "name": "serviceName",
74 "in": "path",
75 "required": true,
76 "type": "string"
77 },
78 {
79 "name": "serviceVersion",
80 "in": "path",
81 "required": true,
82 "type": "string"
83 },
84 {
85 "name": "artifactName",
86 "in": "path",
87 "required": true,
88 "type": "string"
89 }
90 ],
91 "responses": {
92 "200": {
93 "description": "The artifact is found and streamed.",
94 "schema": {
95 "type": "string"
96 }
97 },
98 "400": {
99 "description": "Missing 'X-ECOMP-InstanceID' HTTP header - POL5001"
100 },
101 "401": {
102 "description": "ECOMP component should authenticate itself and to re-send again HTTP request with its Basic Authentication credentials - POL5002"
103 },
104 "403": {
105 "description": "ECOMP component is not authorized - POL5003"
106 },
107 "404": {
108 "description": "Specified artifact is not found - SVC4505"
109 },
110 "405": {
111 "description": "Method Not Allowed: Invalid HTTP method type used (PUT,DELETE,POST will be rejected) - POL4050"
112 },
113 "500": {
114 "description": "The GET request failed either due to internal SDC problem or Cambria Service failure. ECOMP Component should continue the attempts to get the needed information - POL5000"
115 }
116 }
117 }
118 },
119 "/v1/catalog/services/{serviceName}/{serviceVersion}/resourceInstances/{resourceInstanceName}/artifacts/{artifactName}": {
120 "get": {
121 "tags": [
122 "Distribution Catalog Servlet"
123 ],
124 "summary": "Download resource instance artifact",
125 "description": "Returns downloaded artifact",
126 "operationId": "downloadResourceInstanceArtifactByName",
127 "consumes": [
128 "application/json"
129 ],
130 "produces": [
131 "application/octet-stream"
132 ],
133 "parameters": [
134 {
135 "name": "X-ECOMP-RequestID",
136 "in": "header",
137 "description": "X-ECOMP-RequestID header",
138 "required": false,
139 "type": "string"
140 },
141 {
142 "name": "X-ECOMP-InstanceID",
143 "in": "header",
144 "description": "X-ECOMP-InstanceID header",
145 "required": true,
146 "type": "string"
147 },
148 {
149 "name": "Accept",
150 "in": "header",
151 "description": "Determines the format of the body of the response",
152 "required": false,
153 "type": "string"
154 },
155 {
156 "name": "Authorization",
157 "in": "header",
158 "description": "The username and password",
159 "required": true,
160 "type": "string"
161 },
162 {
163 "name": "serviceName",
164 "in": "path",
165 "required": true,
166 "type": "string"
167 },
168 {
169 "name": "serviceVersion",
170 "in": "path",
171 "required": true,
172 "type": "string"
173 },
174 {
175 "name": "resourceInstanceName",
176 "in": "path",
177 "required": true,
178 "type": "string"
179 },
180 {
181 "name": "artifactName",
182 "in": "path",
183 "required": true,
184 "type": "string"
185 }
186 ],
187 "responses": {
188 "200": {
189 "description": "The artifact is found and streamed.",
190 "schema": {
191 "type": "string"
192 }
193 },
194 "400": {
195 "description": "Missing 'X-ECOMP-InstanceID' HTTP header - POL5001"
196 },
197 "401": {
198 "description": "ECOMP component should authenticate itself and to re-send again HTTP request with its Basic Authentication credentials - POL5002"
199 },
200 "403": {
201 "description": "ECOMP component is not authorized - POL5003"
202 },
203 "404": {
204 "description": "Specified artifact is not found - SVC4505"
205 },
206 "405": {
207 "description": "Method Not Allowed: Invalid HTTP method type used (PUT,DELETE,POST will be rejected) - POL4050"
208 },
209 "500": {
210 "description": "The GET request failed either due to internal SDC problem or Cambria Service failure. ECOMP Component should continue the attempts to get the needed information - POL5000"
211 }
212 }
213 }
214 },
215 "/v1/catalog/services/{serviceName}/{serviceVersion}/resources/{resourceName}/{resourceVersion}/artifacts/{artifactName}": {
216 "get": {
217 "tags": [
218 "Distribution Catalog Servlet"
219 ],
220 "summary": "Download resource artifact",
221 "description": "Returns downloaded artifact",
222 "operationId": "downloadResourceArtifact",
223 "consumes": [
224 "application/json"
225 ],
226 "produces": [
227 "application/octet-stream"
228 ],
229 "parameters": [
230 {
231 "name": "X-ECOMP-RequestID",
232 "in": "header",
233 "description": "X-ECOMP-RequestID header",
234 "required": false,
235 "type": "string"
236 },
237 {
238 "name": "X-ECOMP-InstanceID",
239 "in": "header",
240 "description": "X-ECOMP-InstanceID header",
241 "required": true,
242 "type": "string"
243 },
244 {
245 "name": "Accept",
246 "in": "header",
247 "description": "Determines the format of the body of the response",
248 "required": false,
249 "type": "string"
250 },
251 {
252 "name": "Authorization",
253 "in": "header",
254 "description": "The username and password",
255 "required": true,
256 "type": "string"
257 },
258 {
259 "name": "serviceName",
260 "in": "path",
261 "required": true,
262 "type": "string"
263 },
264 {
265 "name": "serviceVersion",
266 "in": "path",
267 "required": true,
268 "type": "string"
269 },
270 {
271 "name": "resourceName",
272 "in": "path",
273 "required": true,
274 "type": "string"
275 },
276 {
277 "name": "resourceVersion",
278 "in": "path",
279 "required": true,
280 "type": "string"
281 },
282 {
283 "name": "artifactName",
284 "in": "path",
285 "required": true,
286 "type": "string"
287 }
288 ],
289 "responses": {
290 "200": {
291 "description": "The artifact is found and streamed.",
292 "schema": {
293 "type": "string"
294 }
295 },
296 "400": {
297 "description": "Missing 'X-ECOMP-InstanceID' HTTP header - POL5001"
298 },
299 "401": {
300 "description": "ECOMP component should authenticate itself and to re-send again HTTP request with its Basic Authentication credentials - POL5002"
301 },
302 "403": {
303 "description": "ECOMP component is not authorized - POL5003"
304 },
305 "404": {
306 "description": "Specified artifact is not found - SVC4505"
307 },
308 "405": {
309 "description": "Method Not Allowed: Invalid HTTP method type used (PUT,DELETE,POST will be rejected) - POL4050"
310 },
311 "500": {
312 "description": "The GET request failed either due to internal SDC problem or Cambria Service failure. ECOMP Component should continue the attempts to get the needed information - POL5000"
313 }
314 }
315 }
316 },
317 "/v1/registerForDistribution": {
318 "post": {
319 "tags": [
320 "Distribution Servlet"
321 ],
322 "summary": "Subscription status",
323 "description": "Subscribes for distribution notifications",
324 "operationId": "registerForDistribution",
325 "consumes": [
326 "application/json"
327 ],
328 "produces": [
329 "application/json"
330 ],
331 "parameters": [
332 {
333 "name": "X-ECOMP-RequestID",
334 "in": "header",
335 "description": "X-ECOMP-RequestID header",
336 "required": false,
337 "type": "string"
338 },
339 {
340 "name": "X-ECOMP-InstanceID",
341 "in": "header",
342 "description": "X-ECOMP-InstanceID header",
343 "required": true,
344 "type": "string"
345 },
346 {
347 "name": "Accept",
348 "in": "header",
349 "description": "Determines the format of the body of the response",
350 "required": false,
351 "type": "string"
352 },
353 {
354 "name": "Content-Type",
355 "in": "header",
356 "description": "Determines the format of the body of the request",
357 "required": true,
358 "type": "string"
359 },
360 {
361 "name": "Content-Length",
362 "in": "header",
363 "description": "Length of the request body",
364 "required": true,
365 "type": "string"
366 },
367 {
368 "name": "Authorization",
369 "in": "header",
370 "description": "The username and password",
371 "required": true,
372 "type": "string"
373 },
374 {
375 "in": "body",
376 "name": "requestJson",
377 "description": "json describe the artifact",
378 "required": true,
379 "schema": {
380 "$ref": "#/definitions/RegistrationRequest"
381 }
382 }
383 ],
384 "responses": {
385 "200": {
386 "description": "ECOMP component is successfully registered for distribution",
387 "schema": {
388 "$ref": "#/definitions/TopicRegistrationResponse"
389 }
390 },
391 "400": {
392 "description": "Invalid Body : Specified 'distrEnvName' doesn’t exist - POL4137"
393 },
394 "401": {
395 "description": "ECOMP component should authenticate itself and to re-send again HTTP request with its Basic Authentication credentials - POL5002"
396 },
397 "403": {
398 "description": "ECOMP component is not authorized - POL5003"
399 },
400 "405": {
401 "description": "Method Not Allowed : Invalid HTTP method type used to register for distribution ( PUT,DELETE,GET will be rejected) - POL4050"
402 },
403 "500": {
404 "description": "The registration failed due to internal SDC problem or Cambria Service failure ECOMP Component should continue the attempts to register for distribution - POL5000"
405 }
406 }
407 }
408 },
409 "/v1/artifactTypes": {
410 "get": {
411 "tags": [
412 "Distribution Servlet"
413 ],
414 "summary": "Artifact types list",
415 "description": "Fetches available artifact types list",
416 "operationId": "getValidArtifactTypes",
417 "consumes": [
418 "application/json"
419 ],
420 "produces": [
421 "application/json"
422 ],
423 "parameters": [
424 {
425 "name": "X-ECOMP-RequestID",
426 "in": "header",
427 "description": "X-ECOMP-RequestID header",
428 "required": false,
429 "type": "string"
430 },
431 {
432 "name": "X-ECOMP-InstanceID",
433 "in": "header",
434 "description": "X-ECOMP-InstanceID header",
435 "required": true,
436 "type": "string"
437 },
438 {
439 "name": "Authorization",
440 "in": "header",
441 "description": "The username and password",
442 "required": true,
443 "type": "string"
444 },
445 {
446 "name": "Accept",
447 "in": "header",
448 "description": "The username and password",
449 "required": true,
450 "type": "string"
451 }
452 ],
453 "responses": {
454 "200": {
455 "description": "Artifact types list fetched successfully",
456 "schema": {
457 "type": "string"
458 }
459 },
460 "400": {
461 "description": "Missing 'X-ECOMP-InstanceID' HTTP header - POL5001"
462 },
463 "401": {
464 "description": "ECOMP component should authenticate itself and to re-send again HTTP request with its Basic Authentication credentials - POL5002"
465 },
466 "403": {
467 "description": "ECOMP component is not authorized - POL5003"
468 },
469 "405": {
470 "description": "Method Not Allowed : Invalid HTTP method type used to register for distribution ( POST,PUT,DELETE will be rejected) - POL4050"
471 },
472 "500": {
473 "description": "The registration failed due to internal SDC problem or Cambria Service failure ECOMP Component should continue the attempts to register for distribution - POL5000"
474 }
475 }
476 }
477 },
478 "/v1/unRegisterForDistribution": {
479 "post": {
480 "tags": [
481 "Distribution Servlet"
482 ],
483 "summary": "Subscription status",
484 "description": "Removes from subscription for distribution notifications",
485 "operationId": "unRegisterForDistribution",
486 "consumes": [
487 "application/json"
488 ],
489 "produces": [
490 "application/json"
491 ],
492 "parameters": [
493 {
494 "name": "X-ECOMP-RequestID",
495 "in": "header",
496 "description": "X-ECOMP-RequestID header",
497 "required": false,
498 "type": "string"
499 },
500 {
501 "name": "X-ECOMP-InstanceID",
502 "in": "header",
503 "description": "X-ECOMP-InstanceID header",
504 "required": true,
505 "type": "string"
506 },
507 {
508 "name": "Accept",
509 "in": "header",
510 "description": "Determines the format of the body of the response",
511 "required": false,
512 "type": "string"
513 },
514 {
515 "name": "Content-Type",
516 "in": "header",
517 "description": "Determines the format of the body of the request",
518 "required": true,
519 "type": "string"
520 },
521 {
522 "name": "Content-Length",
523 "in": "header",
524 "description": "Length of the request body",
525 "required": true,
526 "type": "string"
527 },
528 {
529 "name": "Authorization",
530 "in": "header",
531 "description": "The username and password",
532 "required": true,
533 "type": "string"
534 },
535 {
536 "in": "body",
537 "name": "requestJson",
538 "description": "json describe the artifact",
539 "required": true,
540 "schema": {
541 "$ref": "#/definitions/RegistrationRequest"
542 }
543 }
544 ],
545 "responses": {
546 "204": {
547 "description": "ECOMP component is successfully unregistered",
548 "schema": {
549 "$ref": "#/definitions/TopicUnregistrationResponse"
550 }
551 },
552 "400": {
553 "description": "Invalid Body : Specified 'distrEnvName' doesn’t exist - POL4137"
554 },
555 "401": {
556 "description": "ECOMP component should authenticate itself and to re-send again HTTP request with its Basic Authentication credentials - POL5002"
557 },
558 "403": {
559 "description": "ECOMP component is not authorized - POL5003"
560 },
561 "405": {
562 "description": "Method Not Allowed : Invalid HTTP method type used to register for distribution ( PUT,DELETE,GET will be rejected) - POL4050"
563 },
564 "500": {
565 "description": "The registration failed due to internal SDC problem or Cambria Service failure ECOMP Component should continue the attempts to register for distribution - POL5000"
566 }
567 }
568 }
569 },
570 "/v1/distributionUebCluster": {
571 "get": {
572 "tags": [
573 "Distribution Servlet"
574 ],
575 "summary": "UEB Server List",
576 "description": "return the available UEB Server List",
577 "operationId": "getUebServerList",
578 "consumes": [
579 "application/json"
580 ],
581 "produces": [
582 "application/json"
583 ],
584 "parameters": [
585 {
586 "name": "X-ECOMP-RequestID",
587 "in": "header",
588 "description": "X-ECOMP-RequestID header",
589 "required": false,
590 "type": "string"
591 },
592 {
593 "name": "X-ECOMP-InstanceID",
594 "in": "header",
595 "description": "X-ECOMP-InstanceID header",
596 "required": true,
597 "type": "string"
598 },
599 {
600 "name": "Accept",
601 "in": "header",
602 "description": "Determines the format of the body of the response",
603 "required": false,
604 "type": "string"
605 },
606 {
607 "name": "Authorization",
608 "in": "header",
609 "description": "The username and password",
610 "required": true,
611 "type": "string"
612 }
613 ],
614 "responses": {
615 "200": {
616 "description": "ECOMP component is authenticated and list of Cambria API server’s FQDNs is returned",
617 "schema": {
618 "$ref": "#/definitions/ServerListResponse"
619 }
620 },
621 "400": {
622 "description": "Missing 'X-ECOMP-InstanceID' HTTP header - POL5001"
623 },
624 "401": {
625 "description": "ECOMP component should authenticate itself and to re-send again HTTP request with its credentials for Basic Authentication - POL5002"
626 },
627 "403": {
628 "description": "ECOMP component is not authorized - POL5003"
629 },
630 "405": {
631 "description": "Method Not Allowed: Invalid HTTP method type used ( PUT,DELETE,POST will be rejected) - POL4050"
632 },
633 "500": {
634 "description": "The GET request failed either due to internal SDC problem or Cambria Service failure. ECOMP Component should continue the attempts to get the needed information - POL5000"
635 }
636 }
637 }
638 },
639 "/v1/catalog/{assetType}/{uuid}/artifacts": {
640 "post": {
641 "tags": [
642 "Artifact External Servlet"
643 ],
644 "summary": "uploads of artifact to a resource or service",
645 "description": "uploads of artifact to a resource or service",
646 "operationId": "uploadArtifact",
647 "produces": [
648 "application/json"
649 ],
650 "parameters": [
651 {
652 "name": "Content-Type",
653 "in": "header",
654 "description": "Determines the format of the body of the request",
655 "required": true,
656 "type": "string"
657 },
658 {
659 "name": "Content-MD5",
660 "in": "header",
661 "description": "The value for this header must be the MD5 checksum over the whole json body",
662 "required": true,
663 "type": "string"
664 },
665 {
666 "name": "USER_ID",
667 "in": "header",
668 "description": "The user ID of the DCAE Designer. This user must also have Designer role in SDC",
669 "required": true,
670 "type": "string"
671 },
672 {
673 "name": "X-ECOMP-RequestID",
674 "in": "header",
675 "description": "X-ECOMP-RequestID header",
676 "required": false,
677 "type": "string"
678 },
679 {
680 "name": "X-ECOMP-InstanceID",
681 "in": "header",
682 "description": "X-ECOMP-InstanceID header",
683 "required": true,
684 "type": "string"
685 },
686 {
687 "name": "Accept",
688 "in": "header",
689 "description": "Determines the format of the body of the response",
690 "required": false,
691 "type": "string"
692 },
693 {
694 "name": "Authorization",
695 "in": "header",
696 "description": "The username and password",
697 "required": true,
698 "type": "string"
699 },
700 {
701 "name": "assetType",
702 "in": "path",
703 "description": "The requested asset type",
704 "required": true,
705 "type": "string",
706 "enum": [
707 "resources",
708 "services"
709 ]
710 },
711 {
712 "name": "uuid",
713 "in": "path",
714 "description": "The uuid of the asset as published in the metadata",
715 "required": true,
716 "type": "string"
717 },
718 {
719 "in": "body",
720 "name": "body",
721 "description": "json describe the artifact",
722 "required": true,
723 "schema": {
724 "$ref": "#/definitions/ArtifactDefinition"
725 }
726 }
727 ],
728 "responses": {
729 "200": {
730 "description": "Artifact uploaded",
731 "schema": {
732 "$ref": "#/definitions/ArtifactDefinition"
733 }
734 },
735 "400": {
736 "description": "Restricted Operation – the user provided does not have role of Designer or the asset is being used by another designer - SVC4301"
737 },
738 "401": {
739 "description": "ECOMP component should authenticate itself and to re-send again HTTP request with its Basic Authentication credentials - POL5002"
740 },
741 "403": {
742 "description": "ECOMP component is not authorized - POL5003"
743 },
744 "404": {
745 "description": "Specified resource is not found - SVC4063"
746 },
747 "405": {
748 "description": "Method Not Allowed: Invalid HTTP method type used (PUT,DELETE,POST will be rejected) - POL4050"
749 },
750 "500": {
751 "description": "The GET request failed either due to internal SDC problem or Cambria Service failure. ECOMP Component should continue the attempts to get the needed information - POL5000"
752 }
753 }
754 }
755 },
756 "/v1/catalog/{assetType}/{uuid}/artifacts/{artifactUUID}": {
757 "get": {
758 "tags": [
759 "Artifact External Servlet"
760 ],
761 "summary": "Download component artifact",
762 "description": "Returns downloaded artifact",
763 "operationId": "downloadComponentArtifact",
764 "produces": [
765 "application/octet-stream"
766 ],
767 "parameters": [
768 {
769 "name": "USER_ID",
770 "in": "header",
771 "description": "The user ID of the DCAE Designer. This user must also have Designer role in SDC",
772 "required": true,
773 "type": "string"
774 },
775 {
776 "name": "X-ECOMP-RequestID",
777 "in": "header",
778 "description": "X-ECOMP-RequestID header",
779 "required": false,
780 "type": "string"
781 },
782 {
783 "name": "X-ECOMP-InstanceID",
784 "in": "header",
785 "description": "X-ECOMP-InstanceID header",
786 "required": true,
787 "type": "string"
788 },
789 {
790 "name": "Accept",
791 "in": "header",
792 "description": "Determines the format of the body of the response",
793 "required": false,
794 "type": "string"
795 },
796 {
797 "name": "Authorization",
798 "in": "header",
799 "description": "The username and password",
800 "required": true,
801 "type": "string"
802 },
803 {
804 "name": "assetType",
805 "in": "path",
806 "description": "The requested asset type",
807 "required": true,
808 "type": "string",
809 "enum": [
810 "resources",
811 "services"
812 ]
813 },
814 {
815 "name": "uuid",
816 "in": "path",
817 "description": "The uuid of the asset as published in the metadata",
818 "required": true,
819 "type": "string"
820 },
821 {
822 "name": "artifactUUID",
823 "in": "path",
824 "description": "The uuid of the artifact as published in the asset detailed metadata or in the response of the upload / update operation",
825 "required": true,
826 "type": "string"
827 }
828 ],
829 "responses": {
830 "200": {
831 "description": "Artifact downloaded",
832 "schema": {
833 "type": "string"
834 }
835 },
836 "400": {
837 "description": "Missing 'X-ECOMP-InstanceID' HTTP header - POL5001"
838 },
839 "401": {
840 "description": "ECOMP component should authenticate itself and to re-send again HTTP request with its Basic Authentication credentials - POL5002"
841 },
842 "403": {
843 "description": "ECOMP component is not authorized - POL5003"
844 },
845 "404": {
846 "description": "Artifact was not found - SVC4505"
847 },
848 "405": {
849 "description": "Method Not Allowed: Invalid HTTP method type used (PUT,DELETE,POST will be rejected) - POL4050"
850 },
851 "500": {
852 "description": "The GET request failed either due to internal SDC problem or Cambria Service failure. ECOMP Component should continue the attempts to get the needed information - POL5000"
853 }
854 }
855 },
856 "post": {
857 "tags": [
858 "Artifact External Servlet"
859 ],
860 "summary": "updates an artifact on a resource or service",
861 "description": "uploads of artifact to a resource or service",
862 "operationId": "updateArtifact",
863 "produces": [
864 "application/json"
865 ],
866 "parameters": [
867 {
868 "name": "Content-Type",
869 "in": "header",
870 "description": "Determines the format of the body of the request",
871 "required": true,
872 "type": "string"
873 },
874 {
875 "name": "Content-MD5",
876 "in": "header",
877 "description": "The value for this header must be the MD5 checksum over the whole json body",
878 "required": true,
879 "type": "string"
880 },
881 {
882 "name": "USER_ID",
883 "in": "header",
884 "description": "The user ID of the DCAE Designer. This user must also have Designer role in SDC",
885 "required": true,
886 "type": "string"
887 },
888 {
889 "name": "X-ECOMP-RequestID",
890 "in": "header",
891 "description": "X-ECOMP-RequestID header",
892 "required": false,
893 "type": "string"
894 },
895 {
896 "name": "X-ECOMP-InstanceID",
897 "in": "header",
898 "description": "X-ECOMP-InstanceID header",
899 "required": true,
900 "type": "string"
901 },
902 {
903 "name": "Accept",
904 "in": "header",
905 "description": "Determines the format of the body of the response",
906 "required": false,
907 "type": "string"
908 },
909 {
910 "name": "Authorization",
911 "in": "header",
912 "description": "The username and password",
913 "required": true,
914 "type": "string"
915 },
916 {
917 "name": "assetType",
918 "in": "path",
919 "description": "The requested asset type",
920 "required": true,
921 "type": "string",
922 "enum": [
923 "resources",
924 "services"
925 ]
926 },
927 {
928 "name": "uuid",
929 "in": "path",
930 "description": "The uuid of the asset as published in the metadata",
931 "required": true,
932 "type": "string"
933 },
934 {
935 "name": "artifactUUID",
936 "in": "path",
937 "description": "The uuid of the artifact as published in the asset detailed metadata or in the response of the upload / update operation",
938 "required": true,
939 "type": "string"
940 },
941 {
942 "in": "body",
943 "name": "body",
944 "description": "json describe the artifact",
945 "required": true,
946 "schema": {
947 "$ref": "#/definitions/ArtifactDefinition"
948 }
949 }
950 ],
951 "responses": {
952 "200": {
953 "description": "Artifact updated",
954 "schema": {
955 "$ref": "#/definitions/ArtifactDefinition"
956 }
957 },
958 "400": {
959 "description": "Artifact name is missing in input - SVC4128"
960 },
961 "401": {
962 "description": "ECOMP component should authenticate itself and to re-send again HTTP request with its Basic Authentication credentials - POL5002"
963 },
964 "403": {
965 "description": "Asset is being edited by different user. Only one user can checkout and edit an asset on given time. The asset will be available for checkout after the other user will checkin the asset - SVC4086"
966 },
967 "404": {
968 "description": "Specified resource is not found - SVC4063"
969 },
970 "405": {
971 "description": "Method Not Allowed: Invalid HTTP method type used (PUT,DELETE,POST will be rejected) - POL4050"
972 },
973 "409": {
974 "description": "Restricted Operation – the user provided does not have role of Designer or the asset is being used by another designer - SVC4301"
975 },
976 "500": {
977 "description": "The GET request failed either due to internal SDC problem or Cambria Service failure. ECOMP Component should continue the attempts to get the needed information - POL5000"
978 }
979 }
980 },
981 "delete": {
982 "tags": [
983 "Artifact External Servlet"
984 ],
985 "summary": "deletes an artifact of a resource or service",
986 "description": "deletes an artifact of a resource or service",
987 "operationId": "deleteArtifact",
988 "produces": [
989 "application/json"
990 ],
991 "parameters": [
992 {
993 "name": "USER_ID",
994 "in": "header",
995 "description": "The user ID of the DCAE Designer. This user must also have Designer role in SDC",
996 "required": true,
997 "type": "string"
998 },
999 {
1000 "name": "X-ECOMP-RequestID",
1001 "in": "header",
1002 "description": "X-ECOMP-RequestID header",
1003 "required": false,
1004 "type": "string"
1005 },
1006 {
1007 "name": "X-ECOMP-InstanceID",
1008 "in": "header",
1009 "description": "X-ECOMP-InstanceID header",
1010 "required": true,
1011 "type": "string"
1012 },
1013 {
1014 "name": "Accept",
1015 "in": "header",
1016 "description": "Determines the format of the body of the response",
1017 "required": false,
1018 "type": "string"
1019 },
1020 {
1021 "name": "Authorization",
1022 "in": "header",
1023 "description": "The username and password",
1024 "required": true,
1025 "type": "string"
1026 },
1027 {
1028 "name": "assetType",
1029 "in": "path",
1030 "description": "The requested asset type",
1031 "required": true,
1032 "type": "string",
1033 "enum": [
1034 "resources",
1035 "services"
1036 ]
1037 },
1038 {
1039 "name": "uuid",
1040 "in": "path",
1041 "description": "The uuid of the asset as published in the metadata",
1042 "required": true,
1043 "type": "string"
1044 },
1045 {
1046 "name": "artifactUUID",
1047 "in": "path",
1048 "description": "The uuid of the artifact as published in the asset detailed metadata or in the response of the upload / update operation",
1049 "required": true,
1050 "type": "string"
1051 }
1052 ],
1053 "responses": {
1054 "200": {
1055 "description": "Artifact deleted",
1056 "schema": {
1057 "$ref": "#/definitions/ArtifactDefinition"
1058 }
1059 },
1060 "400": {
1061 "description": "Artifact name is missing in input - SVC4128"
1062 },
1063 "401": {
1064 "description": "ECOMP component should authenticate itself and to re-send again HTTP request with its Basic Authentication credentials - POL5002"
1065 },
1066 "403": {
1067 "description": "Asset is being edited by different user. Only one user can checkout and edit an asset on given time. The asset will be available for checkout after the other user will checkin the asset - SVC4086"
1068 },
1069 "404": {
1070 "description": "Specified resource is not found - SVC4063"
1071 },
1072 "405": {
1073 "description": "Method Not Allowed: Invalid HTTP method type used (PUT,DELETE,POST will be rejected) - POL4050"
1074 },
1075 "409": {
1076 "description": "Restricted Operation – the user provided does not have role of Designer or the asset is being used by another designer - SVC4301"
1077 },
1078 "500": {
1079 "description": "The GET request failed either due to internal SDC problem or Cambria Service failure. ECOMP Component should continue the attempts to get the needed information - POL5000"
1080 }
1081 }
1082 }
1083 },
1084 "/v1/catalog/{assetType}/{uuid}/resourceInstances/{resourceInstanceName}/artifacts": {
1085 "post": {
1086 "tags": [
1087 "Artifact External Servlet"
1088 ],
1089 "summary": "uploads an artifact to a resource instance",
1090 "description": "uploads an artifact to a resource instance",
1091 "operationId": "uploadArtifactToInstance",
1092 "produces": [
1093 "application/json"
1094 ],
1095 "parameters": [
1096 {
1097 "name": "Content-Type",
1098 "in": "header",
1099 "description": "Determines the format of the body of the request",
1100 "required": true,
1101 "type": "string"
1102 },
1103 {
1104 "name": "Content-MD5",
1105 "in": "header",
1106 "description": "The value for this header must be the MD5 checksum over the whole json body",
1107 "required": true,
1108 "type": "string"
1109 },
1110 {
1111 "name": "USER_ID",
1112 "in": "header",
1113 "description": "The user ID of the DCAE Designer. This user must also have Designer role in SDC",
1114 "required": true,
1115 "type": "string"
1116 },
1117 {
1118 "name": "X-ECOMP-RequestID",
1119 "in": "header",
1120 "description": "X-ECOMP-RequestID header",
1121 "required": false,
1122 "type": "string"
1123 },
1124 {
1125 "name": "X-ECOMP-InstanceID",
1126 "in": "header",
1127 "description": "X-ECOMP-InstanceID header",
1128 "required": true,
1129 "type": "string"
1130 },
1131 {
1132 "name": "Accept",
1133 "in": "header",
1134 "description": "Determines the format of the body of the response",
1135 "required": false,
1136 "type": "string"
1137 },
1138 {
1139 "name": "Authorization",
1140 "in": "header",
1141 "description": "The username and password",
1142 "required": true,
1143 "type": "string"
1144 },
1145 {
1146 "name": "assetType",
1147 "in": "path",
1148 "description": "The requested asset type",
1149 "required": true,
1150 "type": "string",
1151 "enum": [
1152 "resources",
1153 "services"
1154 ]
1155 },
1156 {
1157 "name": "uuid",
1158 "in": "path",
1159 "description": "The uuid of the asset as published in the metadata",
1160 "required": true,
1161 "type": "string"
1162 },
1163 {
1164 "name": "resourceInstanceName",
1165 "in": "path",
1166 "description": "The component instance name (as publishedin the response of the detailed query)",
1167 "required": true,
1168 "type": "string"
1169 },
1170 {
1171 "in": "body",
1172 "name": "body",
1173 "description": "json describe the artifact",
1174 "required": true,
1175 "schema": {
1176 "$ref": "#/definitions/ArtifactDefinition"
1177 }
1178 }
1179 ],
1180 "responses": {
1181 "200": {
1182 "description": "Artifact uploaded",
1183 "schema": {
1184 "$ref": "#/definitions/ArtifactDefinition"
1185 }
1186 },
1187 "400": {
1188 "description": "Restricted Operation – the user provided does not have role of Designer or the asset is being used by another designer - SVC4301"
1189 },
1190 "401": {
1191 "description": "ECOMP component should authenticate itself and to re-send again HTTP request with its Basic Authentication credentials - POL5002"
1192 },
1193 "403": {
1194 "description": "ECOMP component is not authorized - POL5003"
1195 },
1196 "404": {
1197 "description": "Specified resource is not found - SVC4063"
1198 },
1199 "405": {
1200 "description": "Method Not Allowed: Invalid HTTP method type used (PUT,DELETE,POST will be rejected) - POL4050"
1201 },
1202 "500": {
1203 "description": "The GET request failed either due to internal SDC problem or Cambria Service failure. ECOMP Component should continue the attempts to get the needed information - POL5000"
1204 }
1205 }
1206 }
1207 },
1208 "/v1/catalog/{assetType}/{uuid}/resourceInstances/{resourceInstanceName}/artifacts/{artifactUUID}": {
1209 "get": {
1210 "tags": [
1211 "Artifact External Servlet"
1212 ],
1213 "summary": "Download resource instance artifact",
1214 "description": "Returns downloaded artifact",
1215 "operationId": "downloadResourceInstanceArtifact",
1216 "produces": [
1217 "application/octet-stream"
1218 ],
1219 "parameters": [
1220 {
1221 "name": "USER_ID",
1222 "in": "header",
1223 "description": "The user ID of the DCAE Designer. This user must also have Designer role in SDC",
1224 "required": true,
1225 "type": "string"
1226 },
1227 {
1228 "name": "X-ECOMP-RequestID",
1229 "in": "header",
1230 "description": "X-ECOMP-RequestID header",
1231 "required": false,
1232 "type": "string"
1233 },
1234 {
1235 "name": "X-ECOMP-InstanceID",
1236 "in": "header",
1237 "description": "X-ECOMP-InstanceID header",
1238 "required": true,
1239 "type": "string"
1240 },
1241 {
1242 "name": "Accept",
1243 "in": "header",
1244 "description": "Determines the format of the body of the response",
1245 "required": false,
1246 "type": "string"
1247 },
1248 {
1249 "name": "Authorization",
1250 "in": "header",
1251 "description": "The username and password",
1252 "required": true,
1253 "type": "string"
1254 },
1255 {
1256 "name": "assetType",
1257 "in": "path",
1258 "description": "The requested asset type",
1259 "required": true,
1260 "type": "string",
1261 "enum": [
1262 "resources",
1263 "services"
1264 ]
1265 },
1266 {
1267 "name": "uuid",
1268 "in": "path",
1269 "description": "The uuid of the asset as published in the metadata",
1270 "required": true,
1271 "type": "string"
1272 },
1273 {
1274 "name": "artifactUUID",
1275 "in": "path",
1276 "description": "The uuid of the artifact as published in the asset detailed metadata or in the response of the upload / update operation",
1277 "required": true,
1278 "type": "string"
1279 },
1280 {
1281 "name": "resourceInstanceName",
1282 "in": "path",
1283 "description": "The component instance name (as publishedin the response of the detailed query)",
1284 "required": true,
1285 "type": "string"
1286 }
1287 ],
1288 "responses": {
1289 "200": {
1290 "description": "Artifact downloaded",
1291 "schema": {
1292 "type": "string"
1293 }
1294 },
1295 "400": {
1296 "description": "Missing 'X-ECOMP-InstanceID' HTTP header - POL5001"
1297 },
1298 "401": {
1299 "description": "ECOMP component should authenticate itself and to re-send again HTTP request with its Basic Authentication credentials - POL5002"
1300 },
1301 "403": {
1302 "description": "ECOMP component is not authorized - POL5003"
1303 },
1304 "404": {
1305 "description": "Artifact was not found - SVC4505"
1306 },
1307 "405": {
1308 "description": "Method Not Allowed: Invalid HTTP method type used (PUT,DELETE,POST will be rejected) - POL4050"
1309 },
1310 "500": {
1311 "description": "The GET request failed either due to internal SDC problem or Cambria Service failure. ECOMP Component should continue the attempts to get the needed information - POL5000"
1312 }
1313 }
1314 },
1315 "post": {
1316 "tags": [
1317 "Artifact External Servlet"
1318 ],
1319 "summary": "updates an artifact on a resource instance",
1320 "description": "uploads of artifact to a resource or service",
1321 "operationId": "updateArtifactOnResourceInstance",
1322 "produces": [
1323 "application/json"
1324 ],
1325 "parameters": [
1326 {
1327 "name": "Content-Type",
1328 "in": "header",
1329 "description": "Determines the format of the body of the request",
1330 "required": true,
1331 "type": "string"
1332 },
1333 {
1334 "name": "Content-MD5",
1335 "in": "header",
1336 "description": "The value for this header must be the MD5 checksum over the whole json body",
1337 "required": true,
1338 "type": "string"
1339 },
1340 {
1341 "name": "USER_ID",
1342 "in": "header",
1343 "description": "The user ID of the DCAE Designer. This user must also have Designer role in SDC",
1344 "required": true,
1345 "type": "string"
1346 },
1347 {
1348 "name": "X-ECOMP-RequestID",
1349 "in": "header",
1350 "description": "X-ECOMP-RequestID header",
1351 "required": false,
1352 "type": "string"
1353 },
1354 {
1355 "name": "X-ECOMP-InstanceID",
1356 "in": "header",
1357 "description": "X-ECOMP-InstanceID header",
1358 "required": true,
1359 "type": "string"
1360 },
1361 {
1362 "name": "Accept",
1363 "in": "header",
1364 "description": "Determines the format of the body of the response",
1365 "required": false,
1366 "type": "string"
1367 },
1368 {
1369 "name": "Authorization",
1370 "in": "header",
1371 "description": "The username and password",
1372 "required": true,
1373 "type": "string"
1374 },
1375 {
1376 "name": "assetType",
1377 "in": "path",
1378 "description": "The requested asset type",
1379 "required": true,
1380 "type": "string",
1381 "enum": [
1382 "resources",
1383 "services"
1384 ]
1385 },
1386 {
1387 "name": "uuid",
1388 "in": "path",
1389 "description": "The uuid of the asset as published in the metadata",
1390 "required": true,
1391 "type": "string"
1392 },
1393 {
1394 "name": "artifactUUID",
1395 "in": "path",
1396 "description": "The uuid of the artifact as published in the asset detailed metadata or in the response of the upload / update operation",
1397 "required": true,
1398 "type": "string"
1399 },
1400 {
1401 "name": "resourceInstanceName",
1402 "in": "path",
1403 "description": "The component instance name (as publishedin the response of the detailed query)",
1404 "required": true,
1405 "type": "string"
1406 },
1407 {
1408 "in": "body",
1409 "name": "body",
1410 "description": "json describe the artifact",
1411 "required": true,
1412 "schema": {
1413 "$ref": "#/definitions/ArtifactDefinition"
1414 }
1415 }
1416 ],
1417 "responses": {
1418 "200": {
1419 "description": "Artifact updated",
1420 "schema": {
1421 "$ref": "#/definitions/ArtifactDefinition"
1422 }
1423 },
1424 "400": {
1425 "description": "Artifact name is missing in input - SVC4128"
1426 },
1427 "401": {
1428 "description": "ECOMP component should authenticate itself and to re-send again HTTP request with its Basic Authentication credentials - POL5002"
1429 },
1430 "403": {
1431 "description": "Asset is being edited by different user. Only one user can checkout and edit an asset on given time. The asset will be available for checkout after the other user will checkin the asset - SVC4086"
1432 },
1433 "404": {
1434 "description": "Specified resource is not found - SVC4063"
1435 },
1436 "405": {
1437 "description": "Method Not Allowed: Invalid HTTP method type used (PUT,DELETE,POST will be rejected) - POL4050"
1438 },
1439 "409": {
1440 "description": "Restricted Operation – the user provided does not have role of Designer or the asset is being used by another designer - SVC4301"
1441 },
1442 "500": {
1443 "description": "The GET request failed either due to internal SDC problem or Cambria Service failure. ECOMP Component should continue the attempts to get the needed information - POL5000"
1444 }
1445 }
1446 },
1447 "delete": {
1448 "tags": [
1449 "Artifact External Servlet"
1450 ],
1451 "summary": "deletes an artifact of a resource insatnce",
1452 "description": "deletes an artifact of a resource insatnce",
1453 "operationId": "deleteArtifactOnResourceInstance",
1454 "produces": [
1455 "application/json"
1456 ],
1457 "parameters": [
1458 {
1459 "name": "USER_ID",
1460 "in": "header",
1461 "description": "The user ID of the DCAE Designer. This user must also have Designer role in SDC",
1462 "required": true,
1463 "type": "string"
1464 },
1465 {
1466 "name": "X-ECOMP-RequestID",
1467 "in": "header",
1468 "description": "X-ECOMP-RequestID header",
1469 "required": false,
1470 "type": "string"
1471 },
1472 {
1473 "name": "X-ECOMP-InstanceID",
1474 "in": "header",
1475 "description": "X-ECOMP-InstanceID header",
1476 "required": true,
1477 "type": "string"
1478 },
1479 {
1480 "name": "Accept",
1481 "in": "header",
1482 "description": "Determines the format of the body of the response",
1483 "required": false,
1484 "type": "string"
1485 },
1486 {
1487 "name": "Authorization",
1488 "in": "header",
1489 "description": "The username and password",
1490 "required": true,
1491 "type": "string"
1492 },
1493 {
1494 "name": "assetType",
1495 "in": "path",
1496 "description": "The requested asset type",
1497 "required": true,
1498 "type": "string",
1499 "enum": [
1500 "resources",
1501 "services"
1502 ]
1503 },
1504 {
1505 "name": "uuid",
1506 "in": "path",
1507 "description": "The uuid of the asset as published in the metadata",
1508 "required": true,
1509 "type": "string"
1510 },
1511 {
1512 "name": "artifactUUID",
1513 "in": "path",
1514 "description": "The uuid of the artifact as published in the asset detailed metadata or in the response of the upload / update operation",
1515 "required": true,
1516 "type": "string"
1517 },
1518 {
1519 "name": "resourceInstanceName",
1520 "in": "path",
1521 "description": "The component instance name (as publishedin the response of the detailed query)",
1522 "required": true,
1523 "type": "string"
1524 }
1525 ],
1526 "responses": {
1527 "200": {
1528 "description": "Artifact deleted",
1529 "schema": {
1530 "$ref": "#/definitions/ArtifactDefinition"
1531 }
1532 },
1533 "400": {
1534 "description": "Artifact name is missing in input - SVC4128"
1535 },
1536 "401": {
1537 "description": "ECOMP component should authenticate itself and to re-send again HTTP request with its Basic Authentication credentials - POL5002"
1538 },
1539 "403": {
1540 "description": "Asset is being edited by different user. Only one user can checkout and edit an asset on given time. The asset will be available for checkout after the other user will checkin the asset - SVC4086"
1541 },
1542 "404": {
1543 "description": "Specified resource is not found - SVC4063"
1544 },
1545 "405": {
1546 "description": "Method Not Allowed: Invalid HTTP method type used (PUT,DELETE,POST will be rejected) - POL4050"
1547 },
1548 "409": {
1549 "description": "Restricted Operation – the user provided does not have role of Designer or the asset is being used by another designer - SVC4301"
1550 },
1551 "500": {
1552 "description": "The GET request failed either due to internal SDC problem or Cambria Service failure. ECOMP Component should continue the attempts to get the needed information - POL5000"
1553 }
1554 }
1555 }
1556 },
1557 "/v1/catalog/resources/{uuid}/interfaces/{operationUUID}/artifacts/{artifactUUID}": {
1558 "post": {
1559 "tags": [
1560 "Artifact External Servlet"
1561 ],
1562 "summary": "uploads of artifact to VF operation workflow",
1563 "description": "uploads of artifact to VF operation workflow",
1564 "operationId": "uploadInterfaceOperationArtifact",
1565 "produces": [
1566 "application/json"
1567 ],
1568 "parameters": [
1569 {
1570 "name": "Content-Type",
1571 "in": "header",
1572 "description": "Determines the format of the body of the request",
1573 "required": true,
1574 "type": "string"
1575 },
1576 {
1577 "name": "Content-MD5",
1578 "in": "header",
1579 "description": "The value for this header must be the MD5 checksum over the whole json body",
1580 "required": true,
1581 "type": "string"
1582 },
1583 {
1584 "name": "USER_ID",
1585 "in": "header",
1586 "description": "The user ID of the DCAE Designer. This user must also have Designer role in SDC",
1587 "required": true,
1588 "type": "string"
1589 },
1590 {
1591 "name": "X-ECOMP-RequestID",
1592 "in": "header",
1593 "description": "X-ECOMP-RequestID header",
1594 "required": false,
1595 "type": "string"
1596 },
1597 {
1598 "name": "X-ECOMP-InstanceID",
1599 "in": "header",
1600 "description": "X-ECOMP-InstanceID header",
1601 "required": true,
1602 "type": "string"
1603 },
1604 {
1605 "name": "Accept",
1606 "in": "header",
1607 "description": "Determines the format of the body of the response",
1608 "required": false,
1609 "type": "string"
1610 },
1611 {
1612 "name": "Authorization",
1613 "in": "header",
1614 "description": "The username and password",
1615 "required": true,
1616 "type": "string"
1617 },
1618 {
1619 "name": "uuid",
1620 "in": "path",
1621 "description": "The uuid of the asset as published in the metadata",
1622 "required": true,
1623 "type": "string"
1624 },
1625 {
1626 "name": "operationUUID",
1627 "in": "path",
1628 "description": "The uuid of the operation",
1629 "required": true,
1630 "type": "string"
1631 },
1632 {
1633 "name": "artifactUUID",
1634 "in": "path",
1635 "description": "The uuid of the artifact",
1636 "required": true,
1637 "type": "string"
1638 },
1639 {
1640 "in": "body",
1641 "name": "body",
1642 "description": "json describe the artifact",
1643 "required": true,
1644 "schema": {
1645 "$ref": "#/definitions/ArtifactDefinition"
1646 }
1647 }
1648 ],
1649 "responses": {
1650 "200": {
1651 "description": "Artifact uploaded",
1652 "schema": {
1653 "$ref": "#/definitions/ArtifactDefinition"
1654 }
1655 },
1656 "400": {
1657 "description": "Restricted Operation – the user provided does not have role of Designer or the asset is being used by another designer - SVC4301"
1658 },
1659 "401": {
1660 "description": "ECOMP component should authenticate itself and to re-send again HTTP request with its Basic Authentication credentials - POL5002"
1661 },
1662 "403": {
1663 "description": "ECOMP component is not authorized - POL5003"
1664 },
1665 "404": {
1666 "description": "Specified resource is not found - SVC4063"
1667 },
1668 "405": {
1669 "description": "Method Not Allowed: Invalid HTTP method type used (PUT,DELETE,POST will be rejected) - POL4050"
1670 },
1671 "500": {
1672 "description": "The GET request failed either due to internal SDC problem or Cambria Service failure. ECOMP Component should continue the attempts to get the needed information - POL5000"
1673 }
1674 }
1675 }
1676 },
1677 "/v1/catalog/{assetType}": {
1678 "get": {
1679 "tags": [
1680 "Asset Metadata External Servlet"
1681 ],
1682 "summary": "Fetch list of assets",
1683 "description": "Returns list of assets",
1684 "operationId": "getAssetListExternal",
1685 "produces": [
1686 "application/json"
1687 ],
1688 "parameters": [
1689 {
1690 "name": "X-ECOMP-RequestID",
1691 "in": "header",
1692 "description": "X-ECOMP-RequestID header",
1693 "required": false,
1694 "type": "string"
1695 },
1696 {
1697 "name": "X-ECOMP-InstanceID",
1698 "in": "header",
1699 "description": "X-ECOMP-InstanceID header",
1700 "required": true,
1701 "type": "string"
1702 },
1703 {
1704 "name": "Accept",
1705 "in": "header",
1706 "description": "Determines the format of the body of the response",
1707 "required": false,
1708 "type": "string"
1709 },
1710 {
1711 "name": "Authorization",
1712 "in": "header",
1713 "description": "The username and password",
1714 "required": true,
1715 "type": "string"
1716 },
1717 {
1718 "name": "assetType",
1719 "in": "path",
1720 "description": "The requested asset type",
1721 "required": true,
1722 "type": "string",
1723 "enum": [
1724 "resources",
1725 "services"
1726 ]
1727 },
1728 {
1729 "name": "category",
1730 "in": "query",
1731 "description": "The filter key (resourceType only for resources)",
1732 "required": false,
1733 "type": "string"
1734 },
1735 {
1736 "name": "subCategory",
1737 "in": "query",
1738 "description": "The filter key (resourceType only for resources)",
1739 "required": false,
1740 "type": "string"
1741 },
1742 {
1743 "name": "distributionStatus",
1744 "in": "query",
1745 "description": "The filter key (resourceType only for resources)",
1746 "required": false,
1747 "type": "string"
1748 },
1749 {
1750 "name": "resourceType",
1751 "in": "query",
1752 "description": "The filter key (resourceType only for resources)",
1753 "required": false,
1754 "type": "string"
1755 }
1756 ],
1757 "responses": {
1758 "200": {
1759 "description": "ECOMP component is authenticated and list of Catalog Assets Metadata is returned",
1760 "schema": {
1761 "type": "array",
1762 "items": {
1763 "$ref": "#/definitions/AssetMetadata"
1764 }
1765 }
1766 },
1767 "400": {
1768 "description": "Missing 'X-ECOMP-InstanceID' HTTP header - POL5001"
1769 },
1770 "401": {
1771 "description": "ECOMP component should authenticate itself and to re-send again HTTP request with its Basic Authentication credentials - POL5002"
1772 },
1773 "403": {
1774 "description": "ECOMP component is not authorized - POL5003"
1775 },
1776 "405": {
1777 "description": "Method Not Allowed : Invalid HTTP method type used ( PUT,DELETE,POST will be rejected) - POL4050"
1778 },
1779 "500": {
1780 "description": "The GET request failed either due to internal SDC problem. ECOMP Component should continue the attempts to get the needed information - POL5000"
1781 }
1782 }
1783 },
1784 "post": {
1785 "tags": [
1786 "CRUD External Servlet"
1787 ],
Divyang Patelc2a53cb2019-10-08 15:19:53 +11001788 "summary": "creates a resource or service",
1789 "description": "Creates a resource or service",
1790 "operationId": "createComponentExternal",
Michael Landodb0e8982018-06-06 11:44:25 +03001791 "consumes": [
1792 "application/json"
1793 ],
1794 "produces": [
1795 "application/json"
1796 ],
1797 "parameters": [
1798 {
1799 "name": "Content-Type",
1800 "in": "header",
1801 "description": "Determines the format of the body of the request",
1802 "required": true,
1803 "type": "string"
1804 },
1805 {
1806 "name": "USER_ID",
1807 "in": "header",
1808 "description": "The user id",
1809 "required": true,
1810 "type": "string"
1811 },
1812 {
1813 "name": "X-ECOMP-RequestID",
1814 "in": "header",
1815 "description": "X-ECOMP-RequestID header",
1816 "required": false,
1817 "type": "string"
1818 },
1819 {
1820 "name": "X-ECOMP-InstanceID",
1821 "in": "header",
1822 "description": "X-ECOMP-InstanceID header",
1823 "required": true,
1824 "type": "string"
1825 },
1826 {
1827 "name": "Accept",
1828 "in": "header",
1829 "description": "Determines the format of the body of the response",
1830 "required": false,
1831 "type": "string"
1832 },
1833 {
1834 "name": "Authorization",
1835 "in": "header",
1836 "description": "The username and password",
1837 "required": true,
1838 "type": "string"
1839 },
1840 {
1841 "name": "assetType",
1842 "in": "path",
1843 "description": "The requested asset type",
1844 "required": true,
1845 "type": "string",
1846 "enum": [
1847 "resources",
1848 "services"
1849 ]
1850 },
1851 {
1852 "in": "body",
1853 "name": "body",
1854 "description": "json describe the created resource",
1855 "required": true,
1856 "schema": {
1857 "$ref": "#/definitions/Resource"
1858 }
1859 }
1860 ],
1861 "responses": {
1862 "200": {
1863 "description": "ECOMP component is authenticated and Asset created",
1864 "schema": {
1865 "$ref": "#/definitions/Resource"
1866 }
1867 },
1868 "400": {
1869 "description": "Create VFCMT request: VFCMT name exceeds character limit - SVC4073"
1870 },
1871 "401": {
1872 "description": "ECOMP component should authenticate itself and to re-send again HTTP request with its Basic Authentication credentials - POL5002"
1873 },
1874 "403": {
1875 "description": "ECOMP component is not authorized - POL5003"
1876 },
1877 "404": {
1878 "description": "Error: Requested '%1' (uuid) resource was not found - SVC4063"
1879 },
1880 "405": {
1881 "description": "Method Not Allowed : Invalid HTTP method type used ( PUT,DELETE,POST will be rejected) - POL4050"
1882 },
1883 "500": {
1884 "description": "The GET request failed either due to internal SDC problem. ECOMP Component should continue the attempts to get the needed information - POL5000"
1885 }
1886 }
1887 }
1888 },
1889 "/v1/catalog/{assetType}/{uuid}/metadata": {
1890 "get": {
1891 "tags": [
1892 "Asset Metadata External Servlet"
1893 ],
1894 "summary": "Detailed metadata of asset by uuid",
1895 "description": "Returns detailed metadata of an asset by uuid",
1896 "operationId": "getAssetSpecificMetadataByUuidExternal",
1897 "produces": [
1898 "application/json"
1899 ],
1900 "parameters": [
1901 {
1902 "name": "X-ECOMP-RequestID",
1903 "in": "header",
1904 "description": "X-ECOMP-RequestID header",
1905 "required": false,
1906 "type": "string"
1907 },
1908 {
1909 "name": "X-ECOMP-InstanceID",
1910 "in": "header",
1911 "description": "X-ECOMP-InstanceID header",
1912 "required": true,
1913 "type": "string"
1914 },
1915 {
1916 "name": "Accept",
1917 "in": "header",
1918 "description": "Determines the format of the body of the response",
1919 "required": false,
1920 "type": "string"
1921 },
1922 {
1923 "name": "Authorization",
1924 "in": "header",
1925 "description": "The username and password",
1926 "required": true,
1927 "type": "string"
1928 },
1929 {
1930 "name": "assetType",
1931 "in": "path",
1932 "description": "The requested asset type",
1933 "required": true,
1934 "type": "string",
1935 "enum": [
1936 "resources",
1937 "services"
1938 ]
1939 },
1940 {
1941 "name": "uuid",
1942 "in": "path",
1943 "description": "The requested asset uuid",
1944 "required": true,
1945 "type": "string"
1946 }
1947 ],
1948 "responses": {
1949 "200": {
1950 "description": "ECOMP component is authenticated and list of Catalog Assets Metadata is returned",
1951 "schema": {
1952 "type": "array",
1953 "items": {
1954 "$ref": "#/definitions/AssetMetadata"
1955 }
1956 }
1957 },
1958 "400": {
1959 "description": "Missing 'X-ECOMP-InstanceID' HTTP header - POL5001"
1960 },
1961 "401": {
1962 "description": "ECOMP component should authenticate itself and to re-send again HTTP request with its Basic Authentication credentials - POL5002"
1963 },
1964 "403": {
1965 "description": "ECOMP component is not authorized - POL5003"
1966 },
1967 "404": {
1968 "description": "Error: Requested '%1' (uuid) resource was not found - SVC4063"
1969 },
1970 "405": {
1971 "description": "Method Not Allowed : Invalid HTTP method type used ( PUT,DELETE,POST will be rejected) - POL4050"
1972 },
1973 "500": {
1974 "description": "The GET request failed either due to internal SDC problem. ECOMP Component should continue the attempts to get the needed information - POL5000"
1975 }
1976 }
1977 }
1978 },
1979 "/v1/catalog/{assetType}/{uuid}/toscaModel": {
1980 "get": {
1981 "tags": [
1982 "Asset Metadata External Servlet"
1983 ],
1984 "summary": "Fetch assets CSAR",
1985 "description": "Returns asset csar",
1986 "operationId": "getToscaModelExternal",
1987 "produces": [
1988 "application/octet-stream"
1989 ],
1990 "parameters": [
1991 {
1992 "name": "X-ECOMP-RequestID",
1993 "in": "header",
1994 "description": "X-ECOMP-RequestID header",
1995 "required": false,
1996 "type": "string"
1997 },
1998 {
1999 "name": "X-ECOMP-InstanceID",
2000 "in": "header",
2001 "description": "X-ECOMP-InstanceID header",
2002 "required": true,
2003 "type": "string"
2004 },
2005 {
2006 "name": "Accept",
2007 "in": "header",
2008 "description": "Determines the format of the body of the response",
2009 "required": false,
2010 "type": "string"
2011 },
2012 {
2013 "name": "Authorization",
2014 "in": "header",
2015 "description": "The username and password",
2016 "required": true,
2017 "type": "string"
2018 },
2019 {
2020 "name": "assetType",
2021 "in": "path",
2022 "description": "The requested asset type",
2023 "required": true,
2024 "type": "string",
2025 "enum": [
2026 "resources",
2027 "services"
2028 ]
2029 },
2030 {
2031 "name": "uuid",
2032 "in": "path",
2033 "description": "The requested asset uuid",
2034 "required": true,
2035 "type": "string"
2036 }
2037 ],
2038 "responses": {
2039 "200": {
2040 "description": "ECOMP component is authenticated and list of Catalog Assets Metadata is returned",
2041 "schema": {
2042 "type": "string"
2043 }
2044 },
2045 "400": {
2046 "description": "Missing 'X-ECOMP-InstanceID' HTTP header - POL5001"
2047 },
2048 "401": {
2049 "description": "ECOMP component should authenticate itself and to re-send again HTTP request with its Basic Authentication credentials - POL5002"
2050 },
2051 "403": {
2052 "description": "ECOMP component is not authorized - POL5003"
2053 },
2054 "404": {
2055 "description": "Error: Requested '%1' (uuid) resource was not found - SVC4063"
2056 },
2057 "405": {
2058 "description": "Method Not Allowed : Invalid HTTP method type used ( PUT,DELETE,POST will be rejected) - POL4050"
2059 },
2060 "500": {
2061 "description": "The GET request failed either due to internal SDC problem. ECOMP Component should continue the attempts to get the needed information - POL5000"
2062 }
2063 }
2064 }
2065 },
2066 "/v1/catalog/{assetType}/{uuid}/lifecycleState/{lifecycleOperation}": {
2067 "post": {
2068 "tags": [
2069 "CRUD External Servlet"
2070 ],
2071 "summary": "Change Resource lifecycle State",
2072 "description": "",
2073 "operationId": "changeResourceStateExternal",
2074 "consumes": [
2075 "application/json"
2076 ],
2077 "produces": [
2078 "application/json"
2079 ],
2080 "parameters": [
2081 {
2082 "name": "Content-Type",
2083 "in": "header",
2084 "description": "Determines the format of the body of the request",
2085 "required": true,
2086 "type": "string"
2087 },
2088 {
2089 "name": "USER_ID",
2090 "in": "header",
2091 "description": "The user id",
2092 "required": true,
2093 "type": "string"
2094 },
2095 {
2096 "name": "X-ECOMP-RequestID",
2097 "in": "header",
2098 "description": "X-ECOMP-RequestID header",
2099 "required": false,
2100 "type": "string"
2101 },
2102 {
2103 "name": "X-ECOMP-InstanceID",
2104 "in": "header",
2105 "description": "X-ECOMP-InstanceID header",
2106 "required": true,
2107 "type": "string"
2108 },
2109 {
2110 "name": "Accept",
2111 "in": "header",
2112 "description": "Determines the format of the body of the response",
2113 "required": false,
2114 "type": "string"
2115 },
2116 {
2117 "name": "Authorization",
2118 "in": "header",
2119 "description": "The username and password",
2120 "required": true,
2121 "type": "string"
2122 },
2123 {
2124 "name": "lifecycleOperation",
2125 "in": "path",
2126 "required": true,
2127 "type": "string",
2128 "enum": [
2129 "checkout",
2130 "checkin"
2131 ]
2132 },
2133 {
2134 "name": "uuid",
2135 "in": "path",
2136 "description": "id of component to be changed",
2137 "required": true,
2138 "type": "string"
2139 },
2140 {
2141 "name": "assetType",
2142 "in": "path",
2143 "description": "validValues: resources / services ",
2144 "required": true,
2145 "type": "string",
2146 "enum": [
2147 "resources",
2148 "services"
2149 ]
2150 },
2151 {
2152 "in": "body",
2153 "name": "body",
2154 "description": "userRemarks - Short description (free text) about the asset version being changed",
2155 "required": true,
2156 "schema": {
2157 "$ref": "#/definitions/LifecycleChangeInfoWithAction"
2158 }
2159 }
2160 ],
2161 "responses": {
2162 "200": {
2163 "description": "Resource state changed",
2164 "schema": {
2165 "$ref": "#/definitions/AssetMetadata"
2166 }
2167 },
2168 "400": {
2169 "description": "Missing X-ECOMP-InstanceID HTTP header - POL5001"
2170 },
2171 "401": {
2172 "description": "ECOMP component should authenticate itself and to re-send again HTTP request with its Basic Authentication credentials - POL5002"
2173 },
2174 "403": {
2175 "description": "Asset is being edited by different user. Only one user can checkout and edit an asset on given time. The asset will be available for checkout after the other user will checkin the asset - SVC4080"
2176 },
2177 "404": {
2178 "description": "Error: Requested '%1' (uuid) resource was not found - SVC4063"
2179 },
2180 "405": {
2181 "description": "Method Not Allowed : Invalid HTTP method type used ( PUT,DELETE,POST will be rejected) - POL4050"
2182 },
2183 "500": {
2184 "description": "The GET request failed either due to internal SDC problem. ECOMP Component should continue the attempts to get the needed information - POL5000"
2185 }
2186 }
2187 }
2188 },
2189 "/v1/catalog/services/{serviceUUID}/distribution/{opEnvId}/activate": {
2190 "post": {
2191 "tags": [
2192 "Service Activation External Servlet"
2193 ],
2194 "summary": "activate a service",
2195 "description": "Activates a service",
2196 "operationId": "activateServiceExternal",
2197 "consumes": [
2198 "application/json"
2199 ],
2200 "produces": [
2201 "application/json"
2202 ],
2203 "parameters": [
2204 {
2205 "name": "Content-Type",
2206 "in": "header",
2207 "description": "Determines the format of the body of the request",
2208 "required": true,
2209 "type": "string"
2210 },
2211 {
2212 "name": "USER_ID",
2213 "in": "header",
2214 "description": "The user id",
2215 "required": true,
2216 "type": "string"
2217 },
2218 {
2219 "name": "X-ECOMP-RequestID",
2220 "in": "header",
2221 "description": "X-ECOMP-RequestID header",
2222 "required": false,
2223 "type": "string"
2224 },
2225 {
2226 "name": "X-ECOMP-InstanceID",
2227 "in": "header",
2228 "description": "X-ECOMP-InstanceID header",
2229 "required": true,
2230 "type": "string"
2231 },
2232 {
2233 "name": "Accept",
2234 "in": "header",
2235 "description": "Determines the format of the body of the response",
2236 "required": false,
2237 "type": "string"
2238 },
2239 {
2240 "name": "Authorization",
2241 "in": "header",
2242 "description": "The username and password",
2243 "required": true,
2244 "type": "string"
2245 },
2246 {
2247 "name": "serviceUUID",
2248 "in": "path",
2249 "description": "The serviceUUid to activate",
2250 "required": true,
2251 "type": "string"
2252 },
2253 {
2254 "name": "opEnvId",
2255 "in": "path",
2256 "description": "The operational environment on which to activate the service on",
2257 "required": true,
2258 "type": "string"
2259 },
2260 {
2261 "in": "body",
2262 "name": "body",
2263 "required": false,
2264 "schema": {
2265 "type": "string"
2266 }
2267 }
2268 ],
2269 "responses": {
2270 "202": {
2271 "description": "ECOMP component is authenticated and required service may be distributed"
2272 },
2273 "400": {
2274 "description": "The resource name is missing in the request body - SVC4062"
2275 },
2276 "401": {
2277 "description": "ECOMP component should authenticate itself and to re-send again HTTP request with its Basic Authentication credentials - POL5002"
2278 },
2279 "403": {
2280 "description": "ECOMP component is not authorized - POL5003"
2281 },
2282 "404": {
2283 "description": "Error: Requested '%1' (uuid) resource was not found - SVC4063"
2284 },
2285 "405": {
2286 "description": "Method Not Allowed : Invalid HTTP method type used ( PUT,DELETE,POST will be rejected) - POL4050"
2287 },
2288 "409": {
2289 "description": "Service state is invalid for this action"
2290 },
2291 "500": {
2292 "description": "The request failed either due to internal SDC problem. ECOMP Component should continue the attempts to get the needed information - POL5000"
2293 },
2294 "502": {
2295 "description": "The server was acting as a gateway or proxy and received an invalid response from the upstream server"
2296 }
2297 }
2298 }
2299 }
2300 },
2301 "definitions": {
2302 "TopicRegistrationResponse": {
2303 "type": "object",
2304 "properties": {
2305 "distrNotificationTopicName": {
2306 "type": "string"
2307 },
2308 "distrStatusTopicName": {
2309 "type": "string"
2310 }
2311 }
2312 },
2313 "RegistrationRequest": {
2314 "type": "object",
2315 "properties": {
2316 "apiPublicKey": {
2317 "type": "string"
2318 },
2319 "distrEnvName": {
2320 "type": "string"
2321 },
2322 "isConsumerToSdcDistrStatusTopic": {
2323 "type": "boolean"
2324 },
2325 "distEnvEndPoints": {
2326 "type": "array",
2327 "items": {
2328 "type": "string"
2329 }
2330 }
2331 }
2332 },
2333 "TopicUnregistrationResponse": {
2334 "type": "object",
2335 "properties": {
2336 "distrNotificationTopicName": {
2337 "type": "string"
2338 },
2339 "distrStatusTopicName": {
2340 "type": "string"
2341 },
2342 "notificationUnregisterResult": {
2343 "type": "string",
2344 "enum": [
2345 "OK",
2346 "CONNNECTION_ERROR",
2347 "NOT_FOUND",
2348 "TOPIC_ALREADY_EXIST",
2349 "OBJECT_NOT_FOUND",
2350 "INTERNAL_SERVER_ERROR",
2351 "AUTHENTICATION_ERROR",
2352 "UNKNOWN_HOST_ERROR"
2353 ]
2354 },
2355 "statusUnregisterResult": {
2356 "type": "string",
2357 "enum": [
2358 "OK",
2359 "CONNNECTION_ERROR",
2360 "NOT_FOUND",
2361 "TOPIC_ALREADY_EXIST",
2362 "OBJECT_NOT_FOUND",
2363 "INTERNAL_SERVER_ERROR",
2364 "AUTHENTICATION_ERROR",
2365 "UNKNOWN_HOST_ERROR"
2366 ]
2367 }
2368 }
2369 },
2370 "ServerListResponse": {
2371 "type": "object",
2372 "properties": {
2373 "uebServerList": {
2374 "type": "array",
2375 "items": {
2376 "type": "string"
2377 }
2378 }
2379 }
2380 },
2381 "ArtifactDefinition": {
2382 "type": "object",
2383 "properties": {
2384 "payloadData": {
2385 "type": "array",
2386 "items": {
2387 "type": "string",
2388 "format": "byte"
2389 }
2390 },
2391 "listHeatParameters": {
2392 "type": "array",
2393 "items": {
2394 "$ref": "#/definitions/HeatParameterDefinition"
2395 }
2396 },
2397 "creationDate": {
2398 "type": "integer",
2399 "format": "int64"
2400 },
2401 "timeout": {
2402 "type": "integer",
2403 "format": "int32"
2404 },
2405 "esId": {
2406 "type": "string"
2407 },
2408 "description": {
2409 "type": "string"
2410 },
2411 "artifactLabel": {
2412 "type": "string"
2413 },
2414 "artifactUUID": {
2415 "type": "string"
2416 },
2417 "artifactVersion": {
2418 "type": "string"
2419 },
2420 "heatParameters": {
2421 "type": "array",
2422 "items": {
2423 "$ref": "#/definitions/HeatParameterDataDefinition"
2424 }
2425 },
2426 "artifactGroupType": {
2427 "type": "string",
2428 "enum": [
2429 "INFORMATIONAL",
2430 "DEPLOYMENT",
2431 "LIFE_CYCLE",
2432 "SERVICE_API",
2433 "TOSCA",
2434 "OTHER"
2435 ]
2436 },
2437 "heatParamsUpdateDate": {
2438 "type": "integer",
2439 "format": "int64"
2440 },
2441 "artifactChecksum": {
2442 "type": "string"
2443 },
2444 "generatedFromId": {
2445 "type": "string"
2446 },
2447 "mandatory": {
2448 "type": "boolean"
2449 },
2450 "serviceApi": {
2451 "type": "boolean"
2452 },
2453 "payloadUpdateDate": {
2454 "type": "integer",
2455 "format": "int64"
2456 },
2457 "artifactName": {
2458 "type": "string"
2459 },
2460 "artifactType": {
2461 "type": "string"
2462 },
2463 "artifactRef": {
2464 "type": "string"
2465 },
2466 "apiUrl": {
2467 "type": "string"
2468 },
2469 "artifactRepository": {
2470 "type": "string"
2471 },
2472 "userIdCreator": {
2473 "type": "string"
2474 },
2475 "artifactCreator": {
2476 "type": "string"
2477 },
2478 "userIdLastUpdater": {
2479 "type": "string"
2480 },
2481 "updaterFullName": {
2482 "type": "string"
2483 },
2484 "isFromCsar": {
2485 "type": "boolean"
2486 },
2487 "requiredArtifacts": {
2488 "type": "array",
2489 "items": {
2490 "type": "string"
2491 }
2492 },
2493 "creatorFullName": {
2494 "type": "string"
2495 },
2496 "artifactDisplayName": {
2497 "type": "string"
2498 },
2499 "uniqueId": {
2500 "type": "string"
2501 },
2502 "generated": {
2503 "type": "boolean"
2504 },
2505 "duplicated": {
2506 "type": "boolean"
2507 },
2508 "lastUpdateDate": {
2509 "type": "integer",
2510 "format": "int64"
2511 },
2512 "empty": {
2513 "type": "boolean"
2514 },
2515 "ownerId": {
2516 "type": "string"
2517 }
2518 }
2519 },
2520 "HeatParameterDataDefinition": {
2521 "type": "object",
2522 "properties": {
2523 "uniqueId": {
2524 "type": "string"
2525 },
2526 "name": {
2527 "type": "string"
2528 },
2529 "type": {
2530 "type": "string"
2531 },
2532 "description": {
2533 "type": "string"
2534 },
2535 "currentValue": {
2536 "type": "string"
2537 },
2538 "defaultValue": {
2539 "type": "string"
2540 },
2541 "empty": {
2542 "type": "boolean"
2543 },
2544 "ownerId": {
2545 "type": "string"
2546 }
2547 }
2548 },
2549 "HeatParameterDefinition": {
2550 "type": "object",
2551 "properties": {
2552 "uniqueId": {
2553 "type": "string"
2554 },
2555 "name": {
2556 "type": "string"
2557 },
2558 "type": {
2559 "type": "string"
2560 },
2561 "description": {
2562 "type": "string"
2563 },
2564 "currentValue": {
2565 "type": "string"
2566 },
2567 "defaultValue": {
2568 "type": "string"
2569 },
2570 "empty": {
2571 "type": "boolean"
2572 },
2573 "ownerId": {
2574 "type": "string"
2575 }
2576 }
2577 },
2578 "AssetMetadata": {
2579 "type": "object",
2580 "properties": {
2581 "uuid": {
2582 "type": "string"
2583 },
2584 "invariantUUID": {
2585 "type": "string"
2586 },
2587 "name": {
2588 "type": "string"
2589 },
2590 "version": {
2591 "type": "string"
2592 },
2593 "toscaModelURL": {
2594 "type": "string"
2595 }
2596 }
2597 },
2598 "LifecycleChangeInfoWithAction": {
2599 "type": "object",
2600 "properties": {
2601 "userRemarks": {
2602 "type": "string"
2603 },
2604 "action": {
2605 "type": "string",
2606 "enum": [
2607 "CREATE_FROM_CSAR",
2608 "UPDATE_FROM_EXTERNAL_API",
2609 "UPGRADE_MIGRATION"
2610 ]
2611 }
2612 }
2613 },
2614 "AdditionalInfoParameterInfo": {
2615 "type": "object",
2616 "properties": {
2617 "uniqueId": {
2618 "type": "string"
2619 },
2620 "key": {
2621 "type": "string"
2622 },
2623 "value": {
2624 "type": "string"
2625 },
2626 "empty": {
2627 "type": "boolean"
2628 },
2629 "ownerId": {
2630 "type": "string"
2631 }
2632 }
2633 },
2634 "AdditionalInformationDefinition": {
2635 "type": "object",
2636 "properties": {
2637 "uniqueId": {
2638 "type": "string"
2639 },
2640 "creationTime": {
2641 "type": "integer",
2642 "format": "int64"
2643 },
2644 "modificationTime": {
2645 "type": "integer",
2646 "format": "int64"
2647 },
2648 "lastCreatedCounter": {
2649 "type": "integer",
2650 "format": "int32"
2651 },
2652 "parameters": {
2653 "type": "array",
2654 "items": {
2655 "$ref": "#/definitions/AdditionalInfoParameterInfo"
2656 }
2657 },
2658 "parentUniqueId": {
2659 "type": "string"
2660 },
2661 "empty": {
2662 "type": "boolean"
2663 },
2664 "ownerId": {
2665 "type": "string"
2666 }
2667 }
2668 },
2669 "ArtifactDataDefinition": {
2670 "type": "object",
2671 "properties": {
2672 "creationDate": {
2673 "type": "integer",
2674 "format": "int64"
2675 },
2676 "timeout": {
2677 "type": "integer",
2678 "format": "int32"
2679 },
2680 "esId": {
2681 "type": "string"
2682 },
2683 "description": {
2684 "type": "string"
2685 },
2686 "artifactLabel": {
2687 "type": "string"
2688 },
2689 "artifactUUID": {
2690 "type": "string"
2691 },
2692 "artifactVersion": {
2693 "type": "string"
2694 },
2695 "heatParameters": {
2696 "type": "array",
2697 "items": {
2698 "$ref": "#/definitions/HeatParameterDataDefinition"
2699 }
2700 },
2701 "artifactGroupType": {
2702 "type": "string",
2703 "enum": [
2704 "INFORMATIONAL",
2705 "DEPLOYMENT",
2706 "LIFE_CYCLE",
2707 "SERVICE_API",
2708 "TOSCA",
2709 "OTHER"
2710 ]
2711 },
2712 "heatParamsUpdateDate": {
2713 "type": "integer",
2714 "format": "int64"
2715 },
2716 "artifactChecksum": {
2717 "type": "string"
2718 },
2719 "generatedFromId": {
2720 "type": "string"
2721 },
2722 "mandatory": {
2723 "type": "boolean"
2724 },
2725 "serviceApi": {
2726 "type": "boolean"
2727 },
2728 "payloadUpdateDate": {
2729 "type": "integer",
2730 "format": "int64"
2731 },
2732 "artifactName": {
2733 "type": "string"
2734 },
2735 "artifactType": {
2736 "type": "string"
2737 },
2738 "artifactRef": {
2739 "type": "string"
2740 },
2741 "apiUrl": {
2742 "type": "string"
2743 },
2744 "artifactRepository": {
2745 "type": "string"
2746 },
2747 "userIdCreator": {
2748 "type": "string"
2749 },
2750 "artifactCreator": {
2751 "type": "string"
2752 },
2753 "userIdLastUpdater": {
2754 "type": "string"
2755 },
2756 "updaterFullName": {
2757 "type": "string"
2758 },
2759 "isFromCsar": {
2760 "type": "boolean"
2761 },
2762 "requiredArtifacts": {
2763 "type": "array",
2764 "items": {
2765 "type": "string"
2766 }
2767 },
2768 "creatorFullName": {
2769 "type": "string"
2770 },
2771 "artifactDisplayName": {
2772 "type": "string"
2773 },
2774 "uniqueId": {
2775 "type": "string"
2776 },
2777 "generated": {
2778 "type": "boolean"
2779 },
2780 "duplicated": {
2781 "type": "boolean"
2782 },
2783 "lastUpdateDate": {
2784 "type": "integer",
2785 "format": "int64"
2786 },
2787 "empty": {
2788 "type": "boolean"
2789 },
2790 "ownerId": {
2791 "type": "string"
2792 }
2793 }
2794 },
2795 "CapabilityDataDefinition": {
2796 "type": "object",
2797 "properties": {
2798 "name": {
2799 "type": "string"
2800 },
2801 "type": {
2802 "type": "string"
2803 },
2804 "path": {
2805 "type": "array",
2806 "items": {
2807 "type": "string"
2808 }
2809 },
2810 "parentName": {
2811 "type": "string"
2812 },
2813 "source": {
2814 "type": "string"
2815 },
2816 "description": {
2817 "type": "string"
2818 },
2819 "capabilitySources": {
2820 "type": "array",
2821 "items": {
2822 "type": "string"
2823 }
2824 },
2825 "minOccurrences": {
2826 "type": "string"
2827 },
2828 "maxOccurrences": {
2829 "type": "string"
2830 },
2831 "validSourceTypes": {
2832 "type": "array",
2833 "items": {
2834 "type": "string"
2835 }
2836 },
2837 "leftOccurrences": {
2838 "type": "string"
2839 },
2840 "ownerName": {
2841 "type": "string"
2842 },
2843 "ownerId": {
2844 "type": "string"
2845 },
2846 "uniqueId": {
2847 "type": "string"
2848 },
2849 "empty": {
2850 "type": "boolean"
2851 }
2852 }
2853 },
2854 "CapabilityDefinition": {
2855 "type": "object",
2856 "properties": {
2857 "properties": {
2858 "type": "array",
2859 "items": {
2860 "$ref": "#/definitions/ComponentInstanceProperty"
2861 }
2862 },
2863 "name": {
2864 "type": "string"
2865 },
2866 "type": {
2867 "type": "string"
2868 },
2869 "path": {
2870 "type": "array",
2871 "items": {
2872 "type": "string"
2873 }
2874 },
2875 "parentName": {
2876 "type": "string"
2877 },
2878 "source": {
2879 "type": "string"
2880 },
2881 "description": {
2882 "type": "string"
2883 },
2884 "capabilitySources": {
2885 "type": "array",
2886 "items": {
2887 "type": "string"
2888 }
2889 },
2890 "minOccurrences": {
2891 "type": "string"
2892 },
2893 "maxOccurrences": {
2894 "type": "string"
2895 },
2896 "validSourceTypes": {
2897 "type": "array",
2898 "items": {
2899 "type": "string"
2900 }
2901 },
2902 "leftOccurrences": {
2903 "type": "string"
2904 },
2905 "ownerName": {
2906 "type": "string"
2907 },
2908 "ownerId": {
2909 "type": "string"
2910 },
2911 "uniqueId": {
2912 "type": "string"
2913 },
2914 "empty": {
2915 "type": "boolean"
2916 }
2917 }
2918 },
2919 "CapabilityRequirementRelationship": {
2920 "type": "object",
2921 "properties": {
2922 "relation": {
2923 "$ref": "#/definitions/RelationshipInfo"
2924 },
2925 "capability": {
2926 "$ref": "#/definitions/CapabilityDataDefinition"
2927 },
2928 "requirement": {
2929 "$ref": "#/definitions/RequirementDataDefinition"
2930 }
2931 }
2932 },
2933 "CategoryDefinition": {
2934 "type": "object",
2935 "properties": {
2936 "name": {
2937 "type": "string"
2938 },
2939 "normalizedName": {
2940 "type": "string"
2941 },
2942 "uniqueId": {
2943 "type": "string"
2944 },
2945 "icons": {
2946 "type": "array",
2947 "items": {
2948 "type": "string"
2949 }
2950 },
2951 "subcategories": {
2952 "type": "array",
2953 "items": {
2954 "$ref": "#/definitions/SubCategoryDefinition"
2955 }
2956 },
2957 "empty": {
2958 "type": "boolean"
2959 },
2960 "ownerId": {
2961 "type": "string"
2962 }
2963 }
2964 },
2965 "ComponentInstance": {
2966 "type": "object",
2967 "properties": {
2968 "capabilities": {
2969 "type": "object",
2970 "additionalProperties": {
2971 "type": "array",
2972 "items": {
2973 "$ref": "#/definitions/CapabilityDefinition"
2974 }
2975 }
2976 },
2977 "requirements": {
2978 "type": "object",
2979 "additionalProperties": {
2980 "type": "array",
2981 "items": {
2982 "$ref": "#/definitions/RequirementDefinition"
2983 }
2984 }
2985 },
2986 "deploymentArtifacts": {
2987 "type": "object",
2988 "additionalProperties": {
2989 "$ref": "#/definitions/ArtifactDefinition"
2990 }
2991 },
2992 "artifacts": {
2993 "type": "object",
2994 "additionalProperties": {
2995 "$ref": "#/definitions/ArtifactDefinition"
2996 }
2997 },
2998 "groupInstances": {
2999 "type": "array",
3000 "items": {
3001 "$ref": "#/definitions/GroupInstance"
3002 }
3003 },
3004 "actualComponentUid": {
3005 "type": "string"
3006 },
3007 "name": {
3008 "type": "string"
3009 },
3010 "uniqueId": {
3011 "type": "string"
3012 },
3013 "normalizedName": {
3014 "type": "string"
3015 },
3016 "creationTime": {
3017 "type": "integer",
3018 "format": "int64"
3019 },
3020 "sourceModelInvariant": {
3021 "type": "string"
3022 },
3023 "sourceModelUuid": {
3024 "type": "string"
3025 },
3026 "sourceModelName": {
3027 "type": "string"
3028 },
3029 "sourceModelUid": {
3030 "type": "string"
3031 },
3032 "invariantName": {
3033 "type": "string"
3034 },
3035 "posX": {
3036 "type": "string"
3037 },
3038 "posY": {
3039 "type": "string"
3040 },
3041 "originType": {
3042 "type": "string",
3043 "enum": [
3044 "PRODUCT",
3045 "SERVICE",
3046 "VF",
3047 "VFC",
3048 "CP",
3049 "VL",
3050 "Configuration",
3051 "VFCMT",
3052 "CVFC",
3053 "PNF",
3054 "CR",
3055 "ServiceProxy"
3056 ]
3057 },
3058 "description": {
3059 "type": "string"
3060 },
3061 "propertyValueCounter": {
3062 "type": "integer",
3063 "format": "int32"
3064 },
3065 "customizationUUID": {
3066 "type": "string"
3067 },
3068 "modificationTime": {
3069 "type": "integer",
3070 "format": "int64"
3071 },
3072 "componentUid": {
3073 "type": "string"
3074 },
3075 "componentVersion": {
3076 "type": "string"
3077 },
3078 "componentName": {
3079 "type": "string"
3080 },
3081 "toscaComponentName": {
3082 "type": "string"
3083 },
3084 "isProxy": {
3085 "type": "boolean"
3086 },
3087 "icon": {
3088 "type": "string"
3089 },
3090 "attributeValueCounter": {
3091 "type": "integer",
3092 "format": "int32"
3093 },
3094 "inputValueCounter": {
3095 "type": "integer",
3096 "format": "int32"
3097 },
3098 "empty": {
3099 "type": "boolean"
3100 },
3101 "ownerId": {
3102 "type": "string"
3103 }
3104 }
3105 },
3106 "ComponentInstanceInput": {
3107 "type": "object",
3108 "properties": {
3109 "uniqueId": {
3110 "type": "string"
3111 },
3112 "type": {
3113 "type": "string"
3114 },
3115 "required": {
3116 "type": "boolean"
3117 },
3118 "definition": {
3119 "type": "boolean"
3120 },
3121 "defaultValue": {
3122 "type": "string"
3123 },
3124 "description": {
3125 "type": "string"
3126 },
3127 "schema": {
3128 "$ref": "#/definitions/SchemaDefinition"
3129 },
3130 "password": {
3131 "type": "boolean"
3132 },
3133 "name": {
3134 "type": "string"
3135 },
3136 "value": {
3137 "type": "string"
3138 },
3139 "label": {
3140 "type": "string"
3141 },
3142 "hidden": {
3143 "type": "boolean"
3144 },
3145 "immutable": {
3146 "type": "boolean"
3147 },
3148 "inputPath": {
3149 "type": "string"
3150 },
3151 "status": {
3152 "type": "string"
3153 },
3154 "inputId": {
3155 "type": "string"
3156 },
3157 "instanceUniqueId": {
3158 "type": "string"
3159 },
3160 "propertyId": {
3161 "type": "string"
3162 },
3163 "parentUniqueId": {
3164 "type": "string"
3165 },
3166 "getInputValues": {
3167 "type": "array",
3168 "items": {
3169 "$ref": "#/definitions/GetInputValueDataDefinition"
3170 }
3171 },
3172 "constraints": {
3173 "type": "array",
3174 "items": {
3175 "$ref": "#/definitions/PropertyConstraint"
3176 }
3177 },
3178 "inputs": {
3179 "type": "array",
3180 "items": {
3181 "$ref": "#/definitions/ComponentInstanceInput"
3182 }
3183 },
3184 "properties": {
3185 "type": "array",
3186 "items": {
3187 "$ref": "#/definitions/ComponentInstanceProperty"
3188 }
3189 },
3190 "valueUniqueUid": {
3191 "type": "string"
3192 },
3193 "path": {
3194 "type": "array",
3195 "items": {
3196 "type": "string"
3197 }
3198 },
3199 "rules": {
3200 "type": "array",
3201 "items": {
3202 "$ref": "#/definitions/PropertyRule"
3203 }
3204 },
3205 "componentInstanceName": {
3206 "type": "string"
3207 },
3208 "componentInstanceId": {
3209 "type": "string"
3210 },
3211 "schemaType": {
3212 "type": "string"
3213 },
3214 "getInputProperty": {
3215 "type": "boolean"
3216 },
3217 "empty": {
3218 "type": "boolean"
3219 },
3220 "ownerId": {
3221 "type": "string"
3222 }
3223 }
3224 },
3225 "ComponentInstanceProperty": {
3226 "type": "object",
3227 "properties": {
3228 "uniqueId": {
3229 "type": "string"
3230 },
3231 "type": {
3232 "type": "string"
3233 },
3234 "required": {
3235 "type": "boolean"
3236 },
3237 "definition": {
3238 "type": "boolean"
3239 },
3240 "defaultValue": {
3241 "type": "string"
3242 },
3243 "description": {
3244 "type": "string"
3245 },
3246 "schema": {
3247 "$ref": "#/definitions/SchemaDefinition"
3248 },
3249 "password": {
3250 "type": "boolean"
3251 },
3252 "name": {
3253 "type": "string"
3254 },
3255 "value": {
3256 "type": "string"
3257 },
3258 "label": {
3259 "type": "string"
3260 },
3261 "hidden": {
3262 "type": "boolean"
3263 },
3264 "immutable": {
3265 "type": "boolean"
3266 },
3267 "inputPath": {
3268 "type": "string"
3269 },
3270 "status": {
3271 "type": "string"
3272 },
3273 "inputId": {
3274 "type": "string"
3275 },
3276 "instanceUniqueId": {
3277 "type": "string"
3278 },
3279 "propertyId": {
3280 "type": "string"
3281 },
3282 "parentUniqueId": {
3283 "type": "string"
3284 },
3285 "getInputValues": {
3286 "type": "array",
3287 "items": {
3288 "$ref": "#/definitions/GetInputValueDataDefinition"
3289 }
3290 },
3291 "constraints": {
3292 "type": "array",
3293 "items": {
3294 "$ref": "#/definitions/PropertyConstraint"
3295 }
3296 },
3297 "valueUniqueUid": {
3298 "type": "string"
3299 },
3300 "path": {
3301 "type": "array",
3302 "items": {
3303 "type": "string"
3304 }
3305 },
3306 "rules": {
3307 "type": "array",
3308 "items": {
3309 "$ref": "#/definitions/PropertyRule"
3310 }
3311 },
3312 "componentInstanceName": {
3313 "type": "string"
3314 },
3315 "componentInstanceId": {
3316 "type": "string"
3317 },
3318 "schemaType": {
3319 "type": "string"
3320 },
3321 "getInputProperty": {
3322 "type": "boolean"
3323 },
3324 "empty": {
3325 "type": "boolean"
3326 },
3327 "ownerId": {
3328 "type": "string"
3329 }
3330 }
3331 },
3332 "GetInputValueDataDefinition": {
3333 "type": "object",
3334 "properties": {
3335 "propName": {
3336 "type": "string"
3337 },
3338 "inputName": {
3339 "type": "string"
3340 },
3341 "inputId": {
3342 "type": "string"
3343 },
3344 "indexValue": {
3345 "type": "integer",
3346 "format": "int32"
3347 },
3348 "getInputIndex": {
3349 "$ref": "#/definitions/GetInputValueDataDefinition"
3350 },
3351 "list": {
3352 "type": "boolean"
3353 },
3354 "empty": {
3355 "type": "boolean"
3356 },
3357 "ownerId": {
3358 "type": "string"
3359 }
3360 }
3361 },
3362 "GroupDefinition": {
3363 "type": "object",
3364 "properties": {
3365 "typeUid": {
3366 "type": "string"
3367 },
3368 "propertyValueCounter": {
3369 "type": "integer",
3370 "format": "int32"
3371 },
3372 "name": {
3373 "type": "string"
3374 },
3375 "properties": {
3376 "type": "array",
3377 "items": {
3378 "$ref": "#/definitions/PropertyDataDefinition"
3379 }
3380 },
3381 "type": {
3382 "type": "string"
3383 },
3384 "members": {
3385 "type": "object",
3386 "additionalProperties": {
3387 "type": "string"
3388 }
3389 },
3390 "version": {
3391 "type": "string"
3392 },
3393 "artifacts": {
3394 "type": "array",
3395 "items": {
3396 "type": "string"
3397 }
3398 },
3399 "invariantUUID": {
3400 "type": "string"
3401 },
3402 "artifactsUuid": {
3403 "type": "array",
3404 "items": {
3405 "type": "string"
3406 }
3407 },
3408 "groupUUID": {
3409 "type": "string"
3410 },
3411 "description": {
3412 "type": "string"
3413 },
3414 "uniqueId": {
3415 "type": "string"
3416 },
3417 "empty": {
3418 "type": "boolean"
3419 },
3420 "ownerId": {
3421 "type": "string"
3422 }
3423 }
3424 },
3425 "GroupInstance": {
3426 "type": "object",
3427 "properties": {
3428 "name": {
3429 "type": "string"
3430 },
3431 "properties": {
3432 "type": "array",
3433 "items": {
3434 "$ref": "#/definitions/PropertyDataDefinition"
3435 }
3436 },
3437 "type": {
3438 "type": "string"
3439 },
3440 "creationTime": {
3441 "type": "integer",
3442 "format": "int64"
3443 },
3444 "version": {
3445 "type": "string"
3446 },
3447 "groupName": {
3448 "type": "string"
3449 },
3450 "posX": {
3451 "type": "string"
3452 },
3453 "posY": {
3454 "type": "string"
3455 },
3456 "artifacts": {
3457 "type": "array",
3458 "items": {
3459 "type": "string"
3460 }
3461 },
3462 "groupUid": {
3463 "type": "string"
3464 },
3465 "groupInstanceArtifacts": {
3466 "type": "array",
3467 "items": {
3468 "type": "string"
3469 }
3470 },
3471 "groupInstanceArtifactsUuid": {
3472 "type": "array",
3473 "items": {
3474 "type": "string"
3475 }
3476 },
3477 "invariantUUID": {
3478 "type": "string"
3479 },
3480 "artifactsUuid": {
3481 "type": "array",
3482 "items": {
3483 "type": "string"
3484 }
3485 },
3486 "groupUUID": {
3487 "type": "string"
3488 },
3489 "description": {
3490 "type": "string"
3491 },
3492 "propertyValueCounter": {
3493 "type": "integer",
3494 "format": "int32"
3495 },
3496 "customizationUUID": {
3497 "type": "string"
3498 },
3499 "modificationTime": {
3500 "type": "integer",
3501 "format": "int64"
3502 },
3503 "normalizedName": {
3504 "type": "string"
3505 },
3506 "uniqueId": {
3507 "type": "string"
3508 },
3509 "empty": {
3510 "type": "boolean"
3511 },
3512 "ownerId": {
3513 "type": "string"
3514 }
3515 }
3516 },
3517 "GroupingDefinition": {
3518 "type": "object",
3519 "properties": {
3520 "name": {
3521 "type": "string"
3522 },
3523 "normalizedName": {
3524 "type": "string"
3525 },
3526 "uniqueId": {
3527 "type": "string"
3528 },
3529 "empty": {
3530 "type": "boolean"
3531 },
3532 "ownerId": {
3533 "type": "string"
3534 }
3535 }
3536 },
3537 "InputDefinition": {
3538 "type": "object",
3539 "properties": {
3540 "uniqueId": {
3541 "type": "string"
3542 },
3543 "type": {
3544 "type": "string"
3545 },
3546 "required": {
3547 "type": "boolean"
3548 },
3549 "definition": {
3550 "type": "boolean"
3551 },
3552 "defaultValue": {
3553 "type": "string"
3554 },
3555 "description": {
3556 "type": "string"
3557 },
3558 "schema": {
3559 "$ref": "#/definitions/SchemaDefinition"
3560 },
3561 "password": {
3562 "type": "boolean"
3563 },
3564 "name": {
3565 "type": "string"
3566 },
3567 "value": {
3568 "type": "string"
3569 },
3570 "label": {
3571 "type": "string"
3572 },
3573 "hidden": {
3574 "type": "boolean"
3575 },
3576 "immutable": {
3577 "type": "boolean"
3578 },
3579 "inputPath": {
3580 "type": "string"
3581 },
3582 "status": {
3583 "type": "string"
3584 },
3585 "inputId": {
3586 "type": "string"
3587 },
3588 "instanceUniqueId": {
3589 "type": "string"
3590 },
3591 "propertyId": {
3592 "type": "string"
3593 },
3594 "parentUniqueId": {
3595 "type": "string"
3596 },
3597 "getInputValues": {
3598 "type": "array",
3599 "items": {
3600 "$ref": "#/definitions/GetInputValueDataDefinition"
3601 }
3602 },
3603 "constraints": {
3604 "type": "array",
3605 "items": {
3606 "$ref": "#/definitions/PropertyConstraint"
3607 }
3608 },
3609 "inputs": {
3610 "type": "array",
3611 "items": {
3612 "$ref": "#/definitions/ComponentInstanceInput"
3613 }
3614 },
3615 "properties": {
3616 "type": "array",
3617 "items": {
3618 "$ref": "#/definitions/ComponentInstanceProperty"
3619 }
3620 },
3621 "schemaType": {
3622 "type": "string"
3623 },
3624 "getInputProperty": {
3625 "type": "boolean"
3626 },
3627 "empty": {
3628 "type": "boolean"
3629 },
3630 "ownerId": {
3631 "type": "string"
3632 }
3633 }
3634 },
3635 "InterfaceDefinition": {
3636 "type": "object",
3637 "properties": {
3638 "definition": {
3639 "type": "boolean"
3640 },
3641 "type": {
3642 "type": "string"
3643 },
3644 "creationDate": {
3645 "type": "integer",
3646 "format": "int64"
3647 },
3648 "description": {
3649 "type": "string"
3650 },
3651 "uniqueId": {
3652 "type": "string"
3653 },
3654 "operations": {
3655 "type": "object",
3656 "additionalProperties": {
3657 "$ref": "#/definitions/OperationDataDefinition"
3658 }
3659 },
3660 "toscaResourceName": {
3661 "type": "string"
3662 },
3663 "lastUpdateDate": {
3664 "type": "integer",
3665 "format": "int64"
3666 },
3667 "empty": {
3668 "type": "boolean"
3669 },
3670 "ownerId": {
3671 "type": "string"
3672 }
3673 }
3674 },
3675 "InterfaceOperationDataDefinition": {
3676 "type": "object",
3677 "properties": {
3678 "description": {
3679 "type": "string"
3680 },
3681 "artifactUUID": {
3682 "type": "string"
3683 },
3684 "inputParams": {
3685 "$ref": "#/definitions/ListDataDefinitionInterfaceOperationParamDataDefinition"
3686 },
3687 "uniqueId": {
3688 "type": "string"
3689 },
3690 "toscaResourceName": {
3691 "type": "string"
3692 },
3693 "outputParams": {
3694 "$ref": "#/definitions/ListDataDefinitionInterfaceOperationParamDataDefinition"
3695 },
3696 "operationType": {
3697 "type": "string"
3698 },
3699 "empty": {
3700 "type": "boolean"
3701 },
3702 "ownerId": {
3703 "type": "string"
3704 }
3705 }
3706 },
3707 "InterfaceOperationParamDataDefinition": {
3708 "type": "object",
3709 "properties": {
3710 "paramName": {
3711 "type": "string"
3712 },
3713 "paramId": {
3714 "type": "string"
3715 },
3716 "empty": {
3717 "type": "boolean"
3718 },
3719 "ownerId": {
3720 "type": "string"
3721 }
3722 }
3723 },
3724 "ListDataDefinition": {
3725 "type": "object",
3726 "properties": {
3727 "listToscaDataDefinition": {
3728 "type": "array",
3729 "items": {
3730 "$ref": "#/definitions/ToscaDataDefinition"
3731 }
3732 },
3733 "empty": {
3734 "type": "boolean"
3735 },
3736 "ownerId": {
3737 "type": "string"
3738 }
3739 }
3740 },
3741 "ListDataDefinitionInterfaceOperationParamDataDefinition": {
3742 "type": "object",
3743 "properties": {
3744 "listToscaDataDefinition": {
3745 "type": "array",
3746 "items": {
3747 "$ref": "#/definitions/InterfaceOperationParamDataDefinition"
3748 }
3749 },
3750 "empty": {
3751 "type": "boolean"
3752 },
3753 "ownerId": {
3754 "type": "string"
3755 }
3756 }
3757 },
3758 "ListDataDefinitionOperationInputDefinition": {
3759 "type": "object",
3760 "properties": {
3761 "listToscaDataDefinition": {
3762 "type": "array",
3763 "items": {
3764 "$ref": "#/definitions/OperationInputDefinition"
3765 }
3766 },
3767 "empty": {
3768 "type": "boolean"
3769 },
3770 "ownerId": {
3771 "type": "string"
3772 }
3773 }
3774 },
3775 "OperationDataDefinition": {
3776 "type": "object",
3777 "properties": {
3778 "name": {
3779 "type": "string"
3780 },
3781 "creationDate": {
3782 "type": "integer",
3783 "format": "int64"
3784 },
3785 "description": {
3786 "type": "string"
3787 },
3788 "inputs": {
3789 "$ref": "#/definitions/ListDataDefinitionOperationInputDefinition"
3790 },
3791 "uniqueId": {
3792 "type": "string"
3793 },
3794 "lastUpdateDate": {
3795 "type": "integer",
3796 "format": "int64"
3797 },
3798 "implementation": {
3799 "$ref": "#/definitions/ArtifactDataDefinition"
3800 },
3801 "empty": {
3802 "type": "boolean"
3803 },
3804 "ownerId": {
3805 "type": "string"
3806 }
3807 }
3808 },
3809 "OperationInputDefinition": {
3810 "type": "object",
3811 "properties": {
3812 "uniqueId": {
3813 "type": "string"
3814 },
3815 "type": {
3816 "type": "string"
3817 },
3818 "required": {
3819 "type": "boolean"
3820 },
3821 "definition": {
3822 "type": "boolean"
3823 },
3824 "defaultValue": {
3825 "type": "string"
3826 },
3827 "description": {
3828 "type": "string"
3829 },
3830 "schema": {
3831 "$ref": "#/definitions/SchemaDefinition"
3832 },
3833 "password": {
3834 "type": "boolean"
3835 },
3836 "name": {
3837 "type": "string"
3838 },
3839 "value": {
3840 "type": "string"
3841 },
3842 "label": {
3843 "type": "string"
3844 },
3845 "hidden": {
3846 "type": "boolean"
3847 },
3848 "immutable": {
3849 "type": "boolean"
3850 },
3851 "inputPath": {
3852 "type": "string"
3853 },
3854 "status": {
3855 "type": "string"
3856 },
3857 "inputId": {
3858 "type": "string"
3859 },
3860 "instanceUniqueId": {
3861 "type": "string"
3862 },
3863 "propertyId": {
3864 "type": "string"
3865 },
3866 "parentUniqueId": {
3867 "type": "string"
3868 },
3869 "getInputValues": {
3870 "type": "array",
3871 "items": {
3872 "$ref": "#/definitions/GetInputValueDataDefinition"
3873 }
3874 },
3875 "schemaType": {
3876 "type": "string"
3877 },
3878 "getInputProperty": {
3879 "type": "boolean"
3880 },
3881 "empty": {
3882 "type": "boolean"
3883 },
3884 "ownerId": {
3885 "type": "string"
3886 }
3887 }
3888 },
3889 "PolicyDefinition": {
3890 "type": "object",
3891 "properties": {
3892 "normalizedName": {
3893 "type": "string"
3894 },
3895 "name": {
3896 "type": "string"
3897 },
3898 "uniqueId": {
3899 "type": "string"
3900 },
3901 "properties": {
3902 "type": "array",
3903 "items": {
3904 "$ref": "#/definitions/PropertyDataDefinition"
3905 }
3906 },
3907 "version": {
3908 "type": "string"
3909 },
3910 "invariantName": {
3911 "type": "string"
3912 },
3913 "invariantUUID": {
3914 "type": "string"
3915 },
3916 "description": {
3917 "type": "string"
3918 },
3919 "derivedFrom": {
3920 "type": "string"
3921 },
3922 "targets": {
3923 "type": "object",
3924 "additionalProperties": {
3925 "type": "array",
3926 "items": {
3927 "type": "string"
3928 }
3929 }
3930 },
3931 "isFromCsar": {
3932 "type": "boolean"
3933 },
3934 "policyTypeName": {
3935 "type": "string"
3936 },
3937 "policyTypeUid": {
3938 "type": "string"
3939 },
3940 "policyUUID": {
3941 "type": "string"
3942 },
3943 "componentName": {
3944 "type": "string"
3945 },
3946 "empty": {
3947 "type": "boolean"
3948 },
3949 "ownerId": {
3950 "type": "string"
3951 }
3952 }
3953 },
3954 "PropertyConstraint": {
3955 "type": "object"
3956 },
3957 "PropertyDataDefinition": {
3958 "type": "object",
3959 "properties": {
3960 "uniqueId": {
3961 "type": "string"
3962 },
3963 "type": {
3964 "type": "string"
3965 },
3966 "required": {
3967 "type": "boolean"
3968 },
3969 "definition": {
3970 "type": "boolean"
3971 },
3972 "defaultValue": {
3973 "type": "string"
3974 },
3975 "description": {
3976 "type": "string"
3977 },
3978 "schema": {
3979 "$ref": "#/definitions/SchemaDefinition"
3980 },
3981 "password": {
3982 "type": "boolean"
3983 },
3984 "name": {
3985 "type": "string"
3986 },
3987 "value": {
3988 "type": "string"
3989 },
3990 "label": {
3991 "type": "string"
3992 },
3993 "hidden": {
3994 "type": "boolean"
3995 },
3996 "immutable": {
3997 "type": "boolean"
3998 },
3999 "inputPath": {
4000 "type": "string"
4001 },
4002 "status": {
4003 "type": "string"
4004 },
4005 "inputId": {
4006 "type": "string"
4007 },
4008 "instanceUniqueId": {
4009 "type": "string"
4010 },
4011 "propertyId": {
4012 "type": "string"
4013 },
4014 "parentUniqueId": {
4015 "type": "string"
4016 },
4017 "getInputValues": {
4018 "type": "array",
4019 "items": {
4020 "$ref": "#/definitions/GetInputValueDataDefinition"
4021 }
4022 },
4023 "schemaType": {
4024 "type": "string"
4025 },
4026 "getInputProperty": {
4027 "type": "boolean"
4028 },
4029 "empty": {
4030 "type": "boolean"
4031 },
4032 "ownerId": {
4033 "type": "string"
4034 }
4035 }
4036 },
4037 "PropertyDefinition": {
4038 "type": "object",
4039 "properties": {
4040 "uniqueId": {
4041 "type": "string"
4042 },
4043 "type": {
4044 "type": "string"
4045 },
4046 "required": {
4047 "type": "boolean"
4048 },
4049 "definition": {
4050 "type": "boolean"
4051 },
4052 "defaultValue": {
4053 "type": "string"
4054 },
4055 "description": {
4056 "type": "string"
4057 },
4058 "schema": {
4059 "$ref": "#/definitions/SchemaDefinition"
4060 },
4061 "password": {
4062 "type": "boolean"
4063 },
4064 "name": {
4065 "type": "string"
4066 },
4067 "value": {
4068 "type": "string"
4069 },
4070 "label": {
4071 "type": "string"
4072 },
4073 "hidden": {
4074 "type": "boolean"
4075 },
4076 "immutable": {
4077 "type": "boolean"
4078 },
4079 "inputPath": {
4080 "type": "string"
4081 },
4082 "status": {
4083 "type": "string"
4084 },
4085 "inputId": {
4086 "type": "string"
4087 },
4088 "instanceUniqueId": {
4089 "type": "string"
4090 },
4091 "propertyId": {
4092 "type": "string"
4093 },
4094 "parentUniqueId": {
4095 "type": "string"
4096 },
4097 "getInputValues": {
4098 "type": "array",
4099 "items": {
4100 "$ref": "#/definitions/GetInputValueDataDefinition"
4101 }
4102 },
4103 "constraints": {
4104 "type": "array",
4105 "items": {
4106 "$ref": "#/definitions/PropertyConstraint"
4107 }
4108 },
4109 "schemaType": {
4110 "type": "string"
4111 },
4112 "getInputProperty": {
4113 "type": "boolean"
4114 },
4115 "empty": {
4116 "type": "boolean"
4117 },
4118 "ownerId": {
4119 "type": "string"
4120 }
4121 }
4122 },
4123 "PropertyRule": {
4124 "type": "object",
4125 "properties": {
4126 "rule": {
4127 "type": "array",
4128 "items": {
4129 "type": "string"
4130 }
4131 },
4132 "value": {
4133 "type": "string"
4134 },
4135 "empty": {
4136 "type": "boolean"
4137 },
4138 "ownerId": {
4139 "type": "string"
4140 }
4141 }
4142 },
4143 "RelationshipImpl": {
4144 "type": "object",
4145 "properties": {
4146 "type": {
4147 "type": "string"
4148 }
4149 }
4150 },
4151 "RelationshipInfo": {
4152 "type": "object",
4153 "properties": {
4154 "requirement": {
4155 "type": "string"
4156 },
4157 "capabilityOwnerId": {
4158 "type": "string"
4159 },
4160 "requirementOwnerId": {
4161 "type": "string"
4162 },
4163 "id": {
4164 "type": "string"
4165 },
4166 "relationship": {
4167 "$ref": "#/definitions/RelationshipImpl"
4168 },
4169 "capability": {
4170 "type": "string"
4171 },
4172 "capabilityUid": {
4173 "type": "string"
4174 },
4175 "requirementUid": {
4176 "type": "string"
4177 }
4178 }
4179 },
4180 "RequirementCapabilityRelDef": {
4181 "type": "object",
4182 "properties": {
4183 "uid": {
4184 "type": "string"
4185 },
4186 "toNode": {
4187 "type": "string"
4188 },
4189 "relationships": {
4190 "type": "array",
4191 "items": {
4192 "$ref": "#/definitions/CapabilityRequirementRelationship"
4193 }
4194 },
4195 "fromNode": {
4196 "type": "string"
4197 }
4198 }
4199 },
4200 "RequirementDataDefinition": {
4201 "type": "object",
4202 "properties": {
4203 "name": {
4204 "type": "string"
4205 },
4206 "path": {
4207 "type": "array",
4208 "items": {
4209 "type": "string"
4210 }
4211 },
4212 "node": {
4213 "type": "string"
4214 },
4215 "parentName": {
4216 "type": "string"
4217 },
4218 "source": {
4219 "type": "string"
4220 },
4221 "minOccurrences": {
4222 "type": "string"
4223 },
4224 "maxOccurrences": {
4225 "type": "string"
4226 },
4227 "capability": {
4228 "type": "string"
4229 },
4230 "leftOccurrences": {
4231 "type": "string"
4232 },
4233 "ownerName": {
4234 "type": "string"
4235 },
4236 "ownerId": {
4237 "type": "string"
4238 },
4239 "relationship": {
4240 "type": "string"
4241 },
4242 "uniqueId": {
4243 "type": "string"
4244 },
4245 "empty": {
4246 "type": "boolean"
4247 }
4248 }
4249 },
4250 "RequirementDefinition": {
4251 "type": "object",
4252 "properties": {
4253 "name": {
4254 "type": "string"
4255 },
4256 "path": {
4257 "type": "array",
4258 "items": {
4259 "type": "string"
4260 }
4261 },
4262 "node": {
4263 "type": "string"
4264 },
4265 "parentName": {
4266 "type": "string"
4267 },
4268 "source": {
4269 "type": "string"
4270 },
4271 "minOccurrences": {
4272 "type": "string"
4273 },
4274 "maxOccurrences": {
4275 "type": "string"
4276 },
4277 "capability": {
4278 "type": "string"
4279 },
4280 "leftOccurrences": {
4281 "type": "string"
4282 },
4283 "ownerName": {
4284 "type": "string"
4285 },
4286 "ownerId": {
4287 "type": "string"
4288 },
4289 "relationship": {
4290 "type": "string"
4291 },
4292 "uniqueId": {
4293 "type": "string"
4294 },
4295 "empty": {
4296 "type": "boolean"
4297 }
4298 }
4299 },
4300 "Resource": {
4301 "type": "object",
4302 "properties": {
4303 "artifacts": {
4304 "type": "object",
4305 "additionalProperties": {
4306 "$ref": "#/definitions/ArtifactDefinition"
4307 }
4308 },
4309 "deploymentArtifacts": {
4310 "type": "object",
4311 "additionalProperties": {
4312 "$ref": "#/definitions/ArtifactDefinition"
4313 }
4314 },
4315 "toscaArtifacts": {
4316 "type": "object",
4317 "additionalProperties": {
4318 "$ref": "#/definitions/ArtifactDefinition"
4319 }
4320 },
4321 "categories": {
4322 "type": "array",
4323 "items": {
4324 "$ref": "#/definitions/CategoryDefinition"
4325 }
4326 },
4327 "componentInstances": {
4328 "type": "array",
4329 "items": {
4330 "$ref": "#/definitions/ComponentInstance"
4331 }
4332 },
4333 "componentInstancesRelations": {
4334 "type": "array",
4335 "items": {
4336 "$ref": "#/definitions/RequirementCapabilityRelDef"
4337 }
4338 },
4339 "componentInstancesInputs": {
4340 "type": "object",
4341 "additionalProperties": {
4342 "type": "array",
4343 "items": {
4344 "$ref": "#/definitions/ComponentInstanceInput"
4345 }
4346 }
4347 },
4348 "componentInstancesProperties": {
4349 "type": "object",
4350 "additionalProperties": {
4351 "type": "array",
4352 "items": {
4353 "$ref": "#/definitions/ComponentInstanceProperty"
4354 }
4355 }
4356 },
4357 "componentInstancesAttributes": {
4358 "type": "object",
4359 "additionalProperties": {
4360 "type": "array",
4361 "items": {
4362 "$ref": "#/definitions/ComponentInstanceProperty"
4363 }
4364 }
4365 },
4366 "capabilities": {
4367 "type": "object",
4368 "additionalProperties": {
4369 "type": "array",
4370 "items": {
4371 "$ref": "#/definitions/CapabilityDefinition"
4372 }
4373 }
4374 },
4375 "requirements": {
4376 "type": "object",
4377 "additionalProperties": {
4378 "type": "array",
4379 "items": {
4380 "$ref": "#/definitions/RequirementDefinition"
4381 }
4382 }
4383 },
4384 "inputs": {
4385 "type": "array",
4386 "items": {
4387 "$ref": "#/definitions/InputDefinition"
4388 }
4389 },
4390 "groups": {
4391 "type": "array",
4392 "items": {
4393 "$ref": "#/definitions/GroupDefinition"
4394 }
4395 },
4396 "policies": {
4397 "type": "object",
4398 "additionalProperties": {
4399 "$ref": "#/definitions/PolicyDefinition"
4400 }
4401 },
4402 "derivedFromGenericType": {
4403 "type": "string"
4404 },
4405 "derivedFromGenericVersion": {
4406 "type": "string"
4407 },
4408 "toscaType": {
4409 "type": "string"
4410 },
4411 "additionalInformation": {
4412 "type": "array",
4413 "items": {
4414 "$ref": "#/definitions/AdditionalInformationDefinition"
4415 }
4416 },
4417 "derivedFrom": {
4418 "type": "array",
4419 "items": {
4420 "type": "string"
4421 }
4422 },
4423 "derivedList": {
4424 "type": "array",
4425 "items": {
4426 "type": "string"
4427 }
4428 },
4429 "properties": {
4430 "type": "array",
4431 "items": {
4432 "$ref": "#/definitions/PropertyDefinition"
4433 }
4434 },
4435 "attributes": {
4436 "type": "array",
4437 "items": {
4438 "$ref": "#/definitions/PropertyDefinition"
4439 }
4440 },
4441 "interfaces": {
4442 "type": "object",
4443 "additionalProperties": {
4444 "$ref": "#/definitions/InterfaceDefinition"
4445 }
4446 },
4447 "defaultCapabilities": {
4448 "type": "array",
4449 "items": {
4450 "type": "string"
4451 }
4452 },
4453 "interfaceOperations": {
4454 "type": "object",
4455 "additionalProperties": {
4456 "$ref": "#/definitions/InterfaceOperationDataDefinition"
4457 }
4458 },
4459 "abstract": {
4460 "type": "boolean"
4461 },
4462 "vendorName": {
4463 "type": "string"
4464 },
4465 "vendorRelease": {
4466 "type": "string"
4467 },
4468 "resourceVendorModelNumber": {
4469 "type": "string"
4470 },
4471 "resourceType": {
4472 "type": "string",
4473 "enum": [
4474 "VFC",
4475 "VF",
4476 "CR",
4477 "CP",
4478 "PNF",
4479 "CVFC",
4480 "VL",
4481 "VFCMT",
4482 "Configuration",
4483 "ServiceProxy",
4484 "ABSTRACT"
4485 ]
4486 },
4487 "licenseType": {
4488 "type": "string"
4489 },
4490 "cost": {
4491 "type": "string"
4492 },
4493 "toscaResourceName": {
4494 "type": "string"
4495 },
4496 "componentType": {
4497 "type": "string",
4498 "enum": [
4499 "RESOURCE",
4500 "SERVICE",
4501 "RESOURCE_INSTANCE",
4502 "PRODUCT",
4503 "SERVICE_INSTANCE"
4504 ]
4505 },
4506 "name": {
4507 "type": "string"
4508 },
4509 "version": {
4510 "type": "string"
4511 },
4512 "creationDate": {
4513 "type": "integer",
4514 "format": "int64"
4515 },
4516 "tags": {
4517 "type": "array",
4518 "items": {
4519 "type": "string"
4520 }
4521 },
4522 "topologyTemplate": {
4523 "type": "boolean"
4524 },
4525 "invariantUUID": {
4526 "type": "string"
4527 },
4528 "description": {
4529 "type": "string"
4530 },
4531 "isDeleted": {
4532 "type": "boolean"
4533 },
4534 "csarVersion": {
4535 "type": "string"
4536 },
4537 "allVersions": {
4538 "type": "object",
4539 "additionalProperties": {
4540 "type": "string"
4541 }
4542 },
4543 "allArtifacts": {
4544 "type": "object",
4545 "additionalProperties": {
4546 "$ref": "#/definitions/ArtifactDefinition"
4547 }
4548 },
4549 "csarUUID": {
4550 "type": "string"
4551 },
4552 "importedToscaChecksum": {
4553 "type": "string"
4554 },
4555 "lastUpdaterUserId": {
4556 "type": "string"
4557 },
4558 "lastUpdaterFullName": {
4559 "type": "string"
4560 },
4561 "creatorUserId": {
4562 "type": "string"
4563 },
4564 "highestVersion": {
4565 "type": "boolean"
4566 },
4567 "creatorFullName": {
4568 "type": "string"
4569 },
4570 "normalizedName": {
4571 "type": "string"
4572 },
4573 "contactId": {
4574 "type": "string"
4575 },
4576 "conformanceLevel": {
4577 "type": "string"
4578 },
4579 "projectCode": {
4580 "type": "string"
4581 },
4582 "uniqueId": {
4583 "type": "string"
4584 },
4585 "lifecycleState": {
4586 "type": "string",
4587 "enum": [
4588 "READY_FOR_CERTIFICATION",
4589 "CERTIFICATION_IN_PROGRESS",
4590 "CERTIFIED",
4591 "NOT_CERTIFIED_CHECKIN",
4592 "NOT_CERTIFIED_CHECKOUT"
4593 ]
4594 },
4595 "uuid": {
4596 "type": "string"
4597 },
4598 "systemName": {
4599 "type": "string"
4600 },
4601 "lastUpdateDate": {
4602 "type": "integer",
4603 "format": "int64"
4604 },
4605 "icon": {
4606 "type": "string"
4607 }
4608 }
4609 },
4610 "SchemaDefinition": {
4611 "type": "object",
4612 "properties": {
4613 "derivedFrom": {
4614 "type": "string"
4615 },
4616 "constraints": {
4617 "type": "array",
4618 "items": {
4619 "type": "string"
4620 }
4621 },
4622 "properties": {
4623 "type": "object",
4624 "additionalProperties": {
4625 "$ref": "#/definitions/PropertyDataDefinition"
4626 }
4627 },
4628 "property": {
4629 "$ref": "#/definitions/PropertyDataDefinition"
4630 },
4631 "empty": {
4632 "type": "boolean"
4633 },
4634 "ownerId": {
4635 "type": "string"
4636 }
4637 }
4638 },
4639 "SubCategoryDefinition": {
4640 "type": "object",
4641 "properties": {
4642 "name": {
4643 "type": "string"
4644 },
4645 "normalizedName": {
4646 "type": "string"
4647 },
4648 "uniqueId": {
4649 "type": "string"
4650 },
4651 "icons": {
4652 "type": "array",
4653 "items": {
4654 "type": "string"
4655 }
4656 },
4657 "groupings": {
4658 "type": "array",
4659 "items": {
4660 "$ref": "#/definitions/GroupingDefinition"
4661 }
4662 },
4663 "empty": {
4664 "type": "boolean"
4665 },
4666 "ownerId": {
4667 "type": "string"
4668 }
4669 }
4670 },
4671 "ToscaDataDefinition": {
4672 "type": "object",
4673 "properties": {
4674 "empty": {
4675 "type": "boolean"
4676 },
4677 "ownerId": {
4678 "type": "string"
4679 }
4680 }
4681 }
4682 }
4683}