blob: 3b25f1ea1e0194548b6c6b92f31d82e7a27e43ca [file] [log] [blame]
Lusheng Ji6553a132017-10-12 02:47:00 +00001deployment-handler API 4.1.0
2============================
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": {
82 "self": "somestring",
83 "status": "somestring"
84 },
85 "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 {
102 "message": "somestring",
103 "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 {
121 "message": "somestring",
122 "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 {
140 "message": "somestring",
141 "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 {
159 "message": "somestring",
160 "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"
216 },
217 {
218 "href": "somestring"
219 }
220 ],
221 "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 {
239 "message": "somestring",
240 "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 {
258 "message": "somestring",
259 "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 {
277 "message": "somestring",
278 "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 {
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
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 {
353 "message": "somestring",
354 "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 {
372 "message": "somestring",
373 "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 {
391 "message": "somestring",
392 "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 {
410 "message": "somestring",
411 "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
460 inputs | No | :ref:`inputs <i_51dfb5d178ebacb6d6617c15cefffa86>` | | | Object containing inputs needed by the service blueprint to create an instance of the service.
461Content 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_51dfb5d178ebacb6d6617c15cefffa86:
467
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 {
480 "inputs": {},
481 "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": {
504 "self": "somestring",
505 "status": "somestring"
506 },
507 "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 {
524 "message": "somestring",
525 "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 {
542 "message": "somestring",
543 "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 {
561 "message": "somestring",
562 "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 {
580 "message": "somestring",
581 "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 {
599 "message": "somestring",
600 "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 {
618 "message": "somestring",
619 "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
661Type: :ref:`DispatcherInfo <d_01a325801d3165f9b15dbdaa15b94815>`
662
663**Example:**
664
665.. code-block:: javascript
666
667 {
668 "apiVersion": "somestring",
669 "links": {
670 "events": "somestring",
671 "info": "somestring"
672 },
673 "serverVersion": "somestring"
674 }
675
676
677
678
679POLICY
680~~~~~~
681
682
683policy update API consumed by policy-handler and debug API to find policies on components
684
685
686
687
688
689GET ``/policy/components``
690--------------------------
691
692
693
694Description
695+++++++++++
696
697.. raw:: html
698
699 debug API to find policies on components
700
701
702Request
703+++++++
704
705
706Responses
707+++++++++
708
709**200**
710^^^^^^^
711
712deployment-handler found components with or without policies in cloudify
713
714
715
716
717
718
719POST ``/policy``
720----------------
721
722
723
724Description
725+++++++++++
726
727.. raw:: html
728
729 policy update API consumed by policy-handler
730
731
732Request
733+++++++
734
735
736
737.. _d_6ea6e6f48a0302e963a67833bbd0ff4a:
738
739Body
740^^^^
741
742request to update policies on DCAE components.
743
744.. csv-table::
745 :delim: |
746 :header: "Name", "Required", "Type", "Format", "Properties", "Description"
747 :widths: 20, 10, 15, 15, 30, 25
748
749 latest_policies | Yes | :ref:`latest_policies <i_22fec92398d6fc407cf75f0b4c0f3614>` | | | dictionary of (policy_id -> Policy object). In example: replace additionalProp1,2,3 with policy_id1,2,3 values
750
751.. _i_22fec92398d6fc407cf75f0b4c0f3614:
752
753**Latest_policies schema:**
754
755
756dictionary of (policy_id -> Policy object). In example: replace additionalProp1,2,3 with policy_id1,2,3 values
757
758Map of {"key":":ref:`DCAEPolicy <d_1e3e880a733b457b648bd8c99e6c859c>`"}
759
760
761
762.. code-block:: javascript
763
764 {
765 "latest_policies": {
766 "DCAEPolicy": {
767 "policy_body": {
768 "config": {},
769 "policyName": "somestring",
770 "policyVersion": "somestring"
771 },
772 "policy_id": "somestring"
773 }
774 }
775 }
776
777Responses
778+++++++++
779
780**200**
781^^^^^^^
782
783deployment-handler always responds with ok to /policy before processing the request
784
785
786
787
788
789Data Structures
790~~~~~~~~~~~~~~~
791
792.. _d_eea14e4929853a5aa415f44cd4868302:
793
794DCAEDeploymentRequest Model Structure
795-------------------------------------
796
797Request for deploying a DCAE service.
798
799
800.. csv-table::
801 :delim: |
802 :header: "Name", "Required", "Type", "Format", "Properties", "Description"
803 :widths: 20, 10, 15, 15, 30, 25
804
805 inputs | No | :ref:`inputs <i_51dfb5d178ebacb6d6617c15cefffa86>` | | | Object containing inputs needed by the service blueprint to create an instance of the service.
806Content of the object depends on the service being deployed.
807
808 serviceTypeId | Yes | string | | | The service type identifier (a unique ID assigned by DCAE inventory) for the service to be deployed.
809
810
811.. _i_51dfb5d178ebacb6d6617c15cefffa86:
812
813**Inputs schema:**
814
815
816Object containing inputs needed by the service blueprint to create an instance of the service.
817Content of the object depends on the service being deployed.
818
819
820
821
822.. _d_6157bd3de5c8c7de78f2ab86397667e0:
823
824DCAEDeploymentResponse Model Structure
825--------------------------------------
826
827Response body for a PUT or DELETE to /dcae-deployments/{deploymentId}
828
829
830.. csv-table::
831 :delim: |
832 :header: "Name", "Required", "Type", "Format", "Properties", "Description"
833 :widths: 20, 10, 15, 15, 30, 25
834
835 links | No | :ref:`DCAEDeploymentResponse_links <d_e5951c399cff33430222aefe098fbbbb>` | | |
836 requestId | Yes | string | | | Unique identifier for the request
837
838
839.. _d_e5951c399cff33430222aefe098fbbbb:
840
841DCAEDeploymentResponse_links Model Structure
842--------------------------------------------
843
844Links that the API client can access.
845
846
847.. csv-table::
848 :delim: |
849 :header: "Name", "Required", "Type", "Format", "Properties", "Description"
850 :widths: 20, 10, 15, 15, 30, 25
851
852 self | No | string | | | Link used to retrieve information about the service being deployed
853
854 status | No | string | | | Link used to retrieve information about the status of the installation workflow
855
856.. _d_c51e57d9583f6119caf83dd017cf214c:
857
858DCAEDeploymentsListResponse Model Structure
859-------------------------------------------
860
861Object providing a list of deployments
862
863
864.. csv-table::
865 :delim: |
866 :header: "Name", "Required", "Type", "Format", "Properties", "Description"
867 :widths: 20, 10, 15, 15, 30, 25
868
869 deployments | Yes | array of :ref:`DCAEDeploymentsListResponse_deployments <d_bf53389ec58f942852b6e44f2f35173c>` | | |
870 requestId | Yes | string | | | Unique identifier for the request
871
872
873.. _d_bf53389ec58f942852b6e44f2f35173c:
874
875DCAEDeploymentsListResponse_deployments Model Structure
876-------------------------------------------------------
877
878.. csv-table::
879 :delim: |
880 :header: "Name", "Required", "Type", "Format", "Properties", "Description"
881 :widths: 20, 10, 15, 15, 30, 25
882
883 href | No | string | | | URL for the service deployment
884
885
886.. _d_74f3f4f847dfb6bd181fcae06ad880b4:
887
888DCAEErrorResponse Model Structure
889---------------------------------
890
891Object reporting an error.
892
893
894.. csv-table::
895 :delim: |
896 :header: "Name", "Required", "Type", "Format", "Properties", "Description"
897 :widths: 20, 10, 15, 15, 30, 25
898
899 message | No | string | | | Human-readable description of the reason for the error
900 status | Yes | integer | | | HTTP status code for the response
901
902.. _d_f0103f05736b04468a4f85fe90da2e16:
903
904DCAEOperationStatusResponse Model Structure
905-------------------------------------------
906
907Response body for a request for status of an installation or uninstallation operation.
908
909
910.. csv-table::
911 :delim: |
912 :header: "Name", "Required", "Type", "Format", "Properties", "Description"
913 :widths: 20, 10, 15, 15, 30, 25
914
915 error | No | string | | | If status is 'failed', this field will be present and contain additional information about the reason the operation failed.
916
917 links | No | :ref:`DCAEOperationStatusResponse_links <d_d0c8dc90669705fbfd08cca966a5fcae>` | | |
918 operationType | Yes | string | | | Type of operation being reported on. ('install' or 'uninstall')
919
920 requestId | Yes | string | | | A unique identifier assigned to the request. Useful for tracing a request through logs.
921
922 status | Yes | string | | | Status of the installation or uninstallation operation. Possible values are 'processing',
923'succeeded', and 'failed'
924
925
926.. _d_d0c8dc90669705fbfd08cca966a5fcae:
927
928DCAEOperationStatusResponse_links Model Structure
929-------------------------------------------------
930
931If 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.
932
933
934.. csv-table::
935 :delim: |
936 :header: "Name", "Required", "Type", "Format", "Properties", "Description"
937 :widths: 20, 10, 15, 15, 30, 25
938
939 self | No | string | | | Link used to retrieve information about the service.
940
941 uninstall | No | string | | | Link used to trigger an 'uninstall' operation for the service. (Use the DELETE method.)
942
943.. _d_1e3e880a733b457b648bd8c99e6c859c:
944
945DCAEPolicy Model Structure
946--------------------------
947
948policy object
949
950.. csv-table::
951 :delim: |
952 :header: "Name", "Required", "Type", "Format", "Properties", "Description"
953 :widths: 20, 10, 15, 15, 30, 25
954
955 policy_body | Yes | :ref:`DCAEPolicyBody <d_7ffe00ee1aaae6811199d64ff3fea344>` | | |
956 policy_id | Yes | string | | | unique identifier of policy regardless of its version
957
958.. _d_7ffe00ee1aaae6811199d64ff3fea344:
959
960DCAEPolicyBody Model Structure
961------------------------------
962
963policy_body - the whole object received from policy-engine
964
965.. csv-table::
966 :delim: |
967 :header: "Name", "Required", "Type", "Format", "Properties", "Description"
968 :widths: 20, 10, 15, 15, 30, 25
969
970 config | Yes | :ref:`config <i_4926bbee050a2d1f47c3281f6c9095cf>` | | | the policy-config - the config data provided by policy owner
971 policyName | Yes | string | | | unique policy name that contains the version and extension
972 policyVersion | Yes | string | | | stringified int that is autoincremented by policy-engine
973
974.. _i_4926bbee050a2d1f47c3281f6c9095cf:
975
976**Config schema:**
977
978
979the policy-config - the config data provided by policy owner
980
981
982
983.. _d_6ea6e6f48a0302e963a67833bbd0ff4a:
984
985DCAEPolicyRequest Model Structure
986---------------------------------
987
988request to update policies on DCAE components.
989
990.. csv-table::
991 :delim: |
992 :header: "Name", "Required", "Type", "Format", "Properties", "Description"
993 :widths: 20, 10, 15, 15, 30, 25
994
995 latest_policies | Yes | :ref:`latest_policies <i_22fec92398d6fc407cf75f0b4c0f3614>` | | | dictionary of (policy_id -> Policy object). In example: replace additionalProp1,2,3 with policy_id1,2,3 values
996
997.. _i_22fec92398d6fc407cf75f0b4c0f3614:
998
999**Latest_policies schema:**
1000
1001
1002dictionary of (policy_id -> Policy object). In example: replace additionalProp1,2,3 with policy_id1,2,3 values
1003
1004Map of {"key":":ref:`DCAEPolicy <d_1e3e880a733b457b648bd8c99e6c859c>`"}
1005
1006
1007
1008.. _d_01a325801d3165f9b15dbdaa15b94815:
1009
1010DispatcherInfo Model Structure
1011------------------------------
1012
1013.. csv-table::
1014 :delim: |
1015 :header: "Name", "Required", "Type", "Format", "Properties", "Description"
1016 :widths: 20, 10, 15, 15, 30, 25
1017
1018 apiVersion | No | string | | | version of API supported by this server
1019
1020 links | No | :ref:`DispatcherInfo_links <d_0a18e12425d91480a8516b17efe05340>` | | |
1021 serverVersion | No | string | | | version of software running on this server
1022
1023
1024.. _d_0a18e12425d91480a8516b17efe05340:
1025
1026DispatcherInfo_links Model Structure
1027------------------------------------
1028
1029Links to API resources
1030
1031
1032.. csv-table::
1033 :delim: |
1034 :header: "Name", "Required", "Type", "Format", "Properties", "Description"
1035 :widths: 20, 10, 15, 15, 30, 25
1036
1037 events | No | string | | | path for the events endpoint
1038
1039 info | No | string | | | path for the server information endpoint
1040
1041