Typo corrections in installation_manual.rst
[dcaegen2.git] / docs / sections / apis / deployment-handler.rst
1 deployment-handler API 4.2.0
2 ============================
3
4 .. toctree::
5     :maxdepth: 3
6
7
8 Description
9 ~~~~~~~~~~~
10
11 High-level API for deploying/undeploying composed DCAE services using Cloudify Manager.
12
13
14
15
16
17 License
18 ~~~~~~~
19
20
21 `Apache 2.0 <http://www.apache.org/licenses/LICENSE-2.0.html>`_
22
23
24
25
26 DCAE-DEPLOYMENTS
27 ~~~~~~~~~~~~~~~~
28
29
30 operations on dcae-deployments
31
32
33
34
35
36 DELETE ``/dcae-deployments/{deploymentId}``
37 -------------------------------------------
38
39
40
41 Description
42 +++++++++++
43
44 .. raw:: html
45
46     Uninstall the DCAE service and remove all associated data from the orchestrator.
47
48
49 Parameters
50 ++++++++++
51
52 .. csv-table::
53     :delim: |
54     :header: "Name", "Located in", "Required", "Type", "Format", "Properties", "Description"
55     :widths: 20, 15, 10, 10, 10, 20, 30
56
57         deploymentId | path | Yes | string |  |  | Deployment identifier for the service to be uninstalled. 
58
59
60 Request
61 +++++++
62
63
64 Responses
65 +++++++++
66
67 **202**
68 ^^^^^^^
69
70 Success:  The dispatcher has initiated the uninstall operation.
71
72
73
74 Type: :ref:`DCAEDeploymentResponse <d_6157bd3de5c8c7de78f2ab86397667e0>`
75
76 **Example:**
77
78 .. code-block:: javascript
79
80     {
81         "links": {
82             "self": "somestring",
83             "status": "somestring"
84         },
85         "requestId": "somestring"
86     }
87
88 **400**
89 ^^^^^^^
90
91 Bad request: See the message in the response for details.
92
93
94
95 Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>`
96
97 **Example:**
98
99 .. code-block:: javascript
100
101     {
102         "message": "somestring",
103         "status": 1
104     }
105
106 **500**
107 ^^^^^^^
108
109 Problem on the server side.  See the message
110 in the response for more details.
111
112
113
114 Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>`
115
116 **Example:**
117
118 .. code-block:: javascript
119
120     {
121         "message": "somestring",
122         "status": 1
123     }
124
125 **502**
126 ^^^^^^^
127
128 Error reported to the dispatcher by a downstream system.  See the message
129 in the response for more details.
130
131
132
133 Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>`
134
135 **Example:**
136
137 .. code-block:: javascript
138
139     {
140         "message": "somestring",
141         "status": 1
142     }
143
144 **504**
145 ^^^^^^^
146
147 Error communicating with a downstream system.  See the message
148 in the response for more details.
149
150
151
152 Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>`
153
154 **Example:**
155
156 .. code-block:: javascript
157
158     {
159         "message": "somestring",
160         "status": 1
161     }
162
163
164
165
166
167 GET ``/dcae-deployments``
168 -------------------------
169
170
171
172 Description
173 +++++++++++
174
175 .. raw:: html
176
177     List service deployments known to the orchestrator, optionally restricted to a single service type
178
179
180 Parameters
181 ++++++++++
182
183 .. csv-table::
184     :delim: |
185     :header: "Name", "Located in", "Required", "Type", "Format", "Properties", "Description"
186     :widths: 20, 15, 10, 10, 10, 20, 30
187
188         serviceTypeId | query | No | string |  |  | Service type identifier for the type whose deployments are to be listed 
189
190
191 Request
192 +++++++
193
194
195 Responses
196 +++++++++
197
198 **200**
199 ^^^^^^^
200
201 Success. (Note that if no matching deployments are found, the request is still a success; the
202 deployments array is empty in that case.)
203
204
205
206 Type: :ref:`DCAEDeploymentsListResponse <d_c51e57d9583f6119caf83dd017cf214c>`
207
208 **Example:**
209
210 .. code-block:: javascript
211
212     {
213         "deployments": [
214             {
215                 "href": "somestring"
216             },
217             {
218                 "href": "somestring"
219             }
220         ],
221         "requestId": "somestring"
222     }
223
224 **500**
225 ^^^^^^^
226
227 Problem on the server side.  See the message
228 in the response for more details.
229
230
231
232 Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>`
233
234 **Example:**
235
236 .. code-block:: javascript
237
238     {
239         "message": "somestring",
240         "status": 1
241     }
242
243 **502**
244 ^^^^^^^
245
246 Error reported to the dispatcher by a downstream system.  See the message
247 in the response for more details.
248
249
250
251 Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>`
252
253 **Example:**
254
255 .. code-block:: javascript
256
257     {
258         "message": "somestring",
259         "status": 1
260     }
261
262 **504**
263 ^^^^^^^
264
265 Error communicating with a downstream system.  See the message
266 in the response for more details.
267
268
269
270 Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>`
271
272 **Example:**
273
274 .. code-block:: javascript
275
276     {
277         "message": "somestring",
278         "status": 1
279     }
280
281
282
283
284
285 GET ``/dcae-deployments/{deploymentId}/operation/{operationId}``
286 ----------------------------------------------------------------
287
288
289
290 Description
291 +++++++++++
292
293 .. raw:: html
294
295     Get status of a deployment operation
296
297
298 Parameters
299 ++++++++++
300
301 .. csv-table::
302     :delim: |
303     :header: "Name", "Located in", "Required", "Type", "Format", "Properties", "Description"
304     :widths: 20, 15, 10, 10, 10, 20, 30
305
306         deploymentId | path | Yes | string |  |  | 
307         operationId | path | Yes | string |  |  | 
308
309
310 Request
311 +++++++
312
313
314 Responses
315 +++++++++
316
317 **200**
318 ^^^^^^^
319
320 Status information retrieved successfully
321
322
323 Type: :ref:`DCAEOperationStatusResponse <d_f0103f05736b04468a4f85fe90da2e16>`
324
325 **Example:**
326
327 .. code-block:: javascript
328
329     {
330         "error": "somestring",
331         "links": {
332             "self": "somestring",
333             "uninstall": "somestring"
334         },
335         "operationType": "somestring",
336         "requestId": "somestring",
337         "status": "somestring"
338     }
339
340 **404**
341 ^^^^^^^
342
343 The operation information does not exist (possibly because the service has been uninstalled and deleted).
344
345
346 Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>`
347
348 **Example:**
349
350 .. code-block:: javascript
351
352     {
353         "message": "somestring",
354         "status": 1
355     }
356
357 **500**
358 ^^^^^^^
359
360 Problem on the server side.  See the message
361 in the response for more details.
362
363
364
365 Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>`
366
367 **Example:**
368
369 .. code-block:: javascript
370
371     {
372         "message": "somestring",
373         "status": 1
374     }
375
376 **502**
377 ^^^^^^^
378
379 Error reported to the dispatcher by a downstream system.  See the message
380 in the response for more details.
381
382
383
384 Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>`
385
386 **Example:**
387
388 .. code-block:: javascript
389
390     {
391         "message": "somestring",
392         "status": 1
393     }
394
395 **504**
396 ^^^^^^^
397
398 Error communicating with a downstream system.  See the message
399 in the response for more details.
400
401
402
403 Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>`
404
405 **Example:**
406
407 .. code-block:: javascript
408
409     {
410         "message": "somestring",
411         "status": 1
412     }
413
414
415
416
417
418 PUT ``/dcae-deployments/{deploymentId}``
419 ----------------------------------------
420
421
422
423 Description
424 +++++++++++
425
426 .. raw:: html
427
428     Request deployment of a DCAE service
429
430
431 Parameters
432 ++++++++++
433
434 .. csv-table::
435     :delim: |
436     :header: "Name", "Located in", "Required", "Type", "Format", "Properties", "Description"
437     :widths: 20, 15, 10, 10, 10, 20, 30
438
439         deploymentId | path | Yes | string |  |  | Unique deployment identifier assigned by the API client. 
440
441
442 Request
443 +++++++
444
445
446
447 .. _d_eea14e4929853a5aa415f44cd4868302:
448
449 Body
450 ^^^^
451
452 Request for deploying a DCAE service.
453
454
455 .. csv-table::
456     :delim: |
457     :header: "Name", "Required", "Type", "Format", "Properties", "Description"
458     :widths: 20, 10, 15, 15, 30, 25
459
460         inputs | No | :ref:`inputs <i_08ada55a389e24cd45beef83306fd08e>` |  |  | Object containing inputs needed by the service blueprint to create an instance of the service.
461 Content of the object depends on the service being deployed.
462
463         serviceTypeId | Yes | string |  |  | The service type identifier (a unique ID assigned by DCAE inventory) for the service to be deployed.
464
465
466 .. _i_08ada55a389e24cd45beef83306fd08e:
467
468 **Inputs schema:**
469
470
471 Object containing inputs needed by the service blueprint to create an instance of the service.
472 Content of the object depends on the service being deployed.
473
474
475
476
477 .. code-block:: javascript
478
479     {
480         "inputs": {},
481         "serviceTypeId": "somestring"
482     }
483
484 Responses
485 +++++++++
486
487 **202**
488 ^^^^^^^
489
490 Success:  The content that was posted is valid, the dispatcher has
491   found the needed blueprint, created an instance of the topology in the orchestrator,
492   and started an installation workflow.
493
494
495
496 Type: :ref:`DCAEDeploymentResponse <d_6157bd3de5c8c7de78f2ab86397667e0>`
497
498 **Example:**
499
500 .. code-block:: javascript
501
502     {
503         "links": {
504             "self": "somestring",
505             "status": "somestring"
506         },
507         "requestId": "somestring"
508     }
509
510 **400**
511 ^^^^^^^
512
513 Bad request: See the message in the response for details.
514
515
516
517 Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>`
518
519 **Example:**
520
521 .. code-block:: javascript
522
523     {
524         "message": "somestring",
525         "status": 1
526     }
527
528 **409**
529 ^^^^^^^
530
531 A service with the specified deployment Id already exists.  Using PUT to update the service is not a supported operation.
532
533
534
535 Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>`
536
537 **Example:**
538
539 .. code-block:: javascript
540
541     {
542         "message": "somestring",
543         "status": 1
544     }
545
546 **415**
547 ^^^^^^^
548
549 Bad request: The Content-Type header does not indicate that the content is
550 'application/json'
551
552
553
554 Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>`
555
556 **Example:**
557
558 .. code-block:: javascript
559
560     {
561         "message": "somestring",
562         "status": 1
563     }
564
565 **500**
566 ^^^^^^^
567
568 Problem on the server side.  See the message
569 in the response for more details.
570
571
572
573 Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>`
574
575 **Example:**
576
577 .. code-block:: javascript
578
579     {
580         "message": "somestring",
581         "status": 1
582     }
583
584 **502**
585 ^^^^^^^
586
587 Error reported to the dispatcher by a downstream system.  See the message
588 in the response for more details.
589
590
591
592 Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>`
593
594 **Example:**
595
596 .. code-block:: javascript
597
598     {
599         "message": "somestring",
600         "status": 1
601     }
602
603 **504**
604 ^^^^^^^
605
606 Error communicating with a downstream system.  See the message
607 in the response for more details.
608
609
610
611 Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>`
612
613 **Example:**
614
615 .. code-block:: javascript
616
617     {
618         "message": "somestring",
619         "status": 1
620     }
621
622
623
624   
625 INFO
626 ~~~~
627
628
629 version and links
630
631
632
633
634
635 GET ``/``
636 ---------
637
638
639
640 Description
641 +++++++++++
642
643 .. raw:: html
644
645     Returns version information and links to API operations
646
647
648 Request
649 +++++++
650
651
652 Responses
653 +++++++++
654
655 **200**
656 ^^^^^^^
657
658 Success
659
660
661 .. _i_2e7b26d45eaa7203222963d454a86a88:
662
663 **Response Schema:**
664
665 .. csv-table::
666     :delim: |
667     :header: "Name", "Required", "Type", "Format", "Properties", "Description"
668     :widths: 20, 10, 15, 15, 30, 25
669
670         apiVersion | No | string |  |  | version of API supported by this server
671
672         links | No | :ref:`links <i_bcea41e897f5de95cd50fa873acb5f65>` |  |  | Links to API resources
673
674         serverVersion | No | string |  |  | version of software running on this server
675
676
677 .. _i_bcea41e897f5de95cd50fa873acb5f65:
678
679 **Links schema:**
680
681
682 Links to API resources
683
684
685 .. csv-table::
686     :delim: |
687     :header: "Name", "Required", "Type", "Format", "Properties", "Description"
688     :widths: 20, 10, 15, 15, 30, 25
689
690         events | No | string |  |  | path for the events endpoint
691
692         info | No | string |  |  | path for the server information endpoint
693
694
695
696 **Example:**
697
698 .. code-block:: javascript
699
700     {
701         "apiVersion": "somestring",
702         "links": {
703             "events": "somestring",
704             "info": "somestring"
705         },
706         "serverVersion": "somestring"
707     }
708
709
710
711   
712 POLICY
713 ~~~~~~
714
715
716 policy update API consumed by policy-handler and debug API to find policies on components
717
718
719
720
721
722 GET ``/policy/components``
723 --------------------------
724
725
726
727 Description
728 +++++++++++
729
730 .. raw:: html
731
732     debug API to find policies on components
733
734
735 Request
736 +++++++
737
738
739 Responses
740 +++++++++
741
742 **200**
743 ^^^^^^^
744
745 deployment-handler found components with or without policies in cloudify
746
747
748
749
750
751
752 POST ``/policy``
753 ----------------
754
755
756
757 Description
758 +++++++++++
759
760 .. raw:: html
761
762     policy update API consumed by policy-handler
763
764
765 Request
766 +++++++
767
768
769
770 .. _d_6ea6e6f48a0302e963a67833bbd0ff4a:
771
772 Body
773 ^^^^
774
775 request to update policies on DCAE components.
776
777 .. csv-table::
778     :delim: |
779     :header: "Name", "Required", "Type", "Format", "Properties", "Description"
780     :widths: 20, 10, 15, 15, 30, 25
781
782         catch_up | Yes | boolean |  |  | flag to indicate whether the request contains all the policies in PDP or not
783         errored_policies | No | :ref:`errored_policies <i_0e88fa72c5312eaae3990753181ce5fe>` |  |  | whether policy-engine returned an error on the policy.
784 dictionary of (policy_id -> true).
785 In example: replace additionalProp1,2,3 with policy_id1,2,3 values
786
787         errored_scopes | No | array of string |  |  | on cartchup - list of policy scope_prefix values on wchich the policy-engine experienced an error other than not-found data.
788
789         latest_policies | Yes | :ref:`latest_policies <i_cbc40bad95bddbd536eeab0a92f483af>` |  |  | dictionary of (policy_id -> DCAEPolicy object).
790 In example: replace additionalProp1,2,3 with policy_id1,2,3 values
791
792         removed_policies | Yes | :ref:`removed_policies <i_0ce52a29e44aa0cc7929fe7b555551bc>` |  |  | whether policy was removed from policy-engine.
793 dictionary of (policy_id -> true).
794 In example: replace additionalProp1,2,3 with policy_id1,2,3 values
795
796         scope_prefixes | No | array of string |  |  | on catchup - list of all scope_prefixes used by the policy-handler to retrieve the policies from policy-engine.
797
798
799 .. _i_0e88fa72c5312eaae3990753181ce5fe:
800
801 **Errored_policies schema:**
802
803
804 whether policy-engine returned an error on the policy.
805 dictionary of (policy_id -> true).
806 In example: replace additionalProp1,2,3 with policy_id1,2,3 values
807
808
809 Map of {"key":"boolean"}
810
811 .. _i_cbc40bad95bddbd536eeab0a92f483af:
812
813 **Latest_policies schema:**
814
815
816 dictionary of (policy_id -> DCAEPolicy object).
817 In example: replace additionalProp1,2,3 with policy_id1,2,3 values
818
819
820 Map of {"key":":ref:`DCAEPolicy <d_1e3e880a733b457b648bd8c99e6c859c>`"}
821
822
823
824 .. _i_0ce52a29e44aa0cc7929fe7b555551bc:
825
826 **Removed_policies schema:**
827
828
829 whether policy was removed from policy-engine.
830 dictionary of (policy_id -> true).
831 In example: replace additionalProp1,2,3 with policy_id1,2,3 values
832
833
834 Map of {"key":"boolean"}
835
836 .. code-block:: javascript
837
838     {
839         "catch_up": true,
840         "errored_policies": {},
841         "errored_scopes": [
842             "somestring",
843             "somestring"
844         ],
845         "latest_policies": {
846             "DCAEPolicy": {
847                 "policy_body": {
848                     "config": {},
849                     "policyName": "somestring",
850                     "policyVersion": "somestring"
851                 },
852                 "policy_id": "somestring"
853             }
854         },
855         "removed_policies": {},
856         "scope_prefixes": [
857             "somestring",
858             "somestring"
859         ]
860     }
861
862 Responses
863 +++++++++
864
865 **200**
866 ^^^^^^^
867
868 deployment-handler always responds with ok to /policy before processing the request
869
870
871
872
873   
874 Data Structures
875 ~~~~~~~~~~~~~~~
876
877 .. _d_eea14e4929853a5aa415f44cd4868302:
878
879 DCAEDeploymentRequest Model Structure
880 -------------------------------------
881
882 Request for deploying a DCAE service.
883
884
885 .. csv-table::
886     :delim: |
887     :header: "Name", "Required", "Type", "Format", "Properties", "Description"
888     :widths: 20, 10, 15, 15, 30, 25
889
890         inputs | No | :ref:`inputs <i_08ada55a389e24cd45beef83306fd08e>` |  |  | Object containing inputs needed by the service blueprint to create an instance of the service.
891 Content of the object depends on the service being deployed.
892
893         serviceTypeId | Yes | string |  |  | The service type identifier (a unique ID assigned by DCAE inventory) for the service to be deployed.
894
895
896 .. _i_08ada55a389e24cd45beef83306fd08e:
897
898 **Inputs schema:**
899
900
901 Object containing inputs needed by the service blueprint to create an instance of the service.
902 Content of the object depends on the service being deployed.
903
904
905
906
907 .. _d_6157bd3de5c8c7de78f2ab86397667e0:
908
909 DCAEDeploymentResponse Model Structure
910 --------------------------------------
911
912 Response body for a PUT or DELETE to /dcae-deployments/{deploymentId}
913
914
915 .. csv-table::
916     :delim: |
917     :header: "Name", "Required", "Type", "Format", "Properties", "Description"
918     :widths: 20, 10, 15, 15, 30, 25
919
920         links | Yes | :ref:`links <i_4a894329f99280d2268e250444b59376>` |  |  | Links that the API client can access.
921
922         requestId | Yes | string |  |  | Unique identifier for the request
923
924
925 .. _i_4a894329f99280d2268e250444b59376:
926
927 **Links schema:**
928
929
930 Links that the API client can access.
931
932
933 .. csv-table::
934     :delim: |
935     :header: "Name", "Required", "Type", "Format", "Properties", "Description"
936     :widths: 20, 10, 15, 15, 30, 25
937
938         self | No | string |  |  | Link used to retrieve information about the service being deployed
939
940         status | No | string |  |  | Link used to retrieve information about the status of the installation workflow
941
942 .. _d_c51e57d9583f6119caf83dd017cf214c:
943
944 DCAEDeploymentsListResponse Model Structure
945 -------------------------------------------
946
947 Object providing a list of deployments
948
949
950 .. csv-table::
951     :delim: |
952     :header: "Name", "Required", "Type", "Format", "Properties", "Description"
953     :widths: 20, 10, 15, 15, 30, 25
954
955         deployments | Yes | array of :ref:`deployments <i_98a80d81e7d1973d54db7713913d37e8>` |  |  | 
956         requestId | Yes | string |  |  | Unique identifier for the request
957
958
959 .. _i_98a80d81e7d1973d54db7713913d37e8:
960
961 **Deployments schema:**
962
963
964 .. csv-table::
965     :delim: |
966     :header: "Name", "Required", "Type", "Format", "Properties", "Description"
967     :widths: 20, 10, 15, 15, 30, 25
968
969         href | No | string |  |  | URL for the service deployment
970
971
972 .. _d_74f3f4f847dfb6bd181fcae06ad880b4:
973
974 DCAEErrorResponse Model Structure
975 ---------------------------------
976
977 Object reporting an error.
978
979
980 .. csv-table::
981     :delim: |
982     :header: "Name", "Required", "Type", "Format", "Properties", "Description"
983     :widths: 20, 10, 15, 15, 30, 25
984
985         message | No | string |  |  | Human-readable description of the reason for the error
986         status | Yes | integer |  |  | HTTP status code for the response
987
988 .. _d_f0103f05736b04468a4f85fe90da2e16:
989
990 DCAEOperationStatusResponse Model Structure
991 -------------------------------------------
992
993 Response body for a request for status of an installation or uninstallation operation.
994
995
996 .. csv-table::
997     :delim: |
998     :header: "Name", "Required", "Type", "Format", "Properties", "Description"
999     :widths: 20, 10, 15, 15, 30, 25
1000
1001         error | No | string |  |  | If status is 'failed', this field will be present and contain additional information about the reason the operation failed.
1002
1003         links | No | :ref:`links <i_2feace8c1d3584ec637edc0eb1b92699>` |  |  | If the operation succeeded, links that the client can follow to take further action.  Note that a successful 'uninstall' operation removes the DCAE service instance completely, so there are no possible further actions, and no links.
1004
1005         operationType | Yes | string |  |  | Type of operation being reported on. ('install' or 'uninstall')
1006
1007         requestId | Yes | string |  |  | A unique identifier assigned to the request.  Useful for tracing a request through logs.
1008
1009         status | Yes | string |  |  | Status of the installation or uninstallation operation.  Possible values are 'processing',
1010 'succeeded', and 'failed'
1011
1012
1013 .. _i_2feace8c1d3584ec637edc0eb1b92699:
1014
1015 **Links schema:**
1016
1017
1018 If the operation succeeded, links that the client can follow to take further action.  Note that a successful 'uninstall' operation removes the DCAE service instance completely, so there are no possible further actions, and no links.
1019
1020
1021 .. csv-table::
1022     :delim: |
1023     :header: "Name", "Required", "Type", "Format", "Properties", "Description"
1024     :widths: 20, 10, 15, 15, 30, 25
1025
1026         self | No | string |  |  | Link used to retrieve information about the service.
1027
1028         uninstall | No | string |  |  | Link used to trigger an 'uninstall' operation for the service.  (Use the DELETE method.)
1029
1030 .. _d_1e3e880a733b457b648bd8c99e6c859c:
1031
1032 DCAEPolicy Model Structure
1033 --------------------------
1034
1035 policy object
1036
1037 .. csv-table::
1038     :delim: |
1039     :header: "Name", "Required", "Type", "Format", "Properties", "Description"
1040     :widths: 20, 10, 15, 15, 30, 25
1041
1042         policy_body | Yes | :ref:`DCAEPolicyBody <d_7ffe00ee1aaae6811199d64ff3fea344>` |  |  | 
1043         policy_id | Yes | string |  |  | unique identifier of policy regardless of its version
1044
1045 .. _d_7ffe00ee1aaae6811199d64ff3fea344:
1046
1047 DCAEPolicyBody Model Structure
1048 ------------------------------
1049
1050 policy_body - the whole object received from policy-engine
1051
1052 .. csv-table::
1053     :delim: |
1054     :header: "Name", "Required", "Type", "Format", "Properties", "Description"
1055     :widths: 20, 10, 15, 15, 30, 25
1056
1057         config | Yes | :ref:`config <i_ba9593ef6832fb8401f266e173acaa5c>` |  |  | the policy-config - the config data provided by policy owner
1058         policyName | Yes | string |  |  | unique policy name that contains the version and extension
1059         policyVersion | Yes | string |  |  | stringified int that is autoincremented by policy-engine
1060
1061 .. _i_ba9593ef6832fb8401f266e173acaa5c:
1062
1063 **Config schema:**
1064
1065
1066 the policy-config - the config data provided by policy owner
1067
1068
1069
1070 .. _d_6ea6e6f48a0302e963a67833bbd0ff4a:
1071
1072 DCAEPolicyRequest Model Structure
1073 ---------------------------------
1074
1075 request to update policies on DCAE components.
1076
1077 .. csv-table::
1078     :delim: |
1079     :header: "Name", "Required", "Type", "Format", "Properties", "Description"
1080     :widths: 20, 10, 15, 15, 30, 25
1081
1082         catch_up | Yes | boolean |  |  | flag to indicate whether the request contains all the policies in PDP or not
1083         errored_policies | No | :ref:`errored_policies <i_0e88fa72c5312eaae3990753181ce5fe>` |  |  | whether policy-engine returned an error on the policy.
1084 dictionary of (policy_id -> true).
1085 In example: replace additionalProp1,2,3 with policy_id1,2,3 values
1086
1087         errored_scopes | No | array of string |  |  | on cartchup - list of policy scope_prefix values on wchich the policy-engine experienced an error other than not-found data.
1088
1089         latest_policies | Yes | :ref:`latest_policies <i_cbc40bad95bddbd536eeab0a92f483af>` |  |  | dictionary of (policy_id -> DCAEPolicy object).
1090 In example: replace additionalProp1,2,3 with policy_id1,2,3 values
1091
1092         removed_policies | Yes | :ref:`removed_policies <i_0ce52a29e44aa0cc7929fe7b555551bc>` |  |  | whether policy was removed from policy-engine.
1093 dictionary of (policy_id -> true).
1094 In example: replace additionalProp1,2,3 with policy_id1,2,3 values
1095
1096         scope_prefixes | No | array of string |  |  | on catchup - list of all scope_prefixes used by the policy-handler to retrieve the policies from policy-engine.
1097
1098
1099 .. _i_0e88fa72c5312eaae3990753181ce5fe:
1100
1101 **Errored_policies schema:**
1102
1103
1104 whether policy-engine returned an error on the policy.
1105 dictionary of (policy_id -> true).
1106 In example: replace additionalProp1,2,3 with policy_id1,2,3 values
1107
1108
1109 Map of {"key":"boolean"}
1110
1111 .. _i_cbc40bad95bddbd536eeab0a92f483af:
1112
1113 **Latest_policies schema:**
1114
1115
1116 dictionary of (policy_id -> DCAEPolicy object).
1117 In example: replace additionalProp1,2,3 with policy_id1,2,3 values
1118
1119
1120 Map of {"key":":ref:`DCAEPolicy <d_1e3e880a733b457b648bd8c99e6c859c>`"}
1121
1122
1123
1124 .. _i_0ce52a29e44aa0cc7929fe7b555551bc:
1125
1126 **Removed_policies schema:**
1127
1128
1129 whether policy was removed from policy-engine.
1130 dictionary of (policy_id -> true).
1131 In example: replace additionalProp1,2,3 with policy_id1,2,3 values
1132
1133
1134 Map of {"key":"boolean"}
1135