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
|
<?php return [
'version' => '1.0',
'info' => ['style' => 'RPC', 'product' => 'openanalytics-open', 'version' => '2020-09-28'],
'directories' => [
[
'id' => 66508,
'title' => null,
'type' => 'directory',
'children' => [
[
'id' => 66512,
'title' => null,
'type' => 'directory',
'children' => ['CreateDatabase', 'GetAllDatabases'],
],
[
'id' => 66518,
'title' => null,
'type' => 'directory',
'children' => ['AddPartitions'],
],
[
'id' => 66523,
'title' => null,
'type' => 'directory',
'children' => ['GetTable', 'GetAllTables', 'DropTable'],
],
],
],
],
'components' => [
'schemas' => [],
],
'apis' => [
'CreateDatabase' => [
'summary' => '创建数据库',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'Name',
'in' => 'query',
'schema' => ['title' => '创建数据库的名字', 'description' => '', 'type' => 'string', 'required' => true, 'example' => 'db001'],
],
[
'name' => 'Description',
'in' => 'query',
'schema' => ['title' => '数据库描述', 'description' => '', 'type' => 'string', 'required' => true, 'example' => 'this is db description'],
],
[
'name' => 'LocationUri',
'in' => 'query',
'schema' => ['title' => '数据库的 location', 'description' => '', 'type' => 'string', 'required' => true, 'example' => 'oss://data/xxx'],
],
[
'name' => 'Parameters',
'in' => 'query',
'style' => 'json',
'schema' => [
'title' => '数据库属性',
'description' => '',
'type' => 'object',
'required' => false,
'additionalProperties' => ['type' => 'string', 'description' => '', 'example' => 'key001=value001'],
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => '返回值主题',
'description' => '',
'type' => 'object',
'properties' => [
'Code' => ['title' => '如果后端处理出现错误,则表示错误的类型', 'description' => '', 'type' => 'string', 'example' => 'ALREADY_EXISTS'],
'Data' => ['title' => '成功创建库的库ID', 'description' => '', 'type' => 'integer', 'format' => 'int64', 'example' => '6666'],
'Message' => ['title' => '如果后端处理出现错误,则表示错误的信息', 'description' => '', 'type' => 'string', 'example' => 'Database db001 already exists'],
'RequestId' => ['title' => '请求的 ID', 'description' => '', 'type' => 'string', 'example' => '9BEAC206-0795-4DE3-B1FD-964BEF432B23'],
'Success' => ['title' => '标识本次请求是否成功', 'description' => '', 'type' => 'boolean', 'example' => 'false'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"ALREADY_EXISTS\\",\\n \\"Data\\": 6666,\\n \\"Message\\": \\"Database db001 already exists\\",\\n \\"RequestId\\": \\"9BEAC206-0795-4DE3-B1FD-964BEF432B23\\",\\n \\"Success\\": false\\n}","errorExample":""},{"type":"xml","example":"<Message>Database db001 already exists</Message>\\n<RequestId>9BEAC206-0795-4DE3-B1FD-964BEF432B23</RequestId>\\n<Data>6666</Data>\\n<Code>ALREADY_EXISTS</Code>\\n<Success>false</Success>","errorExample":""}]',
'title' => 'CreateDatabase',
],
'GetAllDatabases' => [
'summary' => '获取某个用户所有数据库',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [],
'responses' => [
200 => [
'schema' => [
'title' => '返回对象',
'description' => '',
'type' => 'object',
'properties' => [
'Code' => ['title' => '如果后端处理出现错误,则表示错误的类型', 'description' => '', 'type' => 'string', 'example' => 'ok'],
'Data' => [
'title' => '返回的数据库列表',
'description' => '',
'type' => 'array',
'items' => ['description' => '', 'type' => 'string', 'example' => 'db001'],
],
'Message' => ['title' => '如果后端处理出现错误,则表示错误的信息', 'description' => '', 'type' => 'string', 'example' => 'ok'],
'RequestId' => ['title' => '请求的 ID', 'description' => '', 'type' => 'string', 'example' => '9BEAC206-0795-4DE3-B1FD-964BEF432B23'],
'Success' => ['title' => '标识本次请求是否成功', 'description' => '', 'type' => 'boolean', 'example' => 'true'],
],
],
],
],
'errorCodes' => [],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"ok\\",\\n \\"Data\\": [\\n \\"db001\\"\\n ],\\n \\"Message\\": \\"ok\\",\\n \\"RequestId\\": \\"9BEAC206-0795-4DE3-B1FD-964BEF432B23\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<GetAllDatabasesResponse>\\n <Code>ok</Code>\\n <Data>db001</Data>\\n <Message>ok</Message>\\n <RequestId>9BEAC206-0795-4DE3-B1FD-964BEF432B23</RequestId>\\n <Success>true</Success>\\n</GetAllDatabasesResponse>","errorExample":""}]',
'title' => 'GetAllDatabases',
],
'AddPartitions' => [
'summary' => '添加分区',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'Partition',
'in' => 'query',
'style' => 'json',
'schema' => [
'title' => '添加的分区',
'description' => '',
'type' => 'array',
'items' => [
'description' => '',
'type' => 'object',
'properties' => [
'DbName' => ['title' => '数据库名称', 'description' => '', 'type' => 'string', 'required' => true, 'example' => 'db001'],
'Parameters' => [
'title' => '分区属性',
'description' => '',
'type' => 'object',
'required' => false,
'additionalProperties' => ['type' => 'string', 'description' => '', 'example' => 'key001=value002'],
],
'StorageDescriptor' => [
'title' => '分区的 StorageDescriptor ',
'description' => '',
'type' => 'object',
'properties' => [
'Col' => [
'title' => '表的列信息',
'description' => '',
'type' => 'array',
'items' => [
'description' => '',
'type' => 'object',
'properties' => [
'Comment' => ['title' => '列注释', 'description' => '', 'type' => 'string', 'required' => false, 'example' => 'this is comment'],
'Name' => ['title' => '列名', 'description' => '', 'type' => 'string', 'required' => false, 'example' => 'col1'],
'Type' => ['title' => '列类型', 'description' => '', 'type' => 'string', 'required' => false, 'example' => 'string'],
],
'required' => false,
],
'required' => true,
],
'InputFormat' => ['title' => '表的 inputFormat', 'description' => '', 'type' => 'string', 'required' => true, 'example' => 'org.apache.hadoop.hive.ql.io.parquet.MapredParquetInputFormat'],
'Location' => ['title' => '表路径', 'description' => '', 'type' => 'string', 'required' => false, 'example' => 'oss://data/xxxx'],
'OutputFormat' => ['title' => '表的 outputFormat', 'description' => '', 'type' => 'string', 'required' => true, 'example' => 'org.apache.hadoop.hive.ql.io.parquet.MapredParquetOutputFormat'],
'Parameters' => [
'title' => 'StorageDescriptor 的属性',
'description' => '',
'type' => 'object',
'required' => false,
'additionalProperties' => ['type' => 'string', 'example' => 'key001=value002', 'description' => ''],
],
'SerDeInfo' => [
'title' => '表的 serDeInfo',
'description' => '',
'type' => 'object',
'properties' => [
'Name' => ['title' => 'SerDe 的名字', 'description' => '', 'type' => 'string', 'required' => false, 'example' => 'serDeName'],
'Parameters' => [
'title' => 'SerDe 的',
'description' => '',
'type' => 'object',
'required' => false,
'additionalProperties' => ['type' => 'string', 'example' => 'key001=value002', 'description' => ''],
],
'SerializationLib' => ['title' => 'SerDe 的 serializationLib 信息', 'description' => '', 'type' => 'string', 'required' => true, 'example' => 'org.apache.hadoop.hive.ql.io.parquet.serde.ParquetHiveSerDe'],
],
'required' => true,
],
],
'required' => true,
],
'TableName' => ['title' => '表名', 'description' => '', 'type' => 'string', 'required' => true, 'example' => 'tbl001'],
'Values' => [
'title' => '需要添加的分区',
'description' => '',
'type' => 'array',
'items' => ['description' => '', 'type' => 'string', 'required' => true, 'example' => 'p001'],
'required' => true,
],
],
'required' => false,
],
'required' => true,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => '返回对象',
'description' => '',
'type' => 'object',
'properties' => [
'Code' => ['title' => '如果后端处理出现错误,则表示错误的类型', 'description' => '', 'type' => 'string', 'example' => 'INVALID_OPERATION'],
'Data' => ['title' => '成功添加的分区个数', 'description' => '', 'type' => 'integer', 'format' => 'int64', 'example' => '2'],
'Message' => ['title' => '如果后端处理出现错误,则表示错误的信息', 'description' => '', 'type' => 'string', 'example' => 'Too many partitions, exceed max partition number'],
'RequestId' => ['title' => '请求的 ID', 'description' => '', 'type' => 'string', 'example' => '9BEAC206-0795-4DE3-B1FD-964BEF432B23'],
'Success' => ['title' => '标识本次请求是否成功', 'description' => '', 'type' => 'boolean', 'example' => 'true'],
],
],
],
],
'errorCodes' => [
430 => [
['errorCode' => 'ServerError.Inner', 'errorMessage' => 'An internal error occurred.'],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"INVALID_OPERATION\\",\\n \\"Data\\": 2,\\n \\"Message\\": \\"Too many partitions, exceed max partition number\\",\\n \\"RequestId\\": \\"9BEAC206-0795-4DE3-B1FD-964BEF432B23\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<Message>Too many partitions, exceed max partition number</Message>\\n<RequestId>9BEAC206-0795-4DE3-B1FD-964BEF432B23</RequestId>\\n<Data>2</Data>\\n<Code>INVALID_OPERATION</Code>\\n<Success>true</Success>","errorExample":""}]',
'title' => 'AddPartitions',
],
'GetTable' => [
'summary' => '获取表',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'DbName',
'in' => 'query',
'schema' => ['title' => '数据库名称', 'description' => '', 'type' => 'string', 'required' => true, 'example' => 'db001'],
],
[
'name' => 'TableName',
'in' => 'query',
'schema' => ['title' => '表名称', 'description' => '', 'type' => 'string', 'required' => true, 'example' => 'tbl001'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => '返回对象',
'description' => '',
'type' => 'object',
'properties' => [
'Code' => ['title' => '如果后端处理出现错误,则表示错误的类型', 'description' => '', 'type' => 'string', 'example' => 'NO_SUCH_OBJECT'],
'Message' => ['title' => '如果后端处理出现错误,则表示错误的信息', 'description' => '', 'type' => 'string', 'example' => 'No such table: db001.tbl001'],
'RequestId' => ['title' => '请求的 ID', 'description' => '', 'type' => 'string', 'example' => '9BEAC206-0795-4DE3-B1FD-964BEF432B23'],
'Success' => ['title' => '标识本次请求是否成功', 'description' => '', 'type' => 'boolean', 'example' => 'false'],
'Table' => [
'title' => '获取的表信息',
'description' => '',
'type' => 'object',
'properties' => [
'CreateTime' => ['title' => '表的创建时间', 'description' => '', 'type' => 'integer', 'format' => 'int64', 'example' => '20190813'],
'DbName' => ['title' => '数据库名称', 'description' => '', 'type' => 'string', 'example' => 'db001'],
'LastAccessTime' => ['title' => '最后一次访问时间', 'description' => '', 'type' => 'integer', 'format' => 'int64', 'example' => '20190814'],
'Owner' => ['title' => '表的所属用户', 'description' => '', 'type' => 'string', 'example' => 'user001'],
'Parameters' => [
'title' => '表属性',
'description' => '',
'type' => 'object',
'additionalProperties' => ['type' => 'string', 'description' => '', 'example' => 'key001=value001'],
],
'PartitionKeys' => [
'title' => '分区信息',
'description' => '',
'type' => 'array',
'items' => [
'description' => '',
'type' => 'object',
'properties' => [
'Comment' => ['title' => '分区注释', 'description' => '', 'type' => 'string', 'example' => 'this is partition comment'],
'Name' => ['title' => '分区名称', 'description' => '', 'type' => 'string', 'example' => 'part001'],
'Type' => ['title' => '分区类型', 'description' => '', 'type' => 'string', 'example' => 'int'],
],
],
],
'StorageDescriptor' => [
'title' => '表的 sd 信息',
'description' => '',
'type' => 'object',
'properties' => [
'Cols' => [
'title' => '表的列信息',
'description' => '',
'type' => 'array',
'items' => [
'description' => '',
'type' => 'object',
'properties' => [
'Comment' => ['title' => '列注释', 'description' => '', 'type' => 'string', 'example' => 'this is column comment'],
'Name' => ['title' => '列名称', 'description' => '', 'type' => 'string', 'example' => 'col1'],
'Type' => ['title' => '列类型', 'description' => '', 'type' => 'string', 'example' => 'string'],
],
],
],
'InputFormat' => ['title' => '表的 inputFormat', 'description' => '', 'type' => 'string', 'example' => 'org.apache.hadoop.hive.ql.io.parquet.MapredParquetInputFormat'],
'Location' => ['title' => '表路径', 'description' => '', 'type' => 'string', 'example' => 'oss://data/xxxx'],
'OutputFormat' => ['title' => '表的 outputFormat', 'description' => '', 'type' => 'string', 'example' => 'org.apache.hadoop.hive.ql.io.parquet.MapredParquetOutputFormat'],
'Parameters' => ['title' => 'SD 的属性', 'description' => '', 'type' => 'object'],
'SerDeInfo' => [
'title' => '表的 SerDe 信息',
'description' => '',
'type' => 'object',
'properties' => [
'Name' => ['title' => 'SerDe 的名称', 'description' => '', 'type' => 'string', 'example' => 'SerDeName'],
'Parameters' => [
'title' => 'SerDe 的属性',
'description' => '',
'type' => 'object',
'additionalProperties' => ['type' => 'string', 'description' => '', 'example' => 'key001=value001'],
],
'SerializationLib' => ['title' => 'SerDe 的 serializationLib', 'description' => '', 'type' => 'string', 'example' => 'org.apache.hadoop.hive.ql.io.parquet.serde.ParquetHiveSerDe'],
],
],
],
],
'TableName' => ['title' => '表的名称', 'description' => '', 'type' => 'string', 'example' => 'tbl001'],
'TableType' => ['title' => '表的类型', 'description' => '', 'type' => 'string', 'example' => 'VIEW'],
'ViewExpandedText' => ['title' => '如果表是视图,则存储扩展视图SQL', 'description' => '', 'type' => 'string', 'example' => 'select count(*) from tbl002'],
'ViewOriginalText' => ['title' => '如果表是视图,则存储原生视图SQL', 'description' => '', 'type' => 'string', 'example' => 'select count(*) from tbl002'],
],
],
],
],
],
],
'errorCodes' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"NO_SUCH_OBJECT\\",\\n \\"Message\\": \\"No such table: db001.tbl001\\",\\n \\"RequestId\\": \\"9BEAC206-0795-4DE3-B1FD-964BEF432B23\\",\\n \\"Success\\": false,\\n \\"Table\\": {\\n \\"CreateTime\\": 20190813,\\n \\"DbName\\": \\"db001\\",\\n \\"LastAccessTime\\": 20190814,\\n \\"Owner\\": \\"user001\\",\\n \\"Parameters\\": {\\n \\"key\\": \\"key001=value001\\"\\n },\\n \\"PartitionKeys\\": [\\n {\\n \\"Comment\\": \\"this is partition comment\\",\\n \\"Name\\": \\"part001\\",\\n \\"Type\\": \\"int\\"\\n }\\n ],\\n \\"StorageDescriptor\\": {\\n \\"Cols\\": [\\n {\\n \\"Comment\\": \\"this is column comment\\",\\n \\"Name\\": \\"col1\\",\\n \\"Type\\": \\"string\\"\\n }\\n ],\\n \\"InputFormat\\": \\"org.apache.hadoop.hive.ql.io.parquet.MapredParquetInputFormat\\",\\n \\"Location\\": \\"oss://data/xxxx\\",\\n \\"OutputFormat\\": \\"org.apache.hadoop.hive.ql.io.parquet.MapredParquetOutputFormat\\",\\n \\"Parameters\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"SerDeInfo\\": {\\n \\"Name\\": \\"SerDeName\\",\\n \\"Parameters\\": {\\n \\"key\\": \\"key001=value001\\"\\n },\\n \\"SerializationLib\\": \\"org.apache.hadoop.hive.ql.io.parquet.serde.ParquetHiveSerDe\\"\\n }\\n },\\n \\"TableName\\": \\"tbl001\\",\\n \\"TableType\\": \\"VIEW\\",\\n \\"ViewExpandedText\\": \\"select count(*) from tbl002\\",\\n \\"ViewOriginalText\\": \\"select count(*) from tbl002\\"\\n }\\n}","type":"json"}]',
'title' => 'GetTable',
],
'GetAllTables' => [
'summary' => '获取某个数据库下面的所有表',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'DbName',
'in' => 'query',
'schema' => ['title' => '数据库名称', 'description' => '', 'type' => 'string', 'required' => true, 'example' => 'db001'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => '返回对象',
'description' => '',
'type' => 'object',
'properties' => [
'Code' => ['title' => '如果后端处理出现错误,则表示错误的类型', 'description' => '', 'type' => 'string', 'example' => 'NO_SUCH_OBJECT'],
'Data' => [
'title' => '请求数据库低下的所有表',
'description' => '',
'type' => 'array',
'items' => ['description' => '', 'type' => 'string', 'example' => 'tbl001'],
],
'Message' => ['title' => '如果后端处理出现错误,则表示错误的信息', 'description' => '', 'type' => 'string', 'example' => 'The database db001 does not exist'],
'RequestId' => ['title' => '请求的 ID', 'description' => '', 'type' => 'string', 'example' => '9BEAC206-0795-4DE3-B1FD-964BEF432B23'],
'Success' => ['title' => '标识本次请求是否成功', 'description' => '', 'type' => 'boolean', 'example' => 'false'],
],
],
],
],
'errorCodes' => [],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"NO_SUCH_OBJECT\\",\\n \\"Data\\": [\\n \\"tbl001\\"\\n ],\\n \\"Message\\": \\"The database db001 does not exist\\",\\n \\"RequestId\\": \\"9BEAC206-0795-4DE3-B1FD-964BEF432B23\\",\\n \\"Success\\": false\\n}","errorExample":""},{"type":"xml","example":"<Message>The database db001 does not exist</Message>\\n<RequestId>9BEAC206-0795-4DE3-B1FD-964BEF432B23</RequestId>\\n<Data>[ tbl001,tbl002 ]</Data>\\n<Code>NO_SUCH_OBJECT</Code>\\n<Success>false</Success>","errorExample":""}]',
'title' => 'GetAllTables',
],
'DropTable' => [
'summary' => '删除表',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'DbName',
'in' => 'query',
'schema' => ['title' => '数据库名称', 'description' => '', 'type' => 'string', 'required' => true, 'example' => 'db001'],
],
[
'name' => 'TableName',
'in' => 'query',
'schema' => ['title' => '表名称', 'description' => '', 'type' => 'string', 'required' => true, 'example' => 'tbl001'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => '返回对象',
'description' => '',
'type' => 'object',
'properties' => [
'Code' => ['title' => '如果后端处理出现错误,则表示错误的类型', 'description' => '', 'type' => 'string', 'example' => 'NO_SUCH_OBJECT'],
'Data' => ['title' => '标记表是否删除成功', 'description' => '', 'type' => 'boolean', 'example' => 'false'],
'Message' => ['title' => '如果后端处理出现错误,则表示错误的信息', 'description' => '', 'type' => 'string', 'example' => 'No such table: db001.tbl001'],
'RequestId' => ['title' => '请求的 ID', 'description' => '', 'type' => 'string', 'example' => '9BEAC206-0795-4DE3-B1FD-964BEF432B23'],
'Success' => ['title' => '标识本次请求是否成功', 'description' => '', 'type' => 'boolean', 'example' => 'false'],
],
],
],
],
'errorCodes' => [
430 => [
['errorCode' => 'ServerError.Inner', 'errorMessage' => 'An internal error occurred.'],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"NO_SUCH_OBJECT\\",\\n \\"Data\\": false,\\n \\"Message\\": \\"No such table: db001.tbl001\\",\\n \\"RequestId\\": \\"9BEAC206-0795-4DE3-B1FD-964BEF432B23\\",\\n \\"Success\\": false\\n}","errorExample":""},{"type":"xml","example":"<Message>No such table: db001.tbl001</Message>\\n<RequestId>9BEAC206-0795-4DE3-B1FD-964BEF432B23</RequestId>\\n<Data>false</Data>\\n<Code>NO_SUCH_OBJECT</Code>\\n<Success>false</Success>","errorExample":""}]',
'title' => 'DropTable',
],
],
'endpoints' => [
['regionId' => 'cn-beijing', 'endpoint' => 'openanalytics.cn-beijing.aliyuncs.com'],
['regionId' => 'cn-zhangjiakou', 'endpoint' => 'openanalytics.cn-zhangjiakou.aliyuncs.com'],
['regionId' => 'cn-hangzhou', 'endpoint' => 'openanalytics.cn-hangzhou.aliyuncs.com'],
['regionId' => 'cn-shanghai', 'endpoint' => 'openanalytics.cn-shanghai.aliyuncs.com'],
['regionId' => 'cn-shenzhen', 'endpoint' => 'openanalytics.cn-shenzhen.aliyuncs.com'],
['regionId' => 'cn-hongkong', 'endpoint' => 'openanalytics.cn-hongkong.aliyuncs.com'],
['regionId' => 'ap-southeast-1', 'endpoint' => 'openanalytics.ap-southeast-1.aliyuncs.com'],
['regionId' => 'ap-southeast-2', 'endpoint' => 'datalakeanalytics.ap-southeast-2.aliyuncs.com'],
['regionId' => 'ap-southeast-3', 'endpoint' => 'openanalytics.ap-southeast-3.aliyuncs.com'],
['regionId' => 'ap-northeast-1', 'endpoint' => 'datalakeanalytics.ap-northeast-1.aliyuncs.com'],
['regionId' => 'eu-west-1', 'endpoint' => 'openanalytics.eu-west-1.aliyuncs.com'],
['regionId' => 'us-west-1', 'endpoint' => 'openanalytics.us-west-1.aliyuncs.com'],
['regionId' => 'us-east-1', 'endpoint' => 'datalakeanalytics.us-east-1.aliyuncs.com'],
['regionId' => 'eu-central-1', 'endpoint' => 'datalakeanalytics.eu-central-1.aliyuncs.com'],
['regionId' => 'ap-south-1', 'endpoint' => 'openanalytics.ap-south-1.aliyuncs.com'],
['regionId' => 'ap-northeast-2-pop', 'endpoint' => 'openanalytics.ap-northeast-1.aliyuncs.com'],
['regionId' => 'ap-southeast-5', 'endpoint' => 'openanalytics.ap-southeast-5.aliyuncs.com'],
['regionId' => 'cn-beijing-finance-1', 'endpoint' => 'openanalytics.aliyuncs.com'],
['regionId' => 'cn-beijing-finance-pop', 'endpoint' => 'openanalytics.aliyuncs.com'],
['regionId' => 'cn-beijing-gov-1', 'endpoint' => 'openanalytics.aliyuncs.com'],
['regionId' => 'cn-beijing-nu16-b01', 'endpoint' => 'openanalytics.aliyuncs.com'],
['regionId' => 'cn-chengdu', 'endpoint' => 'openanalytics.aliyuncs.com'],
['regionId' => 'cn-edge-1', 'endpoint' => 'openanalytics.aliyuncs.com'],
['regionId' => 'cn-fujian', 'endpoint' => 'openanalytics.aliyuncs.com'],
['regionId' => 'cn-haidian-cm12-c01', 'endpoint' => 'openanalytics.aliyuncs.com'],
['regionId' => 'cn-hangzhou-bj-b01', 'endpoint' => 'openanalytics.aliyuncs.com'],
['regionId' => 'cn-hangzhou-finance', 'endpoint' => 'openanalytics.aliyuncs.com'],
['regionId' => 'cn-hangzhou-internal-prod-1', 'endpoint' => 'openanalytics.aliyuncs.com'],
['regionId' => 'cn-hangzhou-internal-test-1', 'endpoint' => 'openanalytics.aliyuncs.com'],
['regionId' => 'cn-hangzhou-internal-test-2', 'endpoint' => 'openanalytics.aliyuncs.com'],
['regionId' => 'cn-hangzhou-internal-test-3', 'endpoint' => 'openanalytics.aliyuncs.com'],
['regionId' => 'cn-hangzhou-test-306', 'endpoint' => 'openanalytics.aliyuncs.com'],
['regionId' => 'cn-hongkong-finance-pop', 'endpoint' => 'openanalytics.aliyuncs.com'],
['regionId' => 'cn-huhehaote', 'endpoint' => 'openanalytics.cn-huhehaote.aliyuncs.com'],
['regionId' => 'cn-north-2-gov-1', 'endpoint' => 'openanalytics.aliyuncs.com'],
['regionId' => 'cn-qingdao', 'endpoint' => 'openanalytics.cn-qingdao.aliyuncs.com'],
['regionId' => 'cn-qingdao-nebula', 'endpoint' => 'openanalytics.aliyuncs.com'],
['regionId' => 'cn-shanghai-et15-b01', 'endpoint' => 'openanalytics.aliyuncs.com'],
['regionId' => 'cn-shanghai-et2-b01', 'endpoint' => 'openanalytics.aliyuncs.com'],
['regionId' => 'cn-shanghai-finance-1', 'endpoint' => 'openanalytics.aliyuncs.com'],
['regionId' => 'cn-shanghai-inner', 'endpoint' => 'openanalytics.aliyuncs.com'],
['regionId' => 'cn-shanghai-internal-test-1', 'endpoint' => 'openanalytics.aliyuncs.com'],
['regionId' => 'cn-shenzhen-finance-1', 'endpoint' => 'openanalytics.aliyuncs.com'],
['regionId' => 'cn-shenzhen-inner', 'endpoint' => 'openanalytics.aliyuncs.com'],
['regionId' => 'cn-shenzhen-st4-d01', 'endpoint' => 'openanalytics.aliyuncs.com'],
['regionId' => 'cn-shenzhen-su18-b01', 'endpoint' => 'openanalytics.aliyuncs.com'],
['regionId' => 'cn-wuhan', 'endpoint' => 'openanalytics.aliyuncs.com'],
['regionId' => 'cn-yushanfang', 'endpoint' => 'openanalytics.aliyuncs.com'],
['regionId' => 'cn-zhangbei-na61-b01', 'endpoint' => 'openanalytics.aliyuncs.com'],
['regionId' => 'cn-zhangjiakou-na62-a01', 'endpoint' => 'openanalytics.aliyuncs.com'],
['regionId' => 'cn-zhengzhou-nebula-1', 'endpoint' => 'openanalytics.aliyuncs.com'],
['regionId' => 'eu-west-1-oxs', 'endpoint' => 'openanalytics.ap-northeast-1.aliyuncs.com'],
['regionId' => 'me-east-1', 'endpoint' => 'openanalytics.me-east-1.aliyuncs.com'],
['regionId' => 'rus-west-1-pop', 'endpoint' => 'openanalytics.ap-northeast-1.aliyuncs.com'],
],
];
|