blob: ab4c0c5c909bd59f4d457a7a11132879f52e7ef5 [file] [log] [blame]
Eric Debeau1af30532019-05-14 17:45:22 +00001.. This work is licensed under a
2 Creative Commons Attribution 4.0 International License.
3
Vijay VK6b0fa462019-05-20 16:06:11 +01004deployment-handler
5==================
Lusheng Ji6553a132017-10-12 02:47:00 +00006
7.. toctree::
8 :maxdepth: 3
9
Eric Debeau1af30532019-05-14 17:45:22 +000010.. csv-table::
11 :header: "API name", "Swagger JSON", "Swagger YAML"
12 :widths: 10,5,5
13
14 "deployment-handler", ":download:`link <deployment-handler-API.json>`", ":download:`link <deployment-handler-API.yaml>`"
Lusheng Ji6553a132017-10-12 02:47:00 +000015
16Description
17~~~~~~~~~~~
18
Eric Debeau1af30532019-05-14 17:45:22 +000019High-level API for deploying/undeploying composed DCAE services using
20Cloudify Manager.
Lusheng Ji6553a132017-10-12 02:47:00 +000021
22License
23~~~~~~~
24
Lusheng Ji6553a132017-10-12 02:47:00 +000025`Apache 2.0 <http://www.apache.org/licenses/LICENSE-2.0.html>`_
26
Lusheng Ji6553a132017-10-12 02:47:00 +000027DCAE-DEPLOYMENTS
28~~~~~~~~~~~~~~~~
29
Lusheng Ji6553a132017-10-12 02:47:00 +000030operations on dcae-deployments
31
Lusheng Ji6553a132017-10-12 02:47:00 +000032DELETE ``/dcae-deployments/{deploymentId}``
33-------------------------------------------
34
Lusheng Ji6553a132017-10-12 02:47:00 +000035Description
36+++++++++++
37
38.. raw:: html
39
40 Uninstall the DCAE service and remove all associated data from the orchestrator.
41
Lusheng Ji6553a132017-10-12 02:47:00 +000042Parameters
43++++++++++
44
45.. csv-table::
46 :delim: |
47 :header: "Name", "Located in", "Required", "Type", "Format", "Properties", "Description"
48 :widths: 20, 15, 10, 10, 10, 20, 30
49
Eric Debeau1af30532019-05-14 17:45:22 +000050 deploymentId | path | Yes | string | | | Deployment identifier for the service to be uninstalled.
Lusheng Ji6553a132017-10-12 02:47:00 +000051
52Request
53+++++++
54
Lusheng Ji6553a132017-10-12 02:47:00 +000055Responses
56+++++++++
57
58**202**
59^^^^^^^
60
61Success: The dispatcher has initiated the uninstall operation.
62
Lusheng Ji6553a132017-10-12 02:47:00 +000063Type: :ref:`DCAEDeploymentResponse <d_6157bd3de5c8c7de78f2ab86397667e0>`
64
65**Example:**
66
67.. code-block:: javascript
68
69 {
70 "links": {
Lusheng Jib2a561b2018-03-27 23:24:33 -040071 "self": "somestring",
Lusheng Ji6553a132017-10-12 02:47:00 +000072 "status": "somestring"
Lusheng Jib2a561b2018-03-27 23:24:33 -040073 },
Lusheng Ji6553a132017-10-12 02:47:00 +000074 "requestId": "somestring"
75 }
76
77**400**
78^^^^^^^
79
80Bad request: See the message in the response for details.
81
Lusheng Ji6553a132017-10-12 02:47:00 +000082Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>`
83
84**Example:**
85
86.. code-block:: javascript
87
88 {
Lusheng Jib2a561b2018-03-27 23:24:33 -040089 "message": "somestring",
Lusheng Ji6553a132017-10-12 02:47:00 +000090 "status": 1
91 }
92
93**500**
94^^^^^^^
95
96Problem on the server side. See the message
97in the response for more details.
98
Lusheng Ji6553a132017-10-12 02:47:00 +000099Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>`
100
101**Example:**
102
103.. code-block:: javascript
104
105 {
Lusheng Jib2a561b2018-03-27 23:24:33 -0400106 "message": "somestring",
Lusheng Ji6553a132017-10-12 02:47:00 +0000107 "status": 1
108 }
109
110**502**
111^^^^^^^
112
113Error reported to the dispatcher by a downstream system. See the message
114in the response for more details.
115
Lusheng Ji6553a132017-10-12 02:47:00 +0000116Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>`
117
118**Example:**
119
120.. code-block:: javascript
121
122 {
Lusheng Jib2a561b2018-03-27 23:24:33 -0400123 "message": "somestring",
Lusheng Ji6553a132017-10-12 02:47:00 +0000124 "status": 1
125 }
126
127**504**
128^^^^^^^
129
130Error communicating with a downstream system. See the message
131in the response for more details.
132
Lusheng Ji6553a132017-10-12 02:47:00 +0000133Type: :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
Lusheng Ji6553a132017-10-12 02:47:00 +0000144GET ``/dcae-deployments``
145-------------------------
146
Lusheng Ji6553a132017-10-12 02:47:00 +0000147Description
148+++++++++++
149
150.. raw:: html
151
152 List service deployments known to the orchestrator, optionally restricted to a single service type
153
Lusheng Ji6553a132017-10-12 02:47:00 +0000154Parameters
155++++++++++
156
157.. csv-table::
158 :delim: |
159 :header: "Name", "Located in", "Required", "Type", "Format", "Properties", "Description"
160 :widths: 20, 15, 10, 10, 10, 20, 30
161
Eric Debeau1af30532019-05-14 17:45:22 +0000162 serviceTypeId | query | No | string | | | Service type identifier for the type whose deployments are to be listed
Lusheng Ji6553a132017-10-12 02:47:00 +0000163
164Request
165+++++++
166
Lusheng Ji6553a132017-10-12 02:47:00 +0000167Responses
168+++++++++
169
170**200**
171^^^^^^^
172
Eric Debeau1af30532019-05-14 17:45:22 +0000173Success. (Note that if no matching deployments are found, the request is still
174a success; the deployments array is empty in that case.)
Lusheng Ji6553a132017-10-12 02:47:00 +0000175
176Type: :ref:`DCAEDeploymentsListResponse <d_c51e57d9583f6119caf83dd017cf214c>`
177
178**Example:**
179
180.. code-block:: javascript
181
182 {
183 "deployments": [
184 {
185 "href": "somestring"
Lusheng Jib2a561b2018-03-27 23:24:33 -0400186 },
Lusheng Ji6553a132017-10-12 02:47:00 +0000187 {
188 "href": "somestring"
189 }
Lusheng Jib2a561b2018-03-27 23:24:33 -0400190 ],
Lusheng Ji6553a132017-10-12 02:47:00 +0000191 "requestId": "somestring"
192 }
193
194**500**
195^^^^^^^
196
197Problem on the server side. See the message
198in the response for more details.
199
Lusheng Ji6553a132017-10-12 02:47:00 +0000200Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>`
201
202**Example:**
203
204.. code-block:: javascript
205
206 {
Lusheng Jib2a561b2018-03-27 23:24:33 -0400207 "message": "somestring",
Lusheng Ji6553a132017-10-12 02:47:00 +0000208 "status": 1
209 }
210
211**502**
212^^^^^^^
213
214Error reported to the dispatcher by a downstream system. See the message
215in the response for more details.
216
Lusheng Ji6553a132017-10-12 02:47:00 +0000217Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>`
218
219**Example:**
220
221.. code-block:: javascript
222
223 {
Lusheng Jib2a561b2018-03-27 23:24:33 -0400224 "message": "somestring",
Lusheng Ji6553a132017-10-12 02:47:00 +0000225 "status": 1
226 }
227
228**504**
229^^^^^^^
230
231Error communicating with a downstream system. See the message
232in the response for more details.
233
Lusheng Ji6553a132017-10-12 02:47:00 +0000234Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>`
235
236**Example:**
237
238.. code-block:: javascript
239
240 {
Lusheng Jib2a561b2018-03-27 23:24:33 -0400241 "message": "somestring",
Lusheng Ji6553a132017-10-12 02:47:00 +0000242 "status": 1
243 }
244
Lusheng Ji6553a132017-10-12 02:47:00 +0000245GET ``/dcae-deployments/{deploymentId}/operation/{operationId}``
246----------------------------------------------------------------
247
Lusheng Ji6553a132017-10-12 02:47:00 +0000248Description
249+++++++++++
250
251.. raw:: html
252
253 Get status of a deployment operation
254
Lusheng Ji6553a132017-10-12 02:47:00 +0000255Parameters
256++++++++++
257
258.. csv-table::
259 :delim: |
260 :header: "Name", "Located in", "Required", "Type", "Format", "Properties", "Description"
261 :widths: 20, 15, 10, 10, 10, 20, 30
262
Eric Debeau1af30532019-05-14 17:45:22 +0000263 deploymentId | path | Yes | string | | |
264 operationId | path | Yes | string | | |
Lusheng Ji6553a132017-10-12 02:47:00 +0000265
266Request
267+++++++
268
Lusheng Ji6553a132017-10-12 02:47:00 +0000269Responses
270+++++++++
271
272**200**
273^^^^^^^
274
275Status information retrieved successfully
276
Lusheng Ji6553a132017-10-12 02:47:00 +0000277Type: :ref:`DCAEOperationStatusResponse <d_f0103f05736b04468a4f85fe90da2e16>`
278
279**Example:**
280
281.. code-block:: javascript
282
283 {
Lusheng Jib2a561b2018-03-27 23:24:33 -0400284 "error": "somestring",
Lusheng Ji6553a132017-10-12 02:47:00 +0000285 "links": {
Lusheng Jib2a561b2018-03-27 23:24:33 -0400286 "self": "somestring",
Lusheng Ji6553a132017-10-12 02:47:00 +0000287 "uninstall": "somestring"
Lusheng Jib2a561b2018-03-27 23:24:33 -0400288 },
289 "operationType": "somestring",
290 "requestId": "somestring",
Lusheng Ji6553a132017-10-12 02:47:00 +0000291 "status": "somestring"
292 }
293
294**404**
295^^^^^^^
296
Eric Debeau1af30532019-05-14 17:45:22 +0000297The operation information does not exist (possibly because the service has been
298uninstalled and deleted).
Lusheng Ji6553a132017-10-12 02:47:00 +0000299
300Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>`
301
302**Example:**
303
304.. code-block:: javascript
305
306 {
Lusheng Jib2a561b2018-03-27 23:24:33 -0400307 "message": "somestring",
Lusheng Ji6553a132017-10-12 02:47:00 +0000308 "status": 1
309 }
310
311**500**
312^^^^^^^
313
314Problem on the server side. See the message
315in the response for more details.
316
Lusheng Ji6553a132017-10-12 02:47:00 +0000317Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>`
318
319**Example:**
320
321.. code-block:: javascript
322
323 {
Lusheng Jib2a561b2018-03-27 23:24:33 -0400324 "message": "somestring",
Lusheng Ji6553a132017-10-12 02:47:00 +0000325 "status": 1
326 }
327
328**502**
329^^^^^^^
330
331Error reported to the dispatcher by a downstream system. See the message
332in the response for more details.
333
Lusheng Ji6553a132017-10-12 02:47:00 +0000334Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>`
335
336**Example:**
337
338.. code-block:: javascript
339
340 {
Lusheng Jib2a561b2018-03-27 23:24:33 -0400341 "message": "somestring",
Lusheng Ji6553a132017-10-12 02:47:00 +0000342 "status": 1
343 }
344
345**504**
346^^^^^^^
347
348Error communicating with a downstream system. See the message
349in the response for more details.
350
Lusheng Ji6553a132017-10-12 02:47:00 +0000351Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>`
352
353**Example:**
354
355.. code-block:: javascript
356
357 {
Lusheng Jib2a561b2018-03-27 23:24:33 -0400358 "message": "somestring",
Lusheng Ji6553a132017-10-12 02:47:00 +0000359 "status": 1
360 }
361
Lusheng Ji6553a132017-10-12 02:47:00 +0000362PUT ``/dcae-deployments/{deploymentId}``
363----------------------------------------
364
Lusheng Ji6553a132017-10-12 02:47:00 +0000365Description
366+++++++++++
367
368.. raw:: html
369
370 Request deployment of a DCAE service
371
Lusheng Ji6553a132017-10-12 02:47:00 +0000372Parameters
373++++++++++
374
375.. csv-table::
376 :delim: |
377 :header: "Name", "Located in", "Required", "Type", "Format", "Properties", "Description"
378 :widths: 20, 15, 10, 10, 10, 20, 30
379
Eric Debeau1af30532019-05-14 17:45:22 +0000380 deploymentId | path | Yes | string | | | Unique deployment identifier assigned by the API client.
Lusheng Ji6553a132017-10-12 02:47:00 +0000381
382Request
383+++++++
384
Lusheng Ji6553a132017-10-12 02:47:00 +0000385.. _d_eea14e4929853a5aa415f44cd4868302:
386
387Body
388^^^^
389
390Request for deploying a DCAE service.
391
Lusheng Ji6553a132017-10-12 02:47:00 +0000392.. csv-table::
393 :delim: |
394 :header: "Name", "Required", "Type", "Format", "Properties", "Description"
395 :widths: 20, 10, 15, 15, 30, 25
396
Eric Debeau1af30532019-05-14 17:45:22 +0000397 inputs | No | | | | 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.
Lusheng Ji6553a132017-10-12 02:47:00 +0000398 serviceTypeId | Yes | string | | | The service type identifier (a unique ID assigned by DCAE inventory) for the service to be deployed.
399
Lusheng Jib2a561b2018-03-27 23:24:33 -0400400.. _i_08ada55a389e24cd45beef83306fd08e:
Lusheng Ji6553a132017-10-12 02:47:00 +0000401
402**Inputs schema:**
403
Eric Debeau1af30532019-05-14 17:45:22 +0000404Object containing inputs needed by the service blueprint to create an instance
405of the service. Content of the object depends on the service being deployed.
Lusheng Ji6553a132017-10-12 02:47:00 +0000406
407.. code-block:: javascript
408
409 {
Lusheng Jib2a561b2018-03-27 23:24:33 -0400410 "inputs": {},
Lusheng Ji6553a132017-10-12 02:47:00 +0000411 "serviceTypeId": "somestring"
412 }
413
414Responses
415+++++++++
416
417**202**
418^^^^^^^
419
420Success: The content that was posted is valid, the dispatcher has
Eric Debeau1af30532019-05-14 17:45:22 +0000421 found the needed blueprint, created an instance of the topology in the
422 orchestrator, and started an installation workflow.
Lusheng Ji6553a132017-10-12 02:47:00 +0000423
424Type: :ref:`DCAEDeploymentResponse <d_6157bd3de5c8c7de78f2ab86397667e0>`
425
426**Example:**
427
428.. code-block:: javascript
429
430 {
431 "links": {
Lusheng Jib2a561b2018-03-27 23:24:33 -0400432 "self": "somestring",
Lusheng Ji6553a132017-10-12 02:47:00 +0000433 "status": "somestring"
Lusheng Jib2a561b2018-03-27 23:24:33 -0400434 },
Lusheng Ji6553a132017-10-12 02:47:00 +0000435 "requestId": "somestring"
436 }
437
438**400**
439^^^^^^^
440
441Bad request: See the message in the response for details.
442
Lusheng Ji6553a132017-10-12 02:47:00 +0000443Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>`
444
445**Example:**
446
447.. code-block:: javascript
448
449 {
Lusheng Jib2a561b2018-03-27 23:24:33 -0400450 "message": "somestring",
Lusheng Ji6553a132017-10-12 02:47:00 +0000451 "status": 1
452 }
453
454**409**
455^^^^^^^
456
Eric Debeau1af30532019-05-14 17:45:22 +0000457A service with the specified deployment Id already exists. Using PUT to update
458the service is not a supported operation.
Lusheng Ji6553a132017-10-12 02:47:00 +0000459
460Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>`
461
462**Example:**
463
464.. code-block:: javascript
465
466 {
Lusheng Jib2a561b2018-03-27 23:24:33 -0400467 "message": "somestring",
Lusheng Ji6553a132017-10-12 02:47:00 +0000468 "status": 1
469 }
470
471**415**
472^^^^^^^
473
474Bad request: The Content-Type header does not indicate that the content is
475'application/json'
476
Lusheng Ji6553a132017-10-12 02:47:00 +0000477Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>`
478
479**Example:**
480
481.. code-block:: javascript
482
483 {
Lusheng Jib2a561b2018-03-27 23:24:33 -0400484 "message": "somestring",
Lusheng Ji6553a132017-10-12 02:47:00 +0000485 "status": 1
486 }
487
488**500**
489^^^^^^^
490
491Problem on the server side. See the message
492in the response for more details.
493
Lusheng Ji6553a132017-10-12 02:47:00 +0000494Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>`
495
496**Example:**
497
498.. code-block:: javascript
499
500 {
Lusheng Jib2a561b2018-03-27 23:24:33 -0400501 "message": "somestring",
Lusheng Ji6553a132017-10-12 02:47:00 +0000502 "status": 1
503 }
504
505**502**
506^^^^^^^
507
508Error reported to the dispatcher by a downstream system. See the message
509in the response for more details.
510
Lusheng Ji6553a132017-10-12 02:47:00 +0000511Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>`
512
513**Example:**
514
515.. code-block:: javascript
516
517 {
Lusheng Jib2a561b2018-03-27 23:24:33 -0400518 "message": "somestring",
Lusheng Ji6553a132017-10-12 02:47:00 +0000519 "status": 1
520 }
521
522**504**
523^^^^^^^
524
525Error communicating with a downstream system. See the message
526in the response for more details.
527
Lusheng Ji6553a132017-10-12 02:47:00 +0000528Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>`
529
530**Example:**
531
532.. code-block:: javascript
533
534 {
Lusheng Jib2a561b2018-03-27 23:24:33 -0400535 "message": "somestring",
Lusheng Ji6553a132017-10-12 02:47:00 +0000536 "status": 1
537 }
538
539
Lusheng Ji6553a132017-10-12 02:47:00 +0000540INFO
541~~~~
542
Lusheng Ji6553a132017-10-12 02:47:00 +0000543version and links
544
Lusheng Ji6553a132017-10-12 02:47:00 +0000545GET ``/``
546---------
547
Lusheng Ji6553a132017-10-12 02:47:00 +0000548Description
549+++++++++++
550
551.. raw:: html
552
553 Returns version information and links to API operations
554
Lusheng Ji6553a132017-10-12 02:47:00 +0000555Request
556+++++++
557
Lusheng Ji6553a132017-10-12 02:47:00 +0000558Responses
559+++++++++
560
561**200**
562^^^^^^^
563
564Success
565
Lusheng Jib2a561b2018-03-27 23:24:33 -0400566.. _i_2e7b26d45eaa7203222963d454a86a88:
567
568**Response Schema:**
569
570.. csv-table::
571 :delim: |
572 :header: "Name", "Required", "Type", "Format", "Properties", "Description"
573 :widths: 20, 10, 15, 15, 30, 25
574
575 apiVersion | No | string | | | version of API supported by this server
576
577 links | No | :ref:`links <i_bcea41e897f5de95cd50fa873acb5f65>` | | | Links to API resources
578
579 serverVersion | No | string | | | version of software running on this server
580
Lusheng Jib2a561b2018-03-27 23:24:33 -0400581.. _i_bcea41e897f5de95cd50fa873acb5f65:
582
583**Links schema:**
584
Lusheng Jib2a561b2018-03-27 23:24:33 -0400585Links to API resources
586
Lusheng Jib2a561b2018-03-27 23:24:33 -0400587.. csv-table::
588 :delim: |
589 :header: "Name", "Required", "Type", "Format", "Properties", "Description"
590 :widths: 20, 10, 15, 15, 30, 25
591
592 events | No | string | | | path for the events endpoint
593
594 info | No | string | | | path for the server information endpoint
595
Lusheng Ji6553a132017-10-12 02:47:00 +0000596**Example:**
597
598.. code-block:: javascript
599
600 {
Lusheng Jib2a561b2018-03-27 23:24:33 -0400601 "apiVersion": "somestring",
Lusheng Ji6553a132017-10-12 02:47:00 +0000602 "links": {
Lusheng Jib2a561b2018-03-27 23:24:33 -0400603 "events": "somestring",
Lusheng Ji6553a132017-10-12 02:47:00 +0000604 "info": "somestring"
Lusheng Jib2a561b2018-03-27 23:24:33 -0400605 },
Lusheng Ji6553a132017-10-12 02:47:00 +0000606 "serverVersion": "somestring"
607 }
608
609
Lusheng Ji6553a132017-10-12 02:47:00 +0000610POLICY
611~~~~~~
612
Eric Debeau1af30532019-05-14 17:45:22 +0000613policy update API consumed by policy-handler and debug API to find policies
614on components
Lusheng Ji6553a132017-10-12 02:47:00 +0000615
616GET ``/policy/components``
617--------------------------
618
Lusheng Ji6553a132017-10-12 02:47:00 +0000619Description
620+++++++++++
621
622.. raw:: html
623
624 debug API to find policies on components
625
Lusheng Ji6553a132017-10-12 02:47:00 +0000626Request
627+++++++
628
Lusheng Ji6553a132017-10-12 02:47:00 +0000629Responses
630+++++++++
631
632**200**
633^^^^^^^
634
635deployment-handler found components with or without policies in cloudify
636
637
Lusheng Ji6553a132017-10-12 02:47:00 +0000638POST ``/policy``
639----------------
640
Lusheng Ji6553a132017-10-12 02:47:00 +0000641Description
642+++++++++++
643
644.. raw:: html
645
646 policy update API consumed by policy-handler
647
Lusheng Ji6553a132017-10-12 02:47:00 +0000648Request
649+++++++
650
Lusheng Ji6553a132017-10-12 02:47:00 +0000651.. _d_6ea6e6f48a0302e963a67833bbd0ff4a:
652
653Body
654^^^^
655
656request to update policies on DCAE components.
657
658.. csv-table::
659 :delim: |
660 :header: "Name", "Required", "Type", "Format", "Properties", "Description"
661 :widths: 20, 10, 15, 15, 30, 25
662
Lusheng Jib2a561b2018-03-27 23:24:33 -0400663 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 -0400664 errored_policies | No | | | | whether policy-engine returned an error on the policy.
Lusheng Jib2a561b2018-03-27 23:24:33 -0400665 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 -0400666 latest_policies | Yes | | | | dictionary of (policy_id -> DCAEPolicy object).
667 removed_policies | Yes | | | | whether policy was removed from policy-engine.
Lusheng Jib2a561b2018-03-27 23:24:33 -0400668 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.
669
Lusheng Jib2a561b2018-03-27 23:24:33 -0400670.. _i_0e88fa72c5312eaae3990753181ce5fe:
671
672**Errored_policies schema:**
673
Lusheng Jib2a561b2018-03-27 23:24:33 -0400674whether policy-engine returned an error on the policy.
675dictionary of (policy_id -> true).
676In example: replace additionalProp1,2,3 with policy_id1,2,3 values
677
Lusheng Jib2a561b2018-03-27 23:24:33 -0400678Map of {"key":"boolean"}
679
680.. _i_cbc40bad95bddbd536eeab0a92f483af:
Lusheng Ji6553a132017-10-12 02:47:00 +0000681
682**Latest_policies schema:**
683
Lusheng Jib2a561b2018-03-27 23:24:33 -0400684dictionary of (policy_id -> DCAEPolicy object).
685In example: replace additionalProp1,2,3 with policy_id1,2,3 values
686
Lusheng Ji6553a132017-10-12 02:47:00 +0000687Map of {"key":":ref:`DCAEPolicy <d_1e3e880a733b457b648bd8c99e6c859c>`"}
688
Lusheng Jib2a561b2018-03-27 23:24:33 -0400689.. _i_0ce52a29e44aa0cc7929fe7b555551bc:
690
691**Removed_policies schema:**
692
Lusheng Jib2a561b2018-03-27 23:24:33 -0400693whether policy was removed from policy-engine.
694dictionary of (policy_id -> true).
695In example: replace additionalProp1,2,3 with policy_id1,2,3 values
696
Lusheng Jib2a561b2018-03-27 23:24:33 -0400697Map of {"key":"boolean"}
698
Lusheng Ji6553a132017-10-12 02:47:00 +0000699.. code-block:: javascript
700
701 {
Lusheng Jib2a561b2018-03-27 23:24:33 -0400702 "catch_up": true,
703 "errored_policies": {},
704 "errored_scopes": [
705 "somestring",
706 "somestring"
707 ],
Lusheng Ji6553a132017-10-12 02:47:00 +0000708 "latest_policies": {
709 "DCAEPolicy": {
710 "policy_body": {
Lusheng Jib2a561b2018-03-27 23:24:33 -0400711 "config": {},
712 "policyName": "somestring",
Lusheng Ji6553a132017-10-12 02:47:00 +0000713 "policyVersion": "somestring"
Lusheng Jib2a561b2018-03-27 23:24:33 -0400714 },
Lusheng Ji6553a132017-10-12 02:47:00 +0000715 "policy_id": "somestring"
716 }
Lusheng Jib2a561b2018-03-27 23:24:33 -0400717 },
718 "removed_policies": {},
719 "scope_prefixes": [
720 "somestring",
721 "somestring"
722 ]
Lusheng Ji6553a132017-10-12 02:47:00 +0000723 }
724
725Responses
726+++++++++
727
728**200**
729^^^^^^^
730
Eric Debeau1af30532019-05-14 17:45:22 +0000731deployment-handler always responds with ok to /policy before processing
732the request
Lusheng Ji6553a132017-10-12 02:47:00 +0000733
734
Lusheng Ji6553a132017-10-12 02:47:00 +0000735Data Structures
736~~~~~~~~~~~~~~~
737
Lusheng Ji6553a132017-10-12 02:47:00 +0000738DCAEDeploymentRequest Model Structure
739-------------------------------------
740
741Request for deploying a DCAE service.
742
Lusheng Ji6553a132017-10-12 02:47:00 +0000743.. csv-table::
744 :delim: |
745 :header: "Name", "Required", "Type", "Format", "Properties", "Description"
746 :widths: 20, 10, 15, 15, 30, 25
747
Lusheng Jieaac78d2018-06-06 00:20:03 -0400748 inputs | No | | | | Object containing inputs needed by the service blueprint to create an instance of the service.
Lusheng Ji6553a132017-10-12 02:47:00 +0000749 serviceTypeId | Yes | string | | | The service type identifier (a unique ID assigned by DCAE inventory) for the service to be deployed.
750
Lusheng Ji6553a132017-10-12 02:47:00 +0000751**Inputs schema:**
752
Eric Debeau1af30532019-05-14 17:45:22 +0000753Object containing inputs needed by the service blueprint to create an instance
754of the service. Content of the object depends on the service being deployed.
Lusheng Ji6553a132017-10-12 02:47:00 +0000755
756.. _d_6157bd3de5c8c7de78f2ab86397667e0:
757
758DCAEDeploymentResponse Model Structure
759--------------------------------------
760
761Response body for a PUT or DELETE to /dcae-deployments/{deploymentId}
762
Lusheng Ji6553a132017-10-12 02:47:00 +0000763.. csv-table::
764 :delim: |
765 :header: "Name", "Required", "Type", "Format", "Properties", "Description"
766 :widths: 20, 10, 15, 15, 30, 25
767
Lusheng Jib2a561b2018-03-27 23:24:33 -0400768 links | Yes | :ref:`links <i_4a894329f99280d2268e250444b59376>` | | | Links that the API client can access.
769
Lusheng Ji6553a132017-10-12 02:47:00 +0000770 requestId | Yes | string | | | Unique identifier for the request
771
Lusheng Jib2a561b2018-03-27 23:24:33 -0400772.. _i_4a894329f99280d2268e250444b59376:
Lusheng Ji6553a132017-10-12 02:47:00 +0000773
Lusheng Jib2a561b2018-03-27 23:24:33 -0400774**Links schema:**
775
Lusheng Ji6553a132017-10-12 02:47:00 +0000776Links that the API client can access.
777
Lusheng Ji6553a132017-10-12 02:47:00 +0000778.. csv-table::
779 :delim: |
780 :header: "Name", "Required", "Type", "Format", "Properties", "Description"
781 :widths: 20, 10, 15, 15, 30, 25
782
783 self | No | string | | | Link used to retrieve information about the service being deployed
784
785 status | No | string | | | Link used to retrieve information about the status of the installation workflow
786
787.. _d_c51e57d9583f6119caf83dd017cf214c:
788
789DCAEDeploymentsListResponse Model Structure
790-------------------------------------------
791
792Object providing a list of deployments
793
Lusheng Ji6553a132017-10-12 02:47:00 +0000794.. csv-table::
795 :delim: |
796 :header: "Name", "Required", "Type", "Format", "Properties", "Description"
797 :widths: 20, 10, 15, 15, 30, 25
798
Eric Debeau1af30532019-05-14 17:45:22 +0000799 deployments | Yes | array of :ref:`deployments <i_98a80d81e7d1973d54db7713913d37e8>` | | |
Lusheng Ji6553a132017-10-12 02:47:00 +0000800 requestId | Yes | string | | | Unique identifier for the request
801
Lusheng Jib2a561b2018-03-27 23:24:33 -0400802.. _i_98a80d81e7d1973d54db7713913d37e8:
Lusheng Ji6553a132017-10-12 02:47:00 +0000803
Lusheng Jib2a561b2018-03-27 23:24:33 -0400804**Deployments schema:**
805
Lusheng Ji6553a132017-10-12 02:47:00 +0000806.. csv-table::
807 :delim: |
808 :header: "Name", "Required", "Type", "Format", "Properties", "Description"
809 :widths: 20, 10, 15, 15, 30, 25
810
811 href | No | string | | | URL for the service deployment
812
Lusheng Ji6553a132017-10-12 02:47:00 +0000813.. _d_74f3f4f847dfb6bd181fcae06ad880b4:
814
815DCAEErrorResponse Model Structure
816---------------------------------
817
818Object reporting an error.
819
Lusheng Ji6553a132017-10-12 02:47:00 +0000820.. csv-table::
821 :delim: |
822 :header: "Name", "Required", "Type", "Format", "Properties", "Description"
823 :widths: 20, 10, 15, 15, 30, 25
824
825 message | No | string | | | Human-readable description of the reason for the error
826 status | Yes | integer | | | HTTP status code for the response
827
828.. _d_f0103f05736b04468a4f85fe90da2e16:
829
830DCAEOperationStatusResponse Model Structure
831-------------------------------------------
832
Eric Debeau1af30532019-05-14 17:45:22 +0000833Response body for a request for status of an installation or uninstallation
834operation.
Lusheng Ji6553a132017-10-12 02:47:00 +0000835
836.. csv-table::
837 :delim: |
838 :header: "Name", "Required", "Type", "Format", "Properties", "Description"
839 :widths: 20, 10, 15, 15, 30, 25
840
841 error | No | string | | | If status is 'failed', this field will be present and contain additional information about the reason the operation failed.
842
Lusheng Jib2a561b2018-03-27 23:24:33 -0400843 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.
844
Lusheng Ji6553a132017-10-12 02:47:00 +0000845 operationType | Yes | string | | | Type of operation being reported on. ('install' or 'uninstall')
846
847 requestId | Yes | string | | | A unique identifier assigned to the request. Useful for tracing a request through logs.
848
849 status | Yes | string | | | Status of the installation or uninstallation operation. Possible values are 'processing',
Lusheng Ji6553a132017-10-12 02:47:00 +0000850
Lusheng Jib2a561b2018-03-27 23:24:33 -0400851.. _i_2feace8c1d3584ec637edc0eb1b92699:
Lusheng Ji6553a132017-10-12 02:47:00 +0000852
Lusheng Jib2a561b2018-03-27 23:24:33 -0400853**Links schema:**
854
Eric Debeau1af30532019-05-14 17:45:22 +0000855If the operation succeeded, links that the client can follow to take further
856action. Note that a successful 'uninstall' operation removes the DCAE service
857instance completely, so there are no possible further actions, and no links.
Lusheng Ji6553a132017-10-12 02:47:00 +0000858
859.. csv-table::
860 :delim: |
861 :header: "Name", "Required", "Type", "Format", "Properties", "Description"
862 :widths: 20, 10, 15, 15, 30, 25
863
864 self | No | string | | | Link used to retrieve information about the service.
865
866 uninstall | No | string | | | Link used to trigger an 'uninstall' operation for the service. (Use the DELETE method.)
867
868.. _d_1e3e880a733b457b648bd8c99e6c859c:
869
870DCAEPolicy Model Structure
871--------------------------
872
873policy object
874
875.. csv-table::
876 :delim: |
877 :header: "Name", "Required", "Type", "Format", "Properties", "Description"
878 :widths: 20, 10, 15, 15, 30, 25
879
Eric Debeau1af30532019-05-14 17:45:22 +0000880 policy_body | Yes | :ref:`DCAEPolicyBody <d_7ffe00ee1aaae6811199d64ff3fea344>` | | |
Lusheng Ji6553a132017-10-12 02:47:00 +0000881 policy_id | Yes | string | | | unique identifier of policy regardless of its version
882
883.. _d_7ffe00ee1aaae6811199d64ff3fea344:
884
885DCAEPolicyBody Model Structure
886------------------------------
887
888policy_body - the whole object received from policy-engine
889
890.. csv-table::
891 :delim: |
892 :header: "Name", "Required", "Type", "Format", "Properties", "Description"
893 :widths: 20, 10, 15, 15, 30, 25
894
Lusheng Jib2a561b2018-03-27 23:24:33 -0400895 config | Yes | :ref:`config <i_ba9593ef6832fb8401f266e173acaa5c>` | | | the policy-config - the config data provided by policy owner
Lusheng Ji6553a132017-10-12 02:47:00 +0000896 policyName | Yes | string | | | unique policy name that contains the version and extension
897 policyVersion | Yes | string | | | stringified int that is autoincremented by policy-engine
898
Lusheng Jib2a561b2018-03-27 23:24:33 -0400899.. _i_ba9593ef6832fb8401f266e173acaa5c:
Lusheng Ji6553a132017-10-12 02:47:00 +0000900
901**Config schema:**
902
Lusheng Ji6553a132017-10-12 02:47:00 +0000903the policy-config - the config data provided by policy owner
904
Lusheng Ji6553a132017-10-12 02:47:00 +0000905DCAEPolicyRequest Model Structure
906---------------------------------
907
908request to update policies on DCAE components.
909
910.. csv-table::
911 :delim: |
912 :header: "Name", "Required", "Type", "Format", "Properties", "Description"
913 :widths: 20, 10, 15, 15, 30, 25
914
Lusheng Jib2a561b2018-03-27 23:24:33 -0400915 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 -0400916 errored_policies | No | | | | whether policy-engine returned an error on the policy.
Lusheng Jib2a561b2018-03-27 23:24:33 -0400917 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 -0400918 latest_policies | Yes | | | | dictionary of (policy_id -> DCAEPolicy object).
919 removed_policies | Yes | | | | whether policy was removed from policy-engine.
Lusheng Jib2a561b2018-03-27 23:24:33 -0400920 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.
921
Lusheng Jib2a561b2018-03-27 23:24:33 -0400922**Errored_policies schema:**
923
Lusheng Jib2a561b2018-03-27 23:24:33 -0400924whether policy-engine returned an error on the policy.
925dictionary of (policy_id -> true).
926In example: replace additionalProp1,2,3 with policy_id1,2,3 values
927
Lusheng Jib2a561b2018-03-27 23:24:33 -0400928Map of {"key":"boolean"}
929
Lusheng Ji6553a132017-10-12 02:47:00 +0000930**Latest_policies schema:**
931
Lusheng Jib2a561b2018-03-27 23:24:33 -0400932dictionary of (policy_id -> DCAEPolicy object).
933In example: replace additionalProp1,2,3 with policy_id1,2,3 values
934
Lusheng Ji6553a132017-10-12 02:47:00 +0000935Map of {"key":":ref:`DCAEPolicy <d_1e3e880a733b457b648bd8c99e6c859c>`"}
936
Lusheng Jib2a561b2018-03-27 23:24:33 -0400937**Removed_policies schema:**
Lusheng Ji6553a132017-10-12 02:47:00 +0000938
Lusheng Jib2a561b2018-03-27 23:24:33 -0400939whether policy was removed from policy-engine.
940dictionary of (policy_id -> true).
941In example: replace additionalProp1,2,3 with policy_id1,2,3 values
Lusheng Ji6553a132017-10-12 02:47:00 +0000942
Lusheng Jib2a561b2018-03-27 23:24:33 -0400943Map of {"key":"boolean"}
Lusheng Ji6553a132017-10-12 02:47:00 +0000944