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