blob: fc0b59dc37a92003b5a0ade47dba02fef81c4a8a [file] [log] [blame]
Lusheng Jib2a561b2018-03-27 23:24:33 -04001deployment-handler API 4.2.0
Lusheng Ji6553a132017-10-12 02:47:00 +00002============================
3
4.. toctree::
5 :maxdepth: 3
6
7
8Description
9~~~~~~~~~~~
10
11High-level API for deploying/undeploying composed DCAE services using Cloudify Manager.
12
13
14
15
16
17License
18~~~~~~~
19
20
21`Apache 2.0 <http://www.apache.org/licenses/LICENSE-2.0.html>`_
22
23
24
25
26DCAE-DEPLOYMENTS
27~~~~~~~~~~~~~~~~
28
29
30operations on dcae-deployments
31
32
33
34
35
36DELETE ``/dcae-deployments/{deploymentId}``
37-------------------------------------------
38
39
40
41Description
42+++++++++++
43
44.. raw:: html
45
46 Uninstall the DCAE service and remove all associated data from the orchestrator.
47
48
49Parameters
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
60Request
61+++++++
62
63
64Responses
65+++++++++
66
67**202**
68^^^^^^^
69
70Success: The dispatcher has initiated the uninstall operation.
71
72
73
74Type: :ref:`DCAEDeploymentResponse <d_6157bd3de5c8c7de78f2ab86397667e0>`
75
76**Example:**
77
78.. code-block:: javascript
79
80 {
81 "links": {
Lusheng Jib2a561b2018-03-27 23:24:33 -040082 "self": "somestring",
Lusheng Ji6553a132017-10-12 02:47:00 +000083 "status": "somestring"
Lusheng Jib2a561b2018-03-27 23:24:33 -040084 },
Lusheng Ji6553a132017-10-12 02:47:00 +000085 "requestId": "somestring"
86 }
87
88**400**
89^^^^^^^
90
91Bad request: See the message in the response for details.
92
93
94
95Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>`
96
97**Example:**
98
99.. code-block:: javascript
100
101 {
Lusheng Jib2a561b2018-03-27 23:24:33 -0400102 "message": "somestring",
Lusheng Ji6553a132017-10-12 02:47:00 +0000103 "status": 1
104 }
105
106**500**
107^^^^^^^
108
109Problem on the server side. See the message
110in the response for more details.
111
112
113
114Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>`
115
116**Example:**
117
118.. code-block:: javascript
119
120 {
Lusheng Jib2a561b2018-03-27 23:24:33 -0400121 "message": "somestring",
Lusheng Ji6553a132017-10-12 02:47:00 +0000122 "status": 1
123 }
124
125**502**
126^^^^^^^
127
128Error reported to the dispatcher by a downstream system. See the message
129in the response for more details.
130
131
132
133Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>`
134
135**Example:**
136
137.. code-block:: javascript
138
139 {
Lusheng Jib2a561b2018-03-27 23:24:33 -0400140 "message": "somestring",
Lusheng Ji6553a132017-10-12 02:47:00 +0000141 "status": 1
142 }
143
144**504**
145^^^^^^^
146
147Error communicating with a downstream system. See the message
148in the response for more details.
149
150
151
152Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>`
153
154**Example:**
155
156.. code-block:: javascript
157
158 {
Lusheng Jib2a561b2018-03-27 23:24:33 -0400159 "message": "somestring",
Lusheng Ji6553a132017-10-12 02:47:00 +0000160 "status": 1
161 }
162
163
164
165
166
167GET ``/dcae-deployments``
168-------------------------
169
170
171
172Description
173+++++++++++
174
175.. raw:: html
176
177 List service deployments known to the orchestrator, optionally restricted to a single service type
178
179
180Parameters
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
191Request
192+++++++
193
194
195Responses
196+++++++++
197
198**200**
199^^^^^^^
200
201Success. (Note that if no matching deployments are found, the request is still a success; the
202deployments array is empty in that case.)
203
204
205
206Type: :ref:`DCAEDeploymentsListResponse <d_c51e57d9583f6119caf83dd017cf214c>`
207
208**Example:**
209
210.. code-block:: javascript
211
212 {
213 "deployments": [
214 {
215 "href": "somestring"
Lusheng Jib2a561b2018-03-27 23:24:33 -0400216 },
Lusheng Ji6553a132017-10-12 02:47:00 +0000217 {
218 "href": "somestring"
219 }
Lusheng Jib2a561b2018-03-27 23:24:33 -0400220 ],
Lusheng Ji6553a132017-10-12 02:47:00 +0000221 "requestId": "somestring"
222 }
223
224**500**
225^^^^^^^
226
227Problem on the server side. See the message
228in the response for more details.
229
230
231
232Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>`
233
234**Example:**
235
236.. code-block:: javascript
237
238 {
Lusheng Jib2a561b2018-03-27 23:24:33 -0400239 "message": "somestring",
Lusheng Ji6553a132017-10-12 02:47:00 +0000240 "status": 1
241 }
242
243**502**
244^^^^^^^
245
246Error reported to the dispatcher by a downstream system. See the message
247in the response for more details.
248
249
250
251Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>`
252
253**Example:**
254
255.. code-block:: javascript
256
257 {
Lusheng Jib2a561b2018-03-27 23:24:33 -0400258 "message": "somestring",
Lusheng Ji6553a132017-10-12 02:47:00 +0000259 "status": 1
260 }
261
262**504**
263^^^^^^^
264
265Error communicating with a downstream system. See the message
266in the response for more details.
267
268
269
270Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>`
271
272**Example:**
273
274.. code-block:: javascript
275
276 {
Lusheng Jib2a561b2018-03-27 23:24:33 -0400277 "message": "somestring",
Lusheng Ji6553a132017-10-12 02:47:00 +0000278 "status": 1
279 }
280
281
282
283
284
285GET ``/dcae-deployments/{deploymentId}/operation/{operationId}``
286----------------------------------------------------------------
287
288
289
290Description
291+++++++++++
292
293.. raw:: html
294
295 Get status of a deployment operation
296
297
298Parameters
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
310Request
311+++++++
312
313
314Responses
315+++++++++
316
317**200**
318^^^^^^^
319
320Status information retrieved successfully
321
322
323Type: :ref:`DCAEOperationStatusResponse <d_f0103f05736b04468a4f85fe90da2e16>`
324
325**Example:**
326
327.. code-block:: javascript
328
329 {
Lusheng Jib2a561b2018-03-27 23:24:33 -0400330 "error": "somestring",
Lusheng Ji6553a132017-10-12 02:47:00 +0000331 "links": {
Lusheng Jib2a561b2018-03-27 23:24:33 -0400332 "self": "somestring",
Lusheng Ji6553a132017-10-12 02:47:00 +0000333 "uninstall": "somestring"
Lusheng Jib2a561b2018-03-27 23:24:33 -0400334 },
335 "operationType": "somestring",
336 "requestId": "somestring",
Lusheng Ji6553a132017-10-12 02:47:00 +0000337 "status": "somestring"
338 }
339
340**404**
341^^^^^^^
342
343The operation information does not exist (possibly because the service has been uninstalled and deleted).
344
345
346Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>`
347
348**Example:**
349
350.. code-block:: javascript
351
352 {
Lusheng Jib2a561b2018-03-27 23:24:33 -0400353 "message": "somestring",
Lusheng Ji6553a132017-10-12 02:47:00 +0000354 "status": 1
355 }
356
357**500**
358^^^^^^^
359
360Problem on the server side. See the message
361in the response for more details.
362
363
364
365Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>`
366
367**Example:**
368
369.. code-block:: javascript
370
371 {
Lusheng Jib2a561b2018-03-27 23:24:33 -0400372 "message": "somestring",
Lusheng Ji6553a132017-10-12 02:47:00 +0000373 "status": 1
374 }
375
376**502**
377^^^^^^^
378
379Error reported to the dispatcher by a downstream system. See the message
380in the response for more details.
381
382
383
384Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>`
385
386**Example:**
387
388.. code-block:: javascript
389
390 {
Lusheng Jib2a561b2018-03-27 23:24:33 -0400391 "message": "somestring",
Lusheng Ji6553a132017-10-12 02:47:00 +0000392 "status": 1
393 }
394
395**504**
396^^^^^^^
397
398Error communicating with a downstream system. See the message
399in the response for more details.
400
401
402
403Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>`
404
405**Example:**
406
407.. code-block:: javascript
408
409 {
Lusheng Jib2a561b2018-03-27 23:24:33 -0400410 "message": "somestring",
Lusheng Ji6553a132017-10-12 02:47:00 +0000411 "status": 1
412 }
413
414
415
416
417
418PUT ``/dcae-deployments/{deploymentId}``
419----------------------------------------
420
421
422
423Description
424+++++++++++
425
426.. raw:: html
427
428 Request deployment of a DCAE service
429
430
431Parameters
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
442Request
443+++++++
444
445
446
447.. _d_eea14e4929853a5aa415f44cd4868302:
448
449Body
450^^^^
451
452Request 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
Lusheng Jib2a561b2018-03-27 23:24:33 -0400460 inputs | No | :ref:`inputs <i_08ada55a389e24cd45beef83306fd08e>` | | | Object containing inputs needed by the service blueprint to create an instance of the service.
Lusheng Ji6553a132017-10-12 02:47:00 +0000461Content 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
Lusheng Jib2a561b2018-03-27 23:24:33 -0400466.. _i_08ada55a389e24cd45beef83306fd08e:
Lusheng Ji6553a132017-10-12 02:47:00 +0000467
468**Inputs schema:**
469
470
471Object containing inputs needed by the service blueprint to create an instance of the service.
472Content of the object depends on the service being deployed.
473
474
475
476
477.. code-block:: javascript
478
479 {
Lusheng Jib2a561b2018-03-27 23:24:33 -0400480 "inputs": {},
Lusheng Ji6553a132017-10-12 02:47:00 +0000481 "serviceTypeId": "somestring"
482 }
483
484Responses
485+++++++++
486
487**202**
488^^^^^^^
489
490Success: 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
496Type: :ref:`DCAEDeploymentResponse <d_6157bd3de5c8c7de78f2ab86397667e0>`
497
498**Example:**
499
500.. code-block:: javascript
501
502 {
503 "links": {
Lusheng Jib2a561b2018-03-27 23:24:33 -0400504 "self": "somestring",
Lusheng Ji6553a132017-10-12 02:47:00 +0000505 "status": "somestring"
Lusheng Jib2a561b2018-03-27 23:24:33 -0400506 },
Lusheng Ji6553a132017-10-12 02:47:00 +0000507 "requestId": "somestring"
508 }
509
510**400**
511^^^^^^^
512
513Bad request: See the message in the response for details.
514
515
516
517Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>`
518
519**Example:**
520
521.. code-block:: javascript
522
523 {
Lusheng Jib2a561b2018-03-27 23:24:33 -0400524 "message": "somestring",
Lusheng Ji6553a132017-10-12 02:47:00 +0000525 "status": 1
526 }
527
528**409**
529^^^^^^^
530
531A service with the specified deployment Id already exists. Using PUT to update the service is not a supported operation.
532
533
534
535Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>`
536
537**Example:**
538
539.. code-block:: javascript
540
541 {
Lusheng Jib2a561b2018-03-27 23:24:33 -0400542 "message": "somestring",
Lusheng Ji6553a132017-10-12 02:47:00 +0000543 "status": 1
544 }
545
546**415**
547^^^^^^^
548
549Bad request: The Content-Type header does not indicate that the content is
550'application/json'
551
552
553
554Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>`
555
556**Example:**
557
558.. code-block:: javascript
559
560 {
Lusheng Jib2a561b2018-03-27 23:24:33 -0400561 "message": "somestring",
Lusheng Ji6553a132017-10-12 02:47:00 +0000562 "status": 1
563 }
564
565**500**
566^^^^^^^
567
568Problem on the server side. See the message
569in the response for more details.
570
571
572
573Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>`
574
575**Example:**
576
577.. code-block:: javascript
578
579 {
Lusheng Jib2a561b2018-03-27 23:24:33 -0400580 "message": "somestring",
Lusheng Ji6553a132017-10-12 02:47:00 +0000581 "status": 1
582 }
583
584**502**
585^^^^^^^
586
587Error reported to the dispatcher by a downstream system. See the message
588in the response for more details.
589
590
591
592Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>`
593
594**Example:**
595
596.. code-block:: javascript
597
598 {
Lusheng Jib2a561b2018-03-27 23:24:33 -0400599 "message": "somestring",
Lusheng Ji6553a132017-10-12 02:47:00 +0000600 "status": 1
601 }
602
603**504**
604^^^^^^^
605
606Error communicating with a downstream system. See the message
607in the response for more details.
608
609
610
611Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>`
612
613**Example:**
614
615.. code-block:: javascript
616
617 {
Lusheng Jib2a561b2018-03-27 23:24:33 -0400618 "message": "somestring",
Lusheng Ji6553a132017-10-12 02:47:00 +0000619 "status": 1
620 }
621
622
623
624
625INFO
626~~~~
627
628
629version and links
630
631
632
633
634
635GET ``/``
636---------
637
638
639
640Description
641+++++++++++
642
643.. raw:: html
644
645 Returns version information and links to API operations
646
647
648Request
649+++++++
650
651
652Responses
653+++++++++
654
655**200**
656^^^^^^^
657
658Success
659
660
Lusheng Jib2a561b2018-03-27 23:24:33 -0400661.. _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
682Links 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
Lusheng Ji6553a132017-10-12 02:47:00 +0000695
696**Example:**
697
698.. code-block:: javascript
699
700 {
Lusheng Jib2a561b2018-03-27 23:24:33 -0400701 "apiVersion": "somestring",
Lusheng Ji6553a132017-10-12 02:47:00 +0000702 "links": {
Lusheng Jib2a561b2018-03-27 23:24:33 -0400703 "events": "somestring",
Lusheng Ji6553a132017-10-12 02:47:00 +0000704 "info": "somestring"
Lusheng Jib2a561b2018-03-27 23:24:33 -0400705 },
Lusheng Ji6553a132017-10-12 02:47:00 +0000706 "serverVersion": "somestring"
707 }
708
709
710
711
712POLICY
713~~~~~~
714
715
716policy update API consumed by policy-handler and debug API to find policies on components
717
718
719
720
721
722GET ``/policy/components``
723--------------------------
724
725
726
727Description
728+++++++++++
729
730.. raw:: html
731
732 debug API to find policies on components
733
734
735Request
736+++++++
737
738
739Responses
740+++++++++
741
742**200**
743^^^^^^^
744
745deployment-handler found components with or without policies in cloudify
746
747
748
749
750
751
752POST ``/policy``
753----------------
754
755
756
757Description
758+++++++++++
759
760.. raw:: html
761
762 policy update API consumed by policy-handler
763
764
765Request
766+++++++
767
768
769
770.. _d_6ea6e6f48a0302e963a67833bbd0ff4a:
771
772Body
773^^^^
774
775request 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
Lusheng Jib2a561b2018-03-27 23:24:33 -0400782 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.
784dictionary of (policy_id -> true).
785In example: replace additionalProp1,2,3 with policy_id1,2,3 values
Lusheng Ji6553a132017-10-12 02:47:00 +0000786
Lusheng Jib2a561b2018-03-27 23:24:33 -0400787 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).
790In 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.
793dictionary of (policy_id -> true).
794In 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
804whether policy-engine returned an error on the policy.
805dictionary of (policy_id -> true).
806In example: replace additionalProp1,2,3 with policy_id1,2,3 values
807
808
809Map of {"key":"boolean"}
810
811.. _i_cbc40bad95bddbd536eeab0a92f483af:
Lusheng Ji6553a132017-10-12 02:47:00 +0000812
813**Latest_policies schema:**
814
815
Lusheng Jib2a561b2018-03-27 23:24:33 -0400816dictionary of (policy_id -> DCAEPolicy object).
817In example: replace additionalProp1,2,3 with policy_id1,2,3 values
818
Lusheng Ji6553a132017-10-12 02:47:00 +0000819
820Map of {"key":":ref:`DCAEPolicy <d_1e3e880a733b457b648bd8c99e6c859c>`"}
821
822
823
Lusheng Jib2a561b2018-03-27 23:24:33 -0400824.. _i_0ce52a29e44aa0cc7929fe7b555551bc:
825
826**Removed_policies schema:**
827
828
829whether policy was removed from policy-engine.
830dictionary of (policy_id -> true).
831In example: replace additionalProp1,2,3 with policy_id1,2,3 values
832
833
834Map of {"key":"boolean"}
835
Lusheng Ji6553a132017-10-12 02:47:00 +0000836.. code-block:: javascript
837
838 {
Lusheng Jib2a561b2018-03-27 23:24:33 -0400839 "catch_up": true,
840 "errored_policies": {},
841 "errored_scopes": [
842 "somestring",
843 "somestring"
844 ],
Lusheng Ji6553a132017-10-12 02:47:00 +0000845 "latest_policies": {
846 "DCAEPolicy": {
847 "policy_body": {
Lusheng Jib2a561b2018-03-27 23:24:33 -0400848 "config": {},
849 "policyName": "somestring",
Lusheng Ji6553a132017-10-12 02:47:00 +0000850 "policyVersion": "somestring"
Lusheng Jib2a561b2018-03-27 23:24:33 -0400851 },
Lusheng Ji6553a132017-10-12 02:47:00 +0000852 "policy_id": "somestring"
853 }
Lusheng Jib2a561b2018-03-27 23:24:33 -0400854 },
855 "removed_policies": {},
856 "scope_prefixes": [
857 "somestring",
858 "somestring"
859 ]
Lusheng Ji6553a132017-10-12 02:47:00 +0000860 }
861
862Responses
863+++++++++
864
865**200**
866^^^^^^^
867
868deployment-handler always responds with ok to /policy before processing the request
869
870
871
872
873
874Data Structures
875~~~~~~~~~~~~~~~
876
877.. _d_eea14e4929853a5aa415f44cd4868302:
878
879DCAEDeploymentRequest Model Structure
880-------------------------------------
881
882Request 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
Lusheng Jib2a561b2018-03-27 23:24:33 -0400890 inputs | No | :ref:`inputs <i_08ada55a389e24cd45beef83306fd08e>` | | | Object containing inputs needed by the service blueprint to create an instance of the service.
Lusheng Ji6553a132017-10-12 02:47:00 +0000891Content 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
Lusheng Jib2a561b2018-03-27 23:24:33 -0400896.. _i_08ada55a389e24cd45beef83306fd08e:
Lusheng Ji6553a132017-10-12 02:47:00 +0000897
898**Inputs schema:**
899
900
901Object containing inputs needed by the service blueprint to create an instance of the service.
902Content of the object depends on the service being deployed.
903
904
905
906
907.. _d_6157bd3de5c8c7de78f2ab86397667e0:
908
909DCAEDeploymentResponse Model Structure
910--------------------------------------
911
912Response 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
Lusheng Jib2a561b2018-03-27 23:24:33 -0400920 links | Yes | :ref:`links <i_4a894329f99280d2268e250444b59376>` | | | Links that the API client can access.
921
Lusheng Ji6553a132017-10-12 02:47:00 +0000922 requestId | Yes | string | | | Unique identifier for the request
923
924
Lusheng Jib2a561b2018-03-27 23:24:33 -0400925.. _i_4a894329f99280d2268e250444b59376:
Lusheng Ji6553a132017-10-12 02:47:00 +0000926
Lusheng Jib2a561b2018-03-27 23:24:33 -0400927**Links schema:**
928
Lusheng Ji6553a132017-10-12 02:47:00 +0000929
930Links 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
944DCAEDeploymentsListResponse Model Structure
945-------------------------------------------
946
947Object 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
Lusheng Jib2a561b2018-03-27 23:24:33 -0400955 deployments | Yes | array of :ref:`deployments <i_98a80d81e7d1973d54db7713913d37e8>` | | |
Lusheng Ji6553a132017-10-12 02:47:00 +0000956 requestId | Yes | string | | | Unique identifier for the request
957
958
Lusheng Jib2a561b2018-03-27 23:24:33 -0400959.. _i_98a80d81e7d1973d54db7713913d37e8:
Lusheng Ji6553a132017-10-12 02:47:00 +0000960
Lusheng Jib2a561b2018-03-27 23:24:33 -0400961**Deployments schema:**
962
Lusheng Ji6553a132017-10-12 02:47:00 +0000963
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
974DCAEErrorResponse Model Structure
975---------------------------------
976
977Object 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
990DCAEOperationStatusResponse Model Structure
991-------------------------------------------
992
993Response 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
Lusheng Jib2a561b2018-03-27 23:24:33 -04001003 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
Lusheng Ji6553a132017-10-12 02:47:00 +00001005 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
Lusheng Jib2a561b2018-03-27 23:24:33 -04001013.. _i_2feace8c1d3584ec637edc0eb1b92699:
Lusheng Ji6553a132017-10-12 02:47:00 +00001014
Lusheng Jib2a561b2018-03-27 23:24:33 -04001015**Links schema:**
1016
Lusheng Ji6553a132017-10-12 02:47:00 +00001017
1018If 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
1032DCAEPolicy Model Structure
1033--------------------------
1034
1035policy 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
1047DCAEPolicyBody Model Structure
1048------------------------------
1049
1050policy_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
Lusheng Jib2a561b2018-03-27 23:24:33 -04001057 config | Yes | :ref:`config <i_ba9593ef6832fb8401f266e173acaa5c>` | | | the policy-config - the config data provided by policy owner
Lusheng Ji6553a132017-10-12 02:47:00 +00001058 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
Lusheng Jib2a561b2018-03-27 23:24:33 -04001061.. _i_ba9593ef6832fb8401f266e173acaa5c:
Lusheng Ji6553a132017-10-12 02:47:00 +00001062
1063**Config schema:**
1064
1065
1066the policy-config - the config data provided by policy owner
1067
1068
1069
1070.. _d_6ea6e6f48a0302e963a67833bbd0ff4a:
1071
1072DCAEPolicyRequest Model Structure
1073---------------------------------
1074
1075request 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
Lusheng Jib2a561b2018-03-27 23:24:33 -04001082 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.
1084dictionary of (policy_id -> true).
1085In example: replace additionalProp1,2,3 with policy_id1,2,3 values
Lusheng Ji6553a132017-10-12 02:47:00 +00001086
Lusheng Jib2a561b2018-03-27 23:24:33 -04001087 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).
1090In 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.
1093dictionary of (policy_id -> true).
1094In 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
1104whether policy-engine returned an error on the policy.
1105dictionary of (policy_id -> true).
1106In example: replace additionalProp1,2,3 with policy_id1,2,3 values
1107
1108
1109Map of {"key":"boolean"}
1110
1111.. _i_cbc40bad95bddbd536eeab0a92f483af:
Lusheng Ji6553a132017-10-12 02:47:00 +00001112
1113**Latest_policies schema:**
1114
1115
Lusheng Jib2a561b2018-03-27 23:24:33 -04001116dictionary of (policy_id -> DCAEPolicy object).
1117In example: replace additionalProp1,2,3 with policy_id1,2,3 values
1118
Lusheng Ji6553a132017-10-12 02:47:00 +00001119
1120Map of {"key":":ref:`DCAEPolicy <d_1e3e880a733b457b648bd8c99e6c859c>`"}
1121
1122
1123
Lusheng Jib2a561b2018-03-27 23:24:33 -04001124.. _i_0ce52a29e44aa0cc7929fe7b555551bc:
Lusheng Ji6553a132017-10-12 02:47:00 +00001125
Lusheng Jib2a561b2018-03-27 23:24:33 -04001126**Removed_policies schema:**
Lusheng Ji6553a132017-10-12 02:47:00 +00001127
1128
Lusheng Jib2a561b2018-03-27 23:24:33 -04001129whether policy was removed from policy-engine.
1130dictionary of (policy_id -> true).
1131In example: replace additionalProp1,2,3 with policy_id1,2,3 values
Lusheng Ji6553a132017-10-12 02:47:00 +00001132
1133
Lusheng Jib2a561b2018-03-27 23:24:33 -04001134Map of {"key":"boolean"}
Lusheng Ji6553a132017-10-12 02:47:00 +00001135