blob: 32373c9bedbb94c71b6c40e294d95dd99c1184d6 [file] [log] [blame]
Vijay VK86cd8932018-10-23 16:35:29 +01001deployment-handler API 3.0.3
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 Jieaac78d2018-06-06 00:20:03 -0400460 inputs | No | | | | Object containing inputs needed by the service blueprint to create an instance of the service.
461
Lusheng Ji6553a132017-10-12 02:47:00 +0000462Content of the object depends on the service being deployed.
463
464 serviceTypeId | Yes | string | | | The service type identifier (a unique ID assigned by DCAE inventory) for the service to be deployed.
465
466
Lusheng Jib2a561b2018-03-27 23:24:33 -0400467.. _i_08ada55a389e24cd45beef83306fd08e:
Lusheng Ji6553a132017-10-12 02:47:00 +0000468
469**Inputs schema:**
470
471
472Object containing inputs needed by the service blueprint to create an instance of the service.
473Content of the object depends on the service being deployed.
474
475
476
477
478.. code-block:: javascript
479
480 {
Lusheng Jib2a561b2018-03-27 23:24:33 -0400481 "inputs": {},
Lusheng Ji6553a132017-10-12 02:47:00 +0000482 "serviceTypeId": "somestring"
483 }
484
485Responses
486+++++++++
487
488**202**
489^^^^^^^
490
491Success: The content that was posted is valid, the dispatcher has
492 found the needed blueprint, created an instance of the topology in the orchestrator,
493 and started an installation workflow.
494
495
496
497Type: :ref:`DCAEDeploymentResponse <d_6157bd3de5c8c7de78f2ab86397667e0>`
498
499**Example:**
500
501.. code-block:: javascript
502
503 {
504 "links": {
Lusheng Jib2a561b2018-03-27 23:24:33 -0400505 "self": "somestring",
Lusheng Ji6553a132017-10-12 02:47:00 +0000506 "status": "somestring"
Lusheng Jib2a561b2018-03-27 23:24:33 -0400507 },
Lusheng Ji6553a132017-10-12 02:47:00 +0000508 "requestId": "somestring"
509 }
510
511**400**
512^^^^^^^
513
514Bad request: See the message in the response for details.
515
516
517
518Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>`
519
520**Example:**
521
522.. code-block:: javascript
523
524 {
Lusheng Jib2a561b2018-03-27 23:24:33 -0400525 "message": "somestring",
Lusheng Ji6553a132017-10-12 02:47:00 +0000526 "status": 1
527 }
528
529**409**
530^^^^^^^
531
532A service with the specified deployment Id already exists. Using PUT to update the service is not a supported operation.
533
534
535
536Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>`
537
538**Example:**
539
540.. code-block:: javascript
541
542 {
Lusheng Jib2a561b2018-03-27 23:24:33 -0400543 "message": "somestring",
Lusheng Ji6553a132017-10-12 02:47:00 +0000544 "status": 1
545 }
546
547**415**
548^^^^^^^
549
550Bad request: The Content-Type header does not indicate that the content is
551'application/json'
552
553
554
555Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>`
556
557**Example:**
558
559.. code-block:: javascript
560
561 {
Lusheng Jib2a561b2018-03-27 23:24:33 -0400562 "message": "somestring",
Lusheng Ji6553a132017-10-12 02:47:00 +0000563 "status": 1
564 }
565
566**500**
567^^^^^^^
568
569Problem on the server side. See the message
570in the response for more details.
571
572
573
574Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>`
575
576**Example:**
577
578.. code-block:: javascript
579
580 {
Lusheng Jib2a561b2018-03-27 23:24:33 -0400581 "message": "somestring",
Lusheng Ji6553a132017-10-12 02:47:00 +0000582 "status": 1
583 }
584
585**502**
586^^^^^^^
587
588Error reported to the dispatcher by a downstream system. See the message
589in the response for more details.
590
591
592
593Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>`
594
595**Example:**
596
597.. code-block:: javascript
598
599 {
Lusheng Jib2a561b2018-03-27 23:24:33 -0400600 "message": "somestring",
Lusheng Ji6553a132017-10-12 02:47:00 +0000601 "status": 1
602 }
603
604**504**
605^^^^^^^
606
607Error communicating with a downstream system. See the message
608in the response for more details.
609
610
611
612Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>`
613
614**Example:**
615
616.. code-block:: javascript
617
618 {
Lusheng Jib2a561b2018-03-27 23:24:33 -0400619 "message": "somestring",
Lusheng Ji6553a132017-10-12 02:47:00 +0000620 "status": 1
621 }
622
623
624
625
626INFO
627~~~~
628
629
630version and links
631
632
633
634
635
636GET ``/``
637---------
638
639
640
641Description
642+++++++++++
643
644.. raw:: html
645
646 Returns version information and links to API operations
647
648
649Request
650+++++++
651
652
653Responses
654+++++++++
655
656**200**
657^^^^^^^
658
659Success
660
661
Lusheng Jib2a561b2018-03-27 23:24:33 -0400662.. _i_2e7b26d45eaa7203222963d454a86a88:
663
664**Response Schema:**
665
666.. csv-table::
667 :delim: |
668 :header: "Name", "Required", "Type", "Format", "Properties", "Description"
669 :widths: 20, 10, 15, 15, 30, 25
670
671 apiVersion | No | string | | | version of API supported by this server
672
673 links | No | :ref:`links <i_bcea41e897f5de95cd50fa873acb5f65>` | | | Links to API resources
674
675 serverVersion | No | string | | | version of software running on this server
676
677
678.. _i_bcea41e897f5de95cd50fa873acb5f65:
679
680**Links schema:**
681
682
683Links to API resources
684
685
686.. csv-table::
687 :delim: |
688 :header: "Name", "Required", "Type", "Format", "Properties", "Description"
689 :widths: 20, 10, 15, 15, 30, 25
690
691 events | No | string | | | path for the events endpoint
692
693 info | No | string | | | path for the server information endpoint
694
695
Lusheng Ji6553a132017-10-12 02:47:00 +0000696
697**Example:**
698
699.. code-block:: javascript
700
701 {
Lusheng Jib2a561b2018-03-27 23:24:33 -0400702 "apiVersion": "somestring",
Lusheng Ji6553a132017-10-12 02:47:00 +0000703 "links": {
Lusheng Jib2a561b2018-03-27 23:24:33 -0400704 "events": "somestring",
Lusheng Ji6553a132017-10-12 02:47:00 +0000705 "info": "somestring"
Lusheng Jib2a561b2018-03-27 23:24:33 -0400706 },
Lusheng Ji6553a132017-10-12 02:47:00 +0000707 "serverVersion": "somestring"
708 }
709
710
711
712
713POLICY
714~~~~~~
715
716
717policy update API consumed by policy-handler and debug API to find policies on components
718
719
720
721
722
723GET ``/policy/components``
724--------------------------
725
726
727
728Description
729+++++++++++
730
731.. raw:: html
732
733 debug API to find policies on components
734
735
736Request
737+++++++
738
739
740Responses
741+++++++++
742
743**200**
744^^^^^^^
745
746deployment-handler found components with or without policies in cloudify
747
748
749
750
751
752
753POST ``/policy``
754----------------
755
756
757
758Description
759+++++++++++
760
761.. raw:: html
762
763 policy update API consumed by policy-handler
764
765
766Request
767+++++++
768
769
770
771.. _d_6ea6e6f48a0302e963a67833bbd0ff4a:
772
773Body
774^^^^
775
776request to update policies on DCAE components.
777
778.. csv-table::
779 :delim: |
780 :header: "Name", "Required", "Type", "Format", "Properties", "Description"
781 :widths: 20, 10, 15, 15, 30, 25
782
Lusheng Jib2a561b2018-03-27 23:24:33 -0400783 catch_up | Yes | boolean | | | flag to indicate whether the request contains all the policies in PDP or not
Lusheng Jieaac78d2018-06-06 00:20:03 -0400784 errored_policies | No | | | | whether policy-engine returned an error on the policy.
Lusheng Jib2a561b2018-03-27 23:24:33 -0400785 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.
Lusheng Jieaac78d2018-06-06 00:20:03 -0400786 latest_policies | Yes | | | | dictionary of (policy_id -> DCAEPolicy object).
787 removed_policies | Yes | | | | whether policy was removed from policy-engine.
Lusheng Jib2a561b2018-03-27 23:24:33 -0400788 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.
789
790
791.. _i_0e88fa72c5312eaae3990753181ce5fe:
792
793**Errored_policies schema:**
794
795
796whether policy-engine returned an error on the policy.
797dictionary of (policy_id -> true).
798In example: replace additionalProp1,2,3 with policy_id1,2,3 values
799
800
801Map of {"key":"boolean"}
802
803.. _i_cbc40bad95bddbd536eeab0a92f483af:
Lusheng Ji6553a132017-10-12 02:47:00 +0000804
805**Latest_policies schema:**
806
807
Lusheng Jib2a561b2018-03-27 23:24:33 -0400808dictionary of (policy_id -> DCAEPolicy object).
809In example: replace additionalProp1,2,3 with policy_id1,2,3 values
810
Lusheng Ji6553a132017-10-12 02:47:00 +0000811
812Map of {"key":":ref:`DCAEPolicy <d_1e3e880a733b457b648bd8c99e6c859c>`"}
813
814
815
Lusheng Jib2a561b2018-03-27 23:24:33 -0400816.. _i_0ce52a29e44aa0cc7929fe7b555551bc:
817
818**Removed_policies schema:**
819
820
821whether policy was removed from policy-engine.
822dictionary of (policy_id -> true).
823In example: replace additionalProp1,2,3 with policy_id1,2,3 values
824
825
826Map of {"key":"boolean"}
827
Lusheng Ji6553a132017-10-12 02:47:00 +0000828.. code-block:: javascript
829
830 {
Lusheng Jib2a561b2018-03-27 23:24:33 -0400831 "catch_up": true,
832 "errored_policies": {},
833 "errored_scopes": [
834 "somestring",
835 "somestring"
836 ],
Lusheng Ji6553a132017-10-12 02:47:00 +0000837 "latest_policies": {
838 "DCAEPolicy": {
839 "policy_body": {
Lusheng Jib2a561b2018-03-27 23:24:33 -0400840 "config": {},
841 "policyName": "somestring",
Lusheng Ji6553a132017-10-12 02:47:00 +0000842 "policyVersion": "somestring"
Lusheng Jib2a561b2018-03-27 23:24:33 -0400843 },
Lusheng Ji6553a132017-10-12 02:47:00 +0000844 "policy_id": "somestring"
845 }
Lusheng Jib2a561b2018-03-27 23:24:33 -0400846 },
847 "removed_policies": {},
848 "scope_prefixes": [
849 "somestring",
850 "somestring"
851 ]
Lusheng Ji6553a132017-10-12 02:47:00 +0000852 }
853
854Responses
855+++++++++
856
857**200**
858^^^^^^^
859
860deployment-handler always responds with ok to /policy before processing the request
861
862
863
864
865
866Data Structures
867~~~~~~~~~~~~~~~
868
Lusheng Ji6553a132017-10-12 02:47:00 +0000869
870DCAEDeploymentRequest Model Structure
871-------------------------------------
872
873Request for deploying a DCAE service.
874
875
876.. csv-table::
877 :delim: |
878 :header: "Name", "Required", "Type", "Format", "Properties", "Description"
879 :widths: 20, 10, 15, 15, 30, 25
880
Lusheng Jieaac78d2018-06-06 00:20:03 -0400881 inputs | No | | | | Object containing inputs needed by the service blueprint to create an instance of the service.
Lusheng Ji6553a132017-10-12 02:47:00 +0000882 serviceTypeId | Yes | string | | | The service type identifier (a unique ID assigned by DCAE inventory) for the service to be deployed.
883
884
Lusheng Ji6553a132017-10-12 02:47:00 +0000885
886**Inputs schema:**
887
888
889Object containing inputs needed by the service blueprint to create an instance of the service.
890Content of the object depends on the service being deployed.
891
892
893
894
895.. _d_6157bd3de5c8c7de78f2ab86397667e0:
896
897DCAEDeploymentResponse Model Structure
898--------------------------------------
899
900Response body for a PUT or DELETE to /dcae-deployments/{deploymentId}
901
902
903.. csv-table::
904 :delim: |
905 :header: "Name", "Required", "Type", "Format", "Properties", "Description"
906 :widths: 20, 10, 15, 15, 30, 25
907
Lusheng Jib2a561b2018-03-27 23:24:33 -0400908 links | Yes | :ref:`links <i_4a894329f99280d2268e250444b59376>` | | | Links that the API client can access.
909
Lusheng Ji6553a132017-10-12 02:47:00 +0000910 requestId | Yes | string | | | Unique identifier for the request
911
912
Lusheng Jib2a561b2018-03-27 23:24:33 -0400913.. _i_4a894329f99280d2268e250444b59376:
Lusheng Ji6553a132017-10-12 02:47:00 +0000914
Lusheng Jib2a561b2018-03-27 23:24:33 -0400915**Links schema:**
916
Lusheng Ji6553a132017-10-12 02:47:00 +0000917
918Links that the API client can access.
919
920
921.. csv-table::
922 :delim: |
923 :header: "Name", "Required", "Type", "Format", "Properties", "Description"
924 :widths: 20, 10, 15, 15, 30, 25
925
926 self | No | string | | | Link used to retrieve information about the service being deployed
927
928 status | No | string | | | Link used to retrieve information about the status of the installation workflow
929
930.. _d_c51e57d9583f6119caf83dd017cf214c:
931
932DCAEDeploymentsListResponse Model Structure
933-------------------------------------------
934
935Object providing a list of deployments
936
937
938.. csv-table::
939 :delim: |
940 :header: "Name", "Required", "Type", "Format", "Properties", "Description"
941 :widths: 20, 10, 15, 15, 30, 25
942
Lusheng Jib2a561b2018-03-27 23:24:33 -0400943 deployments | Yes | array of :ref:`deployments <i_98a80d81e7d1973d54db7713913d37e8>` | | |
Lusheng Ji6553a132017-10-12 02:47:00 +0000944 requestId | Yes | string | | | Unique identifier for the request
945
946
Lusheng Jib2a561b2018-03-27 23:24:33 -0400947.. _i_98a80d81e7d1973d54db7713913d37e8:
Lusheng Ji6553a132017-10-12 02:47:00 +0000948
Lusheng Jib2a561b2018-03-27 23:24:33 -0400949**Deployments schema:**
950
Lusheng Ji6553a132017-10-12 02:47:00 +0000951
952.. csv-table::
953 :delim: |
954 :header: "Name", "Required", "Type", "Format", "Properties", "Description"
955 :widths: 20, 10, 15, 15, 30, 25
956
957 href | No | string | | | URL for the service deployment
958
959
960.. _d_74f3f4f847dfb6bd181fcae06ad880b4:
961
962DCAEErrorResponse Model Structure
963---------------------------------
964
965Object reporting an error.
966
967
968.. csv-table::
969 :delim: |
970 :header: "Name", "Required", "Type", "Format", "Properties", "Description"
971 :widths: 20, 10, 15, 15, 30, 25
972
973 message | No | string | | | Human-readable description of the reason for the error
974 status | Yes | integer | | | HTTP status code for the response
975
976.. _d_f0103f05736b04468a4f85fe90da2e16:
977
978DCAEOperationStatusResponse Model Structure
979-------------------------------------------
980
981Response body for a request for status of an installation or uninstallation operation.
982
983
984.. csv-table::
985 :delim: |
986 :header: "Name", "Required", "Type", "Format", "Properties", "Description"
987 :widths: 20, 10, 15, 15, 30, 25
988
989 error | No | string | | | If status is 'failed', this field will be present and contain additional information about the reason the operation failed.
990
Lusheng Jib2a561b2018-03-27 23:24:33 -0400991 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.
992
Lusheng Ji6553a132017-10-12 02:47:00 +0000993 operationType | Yes | string | | | Type of operation being reported on. ('install' or 'uninstall')
994
995 requestId | Yes | string | | | A unique identifier assigned to the request. Useful for tracing a request through logs.
996
997 status | Yes | string | | | Status of the installation or uninstallation operation. Possible values are 'processing',
Lusheng Ji6553a132017-10-12 02:47:00 +0000998
999
Lusheng Jib2a561b2018-03-27 23:24:33 -04001000.. _i_2feace8c1d3584ec637edc0eb1b92699:
Lusheng Ji6553a132017-10-12 02:47:00 +00001001
Lusheng Jib2a561b2018-03-27 23:24:33 -04001002**Links schema:**
1003
Lusheng Ji6553a132017-10-12 02:47:00 +00001004
1005If 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.
1006
1007
1008.. csv-table::
1009 :delim: |
1010 :header: "Name", "Required", "Type", "Format", "Properties", "Description"
1011 :widths: 20, 10, 15, 15, 30, 25
1012
1013 self | No | string | | | Link used to retrieve information about the service.
1014
1015 uninstall | No | string | | | Link used to trigger an 'uninstall' operation for the service. (Use the DELETE method.)
1016
1017.. _d_1e3e880a733b457b648bd8c99e6c859c:
1018
1019DCAEPolicy Model Structure
1020--------------------------
1021
1022policy object
1023
1024.. csv-table::
1025 :delim: |
1026 :header: "Name", "Required", "Type", "Format", "Properties", "Description"
1027 :widths: 20, 10, 15, 15, 30, 25
1028
1029 policy_body | Yes | :ref:`DCAEPolicyBody <d_7ffe00ee1aaae6811199d64ff3fea344>` | | |
1030 policy_id | Yes | string | | | unique identifier of policy regardless of its version
1031
1032.. _d_7ffe00ee1aaae6811199d64ff3fea344:
1033
1034DCAEPolicyBody Model Structure
1035------------------------------
1036
1037policy_body - the whole object received from policy-engine
1038
1039.. csv-table::
1040 :delim: |
1041 :header: "Name", "Required", "Type", "Format", "Properties", "Description"
1042 :widths: 20, 10, 15, 15, 30, 25
1043
Lusheng Jib2a561b2018-03-27 23:24:33 -04001044 config | Yes | :ref:`config <i_ba9593ef6832fb8401f266e173acaa5c>` | | | the policy-config - the config data provided by policy owner
Lusheng Ji6553a132017-10-12 02:47:00 +00001045 policyName | Yes | string | | | unique policy name that contains the version and extension
1046 policyVersion | Yes | string | | | stringified int that is autoincremented by policy-engine
1047
Lusheng Jib2a561b2018-03-27 23:24:33 -04001048.. _i_ba9593ef6832fb8401f266e173acaa5c:
Lusheng Ji6553a132017-10-12 02:47:00 +00001049
1050**Config schema:**
1051
1052
1053the policy-config - the config data provided by policy owner
1054
1055
1056
Lusheng Ji6553a132017-10-12 02:47:00 +00001057DCAEPolicyRequest Model Structure
1058---------------------------------
1059
1060request to update policies on DCAE components.
1061
1062.. csv-table::
1063 :delim: |
1064 :header: "Name", "Required", "Type", "Format", "Properties", "Description"
1065 :widths: 20, 10, 15, 15, 30, 25
1066
Lusheng Jib2a561b2018-03-27 23:24:33 -04001067 catch_up | Yes | boolean | | | flag to indicate whether the request contains all the policies in PDP or not
Lusheng Jieaac78d2018-06-06 00:20:03 -04001068 errored_policies | No | | | | whether policy-engine returned an error on the policy.
Lusheng Jib2a561b2018-03-27 23:24:33 -04001069 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.
Lusheng Jieaac78d2018-06-06 00:20:03 -04001070 latest_policies | Yes | | | | dictionary of (policy_id -> DCAEPolicy object).
1071 removed_policies | Yes | | | | whether policy was removed from policy-engine.
Lusheng Jib2a561b2018-03-27 23:24:33 -04001072 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.
1073
1074
Lusheng Jib2a561b2018-03-27 23:24:33 -04001075**Errored_policies schema:**
1076
1077
1078whether policy-engine returned an error on the policy.
1079dictionary of (policy_id -> true).
1080In example: replace additionalProp1,2,3 with policy_id1,2,3 values
1081
1082
1083Map of {"key":"boolean"}
1084
Lusheng Ji6553a132017-10-12 02:47:00 +00001085**Latest_policies schema:**
1086
1087
Lusheng Jib2a561b2018-03-27 23:24:33 -04001088dictionary of (policy_id -> DCAEPolicy object).
1089In example: replace additionalProp1,2,3 with policy_id1,2,3 values
1090
Lusheng Ji6553a132017-10-12 02:47:00 +00001091
1092Map of {"key":":ref:`DCAEPolicy <d_1e3e880a733b457b648bd8c99e6c859c>`"}
1093
1094
1095
Lusheng Jib2a561b2018-03-27 23:24:33 -04001096**Removed_policies schema:**
Lusheng Ji6553a132017-10-12 02:47:00 +00001097
1098
Lusheng Jib2a561b2018-03-27 23:24:33 -04001099whether policy was removed from policy-engine.
1100dictionary of (policy_id -> true).
1101In example: replace additionalProp1,2,3 with policy_id1,2,3 values
Lusheng Ji6553a132017-10-12 02:47:00 +00001102
1103
Lusheng Jib2a561b2018-03-27 23:24:33 -04001104Map of {"key":"boolean"}
Lusheng Ji6553a132017-10-12 02:47:00 +00001105