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
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
|
<?php return [
'version' => '1.0',
'info' => ['style' => 'RPC', 'product' => 'dataworks-public', 'version' => '2018-06-01'],
'directories' => [
[
'id' => 60061,
'title' => '流程',
'type' => 'directory',
'children' => ['CreateManualDag', 'DeleteFile', 'SearchManualDagNodeInstance'],
],
[
'id' => 60066,
'title' => 'HIVE',
'type' => 'directory',
'children' => ['DescribeEmrHiveTable', 'ListEmrHiveAuditLogs', 'ListEmrHiveDatabases', 'ListEmrHiveTables', 'ListHiveTableLineages', 'ListHiveColumnLineages', 'ListTablePartitions'],
],
[
'id' => 0,
'title' => '其它',
'type' => 'directory',
'children' => ['OpenDataWorksStandardService', 'SendTaskMetaCallback', 'SetSwitchValue', 'GetDataServiceApiContext', 'GetDataServiceContextUpdateEvent', 'GetDataServiceConnection', 'GetDataServiceApiAuthMapContext', 'GetDataServiceFunction', 'GetDataServiceConfig'],
],
],
'components' => [
'schemas' => [],
],
'apis' => [
'CreateManualDag' => [
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'systemTags' => [
'operationType' => 'none',
'abilityTreeCode' => '78125',
'abilityTreeNodes' => ['FEATUREdideVFMENL'],
],
'parameters' => [
[
'name' => 'ProjectName',
'in' => 'query',
'schema' => ['description' => '项目名称。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'test_project'],
],
[
'name' => 'FlowName',
'in' => 'query',
'schema' => ['description' => '手动业务流程名称。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'test_flow'],
],
[
'name' => 'DagPara',
'in' => 'query',
'schema' => ['description' => '业务流程参数。', 'type' => 'string', 'required' => false, 'example' => 'param_k1=param_v1 param_k2=param_v2'],
],
[
'name' => 'NodePara',
'in' => 'query',
'schema' => ['description' => '节点参数,节点ID到节点参数的map。如果节点有多个参数,在节点参数值中用空格分隔。', 'type' => 'string', 'required' => false, 'example' => '{"103180025": "test=$[yyyy-mm-dd]"}'],
],
[
'name' => 'Bizdate',
'in' => 'query',
'schema' => ['description' => '业务日期。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '2018-12-12 00:00:00'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'ReturnCode' => ['description' => '响应代码编号,0标识成功。', 'type' => 'string', 'example' => '0'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '2d9ce-38ef-4923-baf6-391a7e656'],
'ReturnValue' => ['description' => '返回值,此处返回手动业务流程的运行实例ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '1244311235'],
'ReturnErrorSolution' => ['description' => '如果异常,会显示异常的解决方案信息。', 'type' => 'string', 'example' => 'test'],
'ReturnMessage' => ['description' => '异常信息。', 'type' => 'string', 'example' => 'test'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"ReturnCode\\": \\"0\\",\\n \\"RequestId\\": \\"2d9ce-38ef-4923-baf6-391a7e656\\",\\n \\"ReturnValue\\": 1244311235,\\n \\"ReturnErrorSolution\\": \\"test\\",\\n \\"ReturnMessage\\": \\"test\\"\\n}","errorExample":""},{"type":"xml","example":"<CreateManualDagMetaResponse>\\r\\n<requestId>D394A-96-4C7-96E-FCDEB0AB3</requestId>\\r\\n\\t<returnCode>0</returnCode>\\r\\n\\t<returnErrorSolution></returnErrorSolution>\\r\\n\\t<returnMessage></returnMessage>\\r\\n\\t<returnValue>13245685</returnValue>\\r\\n</CreateManualDagMetaResponse>","errorExample":""}]',
'title' => '触发手动业务流程执行',
'summary' => '触发手动业务流程执行。',
'description' => 'CreateManualDag不支持开发环境调用,仅支持生产环境调用。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
],
'DeleteFile' => [
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'delete',
'abilityTreeCode' => '78128',
'abilityTreeNodes' => ['FEATUREdide8FM783'],
],
'parameters' => [
[
'name' => 'ProjectId',
'in' => 'formData',
'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => false, 'docRequired' => true],
],
[
'name' => 'ProjectIdentifier',
'in' => 'formData',
'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'FileId',
'in' => 'formData',
'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'HttpStatusCode' => ['type' => 'integer', 'format' => 'int32'],
'ErrorMessage' => ['type' => 'string'],
'RequestId' => ['type' => 'string'],
'ErrorCode' => ['type' => 'string'],
'Success' => ['type' => 'boolean'],
],
],
],
],
'errorCodes' => [
403 => [
['errorCode' => 'Forbidden.Access', 'errorMessage' => 'Access is forbidden. Activate DataWorks first.'],
['errorCode' => 'ResourceNotAuthorized.Api', 'errorMessage' => 'You are not authorized to access the resources.'],
],
429 => [
['errorCode' => 'Throttling.Api', 'errorMessage' => 'The request for this resource has exceeded your available limit.'],
['errorCode' => 'Throttling.System', 'errorMessage' => 'The DataWorks system is busy. Try again later.'],
['errorCode' => 'Throttling.User', 'errorMessage' => 'Your request is too frequent. Try again later.'],
],
500 => [
['errorCode' => 'InternalError.System', 'errorMessage' => 'An internal system error occurred. Try again later.'],
['errorCode' => 'InternalError.UserId.Missing', 'errorMessage' => 'An internal system error occurred. Try again later.'],
],
],
'responseDemo' => '',
],
'SearchManualDagNodeInstance' => [
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => [
'operationType' => 'get',
'abilityTreeCode' => '78147',
'abilityTreeNodes' => ['FEATUREdide7WF1GB'],
],
'parameters' => [
[
'name' => 'ProjectName',
'in' => 'query',
'schema' => ['description' => '项目名称。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'test_odps_project'],
],
[
'name' => 'DagId',
'in' => 'query',
'schema' => ['description' => '手动业务流程运行实例ID,**createManualDag**接口返回的值。', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'example' => '123434234'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '2d9ced66-38ef-4923-baf6-391dd3a7e656'],
'ErrMsg' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'test'],
'ErrCode' => ['description' => '错误码。', 'type' => 'string', 'example' => '0'],
'Success' => ['description' => '是否成功。', 'type' => 'boolean', 'example' => 'true'],
'Data' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'NodeInsInfo' => [
'description' => '返回的手动业务流程内部运行任务的列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Status' => ['description' => '任务状态:'."\n"
."\n"
.'- 未运行:上游实例未全部成功。例如,NOT_RUN(1, "未运行")。'."\n"
."\n"
.'- 等待定时时间(dueTime/cycleTime)到来。例如,WAIT_TIME(2, "等待时间")。'."\n"
."\n"
.'- 已经下发到执行引擎,在等待排队调度执行。例如,WAIT_RESOURCE(3, "等待资源")。'."\n"
."\n"
.'- 执行中。例如,RUNNING(4, "运行中")。'."\n"
."\n"
.'- 执行完毕,已经下发进行数据校验。例如,CHECKING(7, "校验中")。'."\n"
."\n"
.'- 执行完毕,正在进行分支条件校验。例如,CHECKING_CONDITION(8, "条件检测中")。'."\n"
."\n"
.'- 执行失败。例如,FAILURE(5, "运行失败")。'."\n"
."\n"
.'- 执行成功。例如,SUCCESS(6, "运行成功")。', 'type' => 'integer', 'format' => 'int32', 'example' => '6'],
'BeginRunningTime' => ['description' => '开始运行时间。', 'type' => 'string', 'example' => '2018-12-12 00:00:00'],
'FinishTime' => ['description' => '任务结束时间。', 'type' => 'string', 'example' => '2018-12-12 00:00:00'],
'ParaValue' => ['description' => '任务参数信息。', 'type' => 'string', 'example' => 'param_k1=param_v1'],
'CreateTime' => ['description' => '创建时间。', 'type' => 'string', 'example' => '2018-12-12 00:00:00'],
'DagId' => ['description' => '业务流程运行实例ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '12434232423'],
'InstanceId' => ['description' => '任务实例ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '12322434112'],
'BeginWaitResTime' => ['description' => '开始等待资源的时间点。', 'type' => 'string', 'example' => '2018-12-12 00:00:00'],
'DagType' => ['description' => '业务流程类型,5标识手动业务流程。', 'type' => 'integer', 'format' => 'int32', 'example' => '5'],
'NodeName' => ['description' => '任务节点名称。', 'type' => 'string', 'example' => 'test_node'],
'Bizdate' => ['description' => '业务日期。', 'type' => 'string', 'example' => '2018-12-12 00:00:00'],
'BeginWaitTimeTime' => ['description' => '开始等待时间的时间点。', 'type' => 'string', 'example' => '2018-12-12 00:00:00'],
'ModifyTime' => ['description' => '修改时间。', 'type' => 'string', 'example' => '2018-12-12 00:00:00'],
],
],
],
],
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"2d9ced66-38ef-4923-baf6-391dd3a7e656\\",\\n \\"ErrMsg\\": \\"test\\",\\n \\"ErrCode\\": \\"0\\",\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"NodeInsInfo\\": [\\n {\\n \\"Status\\": 6,\\n \\"BeginRunningTime\\": \\"2018-12-12 00:00:00\\",\\n \\"FinishTime\\": \\"2018-12-12 00:00:00\\",\\n \\"ParaValue\\": \\"param_k1=param_v1\\",\\n \\"CreateTime\\": \\"2018-12-12 00:00:00\\",\\n \\"DagId\\": 12434232423,\\n \\"InstanceId\\": 12322434112,\\n \\"BeginWaitResTime\\": \\"2018-12-12 00:00:00\\",\\n \\"DagType\\": 5,\\n \\"NodeName\\": \\"test_node\\",\\n \\"Bizdate\\": \\"2018-12-12 00:00:00\\",\\n \\"BeginWaitTimeTime\\": \\"2018-12-12 00:00:00\\",\\n \\"ModifyTime\\": \\"2018-12-12 00:00:00\\"\\n }\\n ]\\n }\\n}","errorExample":" {}"},{"type":"xml","example":"<SearchManualDagNodeInstanceMetaResponse>\\r\\n <data>\\r\\n\\t\\t<beginRunningTime>1564019679966</beginRunningTime>\\r\\n\\t\\t<beginWaitResTime>1564019679966</beginWaitResTime>\\r\\n\\t\\t<beginWaitTimeTime>1564019679506</beginWaitTimeTime>\\r\\n\\t\\t<bizdate>1559318400000</bizdate>\\r\\n\\t\\t<createTime>1564019679464</createTime>\\r\\n\\t\\t<dagId>332455685</dagId>\\r\\n\\t\\t<dagType>5</dagType>\\r\\n\\t\\t<finishTime>1564019679966</finishTime>\\r\\n\\t\\t<instanceId>2427622331</instanceId>\\r\\n\\t\\t<modifyTime>1564019679966</modifyTime>\\r\\n\\t\\t<nodeName>vi</nodeName>\\r\\n\\t\\t<status>6</status>\\r\\n\\t</data>\\r\\n\\t<errCode>0</errCode>\\r\\n\\t<errMsg></errMsg>\\r\\n\\t<requestId>E1729535-8C06-43F6-B1EA-6236F60A68E9</requestId>\\r\\n\\t<success>true</success>\\r\\n</SearchManualDagNodeInstanceMetaResponse>","errorExample":""}]',
'title' => '查询已触发的手动业务流程信息',
'summary' => '状态和名称等信息,包括运行中和运行完成的实例。',
'description' => '**endpoint**:dataworks.[RegionId].aliyuncs.com '."\n"
.'> [RegionId] 指具体的某个Region,例如cn-shanghai、cn-beijing。'."\n"
."\n"
.'**product**:dataworks-public'."\n"
."\n"
.'SearchManualDagNodeInstance不支持开发环境调用,仅支持生产环境调用。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
],
'DescribeEmrHiveTable' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'ClusterId',
'in' => 'query',
'schema' => ['description' => 'EMR集群的ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'C-D033DD5FB82436A6'],
],
[
'name' => 'DatabaseName',
'in' => 'query',
'schema' => ['description' => 'EMR Hive数据库的名称。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'default'],
],
[
'name' => 'TableName',
'in' => 'query',
'schema' => ['description' => 'EMR Hive表的名称。', 'type' => 'string', 'required' => false, 'example' => 'pt_table_090901_emr'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'ErrorMessage' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'test'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'E6F0DBDD-5AD8-4870-A6A0'],
'ErrorCode' => ['description' => '错误码。', 'type' => 'string', 'example' => '0'],
'Data' => [
'description' => '返回数据。',
'type' => 'object',
'properties' => [
'TableParameters' => ['description' => 'HIVE表的参数JSON串。', 'type' => 'string', 'example' => '{\\"transient_lastDdlTime\\":\\"1568031823\\",\\"bucketing_version\\":\\"2\\",\\"comment\\":\\"RANDOM GENERATED TEST DATA BY FUNCTION OF RANDOM_TEST_DATA\\"}'],
'Owner' => ['description' => '所有者。', 'type' => 'string', 'example' => 'root'],
'TableName' => ['description' => 'EMR Hive表的名称。', 'type' => 'string', 'example' => 'pt_table_090901_emr'],
'TableDesc' => ['description' => '表的描述信息。', 'type' => 'string', 'example' => 'RANDOM GENERATED TEST DATA BY FUNCTION OF RANDOM_TEST_DATA'],
'IsCompressed' => ['description' => '是否压缩。', 'type' => 'boolean', 'example' => 'false'],
'GmtModified' => ['description' => '修改时间,指元数据信息。', 'type' => 'string', 'example' => '2019-09-09 20:41:28'],
'SerializationLib' => ['description' => '序列化反序列化设置。', 'type' => 'string', 'example' => 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe'],
'OwnerId' => ['description' => '所有者的Aliyun UID。', 'type' => 'string', 'example' => '1861276710322536'],
'TableSize' => ['description' => '以字节为单位的表的物理大小。', 'type' => 'integer', 'format' => 'int64', 'example' => '552'],
'LastAccessTime' => ['description' => '最后的访问时间。', 'type' => 'string', 'example' => '1970-01-01 08:00:00'],
'TableComment' => ['description' => '表的注释信息。', 'type' => 'string', 'example' => 'RANDOM GENERATED TEST DATA BY FUNCTION OF RANDOM_TEST_DATA'],
'LastModifyTime' => ['description' => '最后的修改时间。', 'type' => 'string', 'example' => '2019-09-09 20:23:47'],
'DatabaseName' => ['description' => 'Hive数据库的名称。', 'type' => 'string', 'example' => 'default'],
'IsTemporary' => ['description' => '是否为临时表。', 'type' => 'boolean', 'example' => 'false'],
'GmtCreate' => ['description' => '创建时间。', 'type' => 'string', 'example' => '2019-09-09 20:41:28'],
'OutputFormat' => ['description' => 'Hive表的输出格式。', 'type' => 'string', 'example' => 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat'],
'TableType' => ['description' => '表的类型。', 'type' => 'string', 'example' => 'MANAGED_TABLE'],
'OwnerType' => ['description' => 'Owner类型。', 'type' => 'string', 'example' => 'USER'],
'PartitionKeys' => ['description' => '分区字段的名称列表。', 'type' => 'string', 'example' => 'DS,HR,REGION'],
'ClusterBizId' => ['description' => 'EMR集群的ID。', 'type' => 'string', 'example' => 'C-D033DD5FB82436A6'],
'Location' => ['description' => 'HDFS或OSS等存放路径。', 'type' => 'string', 'example' => 'hdfs://emr-header-1.cluster-136574:9000/user/hive/warehouse/pt_table_090901_emr'],
'ClusterBizName' => ['description' => 'EMR集群的名称。', 'type' => 'string', 'example' => 'EHMC测试'],
'InputFormat' => ['description' => 'Hive表的输入格式。', 'type' => 'string', 'example' => 'org.apache.hadoop.mapred.TextInputFormat'],
'Columns' => [
'description' => '字段列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'ColumnName' => ['description' => '字段的名称。', 'type' => 'string', 'example' => 'double'],
'ColumnComment' => ['description' => '字段的注释。', 'type' => 'string', 'example' => 'BALANCE FIELD'],
'Comment' => ['description' => '字段的注释。', 'type' => 'string', 'example' => 'BALANCE FIELD'],
'ColumnType' => ['description' => '字段的数据类型。', 'type' => 'string', 'example' => 'double'],
'GmtCreate' => ['description' => '创建时间,指元数据信息。', 'type' => 'string', 'example' => '2019-09-09 20:23:47'],
'GmtModified' => ['description' => '修改时间,指元数据信息。', 'type' => 'string', 'example' => '2019-09-09 20:23:47'],
'ColumnPosition' => ['description' => '字段的位置。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
],
],
],
],
],
],
],
],
],
'errorCodes' => [],
'responseDemo' => '[{"type":"json","example":"{\\n \\"ErrorMessage\\": \\"test\\",\\n \\"RequestId\\": \\"E6F0DBDD-5AD8-4870-A6A0\\",\\n \\"ErrorCode\\": \\"0\\",\\n \\"Data\\": {\\n \\"TableParameters\\": \\"{\\\\\\\\\\\\\\"transient_lastDdlTime\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"1568031823\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"bucketing_version\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"2\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"comment\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"RANDOM GENERATED TEST DATA BY FUNCTION OF RANDOM_TEST_DATA\\\\\\\\\\\\\\"}\\",\\n \\"Owner\\": \\"root\\",\\n \\"TableName\\": \\"pt_table_090901_emr\\",\\n \\"TableDesc\\": \\"RANDOM GENERATED TEST DATA BY FUNCTION OF RANDOM_TEST_DATA\\",\\n \\"IsCompressed\\": false,\\n \\"GmtModified\\": \\"2019-09-09 20:41:28\\",\\n \\"SerializationLib\\": \\"org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe\\",\\n \\"OwnerId\\": \\"1861276710322536\\",\\n \\"TableSize\\": 552,\\n \\"LastAccessTime\\": \\"1970-01-01 08:00:00\\",\\n \\"TableComment\\": \\"RANDOM GENERATED TEST DATA BY FUNCTION OF RANDOM_TEST_DATA\\",\\n \\"LastModifyTime\\": \\"2019-09-09 20:23:47\\",\\n \\"DatabaseName\\": \\"default\\",\\n \\"IsTemporary\\": false,\\n \\"GmtCreate\\": \\"2019-09-09 20:41:28\\",\\n \\"OutputFormat\\": \\"org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat\\",\\n \\"TableType\\": \\"MANAGED_TABLE\\",\\n \\"OwnerType\\": \\"USER\\",\\n \\"PartitionKeys\\": \\"DS,HR,REGION\\",\\n \\"ClusterBizId\\": \\"C-D033DD5FB82436A6\\",\\n \\"Location\\": \\"hdfs://emr-header-1.cluster-136574:9000/user/hive/warehouse/pt_table_090901_emr\\",\\n \\"ClusterBizName\\": \\"EHMC测试\\",\\n \\"InputFormat\\": \\"org.apache.hadoop.mapred.TextInputFormat\\",\\n \\"Columns\\": [\\n {\\n \\"ColumnName\\": \\"double\\",\\n \\"ColumnComment\\": \\"BALANCE FIELD\\",\\n \\"Comment\\": \\"BALANCE FIELD\\",\\n \\"ColumnType\\": \\"double\\",\\n \\"GmtCreate\\": \\"2019-09-09 20:23:47\\",\\n \\"GmtModified\\": \\"2019-09-09 20:23:47\\",\\n \\"ColumnPosition\\": 1\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<errorCode>0</errorCode>\\n<errorMsg>success</errorMsg>\\n<requestId>6212847D-86BE-4E5D-A147-FF5****</requestId>\\n<data>\\n <clusterBizId>C-D033DD5FB8****</clusterBizId>\\n <tableName>pt_table_090901_emr</tableName>\\n <tableType>MANAGED_TABLE</tableType>\\n <TableSize>552</TableSize>\\n <owner>root</owner>\\n <ownerType/>\\n <isTemporary>false</isTemporary>\\n <serializationLib>org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe</serializationLib>\\n <inputFormat>org.apache.hadoop.mapred.TextInputFormat</inputFormat>\\n <outputFormat>org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat</outputFormat>\\n <location>hdfs://emr-header-1.cluster-136574:9000/user/hive/warehouse/pt_table_090901_emr</location>\\n <lastAccessTime>1970-01-01 08:00:00</lastAccessTime>\\n <gmtCreate>2019-09-09 20:23:47</gmtCreate>\\n <gmtModified>2019-09-09 20:23:47</gmtModified>\\n <tableComment>RANDOM GENERATED TEST DATA BY FUNCTION OF RANDOM_TEST_DATA</tableComment>\\n <tableParameters>{\\"transient_lastDdlTime\\":\\"1568031823\\",\\"bucketing_version\\":\\"2\\",\\"comment\\":\\"RANDOM GENERATED TEST DATA BY FUNCTION OF RANDOM_TEST_DATA\\"}</tableParameters>\\n <partitionKeys>DS,HR,REGION</partitionKeys>\\n <isCompressed>false</isCompressed>\\n <clusterBizName>EHMC测试****</clusterBizName>\\n <databaseName>default</databaseName>\\n <ownerId>1861276****</ownerId>\\n <tableDesc>RANDOM GENERATED TEST DATA BY FUNCTION OF RANDOM_TEST_DATA</tableDesc>\\n <lastModifyTime>2019-09-09 20:23:47</lastModifyTime>\\n <columns>\\n <columnPosition>4</columnPosition>\\n <columnName>gender</columnName>\\n <columnType>boolean</columnType>\\n <columnComment>GENDER FIELD</columnComment>\\n <gmtCreate>2019-09-09 20:23:47</gmtCreate>\\n <gmtModified>2019-09-09 20:23:47</gmtModified>\\n <comment>GENDER FIELD</comment>\\n </columns>\\n <columns>\\n <columnPosition>3</columnPosition>\\n <columnName>balance</columnName>\\n <columnType>double</columnType>\\n <columnComment>BALANCE FIELD</columnComment>\\n <gmtCreate>2019-09-09 20:23:47</gmtCreate>\\n <gmtModified>2019-09-09 20:23:47</gmtModified>\\n <comment>BALANCE FIELD</comment>\\n </columns>\\n <columns>\\n <columnPosition>2</columnPosition>\\n <columnName>age</columnName>\\n <columnType>bigint</columnType>\\n <columnComment>AGE FIELD</columnComment>\\n <gmtCreate>2019-09-09 20:23:47</gmtCreate>\\n <gmtModified>2019-09-09 20:23:47</gmtModified>\\n <comment>AGE FIELD</comment>\\n </columns>\\n <columns>\\n <columnPosition>2</columnPosition>\\n <columnName>REGION</columnName>\\n <columnType>string</columnType>\\n <columnComment>PARTITIONED BY REGION</columnComment>\\n <gmtCreate>2019-09-09 20:23:47</gmtCreate>\\n <gmtModified>2019-09-09 20:23:47</gmtModified>\\n <comment>PARTITIONED BY REGION</comment>\\n </columns>\\n <columns>\\n <columnPosition>1</columnPosition>\\n <columnName>tag</columnName>\\n <columnType>string</columnType>\\n <columnComment>TAG FIELD</columnComment>\\n <gmtCreate>2019-09-09 20:23:47</gmtCreate>\\n <gmtModified>2019-09-09 20:23:47</gmtModified>\\n <comment>TAG FIELD</comment>\\n </columns>\\n <columns>\\n <columnPosition>1</columnPosition>\\n <columnName>HR</columnName>\\n <columnType>string</columnType>\\n <columnComment>PARTITIONED BY SINGLE DAY HOUR</columnComment>\\n <gmtCreate>2019-09-09 20:23:47</gmtCreate>\\n <gmtModified>2019-09-09 20:23:47</gmtModified>\\n <comment>PARTITIONED BY SINGLE DAY HOUR</comment>\\n </columns>\\n <columns>\\n <columnPosition>0</columnPosition>\\n <columnName>name</columnName>\\n <columnType>string</columnType>\\n <columnComment>NAME FIELD</columnComment>\\n <gmtCreate>2019-09-09 20:23:47</gmtCreate>\\n <gmtModified>2019-09-09 20:23:47</gmtModified>\\n <comment>NAME FIELD</comment>\\n </columns>\\n <columns>\\n <columnPosition>0</columnPosition>\\n <columnName>DS</columnName>\\n <columnType>string</columnType>\\n <columnComment>PARTITIONED BY SINGLE DAY</columnComment>\\n <gmtCreate>2019-09-09 20:23:47</gmtCreate>\\n <gmtModified>2019-09-09 20:23:47</gmtModified>\\n <comment>PARTITIONED BY SINGLE DAY</comment>\\n </columns>\\n <columns>\\n <columnPosition>5</columnPosition>\\n <columnName>birthday</columnName>\\n <columnType>string</columnType>\\n <columnComment>BIRTHDAY FIELD</columnComment>\\n <gmtCreate>2019-09-09 20:23:47</gmtCreate>\\n <gmtModified>2019-09-09 20:23:47</gmtModified>\\n <comment>BIRTHDAY FIELD</comment>\\n </columns>\\n</data>","errorExample":""}]',
'title' => '获取EMR HIVE表元数据详情信息',
'summary' => '获取EMR HIVE表元数据的详情信息,包括Column列表。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
],
'ListEmrHiveAuditLogs' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'ClusterId',
'in' => 'query',
'schema' => ['description' => 'EMR集群的标识。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'C-D033DD5FB82436A6'],
],
[
'name' => 'DatabaseName',
'in' => 'query',
'schema' => ['description' => '数据库的名称。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'default'],
],
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => ['description' => '页码。', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'minimum' => '1', 'example' => '2'],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => '页宽(每页记录数量)。', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'maximum' => '100', 'minimum' => '1', 'example' => '2'],
],
[
'name' => 'TableName',
'in' => 'query',
'schema' => ['description' => '表的名称。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'test_table'],
],
[
'name' => 'StartTime',
'in' => 'query',
'schema' => ['description' => '表示开始时间(10位时间戳),EndTime-StartTime需要满足小于等于86400。'."\n"
.'两个输入值可以同时为空,返回(current-86400, current)时间段内的审计日志。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1586509407'],
],
[
'name' => 'EndTime',
'in' => 'query',
'schema' => ['description' => '表示结束时间(10位时间戳),EndTime-StartTime需要满足小于等于86400。'."\n"
.'两个输入值可以同时为空,返回(current-86400, current)时间段内的审计日志。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1586509710'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'ErrorMessage' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求标识。', 'type' => 'string', 'example' => '58D5334A-B013-430E'],
'ErrorCode' => ['description' => '错误码。', 'type' => 'string', 'example' => '0'],
'Data' => [
'description' => '返回数据。',
'type' => 'object',
'properties' => [
'PageNumber' => ['description' => '页码。', 'type' => 'integer', 'format' => 'int32', 'example' => '2'],
'PageSize' => ['description' => '页宽(每页记录数量)。', 'type' => 'integer', 'format' => 'int32', 'example' => '2'],
'TotalCount' => ['description' => '总记录量。', 'type' => 'integer', 'format' => 'int32', 'example' => '5'],
'PagedData' => [
'description' => '分页获取的数据。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Operation' => ['description' => '操作。', 'type' => 'string', 'example' => 'CREATE_TABLE'],
'User' => ['description' => '用户。', 'type' => 'string', 'example' => 'root'],
'EventTime' => ['description' => '事件的发生时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '1564019679506'],
'Table' => ['description' => '数据表。', 'type' => 'string', 'example' => 'test_table'],
'Database' => ['description' => '数据库。', 'type' => 'string', 'example' => 'default'],
'Groups' => [
'type' => 'array',
'items' => ['description' => '用户组。', 'type' => 'string', 'example' => 'root'],
],
],
],
],
],
],
],
],
],
],
'errorCodes' => [],
'responseDemo' => '[{"type":"json","example":"{\\n \\"ErrorMessage\\": \\"success\\",\\n \\"RequestId\\": \\"58D5334A-B013-430E\\",\\n \\"ErrorCode\\": \\"0\\",\\n \\"Data\\": {\\n \\"PageNumber\\": 2,\\n \\"PageSize\\": 2,\\n \\"TotalCount\\": 5,\\n \\"PagedData\\": [\\n {\\n \\"Operation\\": \\"CREATE_TABLE\\",\\n \\"User\\": \\"root\\",\\n \\"EventTime\\": 1564019679506,\\n \\"Table\\": \\"test_table\\",\\n \\"Database\\": \\"default\\",\\n \\"Groups\\": [\\n \\"root\\"\\n ]\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<errorCode>0</errorCode>\\n<errorMsg>success</errorMsg>\\n<requestId>E6F0DBDD-5AD8-4870-A6A0-B8FD5B****</requestId>\\n<data>\\n <pageNumber>2</pageNumber>\\n <pageSize>2</pageSize>\\n <totalCount>5</totalCount>\\n <pagedData>\\n <database>wj_db_01</database>\\n <groups>root</groups>\\n <operation>CREATE_TABLE</operation>\\n <table>wj_table_03</table>\\n <user>root</user>\\n </pagedData>\\n</data>","errorExample":""}]',
'title' => '查看Hive元数据的审计日志',
'summary' => '查看Hive元数据的审计日志。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
],
'ListEmrHiveDatabases' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'ClusterId',
'in' => 'query',
'schema' => ['description' => 'EMR集群的ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'C-D033DD5FB82436A6'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'ErrorMessage' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'test'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'D9A61DC0-B922-421B-B706'],
'ErrorCode' => ['description' => '错误码。', 'type' => 'string', 'example' => '0'],
'Data' => [
'description' => '返回数据。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Type' => ['description' => '数据库的类型。', 'type' => 'string', 'example' => 'HIVE'],
'Status' => ['description' => '数据库的状态。', 'type' => 'string', 'example' => '-'],
'Owner' => ['description' => '数据库的所有者。', 'type' => 'string', 'example' => 'public'],
'Comment' => ['description' => 'Hive数据库的注释。', 'type' => 'string', 'example' => 'Default Hive database'],
'GmtModified' => ['description' => '修改时间戳,指元数据信息。', 'type' => 'integer', 'format' => 'int64', 'example' => '1568010630000'],
'OwnerId' => ['description' => '数据库所有者的Aliyun Uid。', 'type' => 'string', 'example' => '18612767'],
'Parameters' => ['description' => 'Hive数据库参数JSON串。', 'type' => 'string', 'example' => '{}'],
'Region' => ['description' => 'Hive数据库所属集群的所在地域。', 'type' => 'string', 'example' => 'cn-shanghai'],
'GmtCreate' => ['description' => '创建时间戳,指元数据信息。', 'type' => 'integer', 'format' => 'int64', 'example' => '1568010630000'],
'OwnerType' => ['description' => '所有者的类型。', 'type' => 'string', 'example' => 'ROLE'],
'Name' => ['description' => 'Hive数据库的名称。', 'type' => 'string', 'example' => 'default'],
'Location' => ['description' => 'Hive数据库的存储位置。', 'type' => 'string', 'example' => 'hdfs://emr-header-1.cluster-136574:9000/user/hive/warehouse'],
],
],
],
],
],
],
],
'errorCodes' => [],
'responseDemo' => '[{"type":"json","example":"{\\n \\"ErrorMessage\\": \\"test\\",\\n \\"RequestId\\": \\"D9A61DC0-B922-421B-B706\\",\\n \\"ErrorCode\\": \\"0\\",\\n \\"Data\\": [\\n {\\n \\"Type\\": \\"HIVE\\",\\n \\"Status\\": \\"-\\",\\n \\"Owner\\": \\"public\\",\\n \\"Comment\\": \\"Default Hive database\\",\\n \\"GmtModified\\": 1568010630000,\\n \\"OwnerId\\": \\"18612767\\",\\n \\"Parameters\\": \\"{}\\",\\n \\"Region\\": \\"cn-shanghai\\",\\n \\"GmtCreate\\": 1568010630000,\\n \\"OwnerType\\": \\"ROLE\\",\\n \\"Name\\": \\"default\\",\\n \\"Location\\": \\"hdfs://emr-header-1.cluster-136574:9000/user/hive/warehouse\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<errorCode>0</errorCode>\\n<errorMessage>success</errorMessage>\\n<requestId>D9A61DC0-B922-421B-B706-B2****</requestId>\\n<data>\\n <name>default</name>\\n <type>HIVE</type>\\n <owner>public</owner>\\n <ownerId>18612767****</ownerId>\\n <comment>Default Hive database</comment>\\n <location>hdfs://emr-header-1.cluster-136574:9000/user/hive/warehouse</location>\\n <status/>\\n <parameters>{}</parameters>\\n <gmtCreate>1568010630000</gmtCreate>\\n <gmtModified>1568010630000</gmtModified>\\n <ownerType>ROLE</ownerType>\\n <region>cn-shanghai</region>\\n</data>\\n<data>\\n <name>house_db_0909</name>\\n <type>HIVE</type>\\n <owner>root</owner>\\n <ownerId>18612767103****</ownerId>\\n <comment>?????0909</comment>\\n <location>hdfs://emr-header-1.cluster-136574:9000/user/hive/warehouse/house_db_0909.db</location>\\n <status/>\\n <parameters>{}</parameters>\\n <gmtCreate>1568010341000</gmtCreate>\\n <gmtModified>1568010341000</gmtModified>\\n <ownerType>USER</ownerType>\\n <region>cn-shanghai</region>\\n</data>\\n<data>\\n <name>twitter_db</name>\\n <type>HIVE</type>\\n <owner>admin</owner>\\n <ownerId>1861276710****</ownerId>\\n <location>hdfs://emr-header-1.cluster-136574:9000/user/hive/warehouse/twitter_db.db</location>\\n <status/>\\n <parameters>{}</parameters>\\n <gmtCreate>1568178228000</gmtCreate>\\n <gmtModified>1568178228000</gmtModified>\\n <ownerType>USER</ownerType>\\n <region>cn-shanghai</region>\\n</data>","errorExample":""}]',
'title' => '获取EMR集群下Hive数据库列表',
'summary' => '获取EMR集群下的Hive数据库列表(不分页)。',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
],
'ListEmrHiveTables' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'ClusterId',
'in' => 'query',
'schema' => ['description' => 'EMR集群的ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'C-D033DD5FB82436A6'],
],
[
'name' => 'DatabaseName',
'in' => 'query',
'schema' => ['description' => 'EMR Hive数据库的名称。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'default'],
],
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => ['description' => '页码。', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'minimum' => '1', 'example' => '2'],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => '页宽(每页记录数量)。', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'maximum' => '100', 'minimum' => '1', 'example' => '2'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'ErrorMessage' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'test'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'E6F0DBDD-5AD8-4870-A6A0'],
'ErrorCode' => ['description' => '错误码。', 'type' => 'string', 'example' => '0'],
'Data' => [
'description' => '返回数据。',
'type' => 'object',
'properties' => [
'PageNumber' => ['description' => '页码。', 'type' => 'integer', 'format' => 'int32', 'example' => '2'],
'PageSize' => ['description' => '页宽(每页记录数量)。', 'type' => 'integer', 'format' => 'int32', 'example' => '2'],
'TotalCount' => ['description' => '总记录量。', 'type' => 'integer', 'format' => 'int32', 'example' => '5'],
'PagedData' => [
'description' => '分页获取的数据。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'TableParameters' => ['description' => 'Hive表参数JSON串。', 'type' => 'string', 'example' => '{\\"transient_lastDdlTime\\":\\"1568031823\\",\\"bucketing_version\\":\\"2\\",\\"comment\\":\\"RANDOM GENERATED TEST DATA BY FUNCTION OF RANDOM_TEST_DATA\\"}'],
'Owner' => ['description' => '所有者。', 'type' => 'string', 'example' => 'root'],
'TableName' => ['description' => '表的名称。', 'type' => 'string', 'example' => 'pt_table_090901_emr_orc'],
'TableDesc' => ['description' => '表的描述信息。', 'type' => 'string', 'example' => 'RANDOM GENERATED TEST DATA BY FUNCTION OF RANDOM_TEST_DATA'],
'IsCompressed' => ['description' => '是否启用了压缩。', 'type' => 'boolean', 'example' => 'false'],
'GmtModified' => ['description' => '编辑时间,指元数据。', 'type' => 'string', 'example' => '2019-09-09 20:23:47'],
'SerializationLib' => ['description' => 'Hive表的序列化、反序列化设置。', 'type' => 'string', 'example' => 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe'],
'OwnerId' => ['description' => '所有者的Aliyun Uid。', 'type' => 'string', 'example' => '18612767103****'],
'LastAccessTime' => ['description' => '最后访问的时间。', 'type' => 'string', 'example' => '1970-01-01 08:00:00'],
'TableComment' => ['description' => '表注释,同表在Hive库中的Comment。', 'type' => 'string', 'example' => 'RANDOM GENERATED TEST DATA BY FUNCTION OF RANDOM_TEST_DATA'],
'LastModifyTime' => ['description' => '最后修改的时间。', 'type' => 'string', 'example' => '2019-09-09 20:23:47'],
'DatabaseName' => ['description' => '表所在数据库的名称。', 'type' => 'string', 'example' => 'default'],
'IsTemporary' => ['description' => '是否为临时表。', 'type' => 'boolean', 'example' => 'false'],
'GmtCreate' => ['description' => '创建时间,指元数据。', 'type' => 'string', 'example' => '2019-09-09 20:23:47'],
'OutputFormat' => ['description' => '表的输出格式。', 'type' => 'string', 'example' => 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat'],
'TableType' => ['description' => '表的类型。', 'type' => 'string', 'example' => 'MANAGED_TABLE'],
'OwnerType' => ['description' => '所有者的类型。', 'type' => 'string', 'example' => 'ROLE'],
'PartitionKeys' => ['description' => '分区字段列表(仅限分区表)。', 'type' => 'string', 'example' => 'DS,HR,REGION'],
'ClusterBizId' => ['description' => 'EMR集群的标识。', 'type' => 'string', 'example' => 'C-D033DD5FB82436A6'],
'Location' => ['description' => '表的存储路径。', 'type' => 'string', 'example' => 'hdfs://emr-header-1.cluster-136574:9000/user/hive/warehouse/pt_table_090901_emr'],
'ClusterBizName' => ['description' => 'EMR集群的名称。', 'type' => 'string', 'example' => 'EHMC测试'],
'InputFormat' => ['description' => '表的输入格式。', 'type' => 'string', 'example' => 'org.apache.hadoop.hive.ql.io.orc.OrcInputFormat'],
],
],
],
],
],
],
],
],
],
'errorCodes' => [],
'responseDemo' => '[{"type":"json","example":"{\\n \\"ErrorMessage\\": \\"test\\",\\n \\"RequestId\\": \\"E6F0DBDD-5AD8-4870-A6A0\\",\\n \\"ErrorCode\\": \\"0\\",\\n \\"Data\\": {\\n \\"PageNumber\\": 2,\\n \\"PageSize\\": 2,\\n \\"TotalCount\\": 5,\\n \\"PagedData\\": [\\n {\\n \\"TableParameters\\": \\"{\\\\\\\\\\\\\\"transient_lastDdlTime\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"1568031823\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"bucketing_version\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"2\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"comment\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"RANDOM GENERATED TEST DATA BY FUNCTION OF RANDOM_TEST_DATA\\\\\\\\\\\\\\"}\\",\\n \\"Owner\\": \\"root\\",\\n \\"TableName\\": \\"pt_table_090901_emr_orc\\",\\n \\"TableDesc\\": \\"RANDOM GENERATED TEST DATA BY FUNCTION OF RANDOM_TEST_DATA\\",\\n \\"IsCompressed\\": false,\\n \\"GmtModified\\": \\"2019-09-09 20:23:47\\",\\n \\"SerializationLib\\": \\"org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe\\",\\n \\"OwnerId\\": \\"18612767103****\\",\\n \\"LastAccessTime\\": \\"1970-01-01 08:00:00\\",\\n \\"TableComment\\": \\"RANDOM GENERATED TEST DATA BY FUNCTION OF RANDOM_TEST_DATA\\",\\n \\"LastModifyTime\\": \\"2019-09-09 20:23:47\\",\\n \\"DatabaseName\\": \\"default\\",\\n \\"IsTemporary\\": false,\\n \\"GmtCreate\\": \\"2019-09-09 20:23:47\\",\\n \\"OutputFormat\\": \\"org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat\\",\\n \\"TableType\\": \\"MANAGED_TABLE\\",\\n \\"OwnerType\\": \\"ROLE\\",\\n \\"PartitionKeys\\": \\"DS,HR,REGION\\",\\n \\"ClusterBizId\\": \\"C-D033DD5FB82436A6\\",\\n \\"Location\\": \\"hdfs://emr-header-1.cluster-136574:9000/user/hive/warehouse/pt_table_090901_emr\\",\\n \\"ClusterBizName\\": \\"EHMC测试\\",\\n \\"InputFormat\\": \\"org.apache.hadoop.hive.ql.io.orc.OrcInputFormat\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<errorCode>0</errorCode>\\n<errorMsg>success</errorMsg>\\n<requestId>E6F0DBDD-5AD8-4870-A6A0-B8FD5B****</requestId>\\n<data>\\n <pageNumber>2</pageNumber>\\n <pageSize>2</pageSize>\\n <totalCount>5</totalCount>\\n <pagedData>\\n <clusterBizId>C-D033DD5FB****</clusterBizId>\\n <tableName>pt_table_090901_emr_orc</tableName>\\n <tableType>MANAGED_TABLE</tableType>\\n <owner>root</owner>\\n <ownerType/>\\n <isTemporary>false</isTemporary>\\n <serializationLib>org.apache.hadoop.hive.ql.io.orc.OrcSerde</serializationLib>\\n <inputFormat>org.apache.hadoop.hive.ql.io.orc.OrcInputFormat</inputFormat>\\n <outputFormat>org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat</outputFormat>\\n <location>hdfs://emr-header-1.cluster-136574:9000/user/hive/warehouse/pt_table_090901_emr_orc</location>\\n <lastAccessTime>1970-01-01 08:00:00</lastAccessTime>\\n <gmtCreate>2019-09-09 20:41:28</gmtCreate>\\n <gmtModified>2019-09-09 20:41:28</gmtModified>\\n <tableComment>RANDOM GENERATED TEST DATA BY FUNCTION OF RANDOM_TEST_DATA</tableComment>\\n <tableParameters>{\\"orc.compress\\":\\"ZLIB\\",\\"transient_lastDdlTime\\":\\"1568032884\\",\\"bucketing_version\\":\\"2\\",\\"comment\\":\\"RANDOM GENERATED TEST DATA BY FUNCTION OF RANDOM_TEST_DATA\\"}</tableParameters>\\n <partitionKeys>DS,HR,REGION</partitionKeys>\\n <isCompressed>false</isCompressed>\\n <clusterBizName>EHMC测试****</clusterBizName>\\n <databaseName>default</databaseName>\\n <ownerId>18612767****</ownerId>\\n <lastModifyTime>2019-09-09 20:41:28</lastModifyTime>\\n <tableDesc>RANDOM GENERATED TEST DATA BY FUNCTION OF RANDOM_TEST_DATA</tableDesc>\\n </pagedData>\\n <pagedData>\\n <clusterBizId>C-D033DD5FB8****</clusterBizId>\\n <tableName>pt_table_090901_emr</tableName>\\n <tableType>MANAGED_TABLE</tableType>\\n <owner>root</owner>\\n <ownerType/>\\n <isTemporary>false</isTemporary>\\n <serializationLib>org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe</serializationLib>\\n <inputFormat>org.apache.hadoop.mapred.TextInputFormat</inputFormat>\\n <outputFormat>org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat</outputFormat>\\n <location>hdfs://emr-header-1.cluster-136574:9000/user/hive/warehouse/pt_table_090901_emr</location>\\n <lastAccessTime>1970-01-01 08:00:00</lastAccessTime>\\n <gmtCreate>2019-09-09 20:23:47</gmtCreate>\\n <gmtModified>2019-09-09 20:23:47</gmtModified>\\n <tableComment>RANDOM GENERATED TEST DATA BY FUNCTION OF RANDOM_TEST_DATA</tableComment>\\n <tableParameters>{\\"transient_lastDdlTime\\":\\"1568031823\\",\\"bucketing_version\\":\\"2\\",\\"comment\\":\\"RANDOM GENERATED TEST DATA BY FUNCTION OF RANDOM_TEST_DATA\\"}</tableParameters>\\n <partitionKeys>DS,HR,REGION</partitionKeys>\\n <isCompressed>false</isCompressed>\\n <clusterBizName>EHMC测试****</clusterBizName>\\n <databaseName>default</databaseName>\\n <ownerId>1861276710322536</ownerId>\\n <lastModifyTime>2019-09-09 20:23:47</lastModifyTime>\\n <tableDesc>RANDOM GENERATED TEST DATA BY FUNCTION OF RANDOM_TEST_DATA</tableDesc>\\n </pagedData>\\n</data>","errorExample":""}]',
'title' => '获取集群指定库下的Hive表列表',
'summary' => '获取集群指定库下的Hive表列表。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
],
'ListHiveTableLineages' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'ClusterId',
'in' => 'query',
'schema' => ['description' => 'EMR集群的ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'C-D033DD5FB82436A6'],
],
[
'name' => 'DatabaseName',
'in' => 'query',
'schema' => ['description' => 'EMR HIVE数据库的名称。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'default'],
],
[
'name' => 'TableName',
'in' => 'query',
'schema' => ['description' => 'EMR HIVE表的名称。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'pt_table_090901_emr'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'ErrorMessage' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'test'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '691CA452-D37A-4ED0-9441'],
'ErrorCode' => ['description' => '错误码。', 'type' => 'string', 'example' => '0'],
'Data' => [
'description' => '返回数据。',
'type' => 'object',
'properties' => [
'UpstreamNumber' => ['description' => '上游血缘的数量。', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
'DownstreamNumber' => ['description' => '下游血缘的数量。', 'type' => 'integer', 'format' => 'int32', 'example' => '3'],
'UpstreamLineages' => [
'description' => '上游血缘列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'TableName' => ['description' => '表的名称。', 'type' => 'string', 'example' => 'pt_table_090901_emr_orc'],
'ModifiedTime' => ['description' => '修改时间。', 'type' => 'string', 'example' => '2020-01-09 18:16:37'],
'QueryText' => ['description' => '任务对应的语句。', 'type' => 'string', 'example' => 'create table parquet_example_0407 select id as one,name as two,salary as three from PTtable_0407_emr'],
'JobId' => ['description' => '任务的ID。', 'type' => 'string', 'example' => 'job_1234567055_0006'],
'CreateTime' => ['description' => '创建时间。', 'type' => 'string', 'example' => '2020-01-09 18:16:15'],
'DatabaseName' => ['description' => '数据库的名称。', 'type' => 'string', 'example' => 'default'],
'Engine' => ['description' => '引擎信息。', 'type' => 'string', 'example' => 'mr'],
'Source' => ['description' => '血缘来源,例如HIVE。', 'type' => 'string', 'example' => 'HIVE'],
'ClusterId' => ['description' => 'EMR集群的标识。', 'type' => 'string', 'example' => 'C-D033DD5FB82436A6'],
],
],
],
'DownstreamLineages' => [
'description' => '下游血缘列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'TableName' => ['description' => '表的名称。', 'type' => 'string', 'example' => 'pt_table_090901_emr_orc'],
'ModifiedTime' => ['description' => '修改时间。', 'type' => 'string', 'example' => '2020-01-09 18:16:37'],
'QueryText' => ['description' => '任务对应的语句。', 'type' => 'string', 'example' => 'create table parquet_example_0407 select id as one,name as two,salary as three from PTtable_0407_emr'],
'JobId' => ['description' => '任务的ID。', 'type' => 'string', 'example' => 'job_1234567055_0006'],
'CreateTime' => ['description' => '创建时间。', 'type' => 'string', 'example' => '2020-01-09 18:16:15'],
'DatabaseName' => ['description' => '数据库的名称。', 'type' => 'string', 'example' => 'default'],
'Engine' => ['description' => '引擎信息。', 'type' => 'string', 'example' => 'mr'],
'Source' => ['description' => '血缘来源,例如HIVE。', 'type' => 'string', 'example' => 'HIVE'],
'ClusterId' => ['description' => 'EMR集群的标识。', 'type' => 'string', 'example' => 'C-D033DD5FB82436A6'],
],
],
],
],
],
],
],
],
],
'errorCodes' => [],
'responseDemo' => '[{"type":"json","example":"{\\n \\"ErrorMessage\\": \\"test\\",\\n \\"RequestId\\": \\"691CA452-D37A-4ED0-9441\\",\\n \\"ErrorCode\\": \\"0\\",\\n \\"Data\\": {\\n \\"UpstreamNumber\\": 0,\\n \\"DownstreamNumber\\": 3,\\n \\"UpstreamLineages\\": [\\n {\\n \\"TableName\\": \\"pt_table_090901_emr_orc\\",\\n \\"ModifiedTime\\": \\"2020-01-09 18:16:37\\",\\n \\"QueryText\\": \\"create table parquet_example_0407 select id as one,name as two,salary as three from PTtable_0407_emr\\",\\n \\"JobId\\": \\"job_1234567055_0006\\",\\n \\"CreateTime\\": \\"2020-01-09 18:16:15\\",\\n \\"DatabaseName\\": \\"default\\",\\n \\"Engine\\": \\"mr\\",\\n \\"Source\\": \\"HIVE\\",\\n \\"ClusterId\\": \\"C-D033DD5FB82436A6\\"\\n }\\n ],\\n \\"DownstreamLineages\\": [\\n {\\n \\"TableName\\": \\"pt_table_090901_emr_orc\\",\\n \\"ModifiedTime\\": \\"2020-01-09 18:16:37\\",\\n \\"QueryText\\": \\"create table parquet_example_0407 select id as one,name as two,salary as three from PTtable_0407_emr\\",\\n \\"JobId\\": \\"job_1234567055_0006\\",\\n \\"CreateTime\\": \\"2020-01-09 18:16:15\\",\\n \\"DatabaseName\\": \\"default\\",\\n \\"Engine\\": \\"mr\\",\\n \\"Source\\": \\"HIVE\\",\\n \\"ClusterId\\": \\"C-D033DD5FB82436A6\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<errorCode>0</errorCode>\\n<errorMsg>success</errorMsg>\\n<requestId>691CA452-D37A-4ED0-9441-16F57****</requestId>\\n<data>\\n <upstreamNumber>0</upstreamNumber>\\n <downstreamNumber>3</downstreamNumber>\\n <downstreamLineages>\\n <modifiedTime>2019-11-10 11:33:52</modifiedTime>\\n <QueryText>create table parquet_example_0407 select id as one,name as two,salary as three from PTtable_0407_emr</QueryText>\\n <databaseName>default</databaseName>\\n <engine>mr</engine>\\n <JobId>job_1234567055_0006</JobId>\\n <createTime>2019-11-10 11:33:52</createTime>\\n <clusterId>C-D033DD5FB****</clusterId>\\n <source>HIVE</source>\\n <tableName>pt_table_090901_emr_child</tableName>\\n </downstreamLineages>\\n <downstreamLineages>\\n <modifiedTime>2020-01-09 18:16:15</modifiedTime>\\n <QueryText>insert OVERWRITE table parquet_example_0407 select id as one,name as two,salary as three from PTtable_0407_emr</QueryText>\\n <databaseName>default</databaseName>\\n <engine>mr</engine>\\n <JobId>job_1234567055_0006</JobId>\\n <createTime>2020-01-09 18:16:15</createTime>\\n <clusterId>C-D033DD5****</clusterId>\\n <source>HIVE</source>\\n <tableName>pt_table_090901_emr_orc</tableName>\\n </downstreamLineages>\\n <downstreamLineages>\\n <modifiedTime>2020-01-09 18:16:37</modifiedTime>\\n <QueryText>create table parquet_example_0407 select id as one,name as two,salary as three from PTtable_0407_emr</QueryText>\\n <databaseName>default</databaseName>\\n <engine>mr</engine>\\n <JobId>job_1234567055_0006</JobId>\\n <createTime>2020-01-09 18:16:37</createTime>\\n <clusterId>C-D033DD5FB8****</clusterId>\\n <source>HIVE</source>\\n <tableName>pt_table_0909_emr_orc</tableName>\\n </downstreamLineages>\\n</data>","errorExample":""}]',
'title' => '获取Hive表的血缘信息',
'summary' => '获取Hive表的血缘信息。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
],
'ListHiveColumnLineages' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'ClusterId',
'in' => 'query',
'schema' => ['description' => 'EMR集群的标识。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'C-D033DD5FB82436A6'],
],
[
'name' => 'DatabaseName',
'in' => 'query',
'schema' => ['description' => '数据库的名称。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'default'],
],
[
'name' => 'TableName',
'in' => 'query',
'schema' => ['description' => '表的名称。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'test_table'],
],
[
'name' => 'ColumnName',
'in' => 'query',
'schema' => ['description' => '字段的名称。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'balance'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'ErrorMessage' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求标识。', 'type' => 'string', 'example' => '58D5334A-B013-430E'],
'ErrorCode' => ['description' => '错误码。', 'type' => 'string', 'example' => '0'],
'Data' => [
'description' => '返回数据。',
'type' => 'object',
'properties' => [
'UpstreamNumber' => ['description' => '上游血缘数量。', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
'DownstreamNumber' => ['description' => '下游血缘的数量。', 'type' => 'integer', 'format' => 'int32', 'example' => '3'],
'UpstreamLineages' => [
'description' => '上游血缘。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'ColumnName' => ['description' => '字段的名称。', 'type' => 'string', 'example' => 'balance'],
'DirectUpperTableNumber' => ['description' => '直接上游的表数量。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'TableName' => ['description' => '表的名称。', 'type' => 'string', 'example' => 'pt_table_090901_emr_child'],
'ModifiedTime' => ['description' => '修改时间。', 'type' => 'string', 'example' => '2019-11-10 11:33:51'],
'CreateTime' => ['description' => '创建时间。', 'type' => 'string', 'example' => '2019-11-10 11:33:51'],
'DirectDownTableNumber' => ['description' => '直接下游的表数量。', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
'DatabaseName' => ['description' => '数据库的名称。', 'type' => 'string', 'example' => 'default'],
'DirectDownColumnNumber' => ['description' => '直接下游的字段数量。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'DirectUpperColumnNumber' => ['description' => '直接上游的字段数量。', 'type' => 'integer', 'format' => 'int32', 'example' => '2'],
'Source' => ['description' => '血缘来源,例如HIVE。', 'type' => 'string', 'example' => 'HIVE'],
'ClusterId' => ['description' => 'EMR集群的标识。', 'type' => 'string', 'example' => 'C-D033DD5FB82436A6'],
],
],
],
'DownstreamLineages' => [
'description' => '下游血缘。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'ColumnName' => ['description' => '字段的名称。', 'type' => 'string', 'example' => 'balance'],
'DirectUpperTableNumber' => ['description' => '直接上游的表数量。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'TableName' => ['description' => '表的名称。', 'type' => 'string', 'example' => 'pt_table_090901_emr_child'],
'ModifiedTime' => ['description' => '创建时间。', 'type' => 'string', 'example' => '2019-11-10 11:33:52'],
'CreateTime' => ['description' => '创建时间。', 'type' => 'string', 'example' => '2019-11-10 11:33:52'],
'DirectDownTableNumber' => ['description' => '直接下游的表数量。', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
'DatabaseName' => ['description' => '数据库的名称。', 'type' => 'string', 'example' => 'default'],
'DirectDownColumnNumber' => ['description' => '直接下游的字段数量。', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
'DirectUpperColumnNumber' => ['description' => '直接上游的字段数量。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'Source' => ['description' => '血缘来源,例如HIVE。', 'type' => 'string', 'example' => 'HIVE'],
'ClusterId' => ['description' => 'EMR集群的标识。', 'type' => 'string', 'example' => 'C-D033DD5FB82436A6'],
],
],
],
],
],
],
],
],
],
'errorCodes' => [],
'responseDemo' => '[{"type":"json","example":"{\\n \\"ErrorMessage\\": \\"success\\",\\n \\"RequestId\\": \\"58D5334A-B013-430E\\",\\n \\"ErrorCode\\": \\"0\\",\\n \\"Data\\": {\\n \\"UpstreamNumber\\": 0,\\n \\"DownstreamNumber\\": 3,\\n \\"UpstreamLineages\\": [\\n {\\n \\"ColumnName\\": \\"balance\\",\\n \\"DirectUpperTableNumber\\": 1,\\n \\"TableName\\": \\"pt_table_090901_emr_child\\",\\n \\"ModifiedTime\\": \\"2019-11-10 11:33:51\\",\\n \\"CreateTime\\": \\"2019-11-10 11:33:51\\",\\n \\"DirectDownTableNumber\\": 0,\\n \\"DatabaseName\\": \\"default\\",\\n \\"DirectDownColumnNumber\\": 1,\\n \\"DirectUpperColumnNumber\\": 2,\\n \\"Source\\": \\"HIVE\\",\\n \\"ClusterId\\": \\"C-D033DD5FB82436A6\\"\\n }\\n ],\\n \\"DownstreamLineages\\": [\\n {\\n \\"ColumnName\\": \\"balance\\",\\n \\"DirectUpperTableNumber\\": 1,\\n \\"TableName\\": \\"pt_table_090901_emr_child\\",\\n \\"ModifiedTime\\": \\"2019-11-10 11:33:52\\",\\n \\"CreateTime\\": \\"2019-11-10 11:33:52\\",\\n \\"DirectDownTableNumber\\": 0,\\n \\"DatabaseName\\": \\"default\\",\\n \\"DirectDownColumnNumber\\": 0,\\n \\"DirectUpperColumnNumber\\": 1,\\n \\"Source\\": \\"HIVE\\",\\n \\"ClusterId\\": \\"C-D033DD5FB82436A6\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<errorCode>0</errorCode>\\n<errorMessage>success</errorMessage>\\n<requestId>58D5334A-B013-430E-AF34-CD21****</requestId>\\n<data>\\n <upstreamNumber>0</upstreamNumber>\\n <downstreamNumber>3</downstreamNumber>\\n <downstreamLineages>\\n <modifiedTime>2019-11-10 11:33:51</modifiedTime>\\n <directDownColumnNumber>1</directDownColumnNumber>\\n <clusterId>C-D033DD5F****</clusterId>\\n <source>HIVE</source>\\n <tableName>pt_table_090901_emr_child</tableName>\\n <directDownTableNumber>1</directDownTableNumber>\\n <directUpperTableNumber>2</directUpperTableNumber>\\n <createTime>2019-11-10 11:33:51</createTime>\\n <directUpperColumnNumber>2</directUpperColumnNumber>\\n <columnName>balance</columnName>\\n </downstreamLineages>\\n <downstreamLineages>\\n <modifiedTime>2019-11-10 11:33:52</modifiedTime>\\n <directDownColumnNumber>0</directDownColumnNumber>\\n <clusterId>C-D033DD5F****</clusterId>\\n <source>HIVE</source>\\n <tableName>pt_table_090901_emr_orc</tableName>\\n <directDownTableNumber>0</directDownTableNumber>\\n <directUpperTableNumber>1</directUpperTableNumber>\\n <createTime>2019-11-10 11:33:52</createTime>\\n <directUpperColumnNumber>1</directUpperColumnNumber>\\n <columnName>balance</columnName>\\n </downstreamLineages>\\n <downstreamLineages>\\n <modifiedTime>2019-11-10 11:33:52</modifiedTime>\\n <directDownColumnNumber>0</directDownColumnNumber>\\n <clusterId>C-D033DD5F****</clusterId>\\n <source>HIVE</source>\\n <tableName>pt_table_0909_emr_orc</tableName>\\n <directDownTableNumber>0</directDownTableNumber>\\n <directUpperTableNumber>1</directUpperTableNumber>\\n <createTime>2019-11-10 11:33:52</createTime>\\n <directUpperColumnNumber>1</directUpperColumnNumber>\\n <columnName>balance</columnName>\\n </downstreamLineages>\\n</data>","errorExample":""}]',
'title' => '获取指定字段的上下游血缘信息',
'summary' => '获取指定字段的上下游血缘信息。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
],
'ListTablePartitions' => [
'summary' => '获取EMR HIVE表的分区列表。',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREdideE9OA4H'],
],
'parameters' => [
[
'name' => 'ClusterId',
'in' => 'query',
'schema' => ['description' => '集群标识。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'C-2A51D3826C701234'],
],
[
'name' => 'DatabaseName',
'in' => 'query',
'schema' => ['description' => '数据库名称。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'default'],
],
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => ['description' => '页码。', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'minimum' => '1', 'example' => '1'],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => '页宽。', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'maximum' => '100', 'minimum' => '1', 'example' => '10'],
],
[
'name' => 'TableName',
'in' => 'query',
'schema' => ['description' => '表名称。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'test_table'],
],
[
'name' => 'Order',
'in' => 'query',
'schema' => ['description' => '升降序。升序为ASC,降序为DESC。', 'type' => 'string', 'required' => false, 'example' => 'ASC/DESC'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'ErrorMessage' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求标识。', 'type' => 'string', 'example' => 'UUID'],
'ErrorCode' => ['description' => '错误码。', 'type' => 'string', 'example' => '0'],
'Data' => [
'description' => '返回数据。',
'type' => 'object',
'properties' => [
'TotalCount' => ['description' => '总数量。', 'type' => 'integer', 'format' => 'int32', 'example' => '3'],
'PageSize' => ['description' => '页宽。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
'PagedData' => [
'description' => '分页数据。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'PartitionPath' => ['description' => '分区的路径,例如HDFS路径。', 'type' => 'string', 'example' => 'hdfs://emr-header-1.cluster-136574:9000/user/hive/warehouse/pt_table_090901_emr_child/ds=20190909/hr=20/region=shanghai'],
'PartitionComment' => ['description' => '分区的描述信息。', 'type' => 'string', 'example' => 'test'],
'PartitionName' => ['description' => '分区的名称。', 'type' => 'string', 'example' => 'ds=20190909/hr=20/region=shanghai'],
'GmtCreate' => ['description' => '分区的创建时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '1568032253000'],
'PartitionType' => ['description' => '分区的类型。', 'type' => 'string', 'example' => 'HIVE'],
'GmtModified' => ['description' => '分区的修改时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '1568032253000'],
'Location' => ['description' => '分区的存储位置。', 'type' => 'string', 'example' => 'hdfs://emr-header-1.cluster-136574:9000/user/hive/warehouse/pt_table_090901_emr_child/ds=20190909/hr=20/region=shanghai'],
],
],
],
],
],
],
],
],
],
'errorCodes' => [],
'responseDemo' => '[{"type":"json","example":"{\\n \\"ErrorMessage\\": \\"success\\",\\n \\"RequestId\\": \\"UUID\\",\\n \\"ErrorCode\\": \\"0\\",\\n \\"Data\\": {\\n \\"TotalCount\\": 3,\\n \\"PageSize\\": 10,\\n \\"PagedData\\": [\\n {\\n \\"PartitionPath\\": \\"hdfs://emr-header-1.cluster-136574:9000/user/hive/warehouse/pt_table_090901_emr_child/ds=20190909/hr=20/region=shanghai\\",\\n \\"PartitionComment\\": \\"test\\",\\n \\"PartitionName\\": \\"ds=20190909/hr=20/region=shanghai\\",\\n \\"GmtCreate\\": 1568032253000,\\n \\"PartitionType\\": \\"HIVE\\",\\n \\"GmtModified\\": 1568032253000,\\n \\"Location\\": \\"hdfs://emr-header-1.cluster-136574:9000/user/hive/warehouse/pt_table_090901_emr_child/ds=20190909/hr=20/region=shanghai\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<errorCode>0</errorCode>\\n<errorMessage>success</errorMessage>\\n<requestId>2B31A7F4-68C8-499C-AF2B-3C906B56809F</requestId>\\n<data>\\n <pageSize>2</pageSize>\\n <totalCount>4</totalCount>\\n <pagedData>\\n <gmtCreate>1574304364000</gmtCreate>\\n <gmtModified>1574304364000</gmtModified>\\n <location>hdfs://emr-header-1.cluster-46836:9000/user/hive/warehouse/pt_table_112001_emr/ds=20190724/hr=02/region=test-2</location>\\n <partitionName>ds=20190724/hr=02/region=test-2</partitionName>\\n <partitionPath>hdfs://emr-header-1.cluster-46836:9000/user/hive/warehouse/pt_table_112001_emr/ds=20190724/hr=02/region=test-2</partitionPath>\\n <partitionType>HIVE</partitionType>\\n <partitionComment/>\\n </pagedData>\\n <pagedData>\\n <gmtCreate>1574304355000</gmtCreate>\\n <gmtModified>1574304355000</gmtModified>\\n <location>hdfs://emr-header-1.cluster-46836:9000/user/hive/warehouse/pt_table_112001_emr/ds=20190721/hr=05/region=test-5</location>\\n <partitionName>ds=20190721/hr=05/region=test-5</partitionName>\\n <partitionPath>hdfs://emr-header-1.cluster-46836:9000/user/hive/warehouse/pt_table_112001_emr/ds=20190721/hr=05/region=test-5</partitionPath>\\n <partitionType>HIVE</partitionType>\\n <partitionComment/>\\n </pagedData>\\n</data>","errorExample":""}]',
'title' => '获取EMR HIVE表的分区列表',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
],
'OpenDataWorksStandardService' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
[
'APP' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'Region',
'in' => 'query',
'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'OrderId' => ['type' => 'string'],
'RequestId' => ['type' => 'string'],
],
],
],
],
'errorCodes' => [],
],
'SendTaskMetaCallback' => [
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'abilityTreeCode' => '78150',
'abilityTreeNodes' => ['FEATUREdideSYOMAV'],
],
'parameters' => [
[
'name' => 'TenantId',
'in' => 'formData',
'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'maximum' => '9223372036854775807', 'minimum' => '1', 'isFileTransferUrl' => false],
],
[
'name' => 'Type',
'in' => 'formData',
'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true],
],
[
'name' => 'StartTime',
'in' => 'formData',
'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'maximum' => '9223372036854775807', 'minimum' => '1', 'isFileTransferUrl' => false],
],
[
'name' => 'EndTime',
'in' => 'formData',
'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'maximum' => '9223372036854775807', 'minimum' => '1', 'isFileTransferUrl' => false],
],
[
'name' => 'User',
'in' => 'formData',
'schema' => ['type' => 'string', 'required' => false, 'docRequired' => true],
],
[
'name' => 'Code',
'in' => 'formData',
'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true],
],
[
'name' => 'ConnectionInfo',
'in' => 'formData',
'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true],
],
[
'name' => 'TaskEnvParam',
'in' => 'formData',
'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true],
],
[
'name' => 'SubType',
'in' => 'formData',
'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true],
],
[
'name' => 'Resources',
'in' => 'formData',
'style' => 'repeatList',
'schema' => [
'type' => 'array',
'items' => ['type' => 'string'],
'required' => false,
'maxItems' => 10,
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Data' => ['type' => 'string'],
'RequestId' => ['type' => 'string'],
'ErrMsg' => ['type' => 'string'],
'ErrorCode' => ['type' => 'integer', 'format' => 'int64'],
],
],
],
],
'errorCodes' => [
500 => [
['errorCode' => 'InternalError.Meta.Unknown', 'errorMessage' => 'An unknown error occurred while processing your request.'],
],
],
],
'SetSwitchValue' => [
'summary' => '设置Switch的值',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'SwitchName',
'in' => 'query',
'schema' => ['type' => 'string'],
],
[
'name' => 'SwitchValue',
'in' => 'query',
'schema' => ['type' => 'string'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => 'Id of the request', 'type' => 'string'],
'Data' => ['type' => 'boolean'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'IdempotentParameterMismatch', 'errorMessage' => 'The request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical.'],
],
],
],
'GetDataServiceApiContext' => [
'summary' => '获取数据服务ApiContext信息',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '180496',
'abilityTreeNodes' => ['FEATUREdideWDSR97'],
],
'parameters' => [
[
'name' => 'ApiId',
'in' => 'query',
'schema' => ['title' => 'api逐渐', 'description' => 'apiId', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'minimum' => '0', 'exclusiveMinimum' => true, 'example' => '12345'],
],
[
'name' => 'Verbose',
'in' => 'query',
'schema' => ['title' => '是否详情', 'description' => '是否详情', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
[
'name' => 'CacheKey',
'in' => 'query',
'schema' => ['description' => 'ApiContext缓存键值', 'type' => 'string', 'required' => false, 'example' => 'abc-124'],
],
[
'name' => 'ForPrivateResGroup',
'in' => 'query',
'schema' => ['description' => '是否绑定独享数据服务资源组', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
[
'name' => 'ApiStatus',
'in' => 'query',
'schema' => ['description' => 'Api状态,已发布、草稿态等', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'ApiContext',
'description' => 'ApiContext',
'type' => 'object',
'properties' => [
'Data' => ['description' => 'ApiContext信息', 'type' => 'string', 'example' => '{"apiId":123}'],
'ErrMsg' => ['description' => '错误信息', 'type' => 'string', 'example' => 'success'],
'ErrCode' => ['description' => '错误码', 'type' => 'string', 'example' => '0'],
'RequestId' => ['description' => '请求Id', 'type' => 'string', 'example' => '1AFAE64E-D1BE-432B-A9****'],
],
],
],
],
'errorCodes' => [
500 => [
['errorCode' => 'InternalError.System', 'errorMessage' => 'An internal system error occurred. Try again later.'],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": \\"{\\\\\\"apiId\\\\\\":123}\\",\\n \\"ErrMsg\\": \\"success\\",\\n \\"ErrCode\\": \\"0\\",\\n \\"RequestId\\": \\"1AFAE64E-D1BE-432B-A9****\\"\\n}","type":"json"}]',
'title' => '获取数据服务ApiContext信息',
'description' => '获取数据服务ApiContext信息',
],
'GetDataServiceContextUpdateEvent' => [
'summary' => '查询APIcontext变更事件。',
'methods' => ['get'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '191385',
'abilityTreeNodes' => ['FEATUREdideZZ63WZ'],
],
'parameters' => [],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID', 'type' => 'string', 'example' => '8754EE08-4AA2-5F77-ADD7-754DBBDA9F75'],
'Data' => ['title' => 'Id of the request', 'description' => '返回内容', 'type' => 'string', 'example' => '{\'TotalCount\': 0, \'CalcEngines\': []}'],
'ErrMsg' => ['title' => 'Id of the request', 'description' => '错误信息', 'type' => 'string', 'example' => 'success'],
'ErrCode' => ['title' => 'Id of the request', 'description' => '错误码', 'type' => 'string', 'example' => '0'],
],
],
],
],
'errorCodes' => [
500 => [
['errorCode' => 'InternalError.System', 'errorMessage' => 'An internal system error occurred. Try again later.'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"8754EE08-4AA2-5F77-ADD7-754DBBDA9F75\\",\\n \\"Data\\": \\"{\'TotalCount\': 0, \'CalcEngines\': []}\\",\\n \\"ErrMsg\\": \\"success\\",\\n \\"ErrCode\\": \\"0\\"\\n}","type":"json"}]',
'title' => 'GetDataServiceContextUpdateEvent',
],
'GetDataServiceConnection' => [
'summary' => '新server独享资源组获取数据源信息。',
'methods' => ['get'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '259634',
'abilityTreeNodes' => ['FEATUREdideWDSR97'],
],
'parameters' => [
[
'name' => 'ConnectionId',
'in' => 'query',
'schema' => ['description' => '数据源id', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1'],
],
[
'name' => 'DataSourceType',
'in' => 'query',
'schema' => ['description' => '数据源类型', 'type' => 'string', 'required' => false, 'example' => 'normal'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '123-abc'],
'Data' => ['description' => '数据源信息', 'type' => 'string', 'example' => '{}'],
'ErrMsg' => ['description' => '错误信息', 'type' => 'string', 'example' => 'success'],
'ErrCode' => ['description' => '错误码', 'type' => 'string', 'example' => '0'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"123-abc\\",\\n \\"Data\\": \\"{}\\",\\n \\"ErrMsg\\": \\"success\\",\\n \\"ErrCode\\": \\"0\\"\\n}","type":"json"}]',
'title' => '查询数据源信息',
],
'GetDataServiceApiAuthMapContext' => [
'summary' => '新server独享资源组获取api context。',
'methods' => ['get'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '259344',
'abilityTreeNodes' => ['FEATUREdideWDSR97'],
],
'parameters' => [
[
'name' => 'ApiId',
'in' => 'query',
'schema' => ['description' => 'API ID', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1'],
],
[
'name' => 'Verbose',
'in' => 'query',
'schema' => ['description' => '是否查询详细信息', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
[
'name' => 'ProjectId',
'in' => 'query',
'schema' => ['description' => 'DataWorks项目空间id', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1'],
],
[
'name' => 'ApiPath',
'in' => 'query',
'schema' => ['description' => 'API 路径', 'type' => 'string', 'required' => false, 'example' => '/apiPath'],
],
[
'name' => 'ApigwInstanceId',
'in' => 'query',
'schema' => ['type' => 'string', 'required' => false],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'Data' => ['description' => 'API 信息', 'type' => 'string', 'example' => '{}'],
'ErrMsg' => ['description' => '错误信息', 'type' => 'string', 'example' => 'success'],
'ErrCode' => ['description' => '错误码', 'type' => 'string', 'example' => '0'],
'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '123-abc'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": \\"{}\\",\\n \\"ErrMsg\\": \\"success\\",\\n \\"ErrCode\\": \\"0\\",\\n \\"RequestId\\": \\"123-abc\\"\\n}","type":"json"}]',
'title' => '查询API内容信息',
],
'GetDataServiceFunction' => [
'summary' => '查询函数信息。',
'methods' => ['get'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '260794',
'abilityTreeNodes' => ['FEATUREdideSYX560'],
],
'parameters' => [
[
'name' => 'FunctionId',
'in' => 'query',
'schema' => ['description' => '函数ID', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'Data' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '{}'],
'ErrMsg' => ['description' => '错误信息', 'type' => 'string', 'example' => 'success'],
'ErrCode' => ['description' => '错误码', 'type' => 'string', 'example' => '0'],
'RequestId' => ['description' => 'RequestId', 'type' => 'string', 'example' => 'abc-123'],
],
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": \\"{}\\",\\n \\"ErrMsg\\": \\"success\\",\\n \\"ErrCode\\": \\"0\\",\\n \\"RequestId\\": \\"abc-123\\"\\n}","type":"json"}]',
'title' => '查询函数信息',
],
'GetDataServiceConfig' => [
'summary' => '查询配置项。',
'path' => '',
'methods' => ['get', 'post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREdideZZ63WZ'],
],
'parameters' => [
[
'name' => 'ConfigKey',
'in' => 'query',
'schema' => ['description' => '配置项名称', 'type' => 'string', 'required' => false, 'example' => 'abc'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '0000-ABCD-****'],
'Data' => ['description' => '配置项的值内容', 'type' => 'string', 'example' => '{"key":"value"}'],
'ErrMsg' => ['description' => '错误信息', 'type' => 'string', 'example' => 'success'],
'ErrCode' => ['description' => '错误码', 'type' => 'string', 'example' => '1108110501'],
],
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0000-ABCD-****\\",\\n \\"Data\\": \\"{\\\\\\"key\\\\\\":\\\\\\"value\\\\\\"}\\",\\n \\"ErrMsg\\": \\"success\\",\\n \\"ErrCode\\": \\"1108110501\\"\\n}","type":"json"}]',
'title' => '查询配置项',
],
],
'endpoints' => [
['regionId' => 'cn-wulanchabu', 'endpoint' => 'dataworks.cn-wulanchabu.aliyuncs.com'],
['regionId' => 'cn-beijing', 'endpoint' => 'dataworks.cn-beijing.aliyuncs.com'],
['regionId' => 'cn-shanghai', 'endpoint' => 'dataworks.cn-shanghai.aliyuncs.com'],
['regionId' => 'cn-hongkong', 'endpoint' => 'dataworks.cn-hongkong.aliyuncs.com'],
['regionId' => 'cn-zhangjiakou', 'endpoint' => 'dataworks.cn-zhangjiakou.aliyuncs.com'],
['regionId' => 'cn-shenzhen', 'endpoint' => 'dataworks.cn-shenzhen.aliyuncs.com'],
['regionId' => 'ap-northeast-1', 'endpoint' => 'dataworks.ap-northeast-1.aliyuncs.com'],
['regionId' => 'cn-chengdu', 'endpoint' => 'dataworks.cn-chengdu.aliyuncs.com'],
['regionId' => 'ap-southeast-1', 'endpoint' => 'dataworks.ap-southeast-1.aliyuncs.com'],
['regionId' => 'ap-southeast-3', 'endpoint' => 'dataworks.ap-southeast-3.aliyuncs.com'],
['regionId' => 'ap-southeast-5', 'endpoint' => 'dataworks.ap-southeast-5.aliyuncs.com'],
['regionId' => 'cn-hangzhou', 'endpoint' => 'dataworks.cn-hangzhou.aliyuncs.com'],
['regionId' => 'us-east-1', 'endpoint' => 'dataworks.us-east-1.aliyuncs.com'],
['regionId' => 'eu-west-1', 'endpoint' => 'dataworks.eu-west-1.aliyuncs.com'],
['regionId' => 'us-west-1', 'endpoint' => 'dataworks.us-west-1.aliyuncs.com'],
['regionId' => 'eu-central-1', 'endpoint' => 'dataworks.eu-central-1.aliyuncs.com'],
['regionId' => 'me-east-1', 'endpoint' => 'dataworks.me-east-1.aliyuncs.com'],
['regionId' => 'me-central-1', 'endpoint' => 'dataworks.me-central-1.aliyuncs.com'],
['regionId' => 'cn-shenzhen-finance-1', 'endpoint' => 'dataworks.cn-shenzhen-finance-1.aliyuncs.com'],
['regionId' => 'cn-shanghai-finance-1', 'endpoint' => 'dataworks.cn-shanghai-finance-1.aliyuncs.com'],
['regionId' => 'cn-hangzhou-finance', 'endpoint' => 'dataworks.aliyuncs.com'],
['regionId' => 'ap-northeast-2', 'endpoint' => 'dataworks.ap-northeast-2.aliyuncs.com'],
],
];
|