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
|
<?php return [
'version' => '1.0',
'info' => ['style' => 'RPC', 'product' => 'DdosDiversion', 'version' => '2023-07-01'],
'directories' => ['ConfigNetStatus', 'QueryNetList', 'ListInstance'],
'components' => [
'schemas' => [],
],
'apis' => [
'ConfigNetStatus' => [
'summary' => '进行网段宣告配置。',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '186873',
'abilityTreeNodes' => ['FEATUREddosPJT0YW'],
'autoTest' => false,
'notSupportAutoTestReason' => '代播API 涉及IP网段的路由配置,支持宣告/撤销等操作,需要客户真实网段操作,无法进行自动化调度与验证。',
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'SaleId',
'in' => 'query',
'schema' => ['description' => '代播实例的ID。', 'type' => 'string', 'required' => true, 'example' => 'ddos_diversion_public_cn-xxxxxxxxxxxxx'],
],
[
'name' => 'Net',
'in' => 'query',
'schema' => [
'description' => '代播实例的网段。',
'type' => 'string',
'required' => true,
'example' => '192.168.XX.XX/22',
'enum' => [],
],
],
[
'name' => 'Status',
'in' => 'query',
'schema' => [
'description' => '状态。取值:'."\n"
."\n"
.'- enable:宣告。'."\n"
.'- disable:撤销。',
'type' => 'string',
'required' => true,
'example' => 'enable',
'enum' => ['enable', 'disable'],
],
],
[
'name' => 'Regions',
'in' => 'query',
'style' => 'flat',
'schema' => [
'description' => '网段需要宣告/撤销的区域列表,当列表为空时,表示操作所有网段配置的区域。'."\n"
."\n"
.'> 您可以调用[QueryNetList](~~2639086~~)获取网段配置的区域信息。',
'type' => 'array',
'items' => ['description' => '网段需要宣告或者撤销的区域。', 'type' => 'string', 'required' => false, 'example' => 'oe26'],
'required' => false,
],
],
[
'name' => 'SubNets',
'in' => 'query',
'style' => 'flat',
'schema' => [
'description' => '代播实例网段的子网段列表。',
'type' => 'array',
'items' => ['description' => '代播实例网段的子网段。', 'type' => 'string', 'required' => false, 'example' => '192.168.XX.XX/24'],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口返回码:'."\n"
."\n"
.'- **200**:表示成功。'."\n"
.'- 其它:表示错误码。', 'type' => 'integer', 'format' => 'int64', 'example' => '200'],
'RequestId' => ['description' => '本次调用请求的ID,是由阿里云为该请求生成的唯一标识符,可用于排查和定位问题。', 'type' => 'string', 'example' => 'B0949F09-B9C1-1D5E-8F27-0A5BF3CD5D95'],
'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'successful'],
],
'description' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'AuthenticationFailed', 'errorMessage' => 'User authentication failed.', 'description' => '用户认证失败。'],
['errorCode' => 'AutoScheduleRuleExist', 'errorMessage' => 'The auto schedule rule already exists.', 'description' => '调度规则已存在。'],
['errorCode' => 'AutoScheduleRuleNotExist', 'errorMessage' => 'The auto schedule rule dose not exist.', 'description' => '调度规则不存在。'],
['errorCode' => 'BlackHoleConfigurationError', 'errorMessage' => 'A black hole configuration error occurred.', 'description' => '黑洞配置错误。'],
['errorCode' => 'CleanConfigurationError', 'errorMessage' => 'A clean configuration error occurred.', 'description' => '清洗配置错误。'],
['errorCode' => 'CoveredNet', 'errorMessage' => 'The CIDR block is overwritten.', 'description' => '网段被其他网段覆盖。'],
['errorCode' => 'DatabaseError', 'errorMessage' => 'A database error.', 'description' => '数据库错误。'],
['errorCode' => 'DeclaredNet', 'errorMessage' => 'The CIDR block has been advertised.', 'description' => '网段处于宣告状态。'],
['errorCode' => 'DefenseConfigurationError', 'errorMessage' => 'A defense configuration error occurred.', 'description' => '防护配置错误。'],
['errorCode' => 'ForwardConfigurationNotExist', 'errorMessage' => 'The CIDR block forwarding configuration is not found.', 'description' => '网段转发配置不存在。'],
['errorCode' => 'ForwardNotExist', 'errorMessage' => 'The CIDR block zone forwarding configuration is not found.', 'description' => '网段可用区转发配置不存在。'],
['errorCode' => 'ForwardRuleNotExist', 'errorMessage' => 'The CIDR block forwarding rule is not found.', 'description' => '网段转发规则不存在。'],
['errorCode' => 'HttpFailed', 'errorMessage' => 'HTTP request failed.', 'description' => 'HTTP 请求失败。'],
['errorCode' => 'IDNSubnetsCountLimit', 'errorMessage' => 'The maximum number of IDCs of the instance is exceeded.', 'description' => '实例的IDC数量达到上限'],
['errorCode' => 'InstanceExist', 'errorMessage' => 'The instance already exists.', 'description' => '实例已经存在。'],
['errorCode' => 'InstanceNetConfigurationExist', 'errorMessage' => 'The instance CIDR block configuration already exists.', 'description' => '实例网段配置已存在。'],
['errorCode' => 'InstanceNotExist', 'errorMessage' => 'The instance is not found.', 'description' => '实例不存在。'],
['errorCode' => 'InstanceUpstreamLimit', 'errorMessage' => 'The maximum number of reinjection configurations for the instance is exceeded.', 'description' => '实例的回注配置数量受限。'],
['errorCode' => 'InternalError', 'errorMessage' => 'An internal error occurred.', 'description' => '内部错误。'],
['errorCode' => 'InvalidNet', 'errorMessage' => 'Invalid CIDR block.', 'description' => '网段不合法。'."\n"],
['errorCode' => 'InvalidParam', 'errorMessage' => 'Invalid parameter value.', 'description' => '参数非法。'],
['errorCode' => 'IPSubnetsCountLimit', 'errorMessage' => 'The maximum number of CIDR blocks of the instance is exceeded.', 'description' => '实例的网段数量达到上限。'."\n"],
['errorCode' => 'NetCannotExtend', 'errorMessage' => 'The CIDR block cannot be extended.', 'description' => '网段不能被扩容。'."\n"],
['errorCode' => 'NetConfigurationExist', 'errorMessage' => 'The CIDR block configuration already exists.', 'description' => '网段配置已存在。'."\n"],
['errorCode' => 'NetConfigurationNotExist', 'errorMessage' => 'The CIDR block configuration is not found.', 'description' => '网段配置不存在。'],
['errorCode' => 'NetForwardDelete', 'errorMessage' => 'The CIDR block forwarding is being deleted.', 'description' => '网段转发删除中。'."\n"],
['errorCode' => 'NetMaskOutOfRange', 'errorMessage' => 'The subnet mask of the CIDR block is invalid.', 'description' => '网段掩码超出范围。'."\n"],
['errorCode' => 'NetNeedExtend', 'errorMessage' => 'The CIDR block needs to be extended.', 'description' => '网段需要扩容。'."\n"],
['errorCode' => 'NetStatusNotReady', 'errorMessage' => 'The CIDR block reinjection configuration has not been completed.', 'description' => '网段回注配置未完成'."\n"],
['errorCode' => 'NetworkDeclearedFailed', 'errorMessage' => 'Failed to advertise the CIDR block.', 'description' => '网段宣告失败。'."\n"],
['errorCode' => 'NetWorkNotExist', 'errorMessage' => 'The CIDR block is not found.', 'description' => '网段不存在。'],
['errorCode' => 'NetworkUndeclearedFailed', 'errorMessage' => 'Failed to cancel the advertisement of the CIDR block.', 'description' => '网段解除宣告失败。'."\n"],
['errorCode' => 'ParameterNotEnough', 'errorMessage' => 'Required parameters are not specified.', 'description' => '必填参数缺失。'],
['errorCode' => 'ParameterOutOfRange', 'errorMessage' => 'Invalid parameter value.', 'description' => '参数超出指定取值范围'],
['errorCode' => 'RegionNotExist', 'errorMessage' => 'The region does not exist.', 'description' => '可用区不存在。'."\n"],
['errorCode' => 'RequestMethodError', 'errorMessage' => 'An incorrect request method.', 'description' => '请求方式错误。'],
['errorCode' => 'SubnetCountLimit', 'errorMessage' => 'The maximum number of subnets is exceeded.', 'description' => '子网数量达到上限。'."\n"],
['errorCode' => 'UnKnownError', 'errorMessage' => 'An unknown error occurred.', 'description' => '未知错误。'],
['errorCode' => 'UpsteamNotComplete', 'errorMessage' => 'The reinjection configuration has not been completed.', 'description' => '网段回注配置未完成。'."\n"],
['errorCode' => 'UpstreamConfigurationNotExist', 'errorMessage' => 'The reinjection configuration is not found.', 'description' => '回注配置不存在。'."\n"],
['errorCode' => 'JsonDecodeError', 'errorMessage' => 'JSON string decoding failed.', 'description' => 'JSON字符串转JSON对象失败。'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '网段宣告配置',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'ddosdiversion:ConfigNetStatus',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'DdosDiversion', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"RequestId\\": \\"B0949F09-B9C1-1D5E-8F27-0A5BF3CD5D95\\",\\n \\"Message\\": \\"successful\\"\\n}","type":"json"}]',
],
'ListInstance' => [
'summary' => '查询实例列表。',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '186870',
'abilityTreeNodes' => ['FEATUREddos37DGH1'],
'autoTest' => false,
'notSupportAutoTestReason' => '代播API 涉及IP网段的路由配置,支持宣告/撤销等操作,需要客户真实网段操作,无法进行自动化调度与验证。',
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'SaleId',
'in' => 'query',
'schema' => ['description' => '代播实例的ID。', 'type' => 'string', 'required' => false, 'example' => 'ddos_diversion_public_cn-xxxxxxxxxxxxx'],
],
[
'name' => 'Name',
'in' => 'query',
'schema' => ['description' => '实例名称。', 'type' => 'string', 'required' => false, 'example' => 'Test instance.'],
],
[
'name' => 'Status',
'in' => 'query',
'schema' => ['description' => '实例状态。取值:'."\n"
."\n"
.'- normal:表示正常运行的实例。'."\n"
.'- expired:表示过期的实例。'."\n"
.'- deleting:表示处于删除中的实例。'."\n"
.'- stopped:表示停止的实例。', 'type' => 'string', 'required' => false, 'example' => 'normal'],
],
[
'name' => 'Page',
'in' => 'query',
'schema' => ['description' => '页码。 默认值:1。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1', 'default' => '1'],
],
[
'name' => 'Num',
'in' => 'query',
'schema' => ['description' => '数量。默认值:100。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '100', 'default' => '100'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口返回码:'."\n"
."\n"
.'- **200**:表示成功。'."\n"
.'- 其它:表示错误码。', 'type' => 'integer', 'format' => 'int64', 'example' => '200'],
'RequestId' => ['description' => '本次调用请求的ID,是由阿里云为该请求生成的唯一标识符,可用于排查和定位问题。', 'type' => 'string', 'example' => 'B0949F09-B9C1-1D5E-8F27-0A5BF3CD5D95'],
'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'successful'],
'Data' => [
'description' => '返回结果。',
'type' => 'object',
'properties' => [
'Total' => ['description' => '返回数据的总条数。', 'type' => 'integer', 'format' => 'int64', 'example' => '10'],
'Page' => ['description' => '页码。', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
'Num' => ['description' => '数量。', 'type' => 'integer', 'format' => 'int64', 'example' => '100'],
'Instances' => [
'description' => '代播实例详情数组。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'UserId' => ['description' => '用户ID。', 'type' => 'string', 'example' => '177xxxxxxxxxxxxx'],
'SaleId' => ['description' => '代播实例的ID。', 'type' => 'string', 'example' => 'ddos_diversion_public_cn-xxxxxxxxxxxxx'],
'InstanceId' => ['description' => '实例ID。', 'type' => 'string', 'example' => 'ddos_diversion_public_cn-xxxxxxxxxxxxx_xxxxxx'],
'Name' => ['description' => '实例名称。', 'type' => 'string', 'example' => 'Test instance.'],
'Status' => ['description' => '实例状态。取值:'."\n"
.'- normal:表示正常运行的实例。'."\n"
.'- expired:表示过期的实例。'."\n"
.'- deleting:表示处于删除中的实例。'."\n"
.'- stopped:表示停止的实例。', 'type' => 'string', 'example' => 'normal'],
'Comment' => ['description' => '备注。', 'type' => 'string', 'example' => 'Test instance.'],
'Message' => ['description' => '实例配置信息。', 'type' => 'string', 'example' => 'successful'],
'Spec' => [
'description' => '规格信息。',
'type' => 'object',
'properties' => [
'IdcNumbers' => ['description' => 'Idc数量。取值范围:1-10。', 'type' => 'string', 'example' => '1'],
'NormalBandwidth' => ['description' => '干净带宽。单位:Mbps。', 'type' => 'string', 'example' => '100'],
'IpSubnetNums' => ['description' => '网段(C段)数量。取值范围:1-10000。', 'type' => 'string', 'example' => '1'],
'Coverage' => ['description' => '资产区域。', 'type' => 'string', 'example' => 'international_and_hmt'],
'Edition' => ['description' => '防护套餐。', 'type' => 'string', 'example' => 'enterprise'],
'MitigationCapacity' => ['description' => '最大防护能力。', 'type' => 'string', 'example' => 'unlimited'],
'MitigationNums' => ['description' => '防护次数。', 'type' => 'string', 'example' => 'unlimited'],
'DiversionType' => ['description' => '代播模式。取值: on-demand; always-on。', 'type' => 'string', 'example' => 'on-demand'],
'MitigationAnalysis' => ['description' => '防护日志。', 'type' => 'string', 'example' => 'off'],
'MitigationAnalysisCapacity' => ['description' => '防护日志容量。', 'type' => 'string', 'example' => '3T'],
'InitialInstallation' => ['description' => '初装模式。', 'type' => 'string', 'example' => 'gre_tunnel_by_pccw'],
'InitialQty' => ['description' => '初装数量。', 'type' => 'string', 'example' => '1'],
],
],
'GmtExpire' => ['description' => '到期时间。', 'type' => 'string', 'example' => '2022-12-15 11:10:42'],
'GmtCreate' => ['description' => '购买时间。', 'type' => 'string', 'example' => '2022-12-15 11:10:42'],
'GmtModify' => ['description' => '更新时间。', 'type' => 'string', 'example' => '2022-12-15 11:10:42'],
],
'description' => '',
],
],
],
],
],
'description' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'AuthenticationFailed', 'errorMessage' => 'User authentication failed.', 'description' => '用户认证失败。'],
['errorCode' => 'AutoScheduleRuleExist', 'errorMessage' => 'The auto schedule rule already exists.', 'description' => '调度规则已存在。'],
['errorCode' => 'AutoScheduleRuleNotExist', 'errorMessage' => 'The auto schedule rule dose not exist.', 'description' => '调度规则不存在。'],
['errorCode' => 'BlackHoleConfigurationError', 'errorMessage' => 'A black hole configuration error occurred.', 'description' => '黑洞配置错误。'],
['errorCode' => 'CleanConfigurationError', 'errorMessage' => 'A clean configuration error occurred.', 'description' => '清洗配置错误。'],
['errorCode' => 'CoveredNet', 'errorMessage' => 'The CIDR block is overwritten.', 'description' => '网段被其他网段覆盖。'],
['errorCode' => 'DatabaseError', 'errorMessage' => 'A database error.', 'description' => '数据库错误。'],
['errorCode' => 'DeclaredNet', 'errorMessage' => 'The CIDR block has been advertised.', 'description' => '网段处于宣告状态。'],
['errorCode' => 'DefenseConfigurationError', 'errorMessage' => 'A defense configuration error occurred.', 'description' => '防护配置错误。'],
['errorCode' => 'ForwardConfigurationNotExist', 'errorMessage' => 'The CIDR block forwarding configuration is not found.', 'description' => '网段转发配置不存在。'],
['errorCode' => 'ForwardNotExist', 'errorMessage' => 'The CIDR block zone forwarding configuration is not found.', 'description' => '网段可用区转发配置不存在。'],
['errorCode' => 'ForwardRuleNotExist', 'errorMessage' => 'The CIDR block forwarding rule is not found.', 'description' => '网段转发规则不存在。'],
['errorCode' => 'HttpFailed', 'errorMessage' => 'HTTP request failed.', 'description' => 'HTTP 请求失败。'],
['errorCode' => 'IDNSubnetsCountLimit', 'errorMessage' => 'The maximum number of IDCs of the instance is exceeded.', 'description' => '实例的IDC数量达到上限'],
['errorCode' => 'InstanceExist', 'errorMessage' => 'The instance already exists.', 'description' => '实例已经存在。'],
['errorCode' => 'InstanceNetConfigurationExist', 'errorMessage' => 'The instance CIDR block configuration already exists.', 'description' => '实例网段配置已存在。'],
['errorCode' => 'InstanceNotExist', 'errorMessage' => 'The instance is not found.', 'description' => '实例不存在。'],
['errorCode' => 'InstanceUpstreamLimit', 'errorMessage' => 'The maximum number of reinjection configurations for the instance is exceeded.', 'description' => '实例的回注配置数量受限。'],
['errorCode' => 'InternalError', 'errorMessage' => 'An internal error occurred.', 'description' => '内部错误。'],
['errorCode' => 'InvalidNet', 'errorMessage' => 'Invalid CIDR block.', 'description' => '网段不合法。'."\n"],
['errorCode' => 'InvalidParam', 'errorMessage' => 'Invalid parameter value.', 'description' => '参数非法。'],
['errorCode' => 'IPSubnetsCountLimit', 'errorMessage' => 'The maximum number of CIDR blocks of the instance is exceeded.', 'description' => '实例的网段数量达到上限。'."\n"],
['errorCode' => 'NetCannotExtend', 'errorMessage' => 'The CIDR block cannot be extended.', 'description' => '网段不能被扩容。'."\n"],
['errorCode' => 'NetConfigurationExist', 'errorMessage' => 'The CIDR block configuration already exists.', 'description' => '网段配置已存在。'."\n"],
['errorCode' => 'NetConfigurationNotExist', 'errorMessage' => 'The CIDR block configuration is not found.', 'description' => '网段配置不存在。'],
['errorCode' => 'NetForwardDelete', 'errorMessage' => 'The CIDR block forwarding is being deleted.', 'description' => '网段转发删除中。'."\n"],
['errorCode' => 'NetMaskOutOfRange', 'errorMessage' => 'The subnet mask of the CIDR block is invalid.', 'description' => '网段掩码超出范围。'."\n"],
['errorCode' => 'NetNeedExtend', 'errorMessage' => 'The CIDR block needs to be extended.', 'description' => '网段需要扩容。'."\n"],
['errorCode' => 'NetStatusNotReady', 'errorMessage' => 'The CIDR block reinjection configuration has not been completed.', 'description' => '网段回注配置未完成'."\n"],
['errorCode' => 'NetworkDeclearedFailed', 'errorMessage' => 'Failed to advertise the CIDR block.', 'description' => '网段宣告失败。'."\n"],
['errorCode' => 'NetWorkNotExist', 'errorMessage' => 'The CIDR block is not found.', 'description' => '网段不存在。'],
['errorCode' => 'NetworkUndeclearedFailed', 'errorMessage' => 'Failed to cancel the advertisement of the CIDR block.', 'description' => '网段解除宣告失败。'."\n"],
['errorCode' => 'ParameterNotEnough', 'errorMessage' => 'Required parameters are not specified.', 'description' => '必填参数缺失。'],
['errorCode' => 'ParameterOutOfRange', 'errorMessage' => 'Invalid parameter value.', 'description' => '参数超出指定取值范围'],
['errorCode' => 'RegionNotExist', 'errorMessage' => 'The region does not exist.', 'description' => '可用区不存在。'."\n"],
['errorCode' => 'RequestMethodError', 'errorMessage' => 'An incorrect request method.', 'description' => '请求方式错误。'],
['errorCode' => 'SubnetCountLimit', 'errorMessage' => 'The maximum number of subnets is exceeded.', 'description' => '子网数量达到上限。'."\n"],
['errorCode' => 'UnKnownError', 'errorMessage' => 'An unknown error occurred.', 'description' => '未知错误。'],
['errorCode' => 'UpsteamNotComplete', 'errorMessage' => 'The reinjection configuration has not been completed.', 'description' => '网段回注配置未完成。'."\n"],
['errorCode' => 'UpstreamConfigurationNotExist', 'errorMessage' => 'The reinjection configuration is not found.', 'description' => '回注配置不存在。'."\n"],
['errorCode' => 'JsonDecodeError', 'errorMessage' => 'JSON string decoding failed.', 'description' => 'JSON字符串转JSON对象失败。'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"RequestId\\": \\"B0949F09-B9C1-1D5E-8F27-0A5BF3CD5D95\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": {\\n \\"Total\\": 10,\\n \\"Page\\": 1,\\n \\"Num\\": 100,\\n \\"Instances\\": [\\n {\\n \\"UserId\\": \\"177xxxxxxxxxxxxx\\",\\n \\"SaleId\\": \\"ddos_diversion_public_cn-xxxxxxxxxxxxx\\",\\n \\"InstanceId\\": \\"ddos_diversion_public_cn-xxxxxxxxxxxxx_xxxxxx\\",\\n \\"Name\\": \\"Test instance.\\",\\n \\"Status\\": \\"normal\\",\\n \\"Comment\\": \\"Test instance.\\",\\n \\"Message\\": \\"successful\\",\\n \\"Spec\\": {\\n \\"IdcNumbers\\": \\"1\\",\\n \\"NormalBandwidth\\": \\"100\\",\\n \\"IpSubnetNums\\": \\"1\\",\\n \\"Coverage\\": \\"international_and_hmt\\",\\n \\"Edition\\": \\"enterprise\\",\\n \\"MitigationCapacity\\": \\"unlimited\\",\\n \\"MitigationNums\\": \\"unlimited\\",\\n \\"DiversionType\\": \\"on-demand\\",\\n \\"MitigationAnalysis\\": \\"off\\",\\n \\"MitigationAnalysisCapacity\\": \\"3T\\",\\n \\"InitialInstallation\\": \\"gre_tunnel_by_pccw\\",\\n \\"InitialQty\\": \\"1\\"\\n },\\n \\"GmtExpire\\": \\"2022-12-15 11:10:42\\",\\n \\"GmtCreate\\": \\"2022-12-15 11:10:42\\",\\n \\"GmtModify\\": \\"2022-12-15 11:10:42\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
'title' => '查询实例列表',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'ddosdiversion:ListInstance',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'DdosDiversion', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
],
'QueryNetList' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '186874',
'abilityTreeNodes' => ['FEATUREddosPJT0YW'],
'autoTest' => false,
'notSupportAutoTestReason' => '代播API 涉及IP网段的路由配置,支持宣告/撤销等操作,需要客户真实网段操作,无法进行自动化调度与验证。',
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'SaleId',
'in' => 'query',
'schema' => ['description' => '代播实例的ID。', 'type' => 'string', 'required' => false, 'example' => 'ddos_diversion_public_cn-xxxxxxxxxxxxx'],
],
[
'name' => 'Net',
'in' => 'query',
'schema' => [
'description' => '代播实例的网段。'."\n"
.'> 代播实例没有扩展网段时,表示实例的网段。代播实例有扩展网段时,表示扩展的网段,与MainNet参数配合使用。',
'type' => 'string',
'required' => false,
'example' => '192.168.XX.XX/24',
'enum' => [],
],
],
[
'name' => 'Mode',
'in' => 'query',
'schema' => [
'description' => '调度模式。取值:'."\n"
."\n"
.'- manual : 人工。'."\n"
.'- netflow-auto:netflow自动调度。',
'type' => 'string',
'required' => false,
'enumValueTitles' => ['netflow-auto' => 'netflow-auto', 'manual' => 'manual'],
'example' => 'netflow-auto',
'enum' => ['manual', 'netflow-auto', 'beaver-auto'],
],
],
[
'name' => 'MainNet',
'in' => 'query',
'schema' => ['description' => '具有扩展网段的代播实例的主网段。如果查询的代播实例没有扩展网段,此参数为空。', 'type' => 'string', 'required' => false, 'example' => '192.168.XX.XX/22'],
],
[
'name' => 'Page',
'in' => 'query',
'schema' => ['description' => '页码。 默认值:1。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1', 'default' => '1'],
],
[
'name' => 'Num',
'in' => 'query',
'schema' => ['description' => '数量。默认值:100。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '100', 'default' => '100'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口返回码:'."\n"
."\n"
.'- **200**:表示成功。'."\n"
.'- 其它:表示错误码。', 'type' => 'integer', 'format' => 'int64', 'example' => '200'],
'RequestId' => ['description' => '本次调用请求的ID,是由阿里云为该请求生成的唯一标识符,可用于排查和定位问题。', 'type' => 'string', 'example' => '24B652B5-AEFF-3F03-9114-00D053C42277'],
'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'successful'],
'Data' => [
'description' => '网段列表。',
'type' => 'object',
'properties' => [
'Total' => ['description' => '网段总数量。', 'type' => 'integer', 'format' => 'int64', 'example' => '10'],
'Page' => ['description' => '当前页码。', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
'Num' => ['description' => '每页展示的网段数量。取值范围:1~100,默认值为100。', 'type' => 'integer', 'format' => 'int64', 'example' => '100'],
'Nets' => [
'description' => '网段列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'UserId' => ['description' => '用户ID。', 'type' => 'string', 'example' => '57690941xxxxxxxx'],
'SaleId' => ['description' => '代播实例的ID。', 'type' => 'string', 'example' => 'ddos_diversion_public_cn-xxxxxxxxxxxxx'],
'UpstreamType' => [
'description' => '回注类型。枚举值:'."\n"
.'- aliyun_line:阿里云专线。'."\n"
.'- pccw_line:合作专线(pccw)。'."\n"
.'- gre_line:GRE专线。'."\n"
.'- private_line:私有专线。',
'type' => 'string',
'enumValueTitles' => [],
'example' => 'aliyun_line',
],
'Net' => ['description' => '代播实例的网段。', 'type' => 'string', 'example' => '192.168.XX.XX/24'],
'NetType' => ['description' => '网段类型。', 'type' => 'string', 'example' => 'ipv4'],
'Mode' => [
'description' => '代播启动模式。枚举值:'."\n"
.'- netflow-auto:NetFlow自动。'."\n"
.'- manual:手动。',
'type' => 'string',
'enumValueTitles' => [],
'example' => 'manual',
],
'DeclaredState' => [
'description' => '牵引状态。枚举值:'."\n"
.'- 0:未牵引。'."\n"
.'- 1:牵引中。',
'type' => 'integer',
'format' => 'int32',
'enumValueTitles' => [],
'example' => '0',
],
'Declared' => [
'description' => '区域牵引状态。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Region' => ['description' => '牵引区域。枚举值:'."\n"
.'- oe26:香港。'."\n"
.'- us50:美东。'."\n"
.'- oe24:美西。'."\n"
.'- oe28:新加坡。'."\n"
.'- jp141:日本。'."\n"
.'- gb145:英国。'."\n"
.'- oi39:德国。', 'type' => 'string', 'example' => 'oe26'],
'Declared' => [
'description' => '区域牵引状态。枚举值:'."\n"
.'- 0:未牵引。'."\n"
.'- 1:牵引中。',
'type' => 'string',
'enumValueTitles' => [],
'example' => '0',
],
],
'description' => '',
],
],
'GmtCreate' => ['description' => '添加时间。', 'type' => 'string', 'example' => '2024-09-05 13:52:50'],
'GmtModify' => ['description' => '修改时间。', 'type' => 'string', 'example' => '2024-09-05 13:59:55'],
'NetExtend' => [
'description' => '是否需要扩展。枚举值:'."\n"
.'- 0:不扩展。'."\n"
.'- 1:扩展。',
'type' => 'string',
'enumValueTitles' => [],
'example' => '0',
],
'DDoSDefense' => [
'description' => '防护配置。',
'type' => 'object',
'properties' => [
'DjPolicy' => [
'description' => '防护模板。',
'type' => 'object',
'properties' => [
'PolicyName' => ['description' => '模板名称。', 'type' => 'string', 'example' => 'gf_origin_xxxxx'],
],
],
'CleanTh' => [
'description' => '清洗阈值。',
'type' => 'object',
'properties' => [
'Mbps' => ['description' => '每秒带宽清洗阈值。单位:Mbps。', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
'Pps' => ['description' => '每秒报文数清洗阈值。单位:Pps。', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
],
],
'HoleTh' => [
'description' => '黑洞阈值。',
'type' => 'object',
'properties' => [
'ThreshMbps' => ['description' => '黑洞阈值。单位:Mbps。0代表全力防护。', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
],
],
],
],
'FwdEffect' => [
'description' => '转发生效状态。枚举值:'."\n"
.'- 0:未生效。'."\n"
.'- 1:生效中。',
'type' => 'integer',
'format' => 'int64',
'enumValueTitles' => [],
'example' => '1',
],
'NetMain' => ['description' => '子网段展示,主网段默认为空字符串。', 'type' => 'string', 'example' => '192.168.XX.XX/22'],
'Permit' => [
'description' => '审核状态。'."\n"
.'枚举值:'."\n"
.'- 0:未审核。'."\n"
.'- 1:已审核。'."\n"
.'- 2:审核中。',
'type' => 'integer',
'format' => 'int32',
'enumValueTitles' => [],
'example' => '2',
],
],
'description' => '',
],
],
],
],
],
'description' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'AuthenticationFailed', 'errorMessage' => 'User authentication failed.', 'description' => '用户认证失败。'],
['errorCode' => 'AutoScheduleRuleExist', 'errorMessage' => 'The auto schedule rule already exists.', 'description' => '调度规则已存在。'],
['errorCode' => 'AutoScheduleRuleNotExist', 'errorMessage' => 'The auto schedule rule dose not exist.', 'description' => '调度规则不存在。'],
['errorCode' => 'BlackHoleConfigurationError', 'errorMessage' => 'A black hole configuration error occurred.', 'description' => '黑洞配置错误。'],
['errorCode' => 'CleanConfigurationError', 'errorMessage' => 'A clean configuration error occurred.', 'description' => '清洗配置错误。'],
['errorCode' => 'CoveredNet', 'errorMessage' => 'The CIDR block is overwritten.', 'description' => '网段被其他网段覆盖。'],
['errorCode' => 'DatabaseError', 'errorMessage' => 'A database error.', 'description' => '数据库错误。'],
['errorCode' => 'DeclaredNet', 'errorMessage' => 'The CIDR block has been advertised.', 'description' => '网段处于宣告状态。'],
['errorCode' => 'DefenseConfigurationError', 'errorMessage' => 'A defense configuration error occurred.', 'description' => '防护配置错误。'],
['errorCode' => 'ForwardConfigurationNotExist', 'errorMessage' => 'The CIDR block forwarding configuration is not found.', 'description' => '网段转发配置不存在。'],
['errorCode' => 'ForwardNotExist', 'errorMessage' => 'The CIDR block zone forwarding configuration is not found.', 'description' => '网段可用区转发配置不存在。'],
['errorCode' => 'ForwardRuleNotExist', 'errorMessage' => 'The CIDR block forwarding rule is not found.', 'description' => '网段转发规则不存在。'],
['errorCode' => 'HttpFailed', 'errorMessage' => 'HTTP request failed.', 'description' => 'HTTP 请求失败。'],
['errorCode' => 'IDNSubnetsCountLimit', 'errorMessage' => 'The maximum number of IDCs of the instance is exceeded.', 'description' => '实例的IDC数量达到上限'],
['errorCode' => 'InstanceExist', 'errorMessage' => 'The instance already exists.', 'description' => '实例已经存在。'],
['errorCode' => 'InstanceNetConfigurationExist', 'errorMessage' => 'The instance CIDR block configuration already exists.', 'description' => '实例网段配置已存在。'],
['errorCode' => 'InstanceNotExist', 'errorMessage' => 'The instance is not found.', 'description' => '实例不存在。'],
['errorCode' => 'InstanceUpstreamLimit', 'errorMessage' => 'The maximum number of reinjection configurations for the instance is exceeded.', 'description' => '实例的回注配置数量受限。'],
['errorCode' => 'InternalError', 'errorMessage' => 'An internal error occurred.', 'description' => '内部错误。'],
['errorCode' => 'InvalidNet', 'errorMessage' => 'Invalid CIDR block.', 'description' => '网段不合法。'."\n"],
['errorCode' => 'InvalidParam', 'errorMessage' => 'Invalid parameter value.', 'description' => '参数非法。'],
['errorCode' => 'IPSubnetsCountLimit', 'errorMessage' => 'The maximum number of CIDR blocks of the instance is exceeded.', 'description' => '实例的网段数量达到上限。'."\n"],
['errorCode' => 'NetCannotExtend', 'errorMessage' => 'The CIDR block cannot be extended.', 'description' => '网段不能被扩容。'."\n"],
['errorCode' => 'NetConfigurationExist', 'errorMessage' => 'The CIDR block configuration already exists.', 'description' => '网段配置已存在。'."\n"],
['errorCode' => 'NetConfigurationNotExist', 'errorMessage' => 'The CIDR block configuration is not found.', 'description' => '网段配置不存在。'],
['errorCode' => 'NetForwardDelete', 'errorMessage' => 'The CIDR block forwarding is being deleted.', 'description' => '网段转发删除中。'."\n"],
['errorCode' => 'NetMaskOutOfRange', 'errorMessage' => 'The subnet mask of the CIDR block is invalid.', 'description' => '网段掩码超出范围。'."\n"],
['errorCode' => 'NetNeedExtend', 'errorMessage' => 'The CIDR block needs to be extended.', 'description' => '网段需要扩容。'."\n"],
['errorCode' => 'NetStatusNotReady', 'errorMessage' => 'The CIDR block reinjection configuration has not been completed.', 'description' => '网段回注配置未完成'."\n"],
['errorCode' => 'NetworkDeclearedFailed', 'errorMessage' => 'Failed to advertise the CIDR block.', 'description' => '网段宣告失败。'."\n"],
['errorCode' => 'NetWorkNotExist', 'errorMessage' => 'The CIDR block is not found.', 'description' => '网段不存在。'],
['errorCode' => 'NetworkUndeclearedFailed', 'errorMessage' => 'Failed to cancel the advertisement of the CIDR block.', 'description' => '网段解除宣告失败。'."\n"],
['errorCode' => 'ParameterNotEnough', 'errorMessage' => 'Required parameters are not specified.', 'description' => '必填参数缺失。'],
['errorCode' => 'ParameterOutOfRange', 'errorMessage' => 'Invalid parameter value.', 'description' => '参数超出指定取值范围'],
['errorCode' => 'RegionNotExist', 'errorMessage' => 'The region does not exist.', 'description' => '可用区不存在。'."\n"],
['errorCode' => 'RequestMethodError', 'errorMessage' => 'An incorrect request method.', 'description' => '请求方式错误。'],
['errorCode' => 'SubnetCountLimit', 'errorMessage' => 'The maximum number of subnets is exceeded.', 'description' => '子网数量达到上限。'."\n"],
['errorCode' => 'UnKnownError', 'errorMessage' => 'An unknown error occurred.', 'description' => '未知错误。'],
['errorCode' => 'UpsteamNotComplete', 'errorMessage' => 'The reinjection configuration has not been completed.', 'description' => '网段回注配置未完成。'."\n"],
['errorCode' => 'UpstreamConfigurationNotExist', 'errorMessage' => 'The reinjection configuration is not found.', 'description' => '回注配置不存在。'."\n"],
['errorCode' => 'JsonDecodeError', 'errorMessage' => 'JSON string decoding failed.', 'description' => 'JSON字符串转JSON对象失败。'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '查询网段列表',
'summary' => '查询代播的网段列表。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'ddosdiversion:QueryNetList',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'DdosDiversion', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"RequestId\\": \\"24B652B5-AEFF-3F03-9114-00D053C42277\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": {\\n \\"Total\\": 10,\\n \\"Page\\": 1,\\n \\"Num\\": 100,\\n \\"Nets\\": [\\n {\\n \\"UserId\\": \\"57690941xxxxxxxx\\",\\n \\"SaleId\\": \\"ddos_diversion_public_cn-xxxxxxxxxxxxx\\",\\n \\"UpstreamType\\": \\"aliyun_line\\",\\n \\"Net\\": \\"192.168.XX.XX/24\\",\\n \\"NetType\\": \\"ipv4\\",\\n \\"Mode\\": \\"manual\\",\\n \\"DeclaredState\\": 0,\\n \\"Declared\\": [\\n {\\n \\"Region\\": \\"oe26\\",\\n \\"Declared\\": \\"0\\"\\n }\\n ],\\n \\"GmtCreate\\": \\"2024-09-05 13:52:50\\",\\n \\"GmtModify\\": \\"2024-09-05 13:59:55\\",\\n \\"NetExtend\\": \\"0\\",\\n \\"DDoSDefense\\": {\\n \\"DjPolicy\\": {\\n \\"PolicyName\\": \\"gf_origin_xxxxx\\"\\n },\\n \\"CleanTh\\": {\\n \\"Mbps\\": 0,\\n \\"Pps\\": 0\\n },\\n \\"HoleTh\\": {\\n \\"ThreshMbps\\": 0\\n }\\n },\\n \\"FwdEffect\\": 1,\\n \\"NetMain\\": \\"192.168.XX.XX/22\\",\\n \\"Permit\\": 2\\n }\\n ]\\n }\\n}","type":"json"}]',
],
],
'endpoints' => [
['regionId' => 'cn-hongkong', 'regionName' => '中国香港', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'ddosdiversion.cn-hongkong.aliyuncs.com', 'endpoint' => 'ddosdiversion.cn-hongkong.aliyuncs.com', 'vpc' => ''],
],
'errorCodes' => [
['code' => 'AuthenticationFailed', 'message' => 'User authentication failed.', 'http_code' => 400, 'description' => '用户认证失败。'],
['code' => 'AutoScheduleRuleExist', 'message' => 'The auto schedule rule already exists.', 'http_code' => 400, 'description' => '调度规则已存在。'],
['code' => 'AutoScheduleRuleNotExist', 'message' => 'The auto schedule rule dose not exist.', 'http_code' => 400, 'description' => '调度规则不存在。'],
['code' => 'BlackHoleConfigurationError', 'message' => 'A black hole configuration error occurred.', 'http_code' => 400, 'description' => '黑洞配置错误。'],
['code' => 'CleanConfigurationError', 'message' => 'A clean configuration error occurred.', 'http_code' => 400, 'description' => '清洗配置错误。'],
['code' => 'CoveredNet', 'message' => 'The CIDR block is overwritten.', 'http_code' => 400, 'description' => '网段被其他网段覆盖。'],
['code' => 'DatabaseError', 'message' => 'A database error.', 'http_code' => 400, 'description' => '数据库错误。'],
['code' => 'DeclaredNet', 'message' => 'The CIDR block has been advertised.', 'http_code' => 400, 'description' => '网段处于宣告状态。'],
['code' => 'DefenseConfigurationError', 'message' => 'A defense configuration error occurred.', 'http_code' => 400, 'description' => '防护配置错误。'],
['code' => 'ForwardConfigurationNotExist', 'message' => 'The CIDR block forwarding configuration is not found.', 'http_code' => 400, 'description' => '网段转发配置不存在。'],
['code' => 'ForwardNotExist', 'message' => 'The CIDR block zone forwarding configuration is not found.', 'http_code' => 400, 'description' => '网段可用区转发配置不存在。'],
['code' => 'ForwardRuleNotExist', 'message' => 'The CIDR block forwarding rule is not found.', 'http_code' => 400, 'description' => '网段转发规则不存在。'],
['code' => 'GreLineExist', 'message' => 'local gre line still exist.', 'http_code' => 400, 'description' => '本地gre线路仍然存在'],
['code' => 'GreLineNotExist', 'message' => 'local gre line not exist.', 'http_code' => 400, 'description' => 'gre线路不存在'],
['code' => 'GreRemoteAddrUsed', 'message' => 'GRE remote IP already in use.', 'http_code' => 400, 'description' => 'GRE隧道远端IP已被使用。'],
['code' => 'HttpFailed', 'message' => 'HTTP request failed.', 'http_code' => 400, 'description' => 'HTTP 请求失败。'],
['code' => 'IDNSubnetsCountLimit', 'message' => 'The maximum number of IDCs of the instance is exceeded.', 'http_code' => 400, 'description' => '实例的IDC数量达到上限'],
['code' => 'InstanceExist', 'message' => 'The instance already exists.', 'http_code' => 400, 'description' => '实例已经存在。'],
['code' => 'InstanceNetConfigurationExist', 'message' => 'The instance CIDR block configuration already exists.', 'http_code' => 400, 'description' => '实例网段配置已存在。'],
['code' => 'InstanceNotExist', 'message' => 'The instance is not found.', 'http_code' => 400, 'description' => '实例不存在。'],
['code' => 'InstanceUpstreamLimit', 'message' => 'The maximum number of reinjection configurations for the instance is exceeded.', 'http_code' => 400, 'description' => '实例的回注配置数量受限。'],
['code' => 'InternalError', 'message' => 'An internal error occurred.', 'http_code' => 400, 'description' => '内部错误。'],
['code' => 'InvalidNet', 'message' => 'Invalid CIDR block.', 'http_code' => 400, 'description' => '网段不合法。'."\n"],
['code' => 'InvalidParam', 'message' => 'Invalid parameter value.', 'http_code' => 400, 'description' => '参数非法。'],
['code' => 'IPSubnetsCountLimit', 'message' => 'The maximum number of CIDR blocks of the instance is exceeded.', 'http_code' => 400, 'description' => '实例的网段数量达到上限。'."\n"],
['code' => 'JsonDecodeError', 'message' => 'JSON string decoding failed.', 'http_code' => 400, 'description' => 'JSON字符串转JSON对象失败。'],
['code' => 'NetCannotExtend', 'message' => 'The CIDR block cannot be extended.', 'http_code' => 400, 'description' => '网段不能被扩容。'."\n"],
['code' => 'NetConfigNotPermit', 'message' => 'Network segment configuration not approved.', 'http_code' => 400, 'description' => '网段配置未审核'],
['code' => 'NetConfigurationExist', 'message' => 'The CIDR block configuration already exists.', 'http_code' => 400, 'description' => '网段配置已存在。'."\n"],
['code' => 'NetConfigurationNotExist', 'message' => 'The CIDR block configuration is not found.', 'http_code' => 400, 'description' => '网段配置不存在。'],
['code' => 'NetForwardDelete', 'message' => 'The CIDR block forwarding is being deleted.', 'http_code' => 400, 'description' => '网段转发删除中。'."\n"],
['code' => 'NetMaskOutOfRange', 'message' => 'The subnet mask of the CIDR block is invalid.', 'http_code' => 400, 'description' => '网段掩码超出范围。'."\n"],
['code' => 'NetNeedExtend', 'message' => 'The CIDR block needs to be extended.', 'http_code' => 400, 'description' => '网段需要扩容。'."\n"],
['code' => 'NetNhpoolUsedByNet', 'message' => 'Nh Pool is Used By Net.', 'http_code' => 400, 'description' => 'GRE回注线路已绑定网段,不能删除'],
['code' => 'NetStatusNotReady', 'message' => 'The CIDR block reinjection configuration has not been completed.', 'http_code' => 400, 'description' => '网段回注配置未完成'."\n"],
['code' => 'NetworkDeclearedFailed', 'message' => 'Failed to advertise the CIDR block.', 'http_code' => 400, 'description' => '网段宣告失败。'."\n"],
['code' => 'NetWorkNotExist', 'message' => 'The CIDR block is not found.', 'http_code' => 400, 'description' => '网段不存在。'],
['code' => 'NetworkUndeclearedFailed', 'message' => 'Failed to cancel the advertisement of the CIDR block.', 'http_code' => 400, 'description' => '网段解除宣告失败。'."\n"],
['code' => 'NhPoolMemberExist', 'message' => 'nh pool member already exist.', 'http_code' => 400, 'description' => 'nh pool成员已经存在。'],
['code' => 'NhPoolMemberNotExist', 'message' => 'nh pool member not exist.', 'http_code' => 400, 'description' => 'nh pool 不存在'],
['code' => 'NhpoolNotExist', 'message' => 'nh pool not exist.', 'http_code' => 400, 'description' => 'nh_pool不存在'],
['code' => 'ParameterNotEnough', 'message' => 'Required parameters are not specified.', 'http_code' => 400, 'description' => '必填参数缺失。'],
['code' => 'ParameterOutOfRange', 'message' => 'Invalid parameter value.', 'http_code' => 400, 'description' => '参数超出指定取值范围'],
['code' => 'RegionNotExist', 'message' => 'The region does not exist.', 'http_code' => 400, 'description' => '可用区不存在。'."\n"],
['code' => 'RequestMethodError', 'message' => 'An incorrect request method.', 'http_code' => 400, 'description' => '请求方式错误。'],
['code' => 'SubnetCountLimit', 'message' => 'The maximum number of subnets is exceeded.', 'http_code' => 400, 'description' => '子网数量达到上限。'."\n"],
['code' => 'UnKnownError', 'message' => 'An unknown error occurred.', 'http_code' => 400, 'description' => '未知错误。'],
['code' => 'UpsteamNotComplete', 'message' => 'The reinjection configuration has not been completed.', 'http_code' => 400, 'description' => '网段回注配置未完成。'."\n"],
['code' => 'UpstreamConfigurationNotExist', 'message' => 'The reinjection configuration is not found.', 'http_code' => 400, 'description' => '回注配置不存在。'."\n"],
['code' => 'UpstreamRegionUsedByNet', 'message' => 'The reinjection region configuration is still used by CIDR block.', 'http_code' => 400, 'description' => '回注区域仍被网段关联使用中'],
],
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ram' => [
'productCode' => 'DdosDiversion',
'productName' => 'DDoS防护',
'ramCodes' => ['ddosdiversion'],
'ramLevel' => '操作级',
'ramConditions' => [],
'ramActions' => [
[
'apiName' => 'ListInstance',
'description' => '查询实例列表',
'operationType' => 'none',
'ramAction' => [
'action' => 'ddosdiversion:ListInstance',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'DdosDiversion', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'ConfigNetStatus',
'description' => '网段宣告配置',
'operationType' => 'none',
'ramAction' => [
'action' => 'ddosdiversion:ConfigNetStatus',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'DdosDiversion', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'QueryNetList',
'description' => '查询网段列表',
'operationType' => 'get',
'ramAction' => [
'action' => 'ddosdiversion:QueryNetList',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'DdosDiversion', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'resourceTypes' => [],
],
];
|