tencentcloud-sdk-waf 3.0.754 → 3.0.756
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20180125/client.rb +6 -7
- data/lib/v20180125/models.rb +506 -166
- metadata +4 -4
data/lib/v20180125/models.rb
CHANGED
@@ -437,28 +437,30 @@ module TencentCloud
|
|
437
437
|
class AddAttackWhiteRuleRequest < TencentCloud::Common::AbstractModel
|
438
438
|
# @param Domain: 域名
|
439
439
|
# @type Domain: String
|
440
|
-
# @param SignatureId: 规则Id
|
441
|
-
# @type SignatureId: String
|
442
440
|
# @param Status: 规则状态
|
443
441
|
# @type Status: Integer
|
444
442
|
# @param Rules: 匹配规则项列表
|
445
443
|
# @type Rules: Array
|
446
444
|
# @param RuleId: 规则序号
|
447
445
|
# @type RuleId: Integer
|
446
|
+
# @param SignatureId: 规则Id
|
447
|
+
# @type SignatureId: String
|
448
|
+
# @param SignatureIds: 加白的规则ID列表
|
449
|
+
# @type SignatureIds: Array
|
448
450
|
|
449
|
-
attr_accessor :Domain, :
|
451
|
+
attr_accessor :Domain, :Status, :Rules, :RuleId, :SignatureId, :SignatureIds
|
450
452
|
|
451
|
-
def initialize(domain=nil,
|
453
|
+
def initialize(domain=nil, status=nil, rules=nil, ruleid=nil, signatureid=nil, signatureids=nil)
|
452
454
|
@Domain = domain
|
453
|
-
@SignatureId = signatureid
|
454
455
|
@Status = status
|
455
456
|
@Rules = rules
|
456
457
|
@RuleId = ruleid
|
458
|
+
@SignatureId = signatureid
|
459
|
+
@SignatureIds = signatureids
|
457
460
|
end
|
458
461
|
|
459
462
|
def deserialize(params)
|
460
463
|
@Domain = params['Domain']
|
461
|
-
@SignatureId = params['SignatureId']
|
462
464
|
@Status = params['Status']
|
463
465
|
unless params['Rules'].nil?
|
464
466
|
@Rules = []
|
@@ -469,6 +471,8 @@ module TencentCloud
|
|
469
471
|
end
|
470
472
|
end
|
471
473
|
@RuleId = params['RuleId']
|
474
|
+
@SignatureId = params['SignatureId']
|
475
|
+
@SignatureIds = params['SignatureIds']
|
472
476
|
end
|
473
477
|
end
|
474
478
|
|
@@ -750,7 +754,7 @@ module TencentCloud
|
|
750
754
|
# @type IsGray: Integer
|
751
755
|
# @param GrayAreas: 待废弃,可不填。灰度的地区
|
752
756
|
# @type GrayAreas: Array
|
753
|
-
# @param HttpsRewrite:
|
757
|
+
# @param HttpsRewrite: 必填项,是否开启HTTP强制跳转到HTTPS。
|
754
758
|
# 0:不强制跳转
|
755
759
|
# 1:开启强制跳转
|
756
760
|
# @type HttpsRewrite: Integer
|
@@ -758,7 +762,7 @@ module TencentCloud
|
|
758
762
|
# @type UpstreamDomain: String
|
759
763
|
# @param SrcList: IP回源时的回源IP列表。UpstreamType为0时,需要填充此字段
|
760
764
|
# @type SrcList: Array
|
761
|
-
# @param IsHttp2:
|
765
|
+
# @param IsHttp2: 必填项,是否开启HTTP2,需要开启HTTPS协议支持。
|
762
766
|
# 0:关闭
|
763
767
|
# 1:开启
|
764
768
|
# @type IsHttp2: Integer
|
@@ -774,23 +778,23 @@ module TencentCloud
|
|
774
778
|
# clb-waf:负载均衡型WAF
|
775
779
|
# cdn-waf:CDN上的Web防护能力
|
776
780
|
# @type Edition: String
|
777
|
-
# @param IsKeepAlive:
|
781
|
+
# @param IsKeepAlive: 必填项,是否开启长连接。
|
778
782
|
# 0: 短连接
|
779
783
|
# 1: 长连接
|
780
784
|
# @type IsKeepAlive: String
|
781
|
-
# @param InstanceID:
|
785
|
+
# @param InstanceID: 必填项,域名所属实例id
|
782
786
|
# @type InstanceID: String
|
783
787
|
# @param Anycast: 待废弃,目前填0即可。anycast IP类型开关: 0 普通IP 1 Anycast IP
|
784
788
|
# @type Anycast: Integer
|
785
789
|
# @param Weights: 回源IP列表各IP的权重,和SrcList一一对应。当且仅当UpstreamType为0,并且SrcList有多个IP,并且LoadBalance为2时需要填写,否则填 []
|
786
790
|
# @type Weights: Array
|
787
|
-
# @param ActiveCheck:
|
791
|
+
# @param ActiveCheck: 必填项,是否开启主动健康检测。
|
788
792
|
# 0:不开启
|
789
793
|
# 1:开启
|
790
794
|
# @type ActiveCheck: Integer
|
791
795
|
# @param TLSVersion: TLS版本信息
|
792
796
|
# @type TLSVersion: Integer
|
793
|
-
# @param CipherTemplate:
|
797
|
+
# @param CipherTemplate: 必填项,加密套件模板。
|
794
798
|
# 0:不支持选择,使用默认模板
|
795
799
|
# 1:通用型模板
|
796
800
|
# 2:安全型模板
|
@@ -814,10 +818,14 @@ module TencentCloud
|
|
814
818
|
# 0:关闭
|
815
819
|
# 1:开启
|
816
820
|
# @type XFFReset: Integer
|
821
|
+
# @param Note: 域名备注信息
|
822
|
+
# @type Note: String
|
823
|
+
# @param UpstreamHost: 自定义回源Host。默认为空字符串,表示使用防护域名作为回源Host。
|
824
|
+
# @type UpstreamHost: String
|
817
825
|
|
818
|
-
attr_accessor :Domain, :CertType, :IsCdn, :UpstreamType, :IsWebsocket, :LoadBalance, :Cert, :PrivateKey, :SSLId, :ResourceId, :IpHeaders, :UpstreamScheme, :HttpsUpstreamPort, :IsGray, :GrayAreas, :HttpsRewrite, :UpstreamDomain, :SrcList, :IsHttp2, :Ports, :Edition, :IsKeepAlive, :InstanceID, :Anycast, :Weights, :ActiveCheck, :TLSVersion, :CipherTemplate, :Ciphers, :ProxyReadTimeout, :ProxySendTimeout, :SniType, :SniHost, :XFFReset
|
826
|
+
attr_accessor :Domain, :CertType, :IsCdn, :UpstreamType, :IsWebsocket, :LoadBalance, :Cert, :PrivateKey, :SSLId, :ResourceId, :IpHeaders, :UpstreamScheme, :HttpsUpstreamPort, :IsGray, :GrayAreas, :HttpsRewrite, :UpstreamDomain, :SrcList, :IsHttp2, :Ports, :Edition, :IsKeepAlive, :InstanceID, :Anycast, :Weights, :ActiveCheck, :TLSVersion, :CipherTemplate, :Ciphers, :ProxyReadTimeout, :ProxySendTimeout, :SniType, :SniHost, :XFFReset, :Note, :UpstreamHost
|
819
827
|
|
820
|
-
def initialize(domain=nil, certtype=nil, iscdn=nil, upstreamtype=nil, iswebsocket=nil, loadbalance=nil, cert=nil, privatekey=nil, sslid=nil, resourceid=nil, ipheaders=nil, upstreamscheme=nil, httpsupstreamport=nil, isgray=nil, grayareas=nil, httpsrewrite=nil, upstreamdomain=nil, srclist=nil, ishttp2=nil, ports=nil, edition=nil, iskeepalive=nil, instanceid=nil, anycast=nil, weights=nil, activecheck=nil, tlsversion=nil, ciphertemplate=nil, ciphers=nil, proxyreadtimeout=nil, proxysendtimeout=nil, snitype=nil, snihost=nil, xffreset=nil)
|
828
|
+
def initialize(domain=nil, certtype=nil, iscdn=nil, upstreamtype=nil, iswebsocket=nil, loadbalance=nil, cert=nil, privatekey=nil, sslid=nil, resourceid=nil, ipheaders=nil, upstreamscheme=nil, httpsupstreamport=nil, isgray=nil, grayareas=nil, httpsrewrite=nil, upstreamdomain=nil, srclist=nil, ishttp2=nil, ports=nil, edition=nil, iskeepalive=nil, instanceid=nil, anycast=nil, weights=nil, activecheck=nil, tlsversion=nil, ciphertemplate=nil, ciphers=nil, proxyreadtimeout=nil, proxysendtimeout=nil, snitype=nil, snihost=nil, xffreset=nil, note=nil, upstreamhost=nil)
|
821
829
|
@Domain = domain
|
822
830
|
@CertType = certtype
|
823
831
|
@IsCdn = iscdn
|
@@ -852,6 +860,8 @@ module TencentCloud
|
|
852
860
|
@SniType = snitype
|
853
861
|
@SniHost = snihost
|
854
862
|
@XFFReset = xffreset
|
863
|
+
@Note = note
|
864
|
+
@UpstreamHost = upstreamhost
|
855
865
|
end
|
856
866
|
|
857
867
|
def deserialize(params)
|
@@ -896,6 +906,8 @@ module TencentCloud
|
|
896
906
|
@SniType = params['SniType']
|
897
907
|
@SniHost = params['SniHost']
|
898
908
|
@XFFReset = params['XFFReset']
|
909
|
+
@Note = params['Note']
|
910
|
+
@UpstreamHost = params['UpstreamHost']
|
899
911
|
end
|
900
912
|
end
|
901
913
|
|
@@ -1561,25 +1573,25 @@ module TencentCloud
|
|
1561
1573
|
end
|
1562
1574
|
end
|
1563
1575
|
|
1564
|
-
#
|
1576
|
+
# 负载均衡型WAF域名详情
|
1565
1577
|
class ClbDomainsInfo < TencentCloud::Common::AbstractModel
|
1566
1578
|
# @param Domain: 域名
|
1567
1579
|
# @type Domain: String
|
1568
|
-
# @param DomainId:
|
1580
|
+
# @param DomainId: 域名唯一ID
|
1569
1581
|
# @type DomainId: String
|
1570
|
-
# @param InstanceId:
|
1582
|
+
# @param InstanceId: 域名所属实例ID
|
1571
1583
|
# @type InstanceId: String
|
1572
|
-
# @param InstanceName:
|
1584
|
+
# @param InstanceName: 域名所属实例名
|
1573
1585
|
# @type InstanceName: String
|
1574
|
-
# @param Edition:
|
1586
|
+
# @param Edition: 域名所属实例类型
|
1575
1587
|
# @type Edition: String
|
1576
|
-
# @param IsCdn:
|
1588
|
+
# @param IsCdn: waf前是否部署有七层代理服务。 0:没有部署代理服务 1:有部署代理服务,waf将使用XFF获取客户端IP 2:有部署代理服务,waf将使用remote_addr获取客户端IP 3:有部署代理服务,waf将使用ip_headers中的自定义header获取客户端IP
|
1577
1589
|
# @type IsCdn: Integer
|
1578
|
-
# @param LoadBalancerSet:
|
1590
|
+
# @param LoadBalancerSet: 负载均衡类型为clb时,对应的负载均衡器信息
|
1579
1591
|
# @type LoadBalancerSet: Array
|
1580
|
-
# @param FlowMode:
|
1592
|
+
# @param FlowMode: 负载均衡型WAF的流量模式,1:清洗模式,0:镜像模式
|
1581
1593
|
# @type FlowMode: Integer
|
1582
|
-
# @param State:
|
1594
|
+
# @param State: 域名绑定负载均衡器状态
|
1583
1595
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
1584
1596
|
# @type State: Integer
|
1585
1597
|
# @param AlbType: 负载均衡类型,clb或者apisix
|
@@ -1588,16 +1600,19 @@ module TencentCloud
|
|
1588
1600
|
# @param IpHeaders: IsCdn=3时,表示自定义header
|
1589
1601
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
1590
1602
|
# @type IpHeaders: Array
|
1591
|
-
# @param CdcClusters: cdc
|
1603
|
+
# @param CdcClusters: cdc-clb-waf类型WAF的CDC集群信息
|
1592
1604
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
1593
1605
|
# @type CdcClusters: String
|
1594
1606
|
# @param CloudType: 云类型:public:公有云;private:私有云;hybrid:混合云
|
1595
1607
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
1596
1608
|
# @type CloudType: String
|
1609
|
+
# @param Note: 域名备注信息
|
1610
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1611
|
+
# @type Note: String
|
1597
1612
|
|
1598
|
-
attr_accessor :Domain, :DomainId, :InstanceId, :InstanceName, :Edition, :IsCdn, :LoadBalancerSet, :FlowMode, :State, :AlbType, :IpHeaders, :CdcClusters, :CloudType
|
1613
|
+
attr_accessor :Domain, :DomainId, :InstanceId, :InstanceName, :Edition, :IsCdn, :LoadBalancerSet, :FlowMode, :State, :AlbType, :IpHeaders, :CdcClusters, :CloudType, :Note
|
1599
1614
|
|
1600
|
-
def initialize(domain=nil, domainid=nil, instanceid=nil, instancename=nil, edition=nil, iscdn=nil, loadbalancerset=nil, flowmode=nil, state=nil, albtype=nil, ipheaders=nil, cdcclusters=nil, cloudtype=nil)
|
1615
|
+
def initialize(domain=nil, domainid=nil, instanceid=nil, instancename=nil, edition=nil, iscdn=nil, loadbalancerset=nil, flowmode=nil, state=nil, albtype=nil, ipheaders=nil, cdcclusters=nil, cloudtype=nil, note=nil)
|
1601
1616
|
@Domain = domain
|
1602
1617
|
@DomainId = domainid
|
1603
1618
|
@InstanceId = instanceid
|
@@ -1611,6 +1626,7 @@ module TencentCloud
|
|
1611
1626
|
@IpHeaders = ipheaders
|
1612
1627
|
@CdcClusters = cdcclusters
|
1613
1628
|
@CloudType = cloudtype
|
1629
|
+
@Note = note
|
1614
1630
|
end
|
1615
1631
|
|
1616
1632
|
def deserialize(params)
|
@@ -1634,6 +1650,7 @@ module TencentCloud
|
|
1634
1650
|
@IpHeaders = params['IpHeaders']
|
1635
1651
|
@CdcClusters = params['CdcClusters']
|
1636
1652
|
@CloudType = params['CloudType']
|
1653
|
+
@Note = params['Note']
|
1637
1654
|
end
|
1638
1655
|
end
|
1639
1656
|
|
@@ -2348,7 +2365,7 @@ module TencentCloud
|
|
2348
2365
|
|
2349
2366
|
# DeleteHost返回参数结构体
|
2350
2367
|
class DeleteHostResponse < TencentCloud::Common::AbstractModel
|
2351
|
-
# @param Success:
|
2368
|
+
# @param Success: 域名删除结果。Code表示状态码,Message表示详细信息。
|
2352
2369
|
# @type Success: :class:`Tencentcloud::Waf.v20180125.models.ResponseCode`
|
2353
2370
|
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2354
2371
|
# @type RequestId: String
|
@@ -2381,15 +2398,18 @@ module TencentCloud
|
|
2381
2398
|
# @type DeleteAll: Boolean
|
2382
2399
|
# @param SourceType: 是否为多域名黑白名单
|
2383
2400
|
# @type SourceType: String
|
2401
|
+
# @param ActionType: IP黑白名单类型,40为IP白名单,42为IP黑名单
|
2402
|
+
# @type ActionType: Integer
|
2384
2403
|
|
2385
|
-
attr_accessor :Domain, :Items, :IsId, :DeleteAll, :SourceType
|
2404
|
+
attr_accessor :Domain, :Items, :IsId, :DeleteAll, :SourceType, :ActionType
|
2386
2405
|
|
2387
|
-
def initialize(domain=nil, items=nil, isid=nil, deleteall=nil, sourcetype=nil)
|
2406
|
+
def initialize(domain=nil, items=nil, isid=nil, deleteall=nil, sourcetype=nil, actiontype=nil)
|
2388
2407
|
@Domain = domain
|
2389
2408
|
@Items = items
|
2390
2409
|
@IsId = isid
|
2391
2410
|
@DeleteAll = deleteall
|
2392
2411
|
@SourceType = sourcetype
|
2412
|
+
@ActionType = actiontype
|
2393
2413
|
end
|
2394
2414
|
|
2395
2415
|
def deserialize(params)
|
@@ -2398,6 +2418,7 @@ module TencentCloud
|
|
2398
2418
|
@IsId = params['IsId']
|
2399
2419
|
@DeleteAll = params['DeleteAll']
|
2400
2420
|
@SourceType = params['SourceType']
|
2421
|
+
@ActionType = params['ActionType']
|
2401
2422
|
end
|
2402
2423
|
end
|
2403
2424
|
|
@@ -2478,7 +2499,7 @@ module TencentCloud
|
|
2478
2499
|
# @type Domains: Array
|
2479
2500
|
# @param Edition: 实例类型
|
2480
2501
|
# @type Edition: String
|
2481
|
-
# @param InstanceID:
|
2502
|
+
# @param InstanceID: 必填项。域名所属实例ID
|
2482
2503
|
# @type InstanceID: String
|
2483
2504
|
|
2484
2505
|
attr_accessor :Domains, :Edition, :InstanceID
|
@@ -3649,13 +3670,13 @@ module TencentCloud
|
|
3649
3670
|
class DescribeCertificateVerifyResultRequest < TencentCloud::Common::AbstractModel
|
3650
3671
|
# @param Domain: 域名
|
3651
3672
|
# @type Domain: String
|
3652
|
-
# @param CertType:
|
3673
|
+
# @param CertType: 证书类型。 0:仅配置HTTP监听端口,没有证书 1:证书来源为自有证书 2:证书来源为托管证书
|
3653
3674
|
# @type CertType: Integer
|
3654
|
-
# @param Certificate:
|
3675
|
+
# @param Certificate: CertType为1时,需要填充此参数,表示自有证书的证书链
|
3655
3676
|
# @type Certificate: String
|
3656
|
-
# @param CertID:
|
3677
|
+
# @param CertID: CertType为2时,需要填充此参数,表示腾讯云SSL平台托管的证书id
|
3657
3678
|
# @type CertID: String
|
3658
|
-
# @param PrivateKey:
|
3679
|
+
# @param PrivateKey: CertType为1时,需要填充此参数,表示自有证书的私钥
|
3659
3680
|
# @type PrivateKey: String
|
3660
3681
|
|
3661
3682
|
attr_accessor :Domain, :CertType, :Certificate, :CertID, :PrivateKey
|
@@ -3679,13 +3700,19 @@ module TencentCloud
|
|
3679
3700
|
|
3680
3701
|
# DescribeCertificateVerifyResult返回参数结构体
|
3681
3702
|
class DescribeCertificateVerifyResultResponse < TencentCloud::Common::AbstractModel
|
3682
|
-
# @param Status:
|
3703
|
+
# @param Status: 状态码。
|
3704
|
+
# 0:证书正常
|
3705
|
+
# 310:证书异常
|
3706
|
+
# 311:证书过期
|
3707
|
+
# 312:证书即将过期
|
3683
3708
|
# @type Status: Integer
|
3684
3709
|
# @param Detail: 错误详情
|
3685
3710
|
# @type Detail: Array
|
3686
3711
|
# @param NotAfter: 过期时间
|
3687
3712
|
# @type NotAfter: String
|
3688
|
-
# @param Changed:
|
3713
|
+
# @param Changed: 证书是否改变。
|
3714
|
+
# 0:未变化
|
3715
|
+
# 1:有变化
|
3689
3716
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
3690
3717
|
# @type Changed: Integer
|
3691
3718
|
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
@@ -5946,18 +5973,23 @@ module TencentCloud
|
|
5946
5973
|
# @type DenyTimeThreshold: Integer
|
5947
5974
|
# @param DefenseStatus: 自动封禁状态
|
5948
5975
|
# @type DefenseStatus: Integer
|
5976
|
+
# @param Source: 数据来源Source字段 custom-自定义(默认)、batch-domain-批量域名
|
5977
|
+
|
5978
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5979
|
+
# @type Source: String
|
5949
5980
|
# @param HWState: 重保护网域名状态
|
5950
5981
|
# @type HWState: Integer
|
5951
5982
|
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
5952
5983
|
# @type RequestId: String
|
5953
5984
|
|
5954
|
-
attr_accessor :AttackThreshold, :TimeThreshold, :DenyTimeThreshold, :DefenseStatus, :HWState, :RequestId
|
5985
|
+
attr_accessor :AttackThreshold, :TimeThreshold, :DenyTimeThreshold, :DefenseStatus, :Source, :HWState, :RequestId
|
5955
5986
|
|
5956
|
-
def initialize(attackthreshold=nil, timethreshold=nil, denytimethreshold=nil, defensestatus=nil, hwstate=nil, requestid=nil)
|
5987
|
+
def initialize(attackthreshold=nil, timethreshold=nil, denytimethreshold=nil, defensestatus=nil, source=nil, hwstate=nil, requestid=nil)
|
5957
5988
|
@AttackThreshold = attackthreshold
|
5958
5989
|
@TimeThreshold = timethreshold
|
5959
5990
|
@DenyTimeThreshold = denytimethreshold
|
5960
5991
|
@DefenseStatus = defensestatus
|
5992
|
+
@Source = source
|
5961
5993
|
@HWState = hwstate
|
5962
5994
|
@RequestId = requestid
|
5963
5995
|
end
|
@@ -5967,6 +5999,7 @@ module TencentCloud
|
|
5967
5999
|
@TimeThreshold = params['TimeThreshold']
|
5968
6000
|
@DenyTimeThreshold = params['DenyTimeThreshold']
|
5969
6001
|
@DefenseStatus = params['DefenseStatus']
|
6002
|
+
@Source = params['Source']
|
5970
6003
|
@HWState = params['HWState']
|
5971
6004
|
@RequestId = params['RequestId']
|
5972
6005
|
end
|
@@ -6144,68 +6177,157 @@ module TencentCloud
|
|
6144
6177
|
# @type InstanceId: String
|
6145
6178
|
# @param Cname: cname地址
|
6146
6179
|
# @type Cname: String
|
6147
|
-
# @param Edition:
|
6180
|
+
# @param Edition: 域名所属实例类型。
|
6181
|
+
# sparta-waf:SaaS型WAF实例
|
6182
|
+
# clb-waf:负载均衡型WAF实例
|
6183
|
+
# cdc-clb-waf:CDC环境下负载均衡型WAF实例
|
6148
6184
|
# @type Edition: String
|
6149
|
-
# @param Region:
|
6185
|
+
# @param Region: 地域。
|
6186
|
+
# "多伦多": "ca"
|
6187
|
+
# "广州": "gz"
|
6188
|
+
# "成都": "cd"
|
6189
|
+
# "福州": "fzec"
|
6190
|
+
# "深圳": "szx"
|
6191
|
+
# "印度": "in"
|
6192
|
+
# "济南": "jnec"
|
6193
|
+
# "重庆": "cq"
|
6194
|
+
# "天津": "tsn"
|
6195
|
+
# "欧洲东北": "ru"
|
6196
|
+
# "南京": "nj"
|
6197
|
+
# "美国硅谷": "usw"
|
6198
|
+
# "泰国": "th"
|
6199
|
+
# "广州Open": "gzopen"
|
6200
|
+
# "深圳金融": "szjr"
|
6201
|
+
# "法兰克福": "de"
|
6202
|
+
# "日本": "jp"
|
6203
|
+
# "弗吉尼亚": "use"
|
6204
|
+
# "北京": "bj"
|
6205
|
+
# "香港": "hk"
|
6206
|
+
# "杭州": "hzec"
|
6207
|
+
# "北京金融": "bjjr"
|
6208
|
+
# "上海金融": "shjr"
|
6209
|
+
# "台北": "tpe"
|
6210
|
+
# "首尔": "kr"
|
6211
|
+
# "上海": "sh"
|
6212
|
+
# "新加坡": "sg"
|
6213
|
+
# "清远": "qy"
|
6150
6214
|
# @type Region: String
|
6151
6215
|
# @param InstanceName: 实例名
|
6152
6216
|
# @type InstanceName: String
|
6153
|
-
# @param ClsStatus:
|
6217
|
+
# @param ClsStatus: 访问日志开关状态。
|
6218
|
+
# 0:关闭
|
6219
|
+
# 1:开启
|
6154
6220
|
# @type ClsStatus: Integer
|
6155
|
-
# @param FlowMode:
|
6221
|
+
# @param FlowMode: 负载均衡型WAF使用模式。
|
6222
|
+
# 0:镜像模式
|
6223
|
+
# 1:清洗模式
|
6156
6224
|
# @type FlowMode: Integer
|
6157
|
-
# @param Status: waf
|
6225
|
+
# @param Status: waf开关状态。
|
6226
|
+
# 0:关闭
|
6227
|
+
# 1:开启
|
6158
6228
|
# @type Status: Integer
|
6159
|
-
# @param Mode:
|
6229
|
+
# @param Mode: 规则引擎防护模式。
|
6230
|
+
# 0:观察模式
|
6231
|
+
# 1:拦截模式
|
6160
6232
|
# @type Mode: Integer
|
6161
|
-
# @param Engine: 规则引擎和AI
|
6233
|
+
# @param Engine: 规则引擎和AI引擎防护模式联合状态。
|
6234
|
+
# 1:初始状态,规则引擎拦截&&AI引擎未操作开关状态
|
6235
|
+
# 10:规则引擎观察&&AI引擎关闭模式
|
6236
|
+
# 11:规则引擎观察&&AI引擎观察模式
|
6237
|
+
# 12:规则引擎观察&&AI引擎拦截模式
|
6238
|
+
# 20:规则引擎拦截&&AI引擎关闭模式
|
6239
|
+
# 21:规则引擎拦截&&AI引擎观察模式
|
6240
|
+
# 22:规则引擎拦截&&AI引擎拦截模式
|
6162
6241
|
# @type Engine: Integer
|
6163
|
-
# @param CCList:
|
6242
|
+
# @param CCList: 沙箱集群回源出口IP列表
|
6164
6243
|
# @type CCList: Array
|
6165
|
-
# @param RsList:
|
6244
|
+
# @param RsList: 生产集群回源出口IP列表
|
6166
6245
|
# @type RsList: Array
|
6167
6246
|
# @param Ports: 服务端口配置
|
6168
6247
|
# @type Ports: Array
|
6169
|
-
# @param LoadBalancerSet:
|
6248
|
+
# @param LoadBalancerSet: 负载均衡器相关配置
|
6170
6249
|
# @type LoadBalancerSet: Array
|
6171
6250
|
# @param AppId: 用户id
|
6172
6251
|
# @type AppId: Integer
|
6173
|
-
# @param State:
|
6252
|
+
# @param State: 负载均衡型WAF域名LB监听器状态。
|
6253
|
+
# 0:操作成功
|
6254
|
+
# 4:正在绑定LB
|
6255
|
+
# 6:正在解绑LB
|
6256
|
+
# 7:解绑LB失败
|
6257
|
+
# 8:绑定LB失败
|
6258
|
+
# 10:内部错误
|
6174
6259
|
# @type State: Integer
|
6175
6260
|
# @param CreateTime: 创建时间
|
6176
6261
|
# @type CreateTime: String
|
6177
|
-
# @param Ipv6Status: Ipv6
|
6262
|
+
# @param Ipv6Status: Ipv6开关状态。
|
6263
|
+
# 0:关闭
|
6264
|
+
# 1:开启
|
6178
6265
|
# @type Ipv6Status: Integer
|
6179
|
-
# @param BotStatus: BOT
|
6266
|
+
# @param BotStatus: BOT开关状态。
|
6267
|
+
# 0:关闭
|
6268
|
+
# 1:关闭
|
6269
|
+
# 2:开启
|
6270
|
+
# 3:开启
|
6180
6271
|
# @type BotStatus: Integer
|
6181
|
-
# @param Level:
|
6272
|
+
# @param Level: 实例版本信息。
|
6273
|
+
# 101:小微敏捷版
|
6274
|
+
# 102:小微超轻版
|
6275
|
+
# 2:高级版
|
6276
|
+
# 3:企业版
|
6277
|
+
# 4:旗舰版
|
6278
|
+
# 6:独享版
|
6182
6279
|
# @type Level: Integer
|
6183
|
-
# @param PostCLSStatus:
|
6280
|
+
# @param PostCLSStatus: 投递CLS状态。
|
6281
|
+
# 0:关闭
|
6282
|
+
# 1:开启
|
6184
6283
|
# @type PostCLSStatus: Integer
|
6185
|
-
# @param PostCKafkaStatus:
|
6284
|
+
# @param PostCKafkaStatus: 投递CKafka状态。
|
6285
|
+
# 0:关闭
|
6286
|
+
# 1:开启
|
6186
6287
|
# @type PostCKafkaStatus: Integer
|
6187
|
-
# @param CdcClusters: cdc实例域名接入的集群信息,非cdc
|
6288
|
+
# @param CdcClusters: cdc实例域名接入的集群信息,非cdc实例忽略。
|
6188
6289
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
6189
6290
|
# @type CdcClusters: String
|
6190
|
-
# @param ApiStatus: api
|
6291
|
+
# @param ApiStatus: api安全开关状态。
|
6292
|
+
# 0:关闭
|
6293
|
+
# 1:开启
|
6191
6294
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
6192
6295
|
# @type ApiStatus: Integer
|
6193
|
-
# @param AlbType:
|
6296
|
+
# @param AlbType: 应用型负载均衡类型,默认clb。
|
6297
|
+
# clb:七层负载均衡器类型
|
6298
|
+
# apisix:apisix网关型
|
6194
6299
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
6195
6300
|
# @type AlbType: String
|
6196
|
-
# @param SgState:
|
6301
|
+
# @param SgState: 安全组状态。
|
6302
|
+
# 0:不展示
|
6303
|
+
# 1:非腾讯云源站
|
6304
|
+
# 2:安全组绑定失败
|
6305
|
+
# 3:安全组发生变更
|
6197
6306
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
6198
6307
|
# @type SgState: Integer
|
6199
6308
|
# @param SgDetail: 安全组状态的详细解释
|
6200
6309
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
6201
6310
|
# @type SgDetail: String
|
6202
|
-
# @param CloudType:
|
6311
|
+
# @param CloudType: 域名云环境。hybrid:混合云域名
|
6312
|
+
# public:公有云域名
|
6203
6313
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
6204
6314
|
# @type CloudType: String
|
6315
|
+
# @param Note: 域名备注信息
|
6316
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
6317
|
+
# @type Note: String
|
6318
|
+
# @param SrcList: SAASWAF源站IP列表
|
6319
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
6320
|
+
# @type SrcList: Array
|
6321
|
+
# @param UpstreamDomainList: SAASWAF源站域名列表
|
6322
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
6323
|
+
# @type UpstreamDomainList: Array
|
6324
|
+
# @param SgID: 安全组ID
|
6325
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
6326
|
+
# @type SgID: String
|
6205
6327
|
|
6206
|
-
attr_accessor :Domain, :DomainId, :InstanceId, :Cname, :Edition, :Region, :InstanceName, :ClsStatus, :FlowMode, :Status, :Mode, :Engine, :CCList, :RsList, :Ports, :LoadBalancerSet, :AppId, :State, :CreateTime, :Ipv6Status, :BotStatus, :Level, :PostCLSStatus, :PostCKafkaStatus, :CdcClusters, :ApiStatus, :AlbType, :SgState, :SgDetail, :CloudType
|
6328
|
+
attr_accessor :Domain, :DomainId, :InstanceId, :Cname, :Edition, :Region, :InstanceName, :ClsStatus, :FlowMode, :Status, :Mode, :Engine, :CCList, :RsList, :Ports, :LoadBalancerSet, :AppId, :State, :CreateTime, :Ipv6Status, :BotStatus, :Level, :PostCLSStatus, :PostCKafkaStatus, :CdcClusters, :ApiStatus, :AlbType, :SgState, :SgDetail, :CloudType, :Note, :SrcList, :UpstreamDomainList, :SgID
|
6207
6329
|
|
6208
|
-
def initialize(domain=nil, domainid=nil, instanceid=nil, cname=nil, edition=nil, region=nil, instancename=nil, clsstatus=nil, flowmode=nil, status=nil, mode=nil, engine=nil, cclist=nil, rslist=nil, ports=nil, loadbalancerset=nil, appid=nil, state=nil, createtime=nil, ipv6status=nil, botstatus=nil, level=nil, postclsstatus=nil, postckafkastatus=nil, cdcclusters=nil, apistatus=nil, albtype=nil, sgstate=nil, sgdetail=nil, cloudtype=nil)
|
6330
|
+
def initialize(domain=nil, domainid=nil, instanceid=nil, cname=nil, edition=nil, region=nil, instancename=nil, clsstatus=nil, flowmode=nil, status=nil, mode=nil, engine=nil, cclist=nil, rslist=nil, ports=nil, loadbalancerset=nil, appid=nil, state=nil, createtime=nil, ipv6status=nil, botstatus=nil, level=nil, postclsstatus=nil, postckafkastatus=nil, cdcclusters=nil, apistatus=nil, albtype=nil, sgstate=nil, sgdetail=nil, cloudtype=nil, note=nil, srclist=nil, upstreamdomainlist=nil, sgid=nil)
|
6209
6331
|
@Domain = domain
|
6210
6332
|
@DomainId = domainid
|
6211
6333
|
@InstanceId = instanceid
|
@@ -6236,6 +6358,10 @@ module TencentCloud
|
|
6236
6358
|
@SgState = sgstate
|
6237
6359
|
@SgDetail = sgdetail
|
6238
6360
|
@CloudType = cloudtype
|
6361
|
+
@Note = note
|
6362
|
+
@SrcList = srclist
|
6363
|
+
@UpstreamDomainList = upstreamdomainlist
|
6364
|
+
@SgID = sgid
|
6239
6365
|
end
|
6240
6366
|
|
6241
6367
|
def deserialize(params)
|
@@ -6283,6 +6409,10 @@ module TencentCloud
|
|
6283
6409
|
@SgState = params['SgState']
|
6284
6410
|
@SgDetail = params['SgDetail']
|
6285
6411
|
@CloudType = params['CloudType']
|
6412
|
+
@Note = params['Note']
|
6413
|
+
@SrcList = params['SrcList']
|
6414
|
+
@UpstreamDomainList = params['UpstreamDomainList']
|
6415
|
+
@SgID = params['SgID']
|
6286
6416
|
end
|
6287
6417
|
end
|
6288
6418
|
|
@@ -6348,99 +6478,153 @@ module TencentCloud
|
|
6348
6478
|
end
|
6349
6479
|
end
|
6350
6480
|
|
6351
|
-
#
|
6481
|
+
# SaaS型WAF域名详情
|
6352
6482
|
class DomainsPartInfo < TencentCloud::Common::AbstractModel
|
6353
6483
|
# @param Domain: 域名
|
6354
6484
|
# @type Domain: String
|
6355
|
-
# @param DomainId:
|
6485
|
+
# @param DomainId: 域名唯一ID
|
6356
6486
|
# @type DomainId: String
|
6357
|
-
# @param InstanceId:
|
6487
|
+
# @param InstanceId: 域名所属实例唯一ID
|
6358
6488
|
# @type InstanceId: String
|
6359
|
-
# @param Edition:
|
6489
|
+
# @param Edition: 域名所属实例类型
|
6360
6490
|
# @type Edition: String
|
6361
|
-
# @param InstanceName:
|
6491
|
+
# @param InstanceName: 域名所属实例名
|
6362
6492
|
# @type InstanceName: String
|
6363
6493
|
# @param Cert: 证书
|
6364
6494
|
# @type Cert: String
|
6365
6495
|
# @param CreateTime: 创建时间
|
6366
6496
|
# @type CreateTime: String
|
6367
|
-
# @param Engine: AI
|
6497
|
+
# @param Engine: 规则引擎和AI引擎防护模式联合状态。
|
6498
|
+
# 1:初始状态,规则引擎拦截&&AI引擎未操作开关状态
|
6499
|
+
# 10:规则引擎观察&&AI引擎关闭模式
|
6500
|
+
# 11:规则引擎观察&&AI引擎观察模式
|
6501
|
+
# 12:规则引擎观察&&AI引擎拦截模式
|
6502
|
+
# 20:规则引擎拦截&&AI引擎关闭模式
|
6503
|
+
# 21:规则引擎拦截&&AI引擎观察模式
|
6504
|
+
# 22:规则引擎拦截&&AI引擎拦截模式
|
6368
6505
|
# @type Engine: Integer
|
6369
|
-
# @param HttpsRewrite: 是否开启
|
6506
|
+
# @param HttpsRewrite: 是否开启HTTP强制跳转到HTTPS。
|
6507
|
+
# 0:不强制跳转
|
6508
|
+
# 1:开启强制跳转
|
6370
6509
|
# @type HttpsRewrite: Integer
|
6371
|
-
# @param HttpsUpstreamPort:
|
6510
|
+
# @param HttpsUpstreamPort: HTTPS回源端口
|
6372
6511
|
# @type HttpsUpstreamPort: String
|
6373
|
-
# @param IsCdn:
|
6512
|
+
# @param IsCdn: waf前是否部署有七层代理服务。
|
6513
|
+
# 0:没有部署代理服务
|
6514
|
+
# 1:有部署代理服务,waf将使用XFF获取客户端IP
|
6515
|
+
# 2:有部署代理服务,waf将使用remote_addr获取客户端IP
|
6516
|
+
# 3:有部署代理服务,waf将使用ip_headers中的自定义header获取客户端IP
|
6374
6517
|
# @type IsCdn: Integer
|
6375
|
-
# @param IsGray:
|
6518
|
+
# @param IsGray: 是否开启灰度,已废弃。
|
6376
6519
|
# @type IsGray: Integer
|
6377
|
-
# @param IsHttp2:
|
6520
|
+
# @param IsHttp2: 是否开启HTTP2,需要开启HTTPS协议支持。
|
6521
|
+
# 0:关闭
|
6522
|
+
# 1:开启
|
6378
6523
|
# @type IsHttp2: Integer
|
6379
|
-
# @param IsWebsocket: 是否开启
|
6524
|
+
# @param IsWebsocket: 是否开启WebSocket支持。
|
6525
|
+
# 0:关闭
|
6526
|
+
# 1:开启
|
6380
6527
|
# @type IsWebsocket: Integer
|
6381
|
-
# @param LoadBalance:
|
6528
|
+
# @param LoadBalance: 回源负载均衡策略。
|
6529
|
+
# 0:轮询
|
6530
|
+
# 1:IP hash
|
6531
|
+
# 2:加权轮询
|
6382
6532
|
# @type LoadBalance: Integer
|
6383
|
-
# @param Mode:
|
6533
|
+
# @param Mode: 防护模式。
|
6534
|
+
# 0:观察模式
|
6535
|
+
# 1:拦截模式
|
6384
6536
|
# @type Mode: Integer
|
6385
|
-
# @param PrivateKey:
|
6537
|
+
# @param PrivateKey: 自有证书的私钥
|
6386
6538
|
# @type PrivateKey: String
|
6387
|
-
# @param SSLId:
|
6539
|
+
# @param SSLId: CertType为2时,需要填充此参数,表示腾讯云SSL平台托管的证书id
|
6388
6540
|
# @type SSLId: String
|
6389
|
-
# @param UpstreamDomain:
|
6541
|
+
# @param UpstreamDomain: 域名回源时的回源域名。UpstreamType为1时,需要填充此字段
|
6390
6542
|
# @type UpstreamDomain: String
|
6391
|
-
# @param UpstreamType:
|
6543
|
+
# @param UpstreamType: 回源类型。
|
6544
|
+
# 0:通过IP回源
|
6545
|
+
# 1:通过域名回源
|
6392
6546
|
# @type UpstreamType: Integer
|
6393
|
-
# @param SrcList:
|
6547
|
+
# @param SrcList: IP回源时的回源IP列表。UpstreamType为0时,需要填充此字段
|
6394
6548
|
# @type SrcList: Array
|
6395
|
-
# @param Ports:
|
6549
|
+
# @param Ports: 域名端口配置
|
6396
6550
|
# @type Ports: Array
|
6397
|
-
# @param CertType:
|
6551
|
+
# @param CertType: 证书类型。
|
6552
|
+
# 0:仅配置HTTP监听端口,没有证书
|
6553
|
+
# 1:证书来源为自有证书
|
6554
|
+
# 2:证书来源为托管证书
|
6398
6555
|
# @type CertType: Integer
|
6399
|
-
# @param UpstreamScheme:
|
6556
|
+
# @param UpstreamScheme: 服务配置有HTTPS端口时,HTTPS的回源协议。
|
6557
|
+
# http:使用http协议回源,和HttpsUpstreamPort配合使用
|
6558
|
+
# https:使用https协议回源
|
6400
6559
|
# @type UpstreamScheme: String
|
6401
|
-
# @param Cls:
|
6560
|
+
# @param Cls: 日志包是否开启。
|
6561
|
+
# 0:关闭
|
6562
|
+
# 1:开启
|
6402
6563
|
# @type Cls: Integer
|
6403
|
-
# @param Cname:
|
6564
|
+
# @param Cname: 接入Cname,SaaS型域名使用此Cname进行接入
|
6404
6565
|
# @type Cname: String
|
6405
|
-
# @param IsKeepAlive:
|
6566
|
+
# @param IsKeepAlive: 是否开启长连接。
|
6567
|
+
# 0: 短连接
|
6568
|
+
# 1: 长连接
|
6406
6569
|
# @type IsKeepAlive: Integer
|
6407
|
-
# @param ActiveCheck:
|
6570
|
+
# @param ActiveCheck: 是否开启主动健康检测。
|
6571
|
+
# 0:不开启
|
6572
|
+
# 1:开启
|
6408
6573
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
6409
6574
|
# @type ActiveCheck: Integer
|
6410
6575
|
# @param TLSVersion: TLS版本信息
|
6411
6576
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
6412
6577
|
# @type TLSVersion: Integer
|
6413
|
-
# @param Ciphers:
|
6578
|
+
# @param Ciphers: 自定义的加密套件列表。CipherTemplate为3时需要填此字段,表示自定义的加密套件,值通过DescribeCiphersDetail接口获取。
|
6414
6579
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
6415
6580
|
# @type Ciphers: Array
|
6416
|
-
# @param CipherTemplate:
|
6581
|
+
# @param CipherTemplate: 加密套件模板。
|
6582
|
+
# 0:不支持选择,使用默认模板
|
6583
|
+
# 1:通用型模板
|
6584
|
+
# 2:安全型模板
|
6585
|
+
# 3:自定义模板
|
6417
6586
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
6418
6587
|
# @type CipherTemplate: Integer
|
6419
|
-
# @param ProxyReadTimeout: 300s
|
6588
|
+
# @param ProxyReadTimeout: WAF与源站的读超时时间,默认300s。
|
6420
6589
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
6421
6590
|
# @type ProxyReadTimeout: Integer
|
6422
|
-
# @param ProxySendTimeout: 300s
|
6591
|
+
# @param ProxySendTimeout: WAF与源站的写超时时间,默认300s。
|
6423
6592
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
6424
6593
|
# @type ProxySendTimeout: Integer
|
6425
|
-
# @param SniType:
|
6594
|
+
# @param SniType: WAF回源时的SNI类型。
|
6595
|
+
# 0:关闭SNI,不配置client_hello中的server_name
|
6596
|
+
# 1:开启SNI,client_hello中的server_name为防护域名
|
6597
|
+
# 2:开启SNI,SNI为域名回源时的源站域名
|
6598
|
+
# 3:开启SNI,SNI为自定义域名
|
6426
6599
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
6427
6600
|
# @type SniType: Integer
|
6428
|
-
# @param SniHost: SniType
|
6601
|
+
# @param SniHost: SniType为3时,需要填此参数,表示自定义的SNI;
|
6429
6602
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
6430
6603
|
# @type SniHost: String
|
6431
|
-
# @param Weights:
|
6604
|
+
# @param Weights: 回源IP权重
|
6432
6605
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
6433
6606
|
# @type Weights: Array
|
6434
6607
|
# @param IpHeaders: IsCdn=3时,表示自定义header
|
6435
6608
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
6436
6609
|
# @type IpHeaders: Array
|
6437
|
-
# @param XFFReset:
|
6610
|
+
# @param XFFReset: 是否开启XFF重置。
|
6611
|
+
# 0:关闭
|
6612
|
+
# 1:开启
|
6438
6613
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
6439
6614
|
# @type XFFReset: Integer
|
6615
|
+
# @param Note: 域名备注信息
|
6616
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
6617
|
+
# @type Note: String
|
6618
|
+
# @param UpstreamHost: 自定义回源Host。默认为空字符串,表示使用防护域名作为回源Host。
|
6619
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
6620
|
+
# @type UpstreamHost: String
|
6621
|
+
# @param Level: 防护规则
|
6622
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
6623
|
+
# @type Level: String
|
6440
6624
|
|
6441
|
-
attr_accessor :Domain, :DomainId, :InstanceId, :Edition, :InstanceName, :Cert, :CreateTime, :Engine, :HttpsRewrite, :HttpsUpstreamPort, :IsCdn, :IsGray, :IsHttp2, :IsWebsocket, :LoadBalance, :Mode, :PrivateKey, :SSLId, :UpstreamDomain, :UpstreamType, :SrcList, :Ports, :CertType, :UpstreamScheme, :Cls, :Cname, :IsKeepAlive, :ActiveCheck, :TLSVersion, :Ciphers, :CipherTemplate, :ProxyReadTimeout, :ProxySendTimeout, :SniType, :SniHost, :Weights, :IpHeaders, :XFFReset
|
6625
|
+
attr_accessor :Domain, :DomainId, :InstanceId, :Edition, :InstanceName, :Cert, :CreateTime, :Engine, :HttpsRewrite, :HttpsUpstreamPort, :IsCdn, :IsGray, :IsHttp2, :IsWebsocket, :LoadBalance, :Mode, :PrivateKey, :SSLId, :UpstreamDomain, :UpstreamType, :SrcList, :Ports, :CertType, :UpstreamScheme, :Cls, :Cname, :IsKeepAlive, :ActiveCheck, :TLSVersion, :Ciphers, :CipherTemplate, :ProxyReadTimeout, :ProxySendTimeout, :SniType, :SniHost, :Weights, :IpHeaders, :XFFReset, :Note, :UpstreamHost, :Level
|
6442
6626
|
|
6443
|
-
def initialize(domain=nil, domainid=nil, instanceid=nil, edition=nil, instancename=nil, cert=nil, createtime=nil, engine=nil, httpsrewrite=nil, httpsupstreamport=nil, iscdn=nil, isgray=nil, ishttp2=nil, iswebsocket=nil, loadbalance=nil, mode=nil, privatekey=nil, sslid=nil, upstreamdomain=nil, upstreamtype=nil, srclist=nil, ports=nil, certtype=nil, upstreamscheme=nil, cls=nil, cname=nil, iskeepalive=nil, activecheck=nil, tlsversion=nil, ciphers=nil, ciphertemplate=nil, proxyreadtimeout=nil, proxysendtimeout=nil, snitype=nil, snihost=nil, weights=nil, ipheaders=nil, xffreset=nil)
|
6627
|
+
def initialize(domain=nil, domainid=nil, instanceid=nil, edition=nil, instancename=nil, cert=nil, createtime=nil, engine=nil, httpsrewrite=nil, httpsupstreamport=nil, iscdn=nil, isgray=nil, ishttp2=nil, iswebsocket=nil, loadbalance=nil, mode=nil, privatekey=nil, sslid=nil, upstreamdomain=nil, upstreamtype=nil, srclist=nil, ports=nil, certtype=nil, upstreamscheme=nil, cls=nil, cname=nil, iskeepalive=nil, activecheck=nil, tlsversion=nil, ciphers=nil, ciphertemplate=nil, proxyreadtimeout=nil, proxysendtimeout=nil, snitype=nil, snihost=nil, weights=nil, ipheaders=nil, xffreset=nil, note=nil, upstreamhost=nil, level=nil)
|
6444
6628
|
@Domain = domain
|
6445
6629
|
@DomainId = domainid
|
6446
6630
|
@InstanceId = instanceid
|
@@ -6479,6 +6663,9 @@ module TencentCloud
|
|
6479
6663
|
@Weights = weights
|
6480
6664
|
@IpHeaders = ipheaders
|
6481
6665
|
@XFFReset = xffreset
|
6666
|
+
@Note = note
|
6667
|
+
@UpstreamHost = upstreamhost
|
6668
|
+
@Level = level
|
6482
6669
|
end
|
6483
6670
|
|
6484
6671
|
def deserialize(params)
|
@@ -6527,6 +6714,9 @@ module TencentCloud
|
|
6527
6714
|
@Weights = params['Weights']
|
6528
6715
|
@IpHeaders = params['IpHeaders']
|
6529
6716
|
@XFFReset = params['XFFReset']
|
6717
|
+
@Note = params['Note']
|
6718
|
+
@UpstreamHost = params['UpstreamHost']
|
6719
|
+
@Level = params['Level']
|
6530
6720
|
end
|
6531
6721
|
end
|
6532
6722
|
|
@@ -7391,56 +7581,87 @@ module TencentCloud
|
|
7391
7581
|
end
|
7392
7582
|
end
|
7393
7583
|
|
7394
|
-
#
|
7584
|
+
# 负载均衡型WAF域名信息
|
7395
7585
|
class HostRecord < TencentCloud::Common::AbstractModel
|
7396
7586
|
# @param Domain: 域名
|
7397
7587
|
# @type Domain: String
|
7398
|
-
# @param DomainId:
|
7588
|
+
# @param DomainId: 域名唯一ID
|
7399
7589
|
# @type DomainId: String
|
7400
7590
|
# @param MainDomain: 主域名,入参时为空
|
7401
7591
|
# @type MainDomain: String
|
7402
|
-
# @param Mode:
|
7592
|
+
# @param Mode: 规则引擎防护模式。
|
7593
|
+
# 0:观察模式
|
7594
|
+
# 1:拦截模式
|
7403
7595
|
# @type Mode: Integer
|
7404
|
-
# @param Status: waf
|
7596
|
+
# @param Status: waf和负载均衡器的绑定关系。
|
7597
|
+
# 0:未绑定
|
7598
|
+
# 1:已绑定
|
7405
7599
|
# @type Status: Integer
|
7406
|
-
# @param State:
|
7600
|
+
# @param State: clbwaf域名监听器状态。
|
7601
|
+
# 0:操作成功
|
7602
|
+
# 4:正在绑定LB
|
7603
|
+
# 6:正在解绑LB
|
7604
|
+
# 7:解绑LB失败
|
7605
|
+
# 8:绑定LB失败
|
7606
|
+
# 10:内部错误
|
7407
7607
|
# @type State: Integer
|
7408
|
-
# @param Engine: 规则引擎和AI
|
7608
|
+
# @param Engine: 规则引擎和AI引擎防护模式联合状态。
|
7609
|
+
# 1:初始状态,规则引擎拦截&&AI引擎未操作开关状态
|
7610
|
+
# 10:规则引擎观察&&AI引擎关闭模式
|
7611
|
+
# 11:规则引擎观察&&AI引擎观察模式
|
7612
|
+
# 12:规则引擎观察&&AI引擎拦截模式
|
7613
|
+
# 20:规则引擎拦截&&AI引擎关闭模式
|
7614
|
+
# 21:规则引擎拦截&&AI引擎观察模式
|
7615
|
+
# 22:规则引擎拦截&&AI引擎拦截模式
|
7409
7616
|
# @type Engine: Integer
|
7410
|
-
# @param IsCdn:
|
7617
|
+
# @param IsCdn: waf前是否部署有七层代理服务。 0:没有部署代理服务 1:有部署代理服务,waf将使用XFF获取客户端IP 2:有部署代理服务,waf将使用remote_addr获取客户端IP 3:有部署代理服务,waf将使用ip_headers中的自定义header获取客户端IP
|
7411
7618
|
# @type IsCdn: Integer
|
7412
|
-
# @param LoadBalancerSet:
|
7619
|
+
# @param LoadBalancerSet: 绑定的负载均衡器信息列表
|
7413
7620
|
# @type LoadBalancerSet: Array
|
7414
|
-
# @param Region: 域名绑定的LB
|
7621
|
+
# @param Region: 域名绑定的LB的地域,以逗号分割多个地域
|
7415
7622
|
# @type Region: String
|
7416
|
-
# @param Edition:
|
7623
|
+
# @param Edition: 域名所属实例类型。负载均衡型WAF为"clb-waf"
|
7417
7624
|
# @type Edition: String
|
7418
|
-
# @param FlowMode: WAF
|
7625
|
+
# @param FlowMode: 负载均衡型WAF域名的流量模式。
|
7626
|
+
# 1:清洗模式
|
7627
|
+
# 0:镜像模式
|
7419
7628
|
# @type FlowMode: Integer
|
7420
|
-
# @param ClsStatus:
|
7629
|
+
# @param ClsStatus: 是否开启访问日志。
|
7630
|
+
# 1:开启
|
7631
|
+
# 0:关闭
|
7421
7632
|
# @type ClsStatus: Integer
|
7422
7633
|
# @param Level: 防护等级,可选值100,200,300
|
7423
7634
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
7424
7635
|
# @type Level: Integer
|
7425
|
-
# @param CdcClusters: 域名需要下发到的cdc
|
7636
|
+
# @param CdcClusters: 域名需要下发到的cdc集群列表。仅CDC场景下填充
|
7426
7637
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
7427
7638
|
# @type CdcClusters: Array
|
7428
|
-
# @param AlbType:
|
7639
|
+
# @param AlbType: 应用型负载均衡类型,默认clb。
|
7640
|
+
# clb:七层负载均衡器类型
|
7641
|
+
# apisix:apisix网关型
|
7429
7642
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
7430
7643
|
# @type AlbType: String
|
7431
7644
|
# @param IpHeaders: IsCdn=3时,需要填此参数,表示自定义header
|
7432
7645
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
7433
7646
|
# @type IpHeaders: Array
|
7434
|
-
# @param EngineType:
|
7647
|
+
# @param EngineType: 规则引擎类型。
|
7648
|
+
# 1: menshen
|
7649
|
+
# 2: tiga
|
7435
7650
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
7436
7651
|
# @type EngineType: Integer
|
7437
|
-
# @param CloudType:
|
7652
|
+
# @param CloudType: 云类型。
|
7653
|
+
# public:公有云
|
7654
|
+
# private:私有云
|
7655
|
+
# hybrid:混合云
|
7438
7656
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
7439
7657
|
# @type CloudType: String
|
7658
|
+
# @param Note: 域名备注信息
|
7659
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
7660
|
+
# @type Note: String
|
7440
7661
|
|
7441
|
-
attr_accessor :Domain, :DomainId, :MainDomain, :Mode, :Status, :State, :Engine, :IsCdn, :LoadBalancerSet, :Region, :Edition, :FlowMode, :ClsStatus, :Level, :CdcClusters, :AlbType, :IpHeaders, :EngineType, :CloudType
|
7662
|
+
attr_accessor :Domain, :DomainId, :MainDomain, :Mode, :Status, :State, :Engine, :IsCdn, :LoadBalancerSet, :Region, :Edition, :FlowMode, :ClsStatus, :Level, :CdcClusters, :AlbType, :IpHeaders, :EngineType, :CloudType, :Note
|
7442
7663
|
|
7443
|
-
def initialize(domain=nil, domainid=nil, maindomain=nil, mode=nil, status=nil, state=nil, engine=nil, iscdn=nil, loadbalancerset=nil, region=nil, edition=nil, flowmode=nil, clsstatus=nil, level=nil, cdcclusters=nil, albtype=nil, ipheaders=nil, enginetype=nil, cloudtype=nil)
|
7664
|
+
def initialize(domain=nil, domainid=nil, maindomain=nil, mode=nil, status=nil, state=nil, engine=nil, iscdn=nil, loadbalancerset=nil, region=nil, edition=nil, flowmode=nil, clsstatus=nil, level=nil, cdcclusters=nil, albtype=nil, ipheaders=nil, enginetype=nil, cloudtype=nil, note=nil)
|
7444
7665
|
@Domain = domain
|
7445
7666
|
@DomainId = domainid
|
7446
7667
|
@MainDomain = maindomain
|
@@ -7460,6 +7681,7 @@ module TencentCloud
|
|
7460
7681
|
@IpHeaders = ipheaders
|
7461
7682
|
@EngineType = enginetype
|
7462
7683
|
@CloudType = cloudtype
|
7684
|
+
@Note = note
|
7463
7685
|
end
|
7464
7686
|
|
7465
7687
|
def deserialize(params)
|
@@ -7489,6 +7711,7 @@ module TencentCloud
|
|
7489
7711
|
@IpHeaders = params['IpHeaders']
|
7490
7712
|
@EngineType = params['EngineType']
|
7491
7713
|
@CloudType = params['CloudType']
|
7714
|
+
@Note = params['Note']
|
7492
7715
|
end
|
7493
7716
|
end
|
7494
7717
|
|
@@ -8030,6 +8253,34 @@ module TencentCloud
|
|
8030
8253
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
8031
8254
|
# @type Protocol: String
|
8032
8255
|
# @param Region: 地区
|
8256
|
+
# "多伦多": "ca",
|
8257
|
+
# "广州": "gz",
|
8258
|
+
# "成都": "cd",
|
8259
|
+
# "福州": "fzec",
|
8260
|
+
# "深圳": "szx",
|
8261
|
+
# "印度": "in",
|
8262
|
+
# "济南": "jnec",
|
8263
|
+
# "重庆": "cq",
|
8264
|
+
# "天津": "tsn",
|
8265
|
+
# "欧洲东北": "ru",
|
8266
|
+
# "南京": "nj",
|
8267
|
+
# "美国硅谷": "usw",
|
8268
|
+
# "泰国": "th",
|
8269
|
+
# "广州Open": "gzopen",
|
8270
|
+
# "深圳金融": "szjr",
|
8271
|
+
# "法兰克福": "de",
|
8272
|
+
# "日本": "jp",
|
8273
|
+
# "弗吉尼亚": "use",
|
8274
|
+
# "北京": "bj",
|
8275
|
+
# "香港": "hk",
|
8276
|
+
# "杭州": "hzec",
|
8277
|
+
# "北京金融": "bjjr",
|
8278
|
+
# "上海金融": "shjr",
|
8279
|
+
# "台北": "tpe",
|
8280
|
+
# "首尔": "kr",
|
8281
|
+
# "上海": "sh",
|
8282
|
+
# "新加坡": "sg",
|
8283
|
+
# "清远": "qy"
|
8033
8284
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
8034
8285
|
# @type Region: String
|
8035
8286
|
# @param Vip: 接入IP
|
@@ -8545,27 +8796,29 @@ module TencentCloud
|
|
8545
8796
|
# @type RuleId: Integer
|
8546
8797
|
# @param Domain: 域名
|
8547
8798
|
# @type Domain: String
|
8548
|
-
# @param SignatureId: 规则Id
|
8549
|
-
# @type SignatureId: String
|
8550
8799
|
# @param Status: 规则状态
|
8551
8800
|
# @type Status: Integer
|
8552
8801
|
# @param Rules: 匹配规则项列表
|
8553
8802
|
# @type Rules: Array
|
8803
|
+
# @param SignatureId: 规则Id
|
8804
|
+
# @type SignatureId: String
|
8805
|
+
# @param SignatureIds: 编辑的加白的规则ID列表
|
8806
|
+
# @type SignatureIds: Array
|
8554
8807
|
|
8555
|
-
attr_accessor :RuleId, :Domain, :
|
8808
|
+
attr_accessor :RuleId, :Domain, :Status, :Rules, :SignatureId, :SignatureIds
|
8556
8809
|
|
8557
|
-
def initialize(ruleid=nil, domain=nil,
|
8810
|
+
def initialize(ruleid=nil, domain=nil, status=nil, rules=nil, signatureid=nil, signatureids=nil)
|
8558
8811
|
@RuleId = ruleid
|
8559
8812
|
@Domain = domain
|
8560
|
-
@SignatureId = signatureid
|
8561
8813
|
@Status = status
|
8562
8814
|
@Rules = rules
|
8815
|
+
@SignatureId = signatureid
|
8816
|
+
@SignatureIds = signatureids
|
8563
8817
|
end
|
8564
8818
|
|
8565
8819
|
def deserialize(params)
|
8566
8820
|
@RuleId = params['RuleId']
|
8567
8821
|
@Domain = params['Domain']
|
8568
|
-
@SignatureId = params['SignatureId']
|
8569
8822
|
@Status = params['Status']
|
8570
8823
|
unless params['Rules'].nil?
|
8571
8824
|
@Rules = []
|
@@ -8575,6 +8828,8 @@ module TencentCloud
|
|
8575
8828
|
@Rules << userwhiteruleitem_tmp
|
8576
8829
|
end
|
8577
8830
|
end
|
8831
|
+
@SignatureId = params['SignatureId']
|
8832
|
+
@SignatureIds = params['SignatureIds']
|
8578
8833
|
end
|
8579
8834
|
end
|
8580
8835
|
|
@@ -8600,37 +8855,41 @@ module TencentCloud
|
|
8600
8855
|
|
8601
8856
|
# ModifyBotStatus请求参数结构体
|
8602
8857
|
class ModifyBotStatusRequest < TencentCloud::Common::AbstractModel
|
8603
|
-
# @param Domain: 域名
|
8604
|
-
# @type Domain: String
|
8605
8858
|
# @param Category: 类别
|
8606
8859
|
# @type Category: String
|
8607
8860
|
# @param Status: 状态
|
8608
8861
|
# @type Status: String
|
8862
|
+
# @param Domain: 域名
|
8863
|
+
# @type Domain: String
|
8609
8864
|
# @param InstanceID: 实例id
|
8610
8865
|
# @type InstanceID: String
|
8611
8866
|
# @param IsVersionFour: 是否是bot4.0版本
|
8612
8867
|
# @type IsVersionFour: Boolean
|
8613
8868
|
# @param BotVersion: 传入Bot版本号,场景化版本为"4.1.0"
|
8614
8869
|
# @type BotVersion: String
|
8870
|
+
# @param DomainList: 批量开启BOT开关的域名列表
|
8871
|
+
# @type DomainList: Array
|
8615
8872
|
|
8616
|
-
attr_accessor :
|
8873
|
+
attr_accessor :Category, :Status, :Domain, :InstanceID, :IsVersionFour, :BotVersion, :DomainList
|
8617
8874
|
|
8618
|
-
def initialize(
|
8619
|
-
@Domain = domain
|
8875
|
+
def initialize(category=nil, status=nil, domain=nil, instanceid=nil, isversionfour=nil, botversion=nil, domainlist=nil)
|
8620
8876
|
@Category = category
|
8621
8877
|
@Status = status
|
8878
|
+
@Domain = domain
|
8622
8879
|
@InstanceID = instanceid
|
8623
8880
|
@IsVersionFour = isversionfour
|
8624
8881
|
@BotVersion = botversion
|
8882
|
+
@DomainList = domainlist
|
8625
8883
|
end
|
8626
8884
|
|
8627
8885
|
def deserialize(params)
|
8628
|
-
@Domain = params['Domain']
|
8629
8886
|
@Category = params['Category']
|
8630
8887
|
@Status = params['Status']
|
8888
|
+
@Domain = params['Domain']
|
8631
8889
|
@InstanceID = params['InstanceID']
|
8632
8890
|
@IsVersionFour = params['IsVersionFour']
|
8633
8891
|
@BotVersion = params['BotVersion']
|
8892
|
+
@DomainList = params['DomainList']
|
8634
8893
|
end
|
8635
8894
|
end
|
8636
8895
|
|
@@ -8639,18 +8898,32 @@ module TencentCloud
|
|
8639
8898
|
# @param Data: 正常情况为null
|
8640
8899
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
8641
8900
|
# @type Data: String
|
8901
|
+
# @param UnSupportedList: 未购买BOT的域名列表
|
8902
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8903
|
+
# @type UnSupportedList: Array
|
8904
|
+
# @param FailDomainList: 已购买但操作失败的域名列表
|
8905
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8906
|
+
# @type FailDomainList: Array
|
8907
|
+
# @param Count: 成功数目
|
8908
|
+
# @type Count: Integer
|
8642
8909
|
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
8643
8910
|
# @type RequestId: String
|
8644
8911
|
|
8645
|
-
attr_accessor :Data, :RequestId
|
8912
|
+
attr_accessor :Data, :UnSupportedList, :FailDomainList, :Count, :RequestId
|
8646
8913
|
|
8647
|
-
def initialize(data=nil, requestid=nil)
|
8914
|
+
def initialize(data=nil, unsupportedlist=nil, faildomainlist=nil, count=nil, requestid=nil)
|
8648
8915
|
@Data = data
|
8916
|
+
@UnSupportedList = unsupportedlist
|
8917
|
+
@FailDomainList = faildomainlist
|
8918
|
+
@Count = count
|
8649
8919
|
@RequestId = requestid
|
8650
8920
|
end
|
8651
8921
|
|
8652
8922
|
def deserialize(params)
|
8653
8923
|
@Data = params['Data']
|
8924
|
+
@UnSupportedList = params['UnSupportedList']
|
8925
|
+
@FailDomainList = params['FailDomainList']
|
8926
|
+
@Count = params['Count']
|
8654
8927
|
@RequestId = params['RequestId']
|
8655
8928
|
end
|
8656
8929
|
end
|
@@ -9106,7 +9379,9 @@ module TencentCloud
|
|
9106
9379
|
# @type Domain: String
|
9107
9380
|
# @param DomainId: 域名ID
|
9108
9381
|
# @type DomainId: String
|
9109
|
-
# @param FlowMode: WAF
|
9382
|
+
# @param FlowMode: WAF流量模式。
|
9383
|
+
# 0:镜像模式(默认)
|
9384
|
+
# 1:清洗模式
|
9110
9385
|
# @type FlowMode: Integer
|
9111
9386
|
# @param InstanceID: 实例ID
|
9112
9387
|
# @type InstanceID: String
|
@@ -9217,7 +9492,7 @@ module TencentCloud
|
|
9217
9492
|
class ModifyHostRequest < TencentCloud::Common::AbstractModel
|
9218
9493
|
# @param Host: 编辑的域名配置信息
|
9219
9494
|
# @type Host: :class:`Tencentcloud::Waf.v20180125.models.HostRecord`
|
9220
|
-
# @param InstanceID:
|
9495
|
+
# @param InstanceID: 实例唯一ID
|
9221
9496
|
# @type InstanceID: String
|
9222
9497
|
|
9223
9498
|
attr_accessor :Host, :InstanceID
|
@@ -9518,20 +9793,26 @@ module TencentCloud
|
|
9518
9793
|
class ModifyObjectRequest < TencentCloud::Common::AbstractModel
|
9519
9794
|
# @param ObjectId: 修改对象标识
|
9520
9795
|
# @type ObjectId: String
|
9521
|
-
# @param OpType: 改动作类型:Status修改开关,InstanceId
|
9796
|
+
# @param OpType: 改动作类型:Status修改开关,InstanceId绑定实例, Proxy设置代理状态
|
9522
9797
|
# @type OpType: String
|
9523
9798
|
# @param Status: 新的Waf开关状态,如果和已有状态相同认为修改成功
|
9524
9799
|
# @type Status: Integer
|
9525
9800
|
# @param InstanceId: 新的实例ID,如果和已绑定的实例相同认为修改成功
|
9526
9801
|
# @type InstanceId: String
|
9802
|
+
# @param Proxy: 是否开启代理,0:不开启,1:以XFF的第一个IP地址作为客户端IP,2:以remote_addr作为客户端IP,3:从指定的头部字段获取客户端IP,字段通过IpHeaders字段给出(OpType为Status或Proxy时,该值有效)
|
9803
|
+
# @type Proxy: Integer
|
9804
|
+
# @param IpHeaders: IsCdn=3时,需要填此参数,表示自定义header(OpType为Status或Proxy时,该值有效)
|
9805
|
+
# @type IpHeaders: Array
|
9527
9806
|
|
9528
|
-
attr_accessor :ObjectId, :OpType, :Status, :InstanceId
|
9807
|
+
attr_accessor :ObjectId, :OpType, :Status, :InstanceId, :Proxy, :IpHeaders
|
9529
9808
|
|
9530
|
-
def initialize(objectid=nil, optype=nil, status=nil, instanceid=nil)
|
9809
|
+
def initialize(objectid=nil, optype=nil, status=nil, instanceid=nil, proxy=nil, ipheaders=nil)
|
9531
9810
|
@ObjectId = objectid
|
9532
9811
|
@OpType = optype
|
9533
9812
|
@Status = status
|
9534
9813
|
@InstanceId = instanceid
|
9814
|
+
@Proxy = proxy
|
9815
|
+
@IpHeaders = ipheaders
|
9535
9816
|
end
|
9536
9817
|
|
9537
9818
|
def deserialize(params)
|
@@ -9539,6 +9820,8 @@ module TencentCloud
|
|
9539
9820
|
@OpType = params['OpType']
|
9540
9821
|
@Status = params['Status']
|
9541
9822
|
@InstanceId = params['InstanceId']
|
9823
|
+
@Proxy = params['Proxy']
|
9824
|
+
@IpHeaders = params['IpHeaders']
|
9542
9825
|
end
|
9543
9826
|
end
|
9544
9827
|
|
@@ -9648,74 +9931,112 @@ module TencentCloud
|
|
9648
9931
|
class ModifySpartaProtectionRequest < TencentCloud::Common::AbstractModel
|
9649
9932
|
# @param Domain: 域名
|
9650
9933
|
# @type Domain: String
|
9651
|
-
# @param DomainId:
|
9934
|
+
# @param DomainId: 必填项。域名唯一ID
|
9652
9935
|
# @type DomainId: String
|
9653
|
-
# @param CertType:
|
9936
|
+
# @param CertType: 必填项。证书类型。
|
9937
|
+
# 0:仅配置HTTP监听端口,没有证书
|
9938
|
+
# 1:证书来源为自有证书
|
9939
|
+
# 2:证书来源为托管证书
|
9654
9940
|
# @type CertType: Integer
|
9655
|
-
# @param Cert: CertType
|
9941
|
+
# @param Cert: CertType为1时,需要填充此参数,表示自有证书的证书链
|
9656
9942
|
# @type Cert: String
|
9657
|
-
# @param PrivateKey: CertType
|
9943
|
+
# @param PrivateKey: CertType为1时,需要填充此参数,表示自有证书的私钥
|
9658
9944
|
# @type PrivateKey: String
|
9659
|
-
# @param SSLId: CertType
|
9945
|
+
# @param SSLId: CertType为2时,需要填充此参数,表示腾讯云SSL平台托管的证书id
|
9660
9946
|
# @type SSLId: String
|
9661
|
-
# @param IsCdn:
|
9947
|
+
# @param IsCdn: 必填项。waf前是否部署有七层代理服务。
|
9948
|
+
# 0:没有部署代理服务
|
9949
|
+
# 1:有部署代理服务,waf将使用XFF获取客户端IP
|
9950
|
+
# 2:有部署代理服务,waf将使用remote_addr获取客户端IP
|
9951
|
+
# 3:有部署代理服务,waf将使用ip_headers中的自定义header获取客户端IP
|
9662
9952
|
# @type IsCdn: Integer
|
9663
|
-
# @param UpstreamScheme: HTTPS
|
9953
|
+
# @param UpstreamScheme: 服务配置有HTTPS端口时,HTTPS的回源协议。
|
9954
|
+
# http:使用http协议回源,和HttpsUpstreamPort配合使用
|
9955
|
+
# https:使用https协议回源
|
9664
9956
|
# @type UpstreamScheme: String
|
9665
9957
|
# @param HttpsUpstreamPort: HTTPS回源端口,仅UpstreamScheme为http时需要填当前字段
|
9666
9958
|
# @type HttpsUpstreamPort: String
|
9667
|
-
# @param HttpsRewrite:
|
9959
|
+
# @param HttpsRewrite: 必填项。是否开启HTTP强制跳转到HTTPS。
|
9960
|
+
# 0:不强制跳转
|
9961
|
+
# 1:开启强制跳转
|
9668
9962
|
# @type HttpsRewrite: Integer
|
9669
|
-
# @param UpstreamType:
|
9963
|
+
# @param UpstreamType: 必填项。回源类型。
|
9964
|
+
# 0:通过IP回源
|
9965
|
+
# 1:通过域名回源
|
9670
9966
|
# @type UpstreamType: Integer
|
9671
|
-
# @param UpstreamDomain: UpstreamType
|
9967
|
+
# @param UpstreamDomain: 域名回源时的回源域名。UpstreamType为1时,需要填充此字段
|
9672
9968
|
# @type UpstreamDomain: String
|
9673
|
-
# @param SrcList: UpstreamType
|
9969
|
+
# @param SrcList: IP回源时的回源IP列表。UpstreamType为0时,需要填充此字段
|
9674
9970
|
# @type SrcList: Array
|
9675
|
-
# @param IsHttp2:
|
9971
|
+
# @param IsHttp2: 必填项。是否开启HTTP2,需要开启HTTPS协议支持。
|
9972
|
+
# 0:关闭
|
9973
|
+
# 1:开启
|
9676
9974
|
# @type IsHttp2: Integer
|
9677
|
-
# @param IsWebsocket:
|
9975
|
+
# @param IsWebsocket: 必填项。是否开启WebSocket支持。
|
9976
|
+
# 0:关闭
|
9977
|
+
# 1:开启
|
9678
9978
|
# @type IsWebsocket: Integer
|
9679
|
-
# @param LoadBalance:
|
9979
|
+
# @param LoadBalance: 必填项。回源负载均衡策略。
|
9980
|
+
# 0:轮询
|
9981
|
+
# 1:IP hash
|
9982
|
+
# 2:加权轮询
|
9680
9983
|
# @type LoadBalance: Integer
|
9681
|
-
# @param IsGray:
|
9984
|
+
# @param IsGray: 待废弃,可不填。是否开启灰度,0表示不开启灰度。
|
9682
9985
|
# @type IsGray: Integer
|
9683
|
-
# @param Edition:
|
9986
|
+
# @param Edition: 域名所属实例类型
|
9684
9987
|
# @type Edition: String
|
9685
|
-
# @param Ports:
|
9988
|
+
# @param Ports: 必填项。端口信息,可通过DescribeDomains接口获取具体参数信息。
|
9686
9989
|
# @type Ports: Array
|
9687
|
-
# @param IsKeepAlive:
|
9990
|
+
# @param IsKeepAlive: 必填项。是否开启长连接。
|
9991
|
+
# 0: 短连接
|
9992
|
+
# 1: 长连接
|
9688
9993
|
# @type IsKeepAlive: String
|
9689
|
-
# @param InstanceID:
|
9994
|
+
# @param InstanceID: 必填项。域名所属实例id
|
9690
9995
|
# @type InstanceID: String
|
9691
|
-
# @param Anycast:
|
9996
|
+
# @param Anycast: 必填项,待废弃。目前填0即可。anycast IP类型开关: 0 普通IP 1 Anycast IP
|
9692
9997
|
# @type Anycast: Integer
|
9693
|
-
# @param Weights:
|
9998
|
+
# @param Weights: 回源IP列表各IP的权重,和SrcList一一对应。当且仅当UpstreamType为0,并且SrcList有多个IP,并且LoadBalance为2时需要填写,否则填 []
|
9694
9999
|
# @type Weights: Array
|
9695
|
-
# @param ActiveCheck:
|
10000
|
+
# @param ActiveCheck: 必填项,是否开启主动健康检测。
|
10001
|
+
# 0:不开启
|
10002
|
+
# 1:开启
|
9696
10003
|
# @type ActiveCheck: Integer
|
9697
10004
|
# @param TLSVersion: TLS版本信息
|
9698
10005
|
# @type TLSVersion: Integer
|
9699
10006
|
# @param Ciphers: 加密套件信息
|
9700
10007
|
# @type Ciphers: Array
|
9701
|
-
# @param CipherTemplate:
|
10008
|
+
# @param CipherTemplate: 必填项。加密套件模板。
|
10009
|
+
# 0:不支持选择,使用默认模板
|
10010
|
+
# 1:通用型模板
|
10011
|
+
# 2:安全型模板
|
10012
|
+
# 3:自定义模板
|
9702
10013
|
# @type CipherTemplate: Integer
|
9703
|
-
# @param ProxyReadTimeout: 300s
|
10014
|
+
# @param ProxyReadTimeout: WAF与源站的读超时时间,默认300s。
|
9704
10015
|
# @type ProxyReadTimeout: Integer
|
9705
|
-
# @param ProxySendTimeout: 300s
|
10016
|
+
# @param ProxySendTimeout: WAF与源站的写超时时间,默认300s。
|
9706
10017
|
# @type ProxySendTimeout: Integer
|
9707
|
-
# @param SniType:
|
10018
|
+
# @param SniType: WAF回源时的SNI类型。
|
10019
|
+
# 0:关闭SNI,不配置client_hello中的server_name
|
10020
|
+
# 1:开启SNI,client_hello中的server_name为防护域名
|
10021
|
+
# 2:开启SNI,SNI为域名回源时的源站域名
|
10022
|
+
# 3:开启SNI,SNI为自定义域名
|
9708
10023
|
# @type SniType: Integer
|
9709
|
-
# @param SniHost: SniType
|
10024
|
+
# @param SniHost: SniType为3时,需要填此参数,表示自定义的SNI;
|
9710
10025
|
# @type SniHost: String
|
9711
10026
|
# @param IpHeaders: IsCdn=3时,需要填此参数,表示自定义header
|
9712
10027
|
# @type IpHeaders: Array
|
9713
|
-
# @param XFFReset:
|
10028
|
+
# @param XFFReset: 必填项。是否开启XFF重置。
|
10029
|
+
# 0:关闭
|
10030
|
+
# 1:开启
|
9714
10031
|
# @type XFFReset: Integer
|
10032
|
+
# @param Note: 域名备注信息
|
10033
|
+
# @type Note: String
|
10034
|
+
# @param UpstreamHost: 自定义回源Host。默认为空字符串,表示使用防护域名作为回源Host。
|
10035
|
+
# @type UpstreamHost: String
|
9715
10036
|
|
9716
|
-
attr_accessor :Domain, :DomainId, :CertType, :Cert, :PrivateKey, :SSLId, :IsCdn, :UpstreamScheme, :HttpsUpstreamPort, :HttpsRewrite, :UpstreamType, :UpstreamDomain, :SrcList, :IsHttp2, :IsWebsocket, :LoadBalance, :IsGray, :Edition, :Ports, :IsKeepAlive, :InstanceID, :Anycast, :Weights, :ActiveCheck, :TLSVersion, :Ciphers, :CipherTemplate, :ProxyReadTimeout, :ProxySendTimeout, :SniType, :SniHost, :IpHeaders, :XFFReset
|
10037
|
+
attr_accessor :Domain, :DomainId, :CertType, :Cert, :PrivateKey, :SSLId, :IsCdn, :UpstreamScheme, :HttpsUpstreamPort, :HttpsRewrite, :UpstreamType, :UpstreamDomain, :SrcList, :IsHttp2, :IsWebsocket, :LoadBalance, :IsGray, :Edition, :Ports, :IsKeepAlive, :InstanceID, :Anycast, :Weights, :ActiveCheck, :TLSVersion, :Ciphers, :CipherTemplate, :ProxyReadTimeout, :ProxySendTimeout, :SniType, :SniHost, :IpHeaders, :XFFReset, :Note, :UpstreamHost
|
9717
10038
|
|
9718
|
-
def initialize(domain=nil, domainid=nil, certtype=nil, cert=nil, privatekey=nil, sslid=nil, iscdn=nil, upstreamscheme=nil, httpsupstreamport=nil, httpsrewrite=nil, upstreamtype=nil, upstreamdomain=nil, srclist=nil, ishttp2=nil, iswebsocket=nil, loadbalance=nil, isgray=nil, edition=nil, ports=nil, iskeepalive=nil, instanceid=nil, anycast=nil, weights=nil, activecheck=nil, tlsversion=nil, ciphers=nil, ciphertemplate=nil, proxyreadtimeout=nil, proxysendtimeout=nil, snitype=nil, snihost=nil, ipheaders=nil, xffreset=nil)
|
10039
|
+
def initialize(domain=nil, domainid=nil, certtype=nil, cert=nil, privatekey=nil, sslid=nil, iscdn=nil, upstreamscheme=nil, httpsupstreamport=nil, httpsrewrite=nil, upstreamtype=nil, upstreamdomain=nil, srclist=nil, ishttp2=nil, iswebsocket=nil, loadbalance=nil, isgray=nil, edition=nil, ports=nil, iskeepalive=nil, instanceid=nil, anycast=nil, weights=nil, activecheck=nil, tlsversion=nil, ciphers=nil, ciphertemplate=nil, proxyreadtimeout=nil, proxysendtimeout=nil, snitype=nil, snihost=nil, ipheaders=nil, xffreset=nil, note=nil, upstreamhost=nil)
|
9719
10040
|
@Domain = domain
|
9720
10041
|
@DomainId = domainid
|
9721
10042
|
@CertType = certtype
|
@@ -9749,6 +10070,8 @@ module TencentCloud
|
|
9749
10070
|
@SniHost = snihost
|
9750
10071
|
@IpHeaders = ipheaders
|
9751
10072
|
@XFFReset = xffreset
|
10073
|
+
@Note = note
|
10074
|
+
@UpstreamHost = upstreamhost
|
9752
10075
|
end
|
9753
10076
|
|
9754
10077
|
def deserialize(params)
|
@@ -9792,6 +10115,8 @@ module TencentCloud
|
|
9792
10115
|
@SniHost = params['SniHost']
|
9793
10116
|
@IpHeaders = params['IpHeaders']
|
9794
10117
|
@XFFReset = params['XFFReset']
|
10118
|
+
@Note = params['Note']
|
10119
|
+
@UpstreamHost = params['UpstreamHost']
|
9795
10120
|
end
|
9796
10121
|
end
|
9797
10122
|
|
@@ -10109,10 +10434,19 @@ module TencentCloud
|
|
10109
10434
|
# @param WxAccess: 小程序 qps
|
10110
10435
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
10111
10436
|
# @type WxAccess: Integer
|
10437
|
+
# @param WxCount: 小程序请求数
|
10438
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
10439
|
+
# @type WxCount: Integer
|
10440
|
+
# @param WxUp: 小程序上行带宽峰值,单位B
|
10441
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
10442
|
+
# @type WxUp: Integer
|
10443
|
+
# @param WxDown: 小程序下行带宽峰值,单位B
|
10444
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
10445
|
+
# @type WxDown: Integer
|
10112
10446
|
|
10113
|
-
attr_accessor :Time, :Access, :Up, :Down, :Attack, :Cc, :BotAccess, :StatusServerError, :StatusClientError, :StatusRedirect, :StatusOk, :UpstreamServerError, :UpstreamClientError, :UpstreamRedirect, :BlackIP, :Tamper, :Leak, :ACL, :WxAccess
|
10447
|
+
attr_accessor :Time, :Access, :Up, :Down, :Attack, :Cc, :BotAccess, :StatusServerError, :StatusClientError, :StatusRedirect, :StatusOk, :UpstreamServerError, :UpstreamClientError, :UpstreamRedirect, :BlackIP, :Tamper, :Leak, :ACL, :WxAccess, :WxCount, :WxUp, :WxDown
|
10114
10448
|
|
10115
|
-
def initialize(time=nil, access=nil, up=nil, down=nil, attack=nil, cc=nil, botaccess=nil, statusservererror=nil, statusclienterror=nil, statusredirect=nil, statusok=nil, upstreamservererror=nil, upstreamclienterror=nil, upstreamredirect=nil, blackip=nil, tamper=nil, leak=nil, acl=nil, wxaccess=nil)
|
10449
|
+
def initialize(time=nil, access=nil, up=nil, down=nil, attack=nil, cc=nil, botaccess=nil, statusservererror=nil, statusclienterror=nil, statusredirect=nil, statusok=nil, upstreamservererror=nil, upstreamclienterror=nil, upstreamredirect=nil, blackip=nil, tamper=nil, leak=nil, acl=nil, wxaccess=nil, wxcount=nil, wxup=nil, wxdown=nil)
|
10116
10450
|
@Time = time
|
10117
10451
|
@Access = access
|
10118
10452
|
@Up = up
|
@@ -10132,6 +10466,9 @@ module TencentCloud
|
|
10132
10466
|
@Leak = leak
|
10133
10467
|
@ACL = acl
|
10134
10468
|
@WxAccess = wxaccess
|
10469
|
+
@WxCount = wxcount
|
10470
|
+
@WxUp = wxup
|
10471
|
+
@WxDown = wxdown
|
10135
10472
|
end
|
10136
10473
|
|
10137
10474
|
def deserialize(params)
|
@@ -10154,6 +10491,9 @@ module TencentCloud
|
|
10154
10491
|
@Leak = params['Leak']
|
10155
10492
|
@ACL = params['ACL']
|
10156
10493
|
@WxAccess = params['WxAccess']
|
10494
|
+
@WxCount = params['WxCount']
|
10495
|
+
@WxUp = params['WxUp']
|
10496
|
+
@WxDown = params['WxDown']
|
10157
10497
|
end
|
10158
10498
|
end
|
10159
10499
|
|