Class: TencentCloud::Cfw::V20190904::SecurityGroupRule
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cfw::V20190904::SecurityGroupRule
- Defined in:
- lib/v20190904/models.rb
Overview
安全组规则
Instance Attribute Summary collapse
-
#Description ⇒ Object
net:IP/CIDR(192.168.0.2) template:参数模板id(ipm-dyodhpby) instance:资产实例id(ins-123456) resourcegroup:资产分组id(cfwrg-xxxx) tag:资源标签("Key":"标签key值","Value":"标签Value值") region:地域(ap-gaungzhou) net:IP/CIDR(192.168.0.2) template:参数模板id(ipm-dyodhpby) instance:资产实例id(ins-123456) resourcegroup:资产分组id(cfwrg-xxxx) tag:资源标签("Key":"标签key值","Value":"标签Value值") region:地域(ap-gaungzhou) accept:放行 drop:拒绝 -1/-1:全部端口 80:80端口 规则状态,true表示启用,false表示禁用.
-
#DestContent ⇒ Object
net:IP/CIDR(192.168.0.2) template:参数模板id(ipm-dyodhpby) instance:资产实例id(ins-123456) resourcegroup:资产分组id(cfwrg-xxxx) tag:资源标签("Key":"标签key值","Value":"标签Value值") region:地域(ap-gaungzhou) net:IP/CIDR(192.168.0.2) template:参数模板id(ipm-dyodhpby) instance:资产实例id(ins-123456) resourcegroup:资产分组id(cfwrg-xxxx) tag:资源标签("Key":"标签key值","Value":"标签Value值") region:地域(ap-gaungzhou) accept:放行 drop:拒绝 -1/-1:全部端口 80:80端口 规则状态,true表示启用,false表示禁用.
-
#DestType ⇒ Object
net:IP/CIDR(192.168.0.2) template:参数模板id(ipm-dyodhpby) instance:资产实例id(ins-123456) resourcegroup:资产分组id(cfwrg-xxxx) tag:资源标签("Key":"标签key值","Value":"标签Value值") region:地域(ap-gaungzhou) net:IP/CIDR(192.168.0.2) template:参数模板id(ipm-dyodhpby) instance:资产实例id(ins-123456) resourcegroup:资产分组id(cfwrg-xxxx) tag:资源标签("Key":"标签key值","Value":"标签Value值") region:地域(ap-gaungzhou) accept:放行 drop:拒绝 -1/-1:全部端口 80:80端口 规则状态,true表示启用,false表示禁用.
-
#Enable ⇒ Object
net:IP/CIDR(192.168.0.2) template:参数模板id(ipm-dyodhpby) instance:资产实例id(ins-123456) resourcegroup:资产分组id(cfwrg-xxxx) tag:资源标签("Key":"标签key值","Value":"标签Value值") region:地域(ap-gaungzhou) net:IP/CIDR(192.168.0.2) template:参数模板id(ipm-dyodhpby) instance:资产实例id(ins-123456) resourcegroup:资产分组id(cfwrg-xxxx) tag:资源标签("Key":"标签key值","Value":"标签Value值") region:地域(ap-gaungzhou) accept:放行 drop:拒绝 -1/-1:全部端口 80:80端口 规则状态,true表示启用,false表示禁用.
-
#Id ⇒ Object
net:IP/CIDR(192.168.0.2) template:参数模板id(ipm-dyodhpby) instance:资产实例id(ins-123456) resourcegroup:资产分组id(cfwrg-xxxx) tag:资源标签("Key":"标签key值","Value":"标签Value值") region:地域(ap-gaungzhou) net:IP/CIDR(192.168.0.2) template:参数模板id(ipm-dyodhpby) instance:资产实例id(ins-123456) resourcegroup:资产分组id(cfwrg-xxxx) tag:资源标签("Key":"标签key值","Value":"标签Value值") region:地域(ap-gaungzhou) accept:放行 drop:拒绝 -1/-1:全部端口 80:80端口 规则状态,true表示启用,false表示禁用.
-
#OrderIndex ⇒ Object
net:IP/CIDR(192.168.0.2) template:参数模板id(ipm-dyodhpby) instance:资产实例id(ins-123456) resourcegroup:资产分组id(cfwrg-xxxx) tag:资源标签("Key":"标签key值","Value":"标签Value值") region:地域(ap-gaungzhou) net:IP/CIDR(192.168.0.2) template:参数模板id(ipm-dyodhpby) instance:资产实例id(ins-123456) resourcegroup:资产分组id(cfwrg-xxxx) tag:资源标签("Key":"标签key值","Value":"标签Value值") region:地域(ap-gaungzhou) accept:放行 drop:拒绝 -1/-1:全部端口 80:80端口 规则状态,true表示启用,false表示禁用.
-
#Port ⇒ Object
net:IP/CIDR(192.168.0.2) template:参数模板id(ipm-dyodhpby) instance:资产实例id(ins-123456) resourcegroup:资产分组id(cfwrg-xxxx) tag:资源标签("Key":"标签key值","Value":"标签Value值") region:地域(ap-gaungzhou) net:IP/CIDR(192.168.0.2) template:参数模板id(ipm-dyodhpby) instance:资产实例id(ins-123456) resourcegroup:资产分组id(cfwrg-xxxx) tag:资源标签("Key":"标签key值","Value":"标签Value值") region:地域(ap-gaungzhou) accept:放行 drop:拒绝 -1/-1:全部端口 80:80端口 规则状态,true表示启用,false表示禁用.
-
#Protocol ⇒ Object
net:IP/CIDR(192.168.0.2) template:参数模板id(ipm-dyodhpby) instance:资产实例id(ins-123456) resourcegroup:资产分组id(cfwrg-xxxx) tag:资源标签("Key":"标签key值","Value":"标签Value值") region:地域(ap-gaungzhou) net:IP/CIDR(192.168.0.2) template:参数模板id(ipm-dyodhpby) instance:资产实例id(ins-123456) resourcegroup:资产分组id(cfwrg-xxxx) tag:资源标签("Key":"标签key值","Value":"标签Value值") region:地域(ap-gaungzhou) accept:放行 drop:拒绝 -1/-1:全部端口 80:80端口 规则状态,true表示启用,false表示禁用.
-
#RuleAction ⇒ Object
net:IP/CIDR(192.168.0.2) template:参数模板id(ipm-dyodhpby) instance:资产实例id(ins-123456) resourcegroup:资产分组id(cfwrg-xxxx) tag:资源标签("Key":"标签key值","Value":"标签Value值") region:地域(ap-gaungzhou) net:IP/CIDR(192.168.0.2) template:参数模板id(ipm-dyodhpby) instance:资产实例id(ins-123456) resourcegroup:资产分组id(cfwrg-xxxx) tag:资源标签("Key":"标签key值","Value":"标签Value值") region:地域(ap-gaungzhou) accept:放行 drop:拒绝 -1/-1:全部端口 80:80端口 规则状态,true表示启用,false表示禁用.
-
#ServiceTemplateId ⇒ Object
net:IP/CIDR(192.168.0.2) template:参数模板id(ipm-dyodhpby) instance:资产实例id(ins-123456) resourcegroup:资产分组id(cfwrg-xxxx) tag:资源标签("Key":"标签key值","Value":"标签Value值") region:地域(ap-gaungzhou) net:IP/CIDR(192.168.0.2) template:参数模板id(ipm-dyodhpby) instance:资产实例id(ins-123456) resourcegroup:资产分组id(cfwrg-xxxx) tag:资源标签("Key":"标签key值","Value":"标签Value值") region:地域(ap-gaungzhou) accept:放行 drop:拒绝 -1/-1:全部端口 80:80端口 规则状态,true表示启用,false表示禁用.
-
#SourceContent ⇒ Object
net:IP/CIDR(192.168.0.2) template:参数模板id(ipm-dyodhpby) instance:资产实例id(ins-123456) resourcegroup:资产分组id(cfwrg-xxxx) tag:资源标签("Key":"标签key值","Value":"标签Value值") region:地域(ap-gaungzhou) net:IP/CIDR(192.168.0.2) template:参数模板id(ipm-dyodhpby) instance:资产实例id(ins-123456) resourcegroup:资产分组id(cfwrg-xxxx) tag:资源标签("Key":"标签key值","Value":"标签Value值") region:地域(ap-gaungzhou) accept:放行 drop:拒绝 -1/-1:全部端口 80:80端口 规则状态,true表示启用,false表示禁用.
-
#SourceType ⇒ Object
net:IP/CIDR(192.168.0.2) template:参数模板id(ipm-dyodhpby) instance:资产实例id(ins-123456) resourcegroup:资产分组id(cfwrg-xxxx) tag:资源标签("Key":"标签key值","Value":"标签Value值") region:地域(ap-gaungzhou) net:IP/CIDR(192.168.0.2) template:参数模板id(ipm-dyodhpby) instance:资产实例id(ins-123456) resourcegroup:资产分组id(cfwrg-xxxx) tag:资源标签("Key":"标签key值","Value":"标签Value值") region:地域(ap-gaungzhou) accept:放行 drop:拒绝 -1/-1:全部端口 80:80端口 规则状态,true表示启用,false表示禁用.
-
#Uid ⇒ Object
net:IP/CIDR(192.168.0.2) template:参数模板id(ipm-dyodhpby) instance:资产实例id(ins-123456) resourcegroup:资产分组id(cfwrg-xxxx) tag:资源标签("Key":"标签key值","Value":"标签Value值") region:地域(ap-gaungzhou) net:IP/CIDR(192.168.0.2) template:参数模板id(ipm-dyodhpby) instance:资产实例id(ins-123456) resourcegroup:资产分组id(cfwrg-xxxx) tag:资源标签("Key":"标签key值","Value":"标签Value值") region:地域(ap-gaungzhou) accept:放行 drop:拒绝 -1/-1:全部端口 80:80端口 规则状态,true表示启用,false表示禁用.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(sourcecontent = nil, sourcetype = nil, destcontent = nil, desttype = nil, ruleaction = nil, description = nil, orderindex = nil, protocol = nil, port = nil, servicetemplateid = nil, id = nil, enable = nil, uid = nil) ⇒ SecurityGroupRule
constructor
A new instance of SecurityGroupRule.
Constructor Details
#initialize(sourcecontent = nil, sourcetype = nil, destcontent = nil, desttype = nil, ruleaction = nil, description = nil, orderindex = nil, protocol = nil, port = nil, servicetemplateid = nil, id = nil, enable = nil, uid = nil) ⇒ SecurityGroupRule
Returns a new instance of SecurityGroupRule.
9332 9333 9334 9335 9336 9337 9338 9339 9340 9341 9342 9343 9344 9345 9346 |
# File 'lib/v20190904/models.rb', line 9332 def initialize(sourcecontent=nil, sourcetype=nil, destcontent=nil, desttype=nil, ruleaction=nil, description=nil, orderindex=nil, protocol=nil, port=nil, servicetemplateid=nil, id=nil, enable=nil, uid=nil) @SourceContent = sourcecontent @SourceType = sourcetype @DestContent = destcontent @DestType = desttype @RuleAction = ruleaction @Description = description @OrderIndex = orderindex @Protocol = protocol @Port = port @ServiceTemplateId = servicetemplateid @Id = id @Enable = enable @Uid = uid end |
Instance Attribute Details
#Description ⇒ Object
net:IP/CIDR(192.168.0.2) template:参数模板id(ipm-dyodhpby) instance:资产实例id(ins-123456) resourcegroup:资产分组id(cfwrg-xxxx) tag:资源标签("Key":"标签key值","Value":"标签Value值") region:地域(ap-gaungzhou) net:IP/CIDR(192.168.0.2) template:参数模板id(ipm-dyodhpby) instance:资产实例id(ins-123456) resourcegroup:资产分组id(cfwrg-xxxx) tag:资源标签("Key":"标签key值","Value":"标签Value值") region:地域(ap-gaungzhou) accept:放行drop:拒绝-1/-1:全部端口80:80端口规则状态,true表示启用,false表示禁用
9330 9331 9332 |
# File 'lib/v20190904/models.rb', line 9330 def Description @Description end |
#DestContent ⇒ Object
net:IP/CIDR(192.168.0.2) template:参数模板id(ipm-dyodhpby) instance:资产实例id(ins-123456) resourcegroup:资产分组id(cfwrg-xxxx) tag:资源标签("Key":"标签key值","Value":"标签Value值") region:地域(ap-gaungzhou) net:IP/CIDR(192.168.0.2) template:参数模板id(ipm-dyodhpby) instance:资产实例id(ins-123456) resourcegroup:资产分组id(cfwrg-xxxx) tag:资源标签("Key":"标签key值","Value":"标签Value值") region:地域(ap-gaungzhou) accept:放行drop:拒绝-1/-1:全部端口80:80端口规则状态,true表示启用,false表示禁用
9330 9331 9332 |
# File 'lib/v20190904/models.rb', line 9330 def DestContent @DestContent end |
#DestType ⇒ Object
net:IP/CIDR(192.168.0.2) template:参数模板id(ipm-dyodhpby) instance:资产实例id(ins-123456) resourcegroup:资产分组id(cfwrg-xxxx) tag:资源标签("Key":"标签key值","Value":"标签Value值") region:地域(ap-gaungzhou) net:IP/CIDR(192.168.0.2) template:参数模板id(ipm-dyodhpby) instance:资产实例id(ins-123456) resourcegroup:资产分组id(cfwrg-xxxx) tag:资源标签("Key":"标签key值","Value":"标签Value值") region:地域(ap-gaungzhou) accept:放行drop:拒绝-1/-1:全部端口80:80端口规则状态,true表示启用,false表示禁用
9330 9331 9332 |
# File 'lib/v20190904/models.rb', line 9330 def DestType @DestType end |
#Enable ⇒ Object
net:IP/CIDR(192.168.0.2) template:参数模板id(ipm-dyodhpby) instance:资产实例id(ins-123456) resourcegroup:资产分组id(cfwrg-xxxx) tag:资源标签("Key":"标签key值","Value":"标签Value值") region:地域(ap-gaungzhou) net:IP/CIDR(192.168.0.2) template:参数模板id(ipm-dyodhpby) instance:资产实例id(ins-123456) resourcegroup:资产分组id(cfwrg-xxxx) tag:资源标签("Key":"标签key值","Value":"标签Value值") region:地域(ap-gaungzhou) accept:放行drop:拒绝-1/-1:全部端口80:80端口规则状态,true表示启用,false表示禁用
9330 9331 9332 |
# File 'lib/v20190904/models.rb', line 9330 def Enable @Enable end |
#Id ⇒ Object
net:IP/CIDR(192.168.0.2) template:参数模板id(ipm-dyodhpby) instance:资产实例id(ins-123456) resourcegroup:资产分组id(cfwrg-xxxx) tag:资源标签("Key":"标签key值","Value":"标签Value值") region:地域(ap-gaungzhou) net:IP/CIDR(192.168.0.2) template:参数模板id(ipm-dyodhpby) instance:资产实例id(ins-123456) resourcegroup:资产分组id(cfwrg-xxxx) tag:资源标签("Key":"标签key值","Value":"标签Value值") region:地域(ap-gaungzhou) accept:放行drop:拒绝-1/-1:全部端口80:80端口规则状态,true表示启用,false表示禁用
9330 9331 9332 |
# File 'lib/v20190904/models.rb', line 9330 def Id @Id end |
#OrderIndex ⇒ Object
net:IP/CIDR(192.168.0.2) template:参数模板id(ipm-dyodhpby) instance:资产实例id(ins-123456) resourcegroup:资产分组id(cfwrg-xxxx) tag:资源标签("Key":"标签key值","Value":"标签Value值") region:地域(ap-gaungzhou) net:IP/CIDR(192.168.0.2) template:参数模板id(ipm-dyodhpby) instance:资产实例id(ins-123456) resourcegroup:资产分组id(cfwrg-xxxx) tag:资源标签("Key":"标签key值","Value":"标签Value值") region:地域(ap-gaungzhou) accept:放行drop:拒绝-1/-1:全部端口80:80端口规则状态,true表示启用,false表示禁用
9330 9331 9332 |
# File 'lib/v20190904/models.rb', line 9330 def OrderIndex @OrderIndex end |
#Port ⇒ Object
net:IP/CIDR(192.168.0.2) template:参数模板id(ipm-dyodhpby) instance:资产实例id(ins-123456) resourcegroup:资产分组id(cfwrg-xxxx) tag:资源标签("Key":"标签key值","Value":"标签Value值") region:地域(ap-gaungzhou) net:IP/CIDR(192.168.0.2) template:参数模板id(ipm-dyodhpby) instance:资产实例id(ins-123456) resourcegroup:资产分组id(cfwrg-xxxx) tag:资源标签("Key":"标签key值","Value":"标签Value值") region:地域(ap-gaungzhou) accept:放行drop:拒绝-1/-1:全部端口80:80端口规则状态,true表示启用,false表示禁用
9330 9331 9332 |
# File 'lib/v20190904/models.rb', line 9330 def Port @Port end |
#Protocol ⇒ Object
net:IP/CIDR(192.168.0.2) template:参数模板id(ipm-dyodhpby) instance:资产实例id(ins-123456) resourcegroup:资产分组id(cfwrg-xxxx) tag:资源标签("Key":"标签key值","Value":"标签Value值") region:地域(ap-gaungzhou) net:IP/CIDR(192.168.0.2) template:参数模板id(ipm-dyodhpby) instance:资产实例id(ins-123456) resourcegroup:资产分组id(cfwrg-xxxx) tag:资源标签("Key":"标签key值","Value":"标签Value值") region:地域(ap-gaungzhou) accept:放行drop:拒绝-1/-1:全部端口80:80端口规则状态,true表示启用,false表示禁用
9330 9331 9332 |
# File 'lib/v20190904/models.rb', line 9330 def Protocol @Protocol end |
#RuleAction ⇒ Object
net:IP/CIDR(192.168.0.2) template:参数模板id(ipm-dyodhpby) instance:资产实例id(ins-123456) resourcegroup:资产分组id(cfwrg-xxxx) tag:资源标签("Key":"标签key值","Value":"标签Value值") region:地域(ap-gaungzhou) net:IP/CIDR(192.168.0.2) template:参数模板id(ipm-dyodhpby) instance:资产实例id(ins-123456) resourcegroup:资产分组id(cfwrg-xxxx) tag:资源标签("Key":"标签key值","Value":"标签Value值") region:地域(ap-gaungzhou) accept:放行drop:拒绝-1/-1:全部端口80:80端口规则状态,true表示启用,false表示禁用
9330 9331 9332 |
# File 'lib/v20190904/models.rb', line 9330 def RuleAction @RuleAction end |
#ServiceTemplateId ⇒ Object
net:IP/CIDR(192.168.0.2) template:参数模板id(ipm-dyodhpby) instance:资产实例id(ins-123456) resourcegroup:资产分组id(cfwrg-xxxx) tag:资源标签("Key":"标签key值","Value":"标签Value值") region:地域(ap-gaungzhou) net:IP/CIDR(192.168.0.2) template:参数模板id(ipm-dyodhpby) instance:资产实例id(ins-123456) resourcegroup:资产分组id(cfwrg-xxxx) tag:资源标签("Key":"标签key值","Value":"标签Value值") region:地域(ap-gaungzhou) accept:放行drop:拒绝-1/-1:全部端口80:80端口规则状态,true表示启用,false表示禁用
9330 9331 9332 |
# File 'lib/v20190904/models.rb', line 9330 def ServiceTemplateId @ServiceTemplateId end |
#SourceContent ⇒ Object
net:IP/CIDR(192.168.0.2) template:参数模板id(ipm-dyodhpby) instance:资产实例id(ins-123456) resourcegroup:资产分组id(cfwrg-xxxx) tag:资源标签("Key":"标签key值","Value":"标签Value值") region:地域(ap-gaungzhou) net:IP/CIDR(192.168.0.2) template:参数模板id(ipm-dyodhpby) instance:资产实例id(ins-123456) resourcegroup:资产分组id(cfwrg-xxxx) tag:资源标签("Key":"标签key值","Value":"标签Value值") region:地域(ap-gaungzhou) accept:放行drop:拒绝-1/-1:全部端口80:80端口规则状态,true表示启用,false表示禁用
9330 9331 9332 |
# File 'lib/v20190904/models.rb', line 9330 def SourceContent @SourceContent end |
#SourceType ⇒ Object
net:IP/CIDR(192.168.0.2) template:参数模板id(ipm-dyodhpby) instance:资产实例id(ins-123456) resourcegroup:资产分组id(cfwrg-xxxx) tag:资源标签("Key":"标签key值","Value":"标签Value值") region:地域(ap-gaungzhou) net:IP/CIDR(192.168.0.2) template:参数模板id(ipm-dyodhpby) instance:资产实例id(ins-123456) resourcegroup:资产分组id(cfwrg-xxxx) tag:资源标签("Key":"标签key值","Value":"标签Value值") region:地域(ap-gaungzhou) accept:放行drop:拒绝-1/-1:全部端口80:80端口规则状态,true表示启用,false表示禁用
9330 9331 9332 |
# File 'lib/v20190904/models.rb', line 9330 def SourceType @SourceType end |
#Uid ⇒ Object
net:IP/CIDR(192.168.0.2) template:参数模板id(ipm-dyodhpby) instance:资产实例id(ins-123456) resourcegroup:资产分组id(cfwrg-xxxx) tag:资源标签("Key":"标签key值","Value":"标签Value值") region:地域(ap-gaungzhou) net:IP/CIDR(192.168.0.2) template:参数模板id(ipm-dyodhpby) instance:资产实例id(ins-123456) resourcegroup:资产分组id(cfwrg-xxxx) tag:资源标签("Key":"标签key值","Value":"标签Value值") region:地域(ap-gaungzhou) accept:放行drop:拒绝-1/-1:全部端口80:80端口规则状态,true表示启用,false表示禁用
9330 9331 9332 |
# File 'lib/v20190904/models.rb', line 9330 def Uid @Uid end |
Instance Method Details
#deserialize(params) ⇒ Object
9348 9349 9350 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 |
# File 'lib/v20190904/models.rb', line 9348 def deserialize(params) @SourceContent = params['SourceContent'] @SourceType = params['SourceType'] @DestContent = params['DestContent'] @DestType = params['DestType'] @RuleAction = params['RuleAction'] @Description = params['Description'] @OrderIndex = params['OrderIndex'] @Protocol = params['Protocol'] @Port = params['Port'] @ServiceTemplateId = params['ServiceTemplateId'] @Id = params['Id'] @Enable = params['Enable'] @Uid = params['Uid'] end |