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
|
<?php return [
'version' => '1.0',
'info' => ['style' => 'RPC', 'product' => 'DdosDiversion', 'version' => '2023-07-01'],
'directories' => ['ConfigNetStatus', 'QueryNetList', 'ListInstance'],
'components' => [
'schemas' => [],
],
'apis' => [
'ConfigNetStatus' => [
'summary' => 'Configures the advertising of a CIDR block.',
'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' => 'The ID of the anti-DDoS diversion instance.', 'type' => 'string', 'required' => true, 'example' => 'ddos_diversion_public_cn-xxxxxxxxxxxxx', 'title' => ''],
],
[
'name' => 'Net',
'in' => 'query',
'schema' => [
'description' => 'The CIDR block of the anti-DDoS diversion instance.',
'type' => 'string',
'required' => true,
'enum' => [],
'example' => '192.168.XX.XX/22',
'title' => '',
],
],
[
'name' => 'Status',
'in' => 'query',
'schema' => [
'description' => 'The status of the CIDR block. Valid values:'."\n"
."\n"
.'- enable: advertises the CIDR block.'."\n"
."\n"
.'- disable: withdraws the advertising of the CIDR block.',
'type' => 'string',
'required' => true,
'enum' => ['enable', 'disable'],
'example' => 'enable',
'title' => '',
],
],
[
'name' => 'Regions',
'in' => 'query',
'style' => 'flat',
'schema' => [
'description' => 'The regions in which the CIDR block needs to be advertised or withdrawn from advertising. If you leave this parameter empty, the CIDR blocks in all regions are configured.'."\n"
."\n"
.'> You can call the [QueryNetList](~~2639086~~) operation to obtain the regions of the CIDR blocks.',
'type' => 'array',
'items' => ['description' => 'The region in which the CIDR block needs to be advertised or withdrawn from advertising.', 'type' => 'string', 'required' => false, 'example' => 'oe26', 'title' => ''],
'required' => false,
'title' => '',
'example' => '',
],
],
[
'name' => 'SubNets',
'in' => 'query',
'style' => 'flat',
'schema' => [
'description' => 'The subnet CIDR blocks of the CIDR block.',
'type' => 'array',
'items' => ['description' => 'The subnet CIDR block of the CIDR block.', 'type' => 'string', 'required' => false, 'example' => '192.168.XX.XX/24', 'title' => ''],
'required' => false,
'title' => '',
'example' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'- **200**: The request was successful.'."\n"
."\n"
.'- Other codes: The request failed.', 'type' => 'integer', 'format' => 'int64', 'example' => '200', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'B0949F09-B9C1-1D5E-8F27-0A5BF3CD5D95', 'title' => ''],
'Message' => ['description' => 'The response parameters.', 'type' => 'string', 'example' => 'successful', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'AuthenticationFailed', 'errorMessage' => 'User authentication failed.', 'description' => 'User authentication failed.'],
['errorCode' => 'AutoScheduleRuleExist', 'errorMessage' => 'The auto schedule rule already exists.', 'description' => 'The scheduling rule already exists.'],
['errorCode' => 'AutoScheduleRuleNotExist', 'errorMessage' => 'The auto schedule rule dose not exist.', 'description' => 'The scheduling rule does not exist.'],
['errorCode' => 'BlackHoleConfigurationError', 'errorMessage' => 'A black hole configuration error occurred.', 'description' => 'The blackhole filtering configuration is invalid.'],
['errorCode' => 'CleanConfigurationError', 'errorMessage' => 'A clean configuration error occurred.', 'description' => 'The traffic scrubbing configuration is invalid.'],
['errorCode' => 'CoveredNet', 'errorMessage' => 'The CIDR block is overwritten.', 'description' => 'The specified CIDR block overlaps with another CIDR block.'],
['errorCode' => 'DatabaseError', 'errorMessage' => 'A database error.', 'description' => 'The database is invalid.'],
['errorCode' => 'DeclaredNet', 'errorMessage' => 'The CIDR block has been advertised.', 'description' => 'The CIDR block is in the Advertising state.'],
['errorCode' => 'DefenseConfigurationError', 'errorMessage' => 'A defense configuration error occurred.', 'description' => 'The mitigation settings are invalid.'],
['errorCode' => 'ForwardConfigurationNotExist', 'errorMessage' => 'The CIDR block forwarding configuration is not found.', 'description' => 'The forwarding configuration of the CIDR block does not exist.'],
['errorCode' => 'ForwardNotExist', 'errorMessage' => 'The CIDR block zone forwarding configuration is not found.', 'description' => 'The zone forwarding configuration of the CIDR block does not exist.'],
['errorCode' => 'ForwardRuleNotExist', 'errorMessage' => 'The CIDR block forwarding rule is not found.', 'description' => 'The CIDR block forwarding rule does not exist.'],
['errorCode' => 'HttpFailed', 'errorMessage' => 'HTTP request failed.', 'description' => 'The HTTP request failed.'],
['errorCode' => 'IDNSubnetsCountLimit', 'errorMessage' => 'The maximum number of IDCs of the instance is exceeded.', 'description' => 'The number of data centers for the instance has reached the upper limit.'],
['errorCode' => 'InstanceExist', 'errorMessage' => 'The instance already exists.', 'description' => 'The instance already exists.'],
['errorCode' => 'InstanceNetConfigurationExist', 'errorMessage' => 'The instance CIDR block configuration already exists.', 'description' => 'The CIDR block configuration of the instance already exists.'],
['errorCode' => 'InstanceNotExist', 'errorMessage' => 'The instance is not found.', 'description' => 'The instance does not exist.'],
['errorCode' => 'InstanceUpstreamLimit', 'errorMessage' => 'The maximum number of reinjection configurations for the instance is exceeded.', 'description' => 'The number of reinjection configurations of the instance is limited.'],
['errorCode' => 'InternalError', 'errorMessage' => 'An internal error occurred.', 'description' => 'An internal error occurred.'],
['errorCode' => 'InvalidNet', 'errorMessage' => 'Invalid CIDR block.', 'description' => 'The CIDR block is invalid.'],
['errorCode' => 'InvalidParam', 'errorMessage' => 'Invalid parameter value.', 'description' => 'The parameter is invalid.'],
['errorCode' => 'IPSubnetsCountLimit', 'errorMessage' => 'The maximum number of CIDR blocks of the instance is exceeded.', 'description' => 'The number of CIDR blocks of the instance has reached the upper limit.'],
['errorCode' => 'NetCannotExtend', 'errorMessage' => 'The CIDR block cannot be extended.', 'description' => 'The CIDR block cannot be expanded.'],
['errorCode' => 'NetConfigurationExist', 'errorMessage' => 'The CIDR block configuration already exists.', 'description' => 'The CIDR block configuration already exists.'],
['errorCode' => 'NetConfigurationNotExist', 'errorMessage' => 'The CIDR block configuration is not found.', 'description' => 'The CIDR block configuration does not exist.'],
['errorCode' => 'NetForwardDelete', 'errorMessage' => 'The CIDR block forwarding is being deleted.', 'description' => 'The forwarding configuration of the CIDR block is being deleted.'],
['errorCode' => 'NetMaskOutOfRange', 'errorMessage' => 'The subnet mask of the CIDR block is invalid.', 'description' => 'The subnet mask exceeds the upper limit.'],
['errorCode' => 'NetNeedExtend', 'errorMessage' => 'The CIDR block needs to be extended.', 'description' => 'The CIDR block needs to be expanded.'],
['errorCode' => 'NetStatusNotReady', 'errorMessage' => 'The CIDR block reinjection configuration has not been completed.', 'description' => 'Failed to complete the reinjection configuration of the CIDR block.'],
['errorCode' => 'NetworkDeclearedFailed', 'errorMessage' => 'Failed to advertise the CIDR block.', 'description' => 'Failed to advertise the CIDR block.'],
['errorCode' => 'NetWorkNotExist', 'errorMessage' => 'The CIDR block is not found.', 'description' => 'The CIDR block does not exist.'],
['errorCode' => 'NetworkUndeclearedFailed', 'errorMessage' => 'Failed to cancel the advertisement of the CIDR block.', 'description' => 'Failed to withdraw the advertising of the CIDR block.'],
['errorCode' => 'ParameterNotEnough', 'errorMessage' => 'Required parameters are not specified.', 'description' => 'A required parameter is not specified.'],
['errorCode' => 'ParameterOutOfRange', 'errorMessage' => 'Invalid parameter value.', 'description' => 'The value of the parameter is invalid.'],
['errorCode' => 'RegionNotExist', 'errorMessage' => 'The region does not exist.', 'description' => 'The zone does not exist.'],
['errorCode' => 'RequestMethodError', 'errorMessage' => 'An incorrect request method.', 'description' => 'The request method is invalid.'],
['errorCode' => 'SubnetCountLimit', 'errorMessage' => 'The maximum number of subnets is exceeded.', 'description' => 'The number of subnets has reached the upper limit.'],
['errorCode' => 'UnKnownError', 'errorMessage' => 'An unknown error occurred.', 'description' => 'An unknown error occurred.'],
['errorCode' => 'UpsteamNotComplete', 'errorMessage' => 'The reinjection configuration has not been completed.', 'description' => 'Failed to complete the reinjection configuration of the CIDR block.'],
['errorCode' => 'UpstreamConfigurationNotExist', 'errorMessage' => 'The reinjection configuration is not found.', 'description' => 'The reinjection configuration does not exist.'],
['errorCode' => 'JsonDecodeError', 'errorMessage' => 'JSON string decoding failed.', 'description' => 'Failed to convert JSON string to JSON object.'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => 'ConfigNetStatus',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'ddosdiversion:ConfigNetStatus',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'DdosDiversion', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"RequestId\\": \\"B0949F09-B9C1-1D5E-8F27-0A5BF3CD5D95\\",\\n \\"Message\\": \\"successful\\"\\n}","type":"json"}]',
],
'ListInstance' => [
'summary' => 'Queries instances.',
'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' => 'The ID of the Anti-DDoS Diversion instance.', 'type' => 'string', 'required' => false, 'example' => 'ddos_diversion_public_cn-xxxxxxxxxxxxx', 'title' => ''],
],
[
'name' => 'Name',
'in' => 'query',
'schema' => ['description' => 'The name of the instance.', 'type' => 'string', 'example' => 'Test instance.', 'required' => false, 'title' => ''],
],
[
'name' => 'Status',
'in' => 'query',
'schema' => ['description' => 'The status of the instance. Valid values:'."\n"
."\n"
.'- normal: The instance is running normally.'."\n"
."\n"
.'- expired: The instance has expired.'."\n"
."\n"
.'- deleting: The instance is being deleted.'."\n"
."\n"
.'- stopped: The instance is stopped.', 'type' => 'string', 'required' => false, 'example' => 'normal', 'title' => ''],
],
[
'name' => 'Page',
'in' => 'query',
'schema' => ['description' => 'The number of the page to return. Default value: 1.', 'type' => 'integer', 'format' => 'int64', 'default' => '1', 'required' => false, 'example' => '1', 'title' => ''],
],
[
'name' => 'Num',
'in' => 'query',
'schema' => ['description' => 'The number of entries to return. Default value: 100.', 'type' => 'integer', 'format' => 'int64', 'default' => '100', 'required' => false, 'example' => '100', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The response code. Valid values:'."\n"
."\n"
.'- **200**: The request was successful.'."\n"
."\n"
.'- Other codes: The request failed.', 'type' => 'integer', 'format' => 'int64', 'example' => '200', 'title' => ''],
'RequestId' => ['description' => 'The request ID, which is used to locate and troubleshoot issues.', 'type' => 'string', 'example' => 'B0949F09-B9C1-1D5E-8F27-0A5BF3CD5D95', 'title' => ''],
'Message' => ['description' => 'The additional information that is returned.', 'type' => 'string', 'example' => 'successful', 'title' => ''],
'Data' => [
'description' => 'The returned result.',
'type' => 'object',
'properties' => [
'Total' => ['description' => 'The total number of returned entries.', 'type' => 'integer', 'format' => 'int64', 'example' => '10', 'title' => ''],
'Page' => ['description' => 'The number of the page to return.', 'type' => 'integer', 'format' => 'int64', 'example' => '1', 'title' => ''],
'Num' => ['description' => 'The number of entries.', 'type' => 'integer', 'format' => 'int64', 'example' => '100', 'title' => ''],
'Instances' => [
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'UserId' => ['description' => 'The user ID.', 'type' => 'string', 'example' => '177xxxxxxxxxxxxx', 'title' => ''],
'SaleId' => ['description' => 'The ID of the anti-DDoS diversion instance.', 'type' => 'string', 'example' => 'ddos_diversion_public_cn-xxxxxxxxxxxxx', 'title' => ''],
'InstanceId' => ['description' => 'The instance ID.', 'type' => 'string', 'example' => 'ddos_diversion_public_cn-xxxxxxxxxxxxx_xxxxxx', 'title' => ''],
'Name' => ['description' => 'The name of the instance.', 'type' => 'string', 'example' => 'Test instance.', 'title' => ''],
'Status' => ['description' => 'The status of the instance. Valid values:'."\n"
."\n"
.'- normal: The instance is running normally.'."\n"
."\n"
.'- expired: The instance has expired.'."\n"
."\n"
.'- deleting: The instance is being deleted.'."\n"
."\n"
.'- stopped: The instance is stopped.', 'type' => 'string', 'example' => 'normal', 'title' => ''],
'Comment' => ['description' => 'The description.', 'type' => 'string', 'example' => 'Test instance.', 'title' => ''],
'Message' => ['description' => 'The configurations of the instance.', 'type' => 'string', 'example' => 'successful', 'title' => ''],
'Spec' => [
'type' => 'object',
'properties' => [
'IdcNumbers' => ['description' => 'The number of data centers. Valid values: 1-10.', 'type' => 'string', 'example' => '1', 'title' => ''],
'NormalBandwidth' => ['description' => 'The service traffic. Unit: Mbps.', 'type' => 'string', 'example' => '100', 'title' => ''],
'IpSubnetNums' => ['description' => 'The number of CIDR blocks. Valid values: 1-10000.', 'type' => 'string', 'example' => '1', 'title' => ''],
'Coverage' => ['description' => 'The region of the asset.', 'type' => 'string', 'example' => 'international_and_hmt', 'title' => ''],
'Edition' => ['description' => 'The mitigation plan.', 'type' => 'string', 'example' => 'enterprise', 'title' => ''],
'MitigationCapacity' => ['description' => 'The maximum mitigation capability.', 'type' => 'string', 'example' => 'unlimited', 'title' => ''],
'MitigationNums' => ['description' => 'The mitigation sessions.', 'type' => 'string', 'example' => 'unlimited', 'title' => ''],
'DiversionType' => ['description' => 'The diversion mode. Valid values: on-demand; always-on.', 'type' => 'string', 'example' => 'on-demand', 'title' => ''],
'MitigationAnalysis' => ['description' => 'The mitigation analysis feature.', 'type' => 'string', 'example' => 'off', 'title' => ''],
'MitigationAnalysisCapacity' => ['description' => 'The log storage capacity.', 'type' => 'string', 'example' => '3T', 'title' => ''],
'InitialInstallation' => ['description' => 'The initial installation mode.', 'type' => 'string', 'example' => 'gre_tunnel_by_pccw', 'title' => ''],
'InitialQty' => ['description' => 'The initial installation quantity.', 'type' => 'string', 'example' => '1', 'title' => ''],
],
'description' => 'The specifications.',
'title' => '',
'example' => '',
],
'GmtExpire' => ['description' => 'The expiration time.', 'type' => 'string', 'example' => '2022-12-15 11:10:42', 'title' => ''],
'GmtCreate' => ['description' => 'The purchase time.', 'type' => 'string', 'example' => '2022-12-15 11:10:42', 'title' => ''],
'GmtModify' => ['description' => 'The update time.', 'type' => 'string', 'example' => '2022-12-15 11:10:42', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
'description' => 'The details of the anti-DDoS diversion instance.',
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'AuthenticationFailed', 'errorMessage' => 'User authentication failed.', 'description' => 'User authentication failed.'],
['errorCode' => 'AutoScheduleRuleExist', 'errorMessage' => 'The auto schedule rule already exists.', 'description' => 'The scheduling rule already exists.'],
['errorCode' => 'AutoScheduleRuleNotExist', 'errorMessage' => 'The auto schedule rule dose not exist.', 'description' => 'The scheduling rule does not exist.'],
['errorCode' => 'BlackHoleConfigurationError', 'errorMessage' => 'A black hole configuration error occurred.', 'description' => 'The blackhole filtering configuration is invalid.'],
['errorCode' => 'CleanConfigurationError', 'errorMessage' => 'A clean configuration error occurred.', 'description' => 'The traffic scrubbing configuration is invalid.'],
['errorCode' => 'CoveredNet', 'errorMessage' => 'The CIDR block is overwritten.', 'description' => 'The specified CIDR block overlaps with another CIDR block.'],
['errorCode' => 'DatabaseError', 'errorMessage' => 'A database error.', 'description' => 'The database is invalid.'],
['errorCode' => 'DeclaredNet', 'errorMessage' => 'The CIDR block has been advertised.', 'description' => 'The CIDR block is in the Advertising state.'],
['errorCode' => 'DefenseConfigurationError', 'errorMessage' => 'A defense configuration error occurred.', 'description' => 'The mitigation settings are invalid.'],
['errorCode' => 'ForwardConfigurationNotExist', 'errorMessage' => 'The CIDR block forwarding configuration is not found.', 'description' => 'The forwarding configuration of the CIDR block does not exist.'],
['errorCode' => 'ForwardNotExist', 'errorMessage' => 'The CIDR block zone forwarding configuration is not found.', 'description' => 'The zone forwarding configuration of the CIDR block does not exist.'],
['errorCode' => 'ForwardRuleNotExist', 'errorMessage' => 'The CIDR block forwarding rule is not found.', 'description' => 'The CIDR block forwarding rule does not exist.'],
['errorCode' => 'HttpFailed', 'errorMessage' => 'HTTP request failed.', 'description' => 'The HTTP request failed.'],
['errorCode' => 'IDNSubnetsCountLimit', 'errorMessage' => 'The maximum number of IDCs of the instance is exceeded.', 'description' => 'The number of data centers for the instance has reached the upper limit.'],
['errorCode' => 'InstanceExist', 'errorMessage' => 'The instance already exists.', 'description' => 'The instance already exists.'],
['errorCode' => 'InstanceNetConfigurationExist', 'errorMessage' => 'The instance CIDR block configuration already exists.', 'description' => 'The CIDR block configuration of the instance already exists.'],
['errorCode' => 'InstanceNotExist', 'errorMessage' => 'The instance is not found.', 'description' => 'The instance does not exist.'],
['errorCode' => 'InstanceUpstreamLimit', 'errorMessage' => 'The maximum number of reinjection configurations for the instance is exceeded.', 'description' => 'The number of reinjection configurations of the instance is limited.'],
['errorCode' => 'InternalError', 'errorMessage' => 'An internal error occurred.', 'description' => 'An internal error occurred.'],
['errorCode' => 'InvalidNet', 'errorMessage' => 'Invalid CIDR block.', 'description' => 'The CIDR block is invalid.'],
['errorCode' => 'InvalidParam', 'errorMessage' => 'Invalid parameter value.', 'description' => 'The parameter is invalid.'],
['errorCode' => 'IPSubnetsCountLimit', 'errorMessage' => 'The maximum number of CIDR blocks of the instance is exceeded.', 'description' => 'The number of CIDR blocks of the instance has reached the upper limit.'],
['errorCode' => 'NetCannotExtend', 'errorMessage' => 'The CIDR block cannot be extended.', 'description' => 'The CIDR block cannot be expanded.'],
['errorCode' => 'NetConfigurationExist', 'errorMessage' => 'The CIDR block configuration already exists.', 'description' => 'The CIDR block configuration already exists.'],
['errorCode' => 'NetConfigurationNotExist', 'errorMessage' => 'The CIDR block configuration is not found.', 'description' => 'The CIDR block configuration does not exist.'],
['errorCode' => 'NetForwardDelete', 'errorMessage' => 'The CIDR block forwarding is being deleted.', 'description' => 'The forwarding configuration of the CIDR block is being deleted.'],
['errorCode' => 'NetMaskOutOfRange', 'errorMessage' => 'The subnet mask of the CIDR block is invalid.', 'description' => 'The subnet mask exceeds the upper limit.'],
['errorCode' => 'NetNeedExtend', 'errorMessage' => 'The CIDR block needs to be extended.', 'description' => 'The CIDR block needs to be expanded.'],
['errorCode' => 'NetStatusNotReady', 'errorMessage' => 'The CIDR block reinjection configuration has not been completed.', 'description' => 'Failed to complete the reinjection configuration of the CIDR block.'],
['errorCode' => 'NetworkDeclearedFailed', 'errorMessage' => 'Failed to advertise the CIDR block.', 'description' => 'Failed to advertise the CIDR block.'],
['errorCode' => 'NetWorkNotExist', 'errorMessage' => 'The CIDR block is not found.', 'description' => 'The CIDR block does not exist.'],
['errorCode' => 'NetworkUndeclearedFailed', 'errorMessage' => 'Failed to cancel the advertisement of the CIDR block.', 'description' => 'Failed to withdraw the advertising of the CIDR block.'],
['errorCode' => 'ParameterNotEnough', 'errorMessage' => 'Required parameters are not specified.', 'description' => 'A required parameter is not specified.'],
['errorCode' => 'ParameterOutOfRange', 'errorMessage' => 'Invalid parameter value.', 'description' => 'The value of the parameter is invalid.'],
['errorCode' => 'RegionNotExist', 'errorMessage' => 'The region does not exist.', 'description' => 'The zone does not exist.'],
['errorCode' => 'RequestMethodError', 'errorMessage' => 'An incorrect request method.', 'description' => 'The request method is invalid.'],
['errorCode' => 'SubnetCountLimit', 'errorMessage' => 'The maximum number of subnets is exceeded.', 'description' => 'The number of subnets has reached the upper limit.'],
['errorCode' => 'UnKnownError', 'errorMessage' => 'An unknown error occurred.', 'description' => 'An unknown error occurred.'],
['errorCode' => 'UpsteamNotComplete', 'errorMessage' => 'The reinjection configuration has not been completed.', 'description' => 'Failed to complete the reinjection configuration of the CIDR block.'],
['errorCode' => 'UpstreamConfigurationNotExist', 'errorMessage' => 'The reinjection configuration is not found.', 'description' => 'The reinjection configuration does not exist.'],
['errorCode' => 'JsonDecodeError', 'errorMessage' => 'JSON string decoding failed.', 'description' => 'Failed to convert JSON string to JSON object.'],
],
],
'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' => 'ListInstance',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'ddosdiversion:ListInstance',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'DdosDiversion', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'translator' => 'manual',
],
'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' => 'The ID of the anti-DDoS diversion instance.', 'type' => 'string', 'required' => false, 'example' => 'ddos_diversion_public_cn-xxxxxxxxxxxxx', 'title' => ''],
],
[
'name' => 'Net',
'in' => 'query',
'schema' => [
'description' => 'The CIDR block of the anti-DDoS diversion instance.'."\n"
."\n"
.'> If no extended CIDR blocks are configured for the anti-DDoS diversion instance, this parameter specifies the CIDR block of the instance. If an extended CIDR block is configured for the anti-DDoS diversion instance, this parameter specifies the extended CIDR block that is configured for the instance. If this parameter is specified, the MainNet parameter is required.',
'type' => 'string',
'required' => false,
'enum' => [],
'example' => '192.168.XX.XX/24',
'title' => '',
],
],
[
'name' => 'Mode',
'in' => 'query',
'schema' => [
'description' => 'The scheduling mode. Valid values:'."\n"
."\n"
.'- manual: manual scheduling.'."\n"
."\n"
.'- netflow-auto: automatic scheduling.',
'enumValueTitles' => ['netflow-auto' => 'netflow-auto', 'manual' => 'manual'],
'type' => 'string',
'enum' => ['manual', 'netflow-auto', 'beaver-auto'],
'required' => false,
'example' => 'netflow-auto',
'title' => '',
],
],
[
'name' => 'MainNet',
'in' => 'query',
'schema' => ['description' => 'The primary CIDR block of the anti-DDoS diversion instance for which an extended CIDR block is configured. If no extended CIDR blocks are configured for the anti-DDoS diversion instance, leave this parameter empty.', 'type' => 'string', 'required' => false, 'example' => '192.168.XX.XX/22', 'title' => ''],
],
[
'name' => 'Page',
'in' => 'query',
'schema' => ['description' => 'The page number. Default value: 1.', 'type' => 'integer', 'format' => 'int64', 'default' => '1', 'required' => false, 'example' => '1', 'title' => ''],
],
[
'name' => 'Num',
'in' => 'query',
'schema' => ['description' => 'The number of entries per page. Default value: 100.', 'type' => 'integer', 'format' => 'int64', 'default' => '100', 'required' => false, 'example' => '100', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'- 200: The request was successful.'."\n"
."\n"
.'- Other codes: The request failed.', 'type' => 'integer', 'format' => 'int64', 'example' => '200', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '24B652B5-AEFF-3F03-9114-00D053C42277', 'title' => ''],
'Message' => ['description' => 'The response parameters.', 'type' => 'string', 'example' => 'successful', 'title' => ''],
'Data' => [
'description' => 'The CIDR blocks.',
'type' => 'object',
'properties' => [
'Total' => ['description' => 'The total number of entries returned.', 'type' => 'integer', 'format' => 'int64', 'example' => '10', 'title' => ''],
'Page' => ['description' => 'The page number.', 'type' => 'integer', 'format' => 'int64', 'example' => '1', 'title' => ''],
'Num' => ['description' => 'The number of entries per page. Valid values: 1 to 100. Default value: 100.', 'type' => 'integer', 'format' => 'int64', 'example' => '100', 'title' => ''],
'Nets' => [
'description' => 'The CIDR blocks.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'UserId' => ['description' => 'The user ID.', 'type' => 'string', 'example' => '57690941xxxxxxxx', 'title' => ''],
'SaleId' => ['description' => 'The ID of the anti-DDoS diversion instance.', 'type' => 'string', 'example' => 'ddos_diversion_public_cn-xxxxxxxxxxxxx', 'title' => ''],
'UpstreamType' => [
'description' => 'The reinjection type. Valid values:'."\n"
."\n"
.'- aliyun\\_line'."\n"
."\n"
.'- pccw\\_line'."\n"
."\n"
.'- gre\\_line'."\n"
."\n"
.'- private\\_line',
'enumValueTitles' => [],
'type' => 'string',
'example' => 'aliyun_line',
'title' => '',
],
'Net' => ['description' => 'The CIDR block of the anti-DDoS diversion instance.', 'type' => 'string', 'example' => '192.168.XX.XX/24', 'title' => ''],
'NetType' => ['description' => 'The type of the CIDR block.', 'type' => 'string', 'example' => 'ipv4', 'title' => ''],
'Mode' => [
'description' => 'The scheduling mode. Valid values:'."\n"
."\n"
.'- netflow-auto'."\n"
."\n"
.'- manual',
'enumValueTitles' => [],
'type' => 'string',
'example' => 'manual',
'title' => '',
],
'DeclaredState' => [
'description' => 'The advertising status of the CIDR block. Valid values:'."\n"
."\n"
.'- 0: The CIDR block is not advertised.'."\n"
."\n"
.'- 1: The CIDR block is advertised.',
'enumValueTitles' => [],
'type' => 'integer',
'format' => 'int32',
'example' => '0',
'title' => '',
],
'Declared' => [
'description' => 'The advertising details.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Region' => ['description' => 'The region in which the CIDR block is advertised. Valid values:'."\n"
."\n"
.'- oe26: China (Hong Kong).'."\n"
."\n"
.'- us50: US (Virginia).'."\n"
."\n"
.'- oe24: US (Silicon Valley).'."\n"
."\n"
.'- oe28: Singapore.'."\n"
."\n"
.'- jp141: Japan (Tokyo).'."\n"
."\n"
.'- Gb145: UK (London).'."\n"
."\n"
.'- oi39: Germany (Frankfurt).', 'type' => 'string', 'example' => 'oe26', 'title' => ''],
'Declared' => [
'description' => 'Indicates whether the CIDR block is advertised. Valid values:'."\n"
."\n"
.'- 0: The CIDR block is not advertised.'."\n"
."\n"
.'- 1: The CIDR block is advertised.',
'enumValueTitles' => [],
'type' => 'string',
'example' => '0',
'title' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'GmtCreate' => ['description' => 'The creation time.', 'type' => 'string', 'example' => '2024-09-05 13:52:50', 'title' => ''],
'GmtModify' => ['description' => 'The modification time.', 'type' => 'string', 'example' => '2024-09-05 13:59:55', 'title' => ''],
'NetExtend' => [
'description' => 'Indicates whether the CIDR block needs to be extended. Valid values:'."\n"
."\n"
.'- 0: The CIDR block does not need to be extended.'."\n"
."\n"
.'- 1: The CIDR block needs to be extended.',
'enumValueTitles' => [],
'type' => 'string',
'example' => '0',
'title' => '',
],
'DDoSDefense' => [
'description' => 'The DDoS mitigation configuration of the CIDR block.',
'type' => 'object',
'properties' => [
'DjPolicy' => [
'description' => 'The configuration of the mitigation policy.',
'type' => 'object',
'properties' => [
'PolicyName' => ['description' => 'The name of the mitigation policy.', 'type' => 'string', 'example' => 'gf_origin_xxxxx', 'title' => ''],
],
'title' => '',
'example' => '',
],
'CleanTh' => [
'description' => 'The configuration of traffic scrubbing.',
'type' => 'object',
'properties' => [
'Mbps' => ['description' => 'The traffic scrubbing threshold in Mbit/s.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
'Pps' => ['description' => 'The traffic scrubbing threshold in packets per second (pps).', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
],
'title' => '',
'example' => '',
],
'HoleTh' => [
'description' => 'The configuration of blackhole filtering.',
'type' => 'object',
'properties' => [
'ThreshMbps' => ['description' => 'The blackhole filtering threshold in Mbit/s. The value 0 indicates best-effort protection.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'FwdEffect' => [
'description' => 'Indicates whether the forwarding configuration takes effect. Valid values:'."\n"
."\n"
.'- 0: The forwarding configuration does not take effect.'."\n"
."\n"
.'- 1: The forwarding configuration takes effect.',
'enumValueTitles' => [],
'type' => 'integer',
'format' => 'int64',
'example' => '1',
'title' => '',
],
'NetMain' => ['description' => 'The primary CIDR block of the anti-DDoS diversion instance for which an extended CIDR block is configured. If no extended CIDR blocks are configured for the anti-DDoS diversion instance, this parameter is left empty.', 'type' => 'string', 'example' => '192.168.XX.XX/22', 'title' => ''],
'Permit' => [
'description' => 'The review status. Valid values:'."\n"
."\n"
.'- 0: not reviewed.'."\n"
."\n"
.'- 1: reviewed.'."\n"
."\n"
.'- 2: under review.',
'enumValueTitles' => [],
'type' => 'integer',
'format' => 'int32',
'example' => '2',
'title' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'AuthenticationFailed', 'errorMessage' => 'User authentication failed.', 'description' => 'User authentication failed.'],
['errorCode' => 'AutoScheduleRuleExist', 'errorMessage' => 'The auto schedule rule already exists.', 'description' => 'The scheduling rule already exists.'],
['errorCode' => 'AutoScheduleRuleNotExist', 'errorMessage' => 'The auto schedule rule dose not exist.', 'description' => 'The scheduling rule does not exist.'],
['errorCode' => 'BlackHoleConfigurationError', 'errorMessage' => 'A black hole configuration error occurred.', 'description' => 'The blackhole filtering configuration is invalid.'],
['errorCode' => 'CleanConfigurationError', 'errorMessage' => 'A clean configuration error occurred.', 'description' => 'The traffic scrubbing configuration is invalid.'],
['errorCode' => 'CoveredNet', 'errorMessage' => 'The CIDR block is overwritten.', 'description' => 'The specified CIDR block overlaps with another CIDR block.'],
['errorCode' => 'DatabaseError', 'errorMessage' => 'A database error.', 'description' => 'The database is invalid.'],
['errorCode' => 'DeclaredNet', 'errorMessage' => 'The CIDR block has been advertised.', 'description' => 'The CIDR block is in the Advertising state.'],
['errorCode' => 'DefenseConfigurationError', 'errorMessage' => 'A defense configuration error occurred.', 'description' => 'The mitigation settings are invalid.'],
['errorCode' => 'ForwardConfigurationNotExist', 'errorMessage' => 'The CIDR block forwarding configuration is not found.', 'description' => 'The forwarding configuration of the CIDR block does not exist.'],
['errorCode' => 'ForwardNotExist', 'errorMessage' => 'The CIDR block zone forwarding configuration is not found.', 'description' => 'The zone forwarding configuration of the CIDR block does not exist.'],
['errorCode' => 'ForwardRuleNotExist', 'errorMessage' => 'The CIDR block forwarding rule is not found.', 'description' => 'The CIDR block forwarding rule does not exist.'],
['errorCode' => 'HttpFailed', 'errorMessage' => 'HTTP request failed.', 'description' => 'The HTTP request failed.'],
['errorCode' => 'IDNSubnetsCountLimit', 'errorMessage' => 'The maximum number of IDCs of the instance is exceeded.', 'description' => 'The number of data centers for the instance has reached the upper limit.'],
['errorCode' => 'InstanceExist', 'errorMessage' => 'The instance already exists.', 'description' => 'The instance already exists.'],
['errorCode' => 'InstanceNetConfigurationExist', 'errorMessage' => 'The instance CIDR block configuration already exists.', 'description' => 'The CIDR block configuration of the instance already exists.'],
['errorCode' => 'InstanceNotExist', 'errorMessage' => 'The instance is not found.', 'description' => 'The instance does not exist.'],
['errorCode' => 'InstanceUpstreamLimit', 'errorMessage' => 'The maximum number of reinjection configurations for the instance is exceeded.', 'description' => 'The number of reinjection configurations of the instance is limited.'],
['errorCode' => 'InternalError', 'errorMessage' => 'An internal error occurred.', 'description' => 'An internal error occurred.'],
['errorCode' => 'InvalidNet', 'errorMessage' => 'Invalid CIDR block.', 'description' => 'The CIDR block is invalid.'],
['errorCode' => 'InvalidParam', 'errorMessage' => 'Invalid parameter value.', 'description' => 'The parameter is invalid.'],
['errorCode' => 'IPSubnetsCountLimit', 'errorMessage' => 'The maximum number of CIDR blocks of the instance is exceeded.', 'description' => 'The number of CIDR blocks of the instance has reached the upper limit.'],
['errorCode' => 'NetCannotExtend', 'errorMessage' => 'The CIDR block cannot be extended.', 'description' => 'The CIDR block cannot be expanded.'],
['errorCode' => 'NetConfigurationExist', 'errorMessage' => 'The CIDR block configuration already exists.', 'description' => 'The CIDR block configuration already exists.'],
['errorCode' => 'NetConfigurationNotExist', 'errorMessage' => 'The CIDR block configuration is not found.', 'description' => 'The CIDR block configuration does not exist.'],
['errorCode' => 'NetForwardDelete', 'errorMessage' => 'The CIDR block forwarding is being deleted.', 'description' => 'The forwarding configuration of the CIDR block is being deleted.'],
['errorCode' => 'NetMaskOutOfRange', 'errorMessage' => 'The subnet mask of the CIDR block is invalid.', 'description' => 'The subnet mask exceeds the upper limit.'],
['errorCode' => 'NetNeedExtend', 'errorMessage' => 'The CIDR block needs to be extended.', 'description' => 'The CIDR block needs to be expanded.'],
['errorCode' => 'NetStatusNotReady', 'errorMessage' => 'The CIDR block reinjection configuration has not been completed.', 'description' => 'Failed to complete the reinjection configuration of the CIDR block.'],
['errorCode' => 'NetworkDeclearedFailed', 'errorMessage' => 'Failed to advertise the CIDR block.', 'description' => 'Failed to advertise the CIDR block.'],
['errorCode' => 'NetWorkNotExist', 'errorMessage' => 'The CIDR block is not found.', 'description' => 'The CIDR block does not exist.'],
['errorCode' => 'NetworkUndeclearedFailed', 'errorMessage' => 'Failed to cancel the advertisement of the CIDR block.', 'description' => 'Failed to withdraw the advertising of the CIDR block.'],
['errorCode' => 'ParameterNotEnough', 'errorMessage' => 'Required parameters are not specified.', 'description' => 'A required parameter is not specified.'],
['errorCode' => 'ParameterOutOfRange', 'errorMessage' => 'Invalid parameter value.', 'description' => 'The value of the parameter is invalid.'],
['errorCode' => 'RegionNotExist', 'errorMessage' => 'The region does not exist.', 'description' => 'The zone does not exist.'],
['errorCode' => 'RequestMethodError', 'errorMessage' => 'An incorrect request method.', 'description' => 'The request method is invalid.'],
['errorCode' => 'SubnetCountLimit', 'errorMessage' => 'The maximum number of subnets is exceeded.', 'description' => 'The number of subnets has reached the upper limit.'],
['errorCode' => 'UnKnownError', 'errorMessage' => 'An unknown error occurred.', 'description' => 'An unknown error occurred.'],
['errorCode' => 'UpsteamNotComplete', 'errorMessage' => 'The reinjection configuration has not been completed.', 'description' => 'Failed to complete the reinjection configuration of the CIDR block.'],
['errorCode' => 'UpstreamConfigurationNotExist', 'errorMessage' => 'The reinjection configuration is not found.', 'description' => 'The reinjection configuration does not exist.'],
['errorCode' => 'JsonDecodeError', 'errorMessage' => 'JSON string decoding failed.', 'description' => 'Failed to convert JSON string to JSON object.'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => 'QueryNetList',
'summary' => 'Queries the CIDR blocks of an anti-DDoS diversion instance.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'ddosdiversion:QueryNetList',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'DdosDiversion', 'resourceType' => 'All Resource', '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' => 'China (Hong Kong)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'ddosdiversion.cn-hongkong.aliyuncs.com', 'endpoint' => 'ddosdiversion.cn-hongkong.aliyuncs.com', 'vpc' => ''],
],
'errorCodes' => [
['code' => 'AuthenticationFailed', 'message' => 'User authentication failed.', 'http_code' => 400, 'description' => 'User authentication failed.'],
['code' => 'AutoScheduleRuleExist', 'message' => 'The auto schedule rule already exists.', 'http_code' => 400, 'description' => 'The scheduling rule already exists.'],
['code' => 'AutoScheduleRuleNotExist', 'message' => 'The auto schedule rule dose not exist.', 'http_code' => 400, 'description' => 'The scheduling rule does not exist.'],
['code' => 'BlackHoleConfigurationError', 'message' => 'A black hole configuration error occurred.', 'http_code' => 400, 'description' => 'The blackhole filtering configuration is invalid.'],
['code' => 'CleanConfigurationError', 'message' => 'A clean configuration error occurred.', 'http_code' => 400, 'description' => 'The traffic scrubbing configuration is invalid.'],
['code' => 'CoveredNet', 'message' => 'The CIDR block is overwritten.', 'http_code' => 400, 'description' => 'The specified CIDR block overlaps with another CIDR block.'],
['code' => 'DatabaseError', 'message' => 'A database error.', 'http_code' => 400, 'description' => 'The database is invalid.'],
['code' => 'DeclaredNet', 'message' => 'The CIDR block has been advertised.', 'http_code' => 400, 'description' => 'The CIDR block is in the Advertising state.'],
['code' => 'DefenseConfigurationError', 'message' => 'A defense configuration error occurred.', 'http_code' => 400, 'description' => 'The mitigation settings are invalid.'],
['code' => 'ForwardConfigurationNotExist', 'message' => 'The CIDR block forwarding configuration is not found.', 'http_code' => 400, 'description' => 'The forwarding configuration of the CIDR block does not exist.'],
['code' => 'ForwardNotExist', 'message' => 'The CIDR block zone forwarding configuration is not found.', 'http_code' => 400, 'description' => 'The zone forwarding configuration of the CIDR block does not exist.'],
['code' => 'ForwardRuleNotExist', 'message' => 'The CIDR block forwarding rule is not found.', 'http_code' => 400, 'description' => 'The CIDR block forwarding rule does not exist.'],
['code' => 'GreLineExist', 'message' => 'local gre line still exist.', 'http_code' => 400, 'description' => 'Local gre lines still exist'],
['code' => 'GreLineNotExist', 'message' => 'local gre line not exist.', 'http_code' => 400, 'description' => 'gre line does not exist'],
['code' => 'GreRemoteAddrUsed', 'message' => 'GRE remote IP already in use.', 'http_code' => 400, 'description' => 'The GRE tunnel far-end IP is already in use.'],
['code' => 'HttpFailed', 'message' => 'HTTP request failed.', 'http_code' => 400, 'description' => 'The HTTP request failed.'],
['code' => 'IDNSubnetsCountLimit', 'message' => 'The maximum number of IDCs of the instance is exceeded.', 'http_code' => 400, 'description' => 'The number of data centers for the instance has reached the upper limit.'],
['code' => 'InstanceExist', 'message' => 'The instance already exists.', 'http_code' => 400, 'description' => 'The instance already exists.'],
['code' => 'InstanceNetConfigurationExist', 'message' => 'The instance CIDR block configuration already exists.', 'http_code' => 400, 'description' => 'The CIDR block configuration of the instance already exists.'],
['code' => 'InstanceNotExist', 'message' => 'The instance is not found.', 'http_code' => 400, 'description' => 'The instance does not exist.'],
['code' => 'InstanceUpstreamLimit', 'message' => 'The maximum number of reinjection configurations for the instance is exceeded.', 'http_code' => 400, 'description' => 'The number of reinjection configurations of the instance is limited.'],
['code' => 'InternalError', 'message' => 'An internal error occurred.', 'http_code' => 400, 'description' => 'An internal error occurred.'],
['code' => 'InvalidNet', 'message' => 'Invalid CIDR block.', 'http_code' => 400, 'description' => 'The CIDR block is invalid.'],
['code' => 'InvalidParam', 'message' => 'Invalid parameter value.', 'http_code' => 400, 'description' => 'The parameter is invalid.'],
['code' => 'IPSubnetsCountLimit', 'message' => 'The maximum number of CIDR blocks of the instance is exceeded.', 'http_code' => 400, 'description' => 'The number of CIDR blocks of the instance has reached the upper limit.'],
['code' => 'JsonDecodeError', 'message' => 'JSON string decoding failed.', 'http_code' => 400, 'description' => 'Failed to convert JSON string to JSON object.'],
['code' => 'NetCannotExtend', 'message' => 'The CIDR block cannot be extended.', 'http_code' => 400, 'description' => 'The CIDR block cannot be expanded.'],
['code' => 'NetConfigNotPermit', 'message' => 'Network segment configuration not approved.', 'http_code' => 400, 'description' => 'Network segment configuration not approved'],
['code' => 'NetConfigurationExist', 'message' => 'The CIDR block configuration already exists.', 'http_code' => 400, 'description' => 'The CIDR block configuration already exists.'],
['code' => 'NetConfigurationNotExist', 'message' => 'The CIDR block configuration is not found.', 'http_code' => 400, 'description' => 'The CIDR block configuration does not exist.'],
['code' => 'NetForwardDelete', 'message' => 'The CIDR block forwarding is being deleted.', 'http_code' => 400, 'description' => 'The forwarding configuration of the CIDR block is being deleted.'],
['code' => 'NetMaskOutOfRange', 'message' => 'The subnet mask of the CIDR block is invalid.', 'http_code' => 400, 'description' => 'The subnet mask exceeds the upper limit.'],
['code' => 'NetNeedExtend', 'message' => 'The CIDR block needs to be extended.', 'http_code' => 400, 'description' => 'The CIDR block needs to be expanded.'],
['code' => 'NetNhpoolUsedByNet', 'message' => 'Nh Pool is Used By Net.', 'http_code' => 400, 'description' => 'The GRE reinjection line has been bound to a network segment and cannot be deleted.'],
['code' => 'NetStatusNotReady', 'message' => 'The CIDR block reinjection configuration has not been completed.', 'http_code' => 400, 'description' => 'Failed to complete the reinjection configuration of the CIDR block.'],
['code' => 'NetworkDeclearedFailed', 'message' => 'Failed to advertise the CIDR block.', 'http_code' => 400, 'description' => 'Failed to advertise the CIDR block.'],
['code' => 'NetWorkNotExist', 'message' => 'The CIDR block is not found.', 'http_code' => 400, 'description' => 'The CIDR block does not exist.'],
['code' => 'NetworkUndeclearedFailed', 'message' => 'Failed to cancel the advertisement of the CIDR block.', 'http_code' => 400, 'description' => 'Failed to withdraw the advertising of the CIDR block.'],
['code' => 'NhPoolMemberExist', 'message' => 'nh pool member already exist.', 'http_code' => 400, 'description' => 'The nh pool member already exists.'],
['code' => 'NhPoolMemberNotExist', 'message' => 'nh pool member not exist.', 'http_code' => 400, 'description' => 'nh pool does not exist'],
['code' => 'NhpoolNotExist', 'message' => 'nh pool not exist.', 'http_code' => 400, 'description' => 'nh_pool does not exist'],
['code' => 'ParameterNotEnough', 'message' => 'Required parameters are not specified.', 'http_code' => 400, 'description' => 'A required parameter is not specified.'],
['code' => 'ParameterOutOfRange', 'message' => 'Invalid parameter value.', 'http_code' => 400, 'description' => 'The value of the parameter is invalid.'],
['code' => 'RegionNotExist', 'message' => 'The region does not exist.', 'http_code' => 400, 'description' => 'The zone does not exist.'],
['code' => 'RequestMethodError', 'message' => 'An incorrect request method.', 'http_code' => 400, 'description' => 'The request method is invalid.'],
['code' => 'SubnetCountLimit', 'message' => 'The maximum number of subnets is exceeded.', 'http_code' => 400, 'description' => 'The number of subnets has reached the upper limit.'],
['code' => 'UnKnownError', 'message' => 'An unknown error occurred.', 'http_code' => 400, 'description' => 'An unknown error occurred.'],
['code' => 'UpsteamNotComplete', 'message' => 'The reinjection configuration has not been completed.', 'http_code' => 400, 'description' => 'Failed to complete the reinjection configuration of the CIDR block.'],
['code' => 'UpstreamConfigurationNotExist', 'message' => 'The reinjection configuration is not found.', 'http_code' => 400, 'description' => 'The reinjection configuration does not exist.'],
['code' => 'UpstreamRegionUsedByNet', 'message' => 'The reinjection region configuration is still used by CIDR block.', 'http_code' => 400, 'description' => 'Failed to delete the location because a CIDR block is associated with the location.'],
],
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ram' => [
'productCode' => 'DdosDiversion',
'productName' => 'Anti-DDoS',
'ramCodes' => ['ddosdiversion'],
'ramLevel' => 'OPERATION',
'ramConditions' => [],
'ramActions' => [
[
'apiName' => 'ListInstance',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'ddosdiversion:ListInstance',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'DdosDiversion', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'ConfigNetStatus',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'ddosdiversion:ConfigNetStatus',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'DdosDiversion', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'QueryNetList',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'ddosdiversion:QueryNetList',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'DdosDiversion', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'resourceTypes' => [],
],
];
|