/
resource_slb_fast_http_proxy_oper.go
1323 lines (1311 loc) · 50.2 KB
/
resource_slb_fast_http_proxy_oper.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
package thunder
import (
"context"
edpt "github.com/a10networks/terraform-provider-thunder/thunder/axapi/endpoint"
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)
func resourceSlbFastHttpProxyOper() *schema.Resource {
return &schema.Resource{
Description: "`thunder_slb_fast_http_proxy_oper`: Operational Status for the object fast-http-proxy\n\n__PLACEHOLDER__",
ReadContext: resourceSlbFastHttpProxyOperRead,
Schema: map[string]*schema.Schema{
"oper": {
Type: schema.TypeList, MaxItems: 1, Optional: true, Description: "",
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"fast_http_proxy_cpu_list": {
Type: schema.TypeList, Optional: true, Description: "",
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"curr_proxy": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"total_proxy": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"req": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"req_succ": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"noproxy": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"client_rst": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"server_rst": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"notuple": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"parsereq_fail": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"svrsel_fail": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"fwdreq_fail": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"fwdreq_fail_buff": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"fwdreq_fail_rport": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"fwdreq_fail_route": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"fwdreq_fail_persist": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"fwdreq_fail_server": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"fwdreq_fail_tuple": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"fwdreqdata_fail": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"req_retran": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"req_ofo": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"server_resel": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"svr_prem_close": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"new_svrconn": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"snat_fail": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"tcpoutrst": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"full_proxy": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"full_proxy_post": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"full_proxy_put": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"full_proxy_pipeline": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"full_proxy_fpga_err": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"req_over_limit": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"req_rate_over_limit": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"l4_switching": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"cookie_switching": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"aflex_switching": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"url_switching": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"host_switching": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"lb_switching": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"l4_switching_ok": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"cookie_switching_ok": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"aflex_switching_ok": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"url_switching_ok": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"host_switching_ok": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"lb_switching_ok": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"l4_switching_enqueue": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"cookie_switching_enqueue": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"aflex_switching_enqueue": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"url_switching_enqueue": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"host_switching_enqueue": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"lb_switching_enqueue": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"retry_503": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"aflex_retry": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"aflex_lb_reselect": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"aflex_lb_reselect_ok": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"client_rst_request": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"client_rst_connecting": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"client_rst_connected": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"client_rst_response": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"server_rst_request": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"server_rst_connecting": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"server_rst_connected": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"server_rst_response": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"invalid_header": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"too_many_headers": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"line_too_long": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"header_name_too_long": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"wrong_resp_header": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"header_insert": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"header_delete": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"insert_client_ip": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"negative_req_remain": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"negative_resp_remain": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"large_cookie": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"large_cookie_header": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"huge_cookie": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"huge_cookie_header": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"parse_cookie_fail": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"parse_setcookie_fail": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"asm_cookie_fail": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"asm_cookie_header_fail": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"asm_setcookie_fail": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"asm_setcookie_header_fail": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"client_req_unexp_flag": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"connecting_fin": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"connecting_fin_retrans": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"connecting_fin_ofo": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"connecting_rst": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"connecting_rst_retrans": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"connecting_rst_ofo": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"connecting_ack": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"pkts_ofo": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"pkts_retrans": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"pkts_retrans_ack_finwait": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"pkts_retrans_fin": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"pkts_retrans_rst": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"pkts_retrans_push": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"stale_sess": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"server_resel_failed": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"response_1xx": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"response_100": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"response_101": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"response_102": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"response_2xx": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"response_200": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"response_201": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"response_202": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"response_203": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"response_204": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"response_205": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"response_206": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"response_207": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"response_3xx": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"response_300": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"response_301": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"response_302": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"response_303": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"response_304": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"response_305": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"response_306": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"response_307": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"response_4xx": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"response_400": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"response_401": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"response_402": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"response_403": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"response_404": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"response_405": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"response_406": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"response_407": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"response_408": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"response_409": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"response_410": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"response_411": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"response_412": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"response_413": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"response_414": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"response_415": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"response_416": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"response_417": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"response_418": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"response_422": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"response_423": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"response_424": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"response_425": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"response_426": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"response_449": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"response_450": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"response_5xx": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"response_500": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"response_501": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"response_502": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"response_503": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"response_504": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"response_505": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"response_506": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"response_507": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"response_508": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"response_509": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"response_510": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"response_6xx": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"response_unknown": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"req_http10": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"req_http11": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"response_http10": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"response_http11": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"req_get": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"req_head": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"req_put": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"req_post": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"req_trace": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"req_options": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"req_connect": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"req_delete": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"req_unknown": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"req_content_len": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"rsp_content_len": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"rsp_chunk": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"req_chunk": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"compress_rsp": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"compress_rsp_br": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"compress_rsp_total": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"compress_del_accept_enc": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"compress_resp_already_compressed": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"compress_content_type_excluded": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"compress_no_content_type": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"compress_resp_lt_min": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"compress_resp_no_cl_or_ce": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"compress_ratio_too_high": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"cache_rsp": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"close_on_ddos": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"req_http10_keepalive": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"req_sz_1k": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"req_sz_2k": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"req_sz_4k": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"req_sz_8k": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"req_sz_16k": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"req_sz_32k": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"req_sz_64k": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"req_sz_256k": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"req_sz_gt_256k": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"rsp_sz_1k": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"rsp_sz_2k": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"rsp_sz_4k": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"rsp_sz_8k": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"rsp_sz_16k": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"rsp_sz_32k": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"rsp_sz_64k": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"rsp_sz_256k": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"rsp_sz_gt_256k": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"chunk_sz_512": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"chunk_sz_1k": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"chunk_sz_2k": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"chunk_sz_4k": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"chunk_sz_gt_4k": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"pconn_connecting": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"pconn_connected": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"pconn_connecting_failed": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"chunk_bad": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"req_10u": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"req_20u": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"req_50u": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"req_100u": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"req_200u": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"req_500u": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"req_1m": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"req_2m": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"req_5m": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"req_10m": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"req_20m": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"req_50m": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"req_100m": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"req_200m": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"req_500m": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"req_1s": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"req_2s": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"req_5s": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"req_over_5s": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"insert_client_port": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"req_track": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"non_http_bypass": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"skip_insert_client_ip": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"skip_insert_client_port": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"http_pkts_ofo": {
Type: schema.TypeInt, Optional: true, Description: "",
},
},
},
},
"cpu_count": {
Type: schema.TypeInt, Optional: true, Description: "",
},
"debug_fields": {
Type: schema.TypeInt, Optional: true, Description: "",
},
},
},
},
},
}
}
func resourceSlbFastHttpProxyOperRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics {
client := meta.(Thunder)
logger := client.log
logger.Println("resourceSlbFastHttpProxyOperRead()")
var diags diag.Diagnostics
if client.Host != "" {
obj := dataToEndpointSlbFastHttpProxyOper(d)
res, err := obj.Get(client.Token, client.Host, d.Id(), logger)
d.SetId(obj.GetId())
logger.Println(res)
SlbFastHttpProxyOperOper := setObjectSlbFastHttpProxyOperOper(res)
d.Set("oper", SlbFastHttpProxyOperOper)
if err != nil {
return diag.FromErr(err)
}
}
return diags
}
func setObjectSlbFastHttpProxyOperOper(ret edpt.DataSlbFastHttpProxyOper) []interface{} {
return []interface{}{
map[string]interface{}{
"fast_http_proxy_cpu_list": setSliceSlbFastHttpProxyOperOperFastHttpProxyCpuList(ret.DtSlbFastHttpProxyOper.Oper.FastHttpProxyCpuList),
"cpu_count": ret.DtSlbFastHttpProxyOper.Oper.CpuCount,
"debug_fields": ret.DtSlbFastHttpProxyOper.Oper.Debug_fields,
},
}
}
func setSliceSlbFastHttpProxyOperOperFastHttpProxyCpuList(d []edpt.SlbFastHttpProxyOperOperFastHttpProxyCpuList) []map[string]interface{} {
result := []map[string]interface{}{}
for _, item := range d {
in := make(map[string]interface{})
in["curr_proxy"] = item.Curr_proxy
in["total_proxy"] = item.Total_proxy
in["req"] = item.Req
in["req_succ"] = item.Req_succ
in["noproxy"] = item.Noproxy
in["client_rst"] = item.Client_rst
in["server_rst"] = item.Server_rst
in["notuple"] = item.Notuple
in["parsereq_fail"] = item.Parsereq_fail
in["svrsel_fail"] = item.Svrsel_fail
in["fwdreq_fail"] = item.Fwdreq_fail
in["fwdreq_fail_buff"] = item.Fwdreq_fail_buff
in["fwdreq_fail_rport"] = item.Fwdreq_fail_rport
in["fwdreq_fail_route"] = item.Fwdreq_fail_route
in["fwdreq_fail_persist"] = item.Fwdreq_fail_persist
in["fwdreq_fail_server"] = item.Fwdreq_fail_server
in["fwdreq_fail_tuple"] = item.Fwdreq_fail_tuple
in["fwdreqdata_fail"] = item.Fwdreqdata_fail
in["req_retran"] = item.Req_retran
in["req_ofo"] = item.Req_ofo
in["server_resel"] = item.Server_resel
in["svr_prem_close"] = item.Svr_prem_close
in["new_svrconn"] = item.New_svrconn
in["snat_fail"] = item.Snat_fail
in["tcpoutrst"] = item.Tcpoutrst
in["full_proxy"] = item.Full_proxy
in["full_proxy_post"] = item.Full_proxy_post
in["full_proxy_put"] = item.Full_proxy_put
in["full_proxy_pipeline"] = item.Full_proxy_pipeline
in["full_proxy_fpga_err"] = item.Full_proxy_fpga_err
in["req_over_limit"] = item.Req_over_limit
in["req_rate_over_limit"] = item.Req_rate_over_limit
in["l4_switching"] = item.L4_switching
in["cookie_switching"] = item.Cookie_switching
in["aflex_switching"] = item.Aflex_switching
in["url_switching"] = item.Url_switching
in["host_switching"] = item.Host_switching
in["lb_switching"] = item.Lb_switching
in["l4_switching_ok"] = item.L4_switching_ok
in["cookie_switching_ok"] = item.Cookie_switching_ok
in["aflex_switching_ok"] = item.Aflex_switching_ok
in["url_switching_ok"] = item.Url_switching_ok
in["host_switching_ok"] = item.Host_switching_ok
in["lb_switching_ok"] = item.Lb_switching_ok
in["l4_switching_enqueue"] = item.L4_switching_enqueue
in["cookie_switching_enqueue"] = item.Cookie_switching_enqueue
in["aflex_switching_enqueue"] = item.Aflex_switching_enqueue
in["url_switching_enqueue"] = item.Url_switching_enqueue
in["host_switching_enqueue"] = item.Host_switching_enqueue
in["lb_switching_enqueue"] = item.Lb_switching_enqueue
in["retry_503"] = item.Retry_503
in["aflex_retry"] = item.Aflex_retry
in["aflex_lb_reselect"] = item.Aflex_lb_reselect
in["aflex_lb_reselect_ok"] = item.Aflex_lb_reselect_ok
in["client_rst_request"] = item.Client_rst_request
in["client_rst_connecting"] = item.Client_rst_connecting
in["client_rst_connected"] = item.Client_rst_connected
in["client_rst_response"] = item.Client_rst_response
in["server_rst_request"] = item.Server_rst_request
in["server_rst_connecting"] = item.Server_rst_connecting
in["server_rst_connected"] = item.Server_rst_connected
in["server_rst_response"] = item.Server_rst_response
in["invalid_header"] = item.Invalid_header
in["too_many_headers"] = item.Too_many_headers
in["line_too_long"] = item.Line_too_long
in["header_name_too_long"] = item.Header_name_too_long
in["wrong_resp_header"] = item.Wrong_resp_header
in["header_insert"] = item.Header_insert
in["header_delete"] = item.Header_delete
in["insert_client_ip"] = item.Insert_client_ip
in["negative_req_remain"] = item.Negative_req_remain
in["negative_resp_remain"] = item.Negative_resp_remain
in["large_cookie"] = item.Large_cookie
in["large_cookie_header"] = item.Large_cookie_header
in["huge_cookie"] = item.Huge_cookie
in["huge_cookie_header"] = item.Huge_cookie_header
in["parse_cookie_fail"] = item.Parse_cookie_fail
in["parse_setcookie_fail"] = item.Parse_setcookie_fail
in["asm_cookie_fail"] = item.Asm_cookie_fail
in["asm_cookie_header_fail"] = item.Asm_cookie_header_fail
in["asm_setcookie_fail"] = item.Asm_setcookie_fail
in["asm_setcookie_header_fail"] = item.Asm_setcookie_header_fail
in["client_req_unexp_flag"] = item.Client_req_unexp_flag
in["connecting_fin"] = item.Connecting_fin
in["connecting_fin_retrans"] = item.Connecting_fin_retrans
in["connecting_fin_ofo"] = item.Connecting_fin_ofo
in["connecting_rst"] = item.Connecting_rst
in["connecting_rst_retrans"] = item.Connecting_rst_retrans
in["connecting_rst_ofo"] = item.Connecting_rst_ofo
in["connecting_ack"] = item.Connecting_ack
in["pkts_ofo"] = item.Pkts_ofo
in["pkts_retrans"] = item.Pkts_retrans
in["pkts_retrans_ack_finwait"] = item.Pkts_retrans_ack_finwait
in["pkts_retrans_fin"] = item.Pkts_retrans_fin
in["pkts_retrans_rst"] = item.Pkts_retrans_rst
in["pkts_retrans_push"] = item.Pkts_retrans_push
in["stale_sess"] = item.Stale_sess
in["server_resel_failed"] = item.Server_resel_failed
in["response_1xx"] = item.Response_1xx
in["response_100"] = item.Response_100
in["response_101"] = item.Response_101
in["response_102"] = item.Response_102
in["response_2xx"] = item.Response_2xx
in["response_200"] = item.Response_200
in["response_201"] = item.Response_201
in["response_202"] = item.Response_202
in["response_203"] = item.Response_203
in["response_204"] = item.Response_204
in["response_205"] = item.Response_205
in["response_206"] = item.Response_206
in["response_207"] = item.Response_207
in["response_3xx"] = item.Response_3xx
in["response_300"] = item.Response_300
in["response_301"] = item.Response_301
in["response_302"] = item.Response_302
in["response_303"] = item.Response_303
in["response_304"] = item.Response_304
in["response_305"] = item.Response_305
in["response_306"] = item.Response_306
in["response_307"] = item.Response_307
in["response_4xx"] = item.Response_4xx
in["response_400"] = item.Response_400
in["response_401"] = item.Response_401
in["response_402"] = item.Response_402
in["response_403"] = item.Response_403
in["response_404"] = item.Response_404
in["response_405"] = item.Response_405
in["response_406"] = item.Response_406
in["response_407"] = item.Response_407
in["response_408"] = item.Response_408
in["response_409"] = item.Response_409
in["response_410"] = item.Response_410
in["response_411"] = item.Response_411
in["response_412"] = item.Response_412
in["response_413"] = item.Response_413
in["response_414"] = item.Response_414
in["response_415"] = item.Response_415
in["response_416"] = item.Response_416
in["response_417"] = item.Response_417
in["response_418"] = item.Response_418
in["response_422"] = item.Response_422
in["response_423"] = item.Response_423
in["response_424"] = item.Response_424
in["response_425"] = item.Response_425
in["response_426"] = item.Response_426
in["response_449"] = item.Response_449
in["response_450"] = item.Response_450
in["response_5xx"] = item.Response_5xx
in["response_500"] = item.Response_500
in["response_501"] = item.Response_501
in["response_502"] = item.Response_502
in["response_503"] = item.Response_503
in["response_504"] = item.Response_504
in["response_505"] = item.Response_505
in["response_506"] = item.Response_506
in["response_507"] = item.Response_507
in["response_508"] = item.Response_508
in["response_509"] = item.Response_509
in["response_510"] = item.Response_510
in["response_6xx"] = item.Response_6xx
in["response_unknown"] = item.Response_unknown
in["req_http10"] = item.Req_http10
in["req_http11"] = item.Req_http11
in["response_http10"] = item.Response_http10
in["response_http11"] = item.Response_http11
in["req_get"] = item.Req_get
in["req_head"] = item.Req_head
in["req_put"] = item.Req_put
in["req_post"] = item.Req_post
in["req_trace"] = item.Req_trace
in["req_options"] = item.Req_options
in["req_connect"] = item.Req_connect
in["req_delete"] = item.Req_delete
in["req_unknown"] = item.Req_unknown
in["req_content_len"] = item.Req_content_len
in["rsp_content_len"] = item.Rsp_content_len
in["rsp_chunk"] = item.Rsp_chunk
in["req_chunk"] = item.Req_chunk
in["compress_rsp"] = item.Compress_rsp
in["compress_rsp_br"] = item.Compress_rsp_br
in["compress_rsp_total"] = item.Compress_rsp_total
in["compress_del_accept_enc"] = item.Compress_del_accept_enc
in["compress_resp_already_compressed"] = item.Compress_resp_already_compressed
in["compress_content_type_excluded"] = item.Compress_content_type_excluded
in["compress_no_content_type"] = item.Compress_no_content_type
in["compress_resp_lt_min"] = item.Compress_resp_lt_min
in["compress_resp_no_cl_or_ce"] = item.Compress_resp_no_cl_or_ce
in["compress_ratio_too_high"] = item.Compress_ratio_too_high
in["cache_rsp"] = item.Cache_rsp
in["close_on_ddos"] = item.Close_on_ddos
in["req_http10_keepalive"] = item.Req_http10_keepalive
in["req_sz_1k"] = item.Req_sz_1k
in["req_sz_2k"] = item.Req_sz_2k
in["req_sz_4k"] = item.Req_sz_4k
in["req_sz_8k"] = item.Req_sz_8k
in["req_sz_16k"] = item.Req_sz_16k
in["req_sz_32k"] = item.Req_sz_32k
in["req_sz_64k"] = item.Req_sz_64k
in["req_sz_256k"] = item.Req_sz_256k