summaryrefslogtreecommitdiffstats
path: root/docs/sections/apis/cdapbroker.rst
blob: c145dbcee8134b542c93129b29a69725f9427510 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
CDAP Broker API 4.0.10
======================

.. toctree::
    :maxdepth: 3





DEFAULT
~~~~~~~




DELETE ``/application/{appname}``
---------------------------------



Description
+++++++++++

.. raw:: html

    Remove an app for service and configuration discovery. This will remove the metrics and health endpoints for this app.

Parameters
++++++++++

.. csv-table::
    :delim: |
    :header: "Name", "Located in", "Required", "Type", "Format", "Properties", "Description"
    :widths: 20, 15, 10, 10, 10, 20, 30

        appname | path | Yes | string | text |  | Name of the application.


Request
+++++++


Responses
+++++++++

**200**
^^^^^^^

Successful response


**404**
^^^^^^^

no app with name 'appname' registered with this broker.






GET ``/``
---------



Description
+++++++++++

.. raw:: html

    shows some information about this service


Request
+++++++


Responses
+++++++++

**200**
^^^^^^^

successful response


Type: :ref:`info <d_060ca512d6d771a97a7d0f50886f6b14>`

**Example:**

.. code-block:: javascript

    {
        "broker API version": "somestring", 
        "cdap GUI port": 1, 
        "cdap cluster version": "somestring", 
        "managed cdap url": "somestring", 
        "number of applications registered": 1, 
        "uptime (s)": 1
    }





GET ``/application``
--------------------



Description
+++++++++++

.. raw:: html

    get all applications registered with this broker


Request
+++++++


Responses
+++++++++

**200**
^^^^^^^

successful response


Type: array of :ref:`appname <d_2f6991f1775468c3ce48a2778455be93>`


**Example:**

.. code-block:: javascript

    [
        "somestring", 
        "somestring"
    ]





GET ``/application/{appname}``
------------------------------



Description
+++++++++++

.. raw:: html

    Returns the representation of the application resource, including the links for healthcheck and metrics.

Parameters
++++++++++

.. csv-table::
    :delim: |
    :header: "Name", "Located in", "Required", "Type", "Format", "Properties", "Description"
    :widths: 20, 15, 10, 10, 10, 20, 30

        appname | path | Yes | string | text |  | Name of the application.


Request
+++++++


Responses
+++++++++

**200**
^^^^^^^

Successful response


Type: :ref:`Application <d_2b315c86978b3cd8c6edfbe745f1afa2>`

**Example:**

.. code-block:: javascript

    {
        "appname": "somestring", 
        "connectionurl": "somestring", 
        "healthcheckurl": "somestring", 
        "metricsurl": "somestring", 
        "serviceendpoints": [
            {
                "method": "somestring", 
                "url": "somestring"
            }, 
            {
                "method": "somestring", 
                "url": "somestring"
            }
        ], 
        "url": "somestring"
    }

**404**
^^^^^^^

no app with name 'appname' registered with this broker.






GET ``/application/{appname}/healthcheck``
------------------------------------------



Description
+++++++++++

.. raw:: html

    Perform a healthcheck on the running app appname.

Parameters
++++++++++

.. csv-table::
    :delim: |
    :header: "Name", "Located in", "Required", "Type", "Format", "Properties", "Description"
    :widths: 20, 15, 10, 10, 10, 20, 30

        appname | path | Yes | string | test |  | Name of the application to get the healthcheck for.


Request
+++++++


Responses
+++++++++

**200**
^^^^^^^

Successful response, healthcheck pass


**404**
^^^^^^^

no app with name 'appname' registered with this broker, or the healthcheck has failed (though I would like to disambiguiate from the first case, CDAP returns a 404 for this).






GET ``/application/{appname}/metrics``
--------------------------------------



Description
+++++++++++

.. raw:: html

    Get live (real-time) app specific metrics for the running app appname. Metrics are customized per each app by the component developer

Parameters
++++++++++

.. csv-table::
    :delim: |
    :header: "Name", "Located in", "Required", "Type", "Format", "Properties", "Description"
    :widths: 20, 15, 10, 10, 10, 20, 30

        appname | path | Yes | string | test |  | Name of the application to get metrics for.


Request
+++++++


Responses
+++++++++

**200**
^^^^^^^

Successful response


Type: :ref:`MetricsObject <d_5d4c5a47c1043833affa67eb27bf3d9d>`

**Example:**

.. code-block:: javascript

    {
        "appmetrics": {}
    }

**404**
^^^^^^^

no app with name 'appname' registered with this broker.






POST ``/application/delete``
----------------------------



Description
+++++++++++

.. raw:: html

    endpoint to delete multiple applications at once. Returns an array of status codes, where statuscode[i] = response returned from DELETE(application/i)


Request
+++++++



.. _d_c0830b0f8b495da06c2fef152ce05dba:

Body
^^^^

.. csv-table::
    :delim: |
    :header: "Name", "Required", "Type", "Format", "Properties", "Description"
    :widths: 20, 10, 15, 15, 30, 25

        appnames | No | array of :ref:`appname <d_2f6991f1775468c3ce48a2778455be93>` |  |  | 

.. code-block:: javascript

    {
        "appnames": [
            "somestring", 
            "somestring"
        ]
    }

Responses
+++++++++

**200**
^^^^^^^

successful response


Type: array of :ref:`returncode <d_5a28f16eed72be7d9a8279c0e1f05386>`


**Example:**

.. code-block:: javascript

    [
        1, 
        1
    ]





PUT ``/application/{appname}``
------------------------------



Description
+++++++++++

.. raw:: html

    Register an app for service and configuration discovery. This will light up a metrics and health endpoint for this app. `appname` is assumed to also be the key in  consul.

Parameters
++++++++++

.. csv-table::
    :delim: |
    :header: "Name", "Located in", "Required", "Type", "Format", "Properties", "Description"
    :widths: 20, 15, 10, 10, 10, 20, 30

        appname | path | Yes | string | text |  | Name of the application.


Request
+++++++



.. _d_a151b00939024528c17a91cf47a4eae3:

Body
^^^^

.. csv-table::
    :delim: |
    :header: "Name", "Required", "Type", "Format", "Properties", "Description"
    :widths: 20, 10, 15, 15, 30, 25

        app_config | No | :ref:`app_config <i_13b2658afc25a955a6b4b48b9898c1a3>` |  |  | the application config JSON
        app_preferences | No | :ref:`app_preferences <i_57297f6d8a6251aeb045f0872bf38d81>` |  |  | the application preferences JSON
        artifact_name | No | string |  |  | the name of the CDAP artifact to be added
        cdap_application_type | No | string |  | {'enum': ['program-flowlet']} | denotes whether this is a program-flowlet style application or a hydrator pipeline. For program-flowlet style apps, this value must be 'program-flowlet'
        jar_url | No | string |  |  | the URL that the JAR you're deploying resides
        namespace | No | string |  |  | the cdap namespace this is deployed into
        program_preferences | No | array of :ref:`programpref <d_610742fa78204adc388d0f7fbe30ad61>` |  |  | 
        programs | No | array of :ref:`programs <d_7bc8b39312a070aee5928f4e730192ae>` |  |  | 
        services | No | array of :ref:`service_endpoint <d_ad781f0dd64e16123fc1cbfefb4b9ded>` |  |  | 
        streamname | No | string |  |  | name of the CDAP stream to ingest data into this app. Should come from the developer and Tosca model.

.. _i_13b2658afc25a955a6b4b48b9898c1a3:

**App_config schema:**


the application config JSON



.. _i_57297f6d8a6251aeb045f0872bf38d81:

**App_preferences schema:**


the application preferences JSON



.. code-block:: javascript

    {
        "app_config": {}, 
        "app_preferences": {}, 
        "artifact_name": "somestring", 
        "cdap_application_type": "program-flowlet", 
        "jar_url": "somestring", 
        "namespace": "somestring", 
        "program_preferences": [
            {
                "program_id": "somestring", 
                "program_pref": {}, 
                "program_type": "somestring"
            }, 
            {
                "program_id": "somestring", 
                "program_pref": {}, 
                "program_type": "somestring"
            }
        ], 
        "programs": [
            {
                "program_id": "somestring", 
                "program_type": "somestring"
            }, 
            {
                "program_id": "somestring", 
                "program_type": "somestring"
            }
        ], 
        "services": [
            {
                "endpoint_method": "somestring", 
                "service_endpoint": "somestring", 
                "service_name": "somestring"
            }, 
            {
                "endpoint_method": "somestring", 
                "service_endpoint": "somestring", 
                "service_name": "somestring"
            }
        ], 
        "streamname": "somestring"
    }

Responses
+++++++++

**200**
^^^^^^^

Successful response


Type: :ref:`Application <d_2b315c86978b3cd8c6edfbe745f1afa2>`

**Example:**

.. code-block:: javascript

    {
        "appname": "somestring", 
        "connectionurl": "somestring", 
        "healthcheckurl": "somestring", 
        "metricsurl": "somestring", 
        "serviceendpoints": [
            {
                "method": "somestring", 
                "url": "somestring"
            }, 
            {
                "method": "somestring", 
                "url": "somestring"
            }
        ], 
        "url": "somestring"
    }

**400**
^^^^^^^

put was performed but the appname was already registered with the broker, or Invalid PUT body






PUT ``/application*/{appname}``
-------------------------------



Description
+++++++++++

.. raw:: html

    (This is a hacky way of supporting "oneOf" because Swagger does not support oneOf https://github.com/OAI/OpenAPI-Specification/issues/333. This is the same endpoint as PUT /application/appname, except the PUT body is different.)

Register a hydrator app for service and configuration discovery. This will light up a metrics and health endpoint for this app. `appname` is assumed to also be the key in  consul.

Parameters
++++++++++

.. csv-table::
    :delim: |
    :header: "Name", "Located in", "Required", "Type", "Format", "Properties", "Description"
    :widths: 20, 15, 10, 10, 10, 20, 30

        appname | path | Yes | string | text |  | Name of the application.


Request
+++++++



.. _d_d43078a75182938dccdbeac654cea43c:

Body
^^^^

.. csv-table::
    :delim: |
    :header: "Name", "Required", "Type", "Format", "Properties", "Description"
    :widths: 20, 10, 15, 15, 30, 25

        cdap_application_type | Yes | string |  | {'enum': ['hydrator-pipeline']} | denotes whether this is a program-flowlet style application or a hydrator pipeline. For hydrator, this value must be 'hydrator-pipeline'
        dependencies | No | array of :ref:`hydratordep <d_c5aa8c778f283571705fbe7a21d0f5c7>` |  |  | represents a list of dependencies to be loaded for this pipeline. Not required.
        namespace | Yes | string |  |  | the cdap namespace this is deployed into
        pipeline_config_json_url | Yes | string |  |  | the URL of the config.json for this pipeline
        streamname | Yes | string |  |  | name of the CDAP stream to ingest data into this app. Should come from the developer and Tosca model.

.. code-block:: javascript

    {
        "cdap_application_type": "hydrator-pipeline", 
        "dependencies": [
            {
                "artifact_extends_header": "somestring", 
                "artifact_name": "somestring", 
                "artifact_url": "somestring", 
                "artifact_version_header": "somestring", 
                "ui_properties_url": "somestring"
            }, 
            {
                "artifact_extends_header": "somestring", 
                "artifact_name": "somestring", 
                "artifact_url": "somestring", 
                "artifact_version_header": "somestring", 
                "ui_properties_url": "somestring"
            }
        ], 
        "namespace": "somestring", 
        "pipeline_config_json_url": "somestring", 
        "streamname": "somestring"
    }

Responses
+++++++++

**200**
^^^^^^^

Successful response


Type: :ref:`Application <d_2b315c86978b3cd8c6edfbe745f1afa2>`

**Example:**

.. code-block:: javascript

    {
        "appname": "somestring", 
        "connectionurl": "somestring", 
        "healthcheckurl": "somestring", 
        "metricsurl": "somestring", 
        "serviceendpoints": [
            {
                "method": "somestring", 
                "url": "somestring"
            }, 
            {
                "method": "somestring", 
                "url": "somestring"
            }
        ], 
        "url": "somestring"
    }

**400**
^^^^^^^

put was performed but the appname was already registered with the broker, or Invalid PUT body






PUT ``/application/{appname}/reconfigure``
------------------------------------------



Description
+++++++++++

.. raw:: html

    Reconfigures the application.

Parameters
++++++++++

.. csv-table::
    :delim: |
    :header: "Name", "Located in", "Required", "Type", "Format", "Properties", "Description"
    :widths: 20, 15, 10, 10, 10, 20, 30

        appname | path | Yes | string | text |  | Name of the application.


Request
+++++++



.. _d_2a32645bc6d3020744d3d17500c34bc3:

Body
^^^^

.. csv-table::
    :delim: |
    :header: "Name", "Required", "Type", "Format", "Properties", "Description"
    :widths: 20, 10, 15, 15, 30, 25

        config | Yes | :ref:`config <i_6a9d9951a40bf655fda365aa310e1ddc>` |  |  | the config JSON
        reconfiguration_type | Yes | string |  | {'enum': ['program-flowlet-app-config', 'program-flowlet-app-preferences', 'program-flowlet-smart']} | the type of reconfiguration

.. _i_6a9d9951a40bf655fda365aa310e1ddc:

**Config schema:**


the config JSON



.. code-block:: javascript

    {
        "config": {}, 
        "reconfiguration_type": "program-flowlet-app-config"
    }

Responses
+++++++++

**200**
^^^^^^^

Successful response


**400**
^^^^^^^

Bad request. Can happen with 1)  {appname} is not registered with the broker, 2) the required PUT body is wrong, or 3) the smart interface was chosen and none of the config keys match anything in app_config or app_preferences




  
Data Structures
~~~~~~~~~~~~~~~

.. _d_2b315c86978b3cd8c6edfbe745f1afa2:

Application Model Structure
---------------------------

.. csv-table::
    :delim: |
    :header: "Name", "Required", "Type", "Format", "Properties", "Description"
    :widths: 20, 10, 15, 15, 30, 25

        appname | No | string |  |  | application name
        connectionurl | No | string |  |  | input URL that you can POST data into (URL of the CDAP stream)
        healthcheckurl | No | string |  |  | fully qualified url to perform healthcheck
        metricsurl | No | string |  |  | fully qualified url to get metrics from
        serviceendpoints | No | array of :ref:`service_method <d_e5edc5fd82a1190817cf350e70cb7e0e>` |  |  | a list of HTTP services exposed by this CDAP application
        url | No | string |  |  | fully qualified url of the resource

.. _d_5d4c5a47c1043833affa67eb27bf3d9d:

MetricsObject Model Structure
-----------------------------

key,value object where the key is 'appmetrics' and the value is an app dependent json and specified by the component developer

.. csv-table::
    :delim: |
    :header: "Name", "Required", "Type", "Format", "Properties", "Description"
    :widths: 20, 10, 15, 15, 30, 25

        appmetrics | No | :ref:`appmetrics <i_6cb44a56118e2966acccfb86f18d0570>` |  |  | 

.. _i_6cb44a56118e2966acccfb86f18d0570:

**Appmetrics schema:**




.. _d_2f6991f1775468c3ce48a2778455be93:

appname Model Structure
-----------------------

an application name

.. csv-table::
    :delim: |
    :header: "Name", "Required", "Type", "Format", "Properties", "Description"
    :widths: 20, 10, 15, 15, 30, 25

        appname | No | string |  |  | an application name

.. _d_a151b00939024528c17a91cf47a4eae3:

appput Model Structure
----------------------

.. csv-table::
    :delim: |
    :header: "Name", "Required", "Type", "Format", "Properties", "Description"
    :widths: 20, 10, 15, 15, 30, 25

        app_config | No | :ref:`app_config <i_13b2658afc25a955a6b4b48b9898c1a3>` |  |  | the application config JSON
        app_preferences | No | :ref:`app_preferences <i_57297f6d8a6251aeb045f0872bf38d81>` |  |  | the application preferences JSON
        artifact_name | No | string |  |  | the name of the CDAP artifact to be added
        cdap_application_type | No | string |  | {'enum': ['program-flowlet']} | denotes whether this is a program-flowlet style application or a hydrator pipeline. For program-flowlet style apps, this value must be 'program-flowlet'
        jar_url | No | string |  |  | the URL that the JAR you're deploying resides
        namespace | No | string |  |  | the cdap namespace this is deployed into
        program_preferences | No | array of :ref:`programpref <d_610742fa78204adc388d0f7fbe30ad61>` |  |  | 
        programs | No | array of :ref:`programs <d_7bc8b39312a070aee5928f4e730192ae>` |  |  | 
        services | No | array of :ref:`service_endpoint <d_ad781f0dd64e16123fc1cbfefb4b9ded>` |  |  | 
        streamname | No | string |  |  | name of the CDAP stream to ingest data into this app. Should come from the developer and Tosca model.

.. _i_13b2658afc25a955a6b4b48b9898c1a3:

**App_config schema:**


the application config JSON



.. _i_57297f6d8a6251aeb045f0872bf38d81:

**App_preferences schema:**


the application preferences JSON



.. _d_d43078a75182938dccdbeac654cea43c:

hydratorappput Model Structure
------------------------------

.. csv-table::
    :delim: |
    :header: "Name", "Required", "Type", "Format", "Properties", "Description"
    :widths: 20, 10, 15, 15, 30, 25

        cdap_application_type | Yes | string |  | {'enum': ['hydrator-pipeline']} | denotes whether this is a program-flowlet style application or a hydrator pipeline. For hydrator, this value must be 'hydrator-pipeline'
        dependencies | No | array of :ref:`hydratordep <d_c5aa8c778f283571705fbe7a21d0f5c7>` |  |  | represents a list of dependencies to be loaded for this pipeline. Not required.
        namespace | Yes | string |  |  | the cdap namespace this is deployed into
        pipeline_config_json_url | Yes | string |  |  | the URL of the config.json for this pipeline
        streamname | Yes | string |  |  | name of the CDAP stream to ingest data into this app. Should come from the developer and Tosca model.

.. _d_c5aa8c778f283571705fbe7a21d0f5c7:

hydratordep Model Structure
---------------------------

represents a hydrator pipeline dependency. An equivelent to the following CURLs are formed with the below four params shown in CAPS 'curl -v -w'\n' -X POST http://cdapurl:11015/v3/namespaces/setelsewhere/artifacts/ARTIFACT_NAME -H 'Artifact-Extends:ARTIFACT_EXTENDS_HEADER'  -H “Artifact-Version:ARTIFACT_VERSION_HEADER” --data-binary @(DOWNLOADED FROM ARTIFACT_URL)','curl -v -w'\n' -X PUT http://cdapurl:11015/v3/namespaces/setelsewhere/artifacts/ARTIFACT_NAME/versions/ARTIFACT_VERSION_HEADER/properties -d (DOWNLOADED FROM UI_PROPERTIES_URL)'

.. csv-table::
    :delim: |
    :header: "Name", "Required", "Type", "Format", "Properties", "Description"
    :widths: 20, 10, 15, 15, 30, 25

        artifact_extends_header | Yes | string |  |  | the value of the header that gets passed in for artifact-extends, e.g., 'Artifact-Extends:system:cdap-data-pipeline[4.0.1,5.0.0)'
        artifact_name | Yes | string |  |  | the name of the artifact
        artifact_url | Yes | string |  |  | the URL of the artifact JAR
        artifact_version_header | Yes | string |  |  | the value of the header that gets passed in for artifact-version, e.g., 'Artifact-Version:1.0.0-SNAPSHOT'
        ui_properties_url | No | string |  |  | the URL of the properties.json if the custom artifact has UI properties. This is optional.

.. _d_060ca512d6d771a97a7d0f50886f6b14:

info Model Structure
--------------------

some broker information

.. csv-table::
    :delim: |
    :header: "Name", "Required", "Type", "Format", "Properties", "Description"
    :widths: 20, 10, 15, 15, 30, 25

        broker API version | No | string |  |  | the API version of this running broker
        cdap GUI port | No | integer |  |  | The GUI port of the CDAP cluster this broker is managing. Mostly to help users of this API check their application in cdap. Note, will return UNKNOWN_CDAP_VERSION if it cannot be determined.
        cdap cluster version | No | string |  |  | the version of the CDAP cluster this broker is managing. Note, will return UKNOWN_CDAP_VERSION if it cannot be determined.
        managed cdap url | No | string |  |  | the url of the CDAP cluster API this broker is managing
        number of applications registered | No | integer |  |  | 
        uptime (s) | No | integer |  |  | 

.. _d_c0830b0f8b495da06c2fef152ce05dba:

multideleteput Model Structure
------------------------------

.. csv-table::
    :delim: |
    :header: "Name", "Required", "Type", "Format", "Properties", "Description"
    :widths: 20, 10, 15, 15, 30, 25

        appnames | No | array of :ref:`appname <d_2f6991f1775468c3ce48a2778455be93>` |  |  | 

.. _d_610742fa78204adc388d0f7fbe30ad61:

programpref Model Structure
---------------------------

the list of programs in this CDAP app

.. csv-table::
    :delim: |
    :header: "Name", "Required", "Type", "Format", "Properties", "Description"
    :widths: 20, 10, 15, 15, 30, 25

        program_id | No | string |  |  | the name of the program
        program_pref | No | :ref:`program_pref <i_07225a64d44b62a92699f22d603b563c>` |  |  | the preference JSON to set for this program
        program_type | No | string |  |  | must be one of flows, mapreduce, schedules, spark, workflows, workers, or services

.. _i_07225a64d44b62a92699f22d603b563c:

**Program_pref schema:**


the preference JSON to set for this program



.. _d_7bc8b39312a070aee5928f4e730192ae:

programs Model Structure
------------------------

the list of programs in this CDAP app

.. csv-table::
    :delim: |
    :header: "Name", "Required", "Type", "Format", "Properties", "Description"
    :widths: 20, 10, 15, 15, 30, 25

        program_id | No | string |  |  | the name of the program
        program_type | No | string |  |  | must be one of flows, mapreduce, schedules, spark, workflows, workers, or services

.. _d_2a32645bc6d3020744d3d17500c34bc3:

reconfigput Model Structure
---------------------------

.. csv-table::
    :delim: |
    :header: "Name", "Required", "Type", "Format", "Properties", "Description"
    :widths: 20, 10, 15, 15, 30, 25

        config | Yes | :ref:`config <i_6a9d9951a40bf655fda365aa310e1ddc>` |  |  | the config JSON
        reconfiguration_type | Yes | string |  | {'enum': ['program-flowlet-app-config', 'program-flowlet-app-preferences', 'program-flowlet-smart']} | the type of reconfiguration

.. _i_6a9d9951a40bf655fda365aa310e1ddc:

**Config schema:**


the config JSON



.. _d_5a28f16eed72be7d9a8279c0e1f05386:

returncode Model Structure
--------------------------

an httpreturncode

.. csv-table::
    :delim: |
    :header: "Name", "Required", "Type", "Format", "Properties", "Description"
    :widths: 20, 10, 15, 15, 30, 25

        returncode | No | integer |  |  | an httpreturncode

.. _d_ad781f0dd64e16123fc1cbfefb4b9ded:

service_endpoint Model Structure
--------------------------------

descirbes a service endpoint, including the service name, the method name, and the method type (GET, PUT, etc, most of the time will be GET)

.. csv-table::
    :delim: |
    :header: "Name", "Required", "Type", "Format", "Properties", "Description"
    :widths: 20, 10, 15, 15, 30, 25

        endpoint_method | No | string |  |  | GET, POST, PUT, etc
        service_endpoint | No | string |  |  | the name of the endpoint on the service
        service_name | No | string |  |  | the name of the service

.. _d_e5edc5fd82a1190817cf350e70cb7e0e:

service_method Model Structure
------------------------------

a URL and HTTP method exposed via a CDAP service

.. csv-table::
    :delim: |
    :header: "Name", "Required", "Type", "Format", "Properties", "Description"
    :widths: 20, 10, 15, 15, 30, 25

        method | No | string |  |  | HTTP method you can perform on the URL, e.g., GET, PUT, etc
        url | No | string |  |  | the fully qualified URL in CDAP for this service