Class: TencentCloud::Cfw::V20190904::SecurityGroupRule

Inherits:
TencentCloud::Common::AbstractModel
  • Object
show all
Defined in:
lib/v20190904/models.rb

Overview

安全组规则

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#DescriptionObject

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表示禁用

Parameters:

  • SourceContent:

    访问源示例:

  • SourceType:

    访问源类型,类型可以为以下6种:net|template|instance|resourcegroup|tag|region

  • DestContent:

    访问目的示例:

  • DestType:

    访问目的类型,类型可以为以下6种:net|template|instance|resourcegroup|tag|region

  • RuleAction:

    访问控制策略中设置的流量通过云防火墙的方式。取值:

  • Description:

    规则描述 用于规则使用或者场景的描述,最多支持50个字符

  • OrderIndex:

    规则顺序,-1表示最低,1表示最高,请勿和外层Type冲突(和外层的Type配合使用,当中间插入时,指定添加位置)

  • Protocol:

    协议;TCP/UDP/ICMP/ICMPv6/ANY

  • Port:

    访问控制策略的端口。取值:

  • ServiceTemplateId:

    端口协议类型参数模板id;协议端口模板id;与Protocol,Port互斥

  • Id:

    (入参时无需填写,自动生成)规则对应的唯一id

  • Enable:

    (入参时Enable无意义;由通用配置中新增规则启用状态控制)

  • Uid:

    规则对应的唯一内部id



9330
9331
9332
# File 'lib/v20190904/models.rb', line 9330

def Description
  @Description
end

#DestContentObject

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表示禁用

Parameters:

  • SourceContent:

    访问源示例:

  • SourceType:

    访问源类型,类型可以为以下6种:net|template|instance|resourcegroup|tag|region

  • DestContent:

    访问目的示例:

  • DestType:

    访问目的类型,类型可以为以下6种:net|template|instance|resourcegroup|tag|region

  • RuleAction:

    访问控制策略中设置的流量通过云防火墙的方式。取值:

  • Description:

    规则描述 用于规则使用或者场景的描述,最多支持50个字符

  • OrderIndex:

    规则顺序,-1表示最低,1表示最高,请勿和外层Type冲突(和外层的Type配合使用,当中间插入时,指定添加位置)

  • Protocol:

    协议;TCP/UDP/ICMP/ICMPv6/ANY

  • Port:

    访问控制策略的端口。取值:

  • ServiceTemplateId:

    端口协议类型参数模板id;协议端口模板id;与Protocol,Port互斥

  • Id:

    (入参时无需填写,自动生成)规则对应的唯一id

  • Enable:

    (入参时Enable无意义;由通用配置中新增规则启用状态控制)

  • Uid:

    规则对应的唯一内部id



9330
9331
9332
# File 'lib/v20190904/models.rb', line 9330

def DestContent
  @DestContent
end

#DestTypeObject

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表示禁用

Parameters:

  • SourceContent:

    访问源示例:

  • SourceType:

    访问源类型,类型可以为以下6种:net|template|instance|resourcegroup|tag|region

  • DestContent:

    访问目的示例:

  • DestType:

    访问目的类型,类型可以为以下6种:net|template|instance|resourcegroup|tag|region

  • RuleAction:

    访问控制策略中设置的流量通过云防火墙的方式。取值:

  • Description:

    规则描述 用于规则使用或者场景的描述,最多支持50个字符

  • OrderIndex:

    规则顺序,-1表示最低,1表示最高,请勿和外层Type冲突(和外层的Type配合使用,当中间插入时,指定添加位置)

  • Protocol:

    协议;TCP/UDP/ICMP/ICMPv6/ANY

  • Port:

    访问控制策略的端口。取值:

  • ServiceTemplateId:

    端口协议类型参数模板id;协议端口模板id;与Protocol,Port互斥

  • Id:

    (入参时无需填写,自动生成)规则对应的唯一id

  • Enable:

    (入参时Enable无意义;由通用配置中新增规则启用状态控制)

  • Uid:

    规则对应的唯一内部id



9330
9331
9332
# File 'lib/v20190904/models.rb', line 9330

def DestType
  @DestType
end

#EnableObject

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表示禁用

Parameters:

  • SourceContent:

    访问源示例:

  • SourceType:

    访问源类型,类型可以为以下6种:net|template|instance|resourcegroup|tag|region

  • DestContent:

    访问目的示例:

  • DestType:

    访问目的类型,类型可以为以下6种:net|template|instance|resourcegroup|tag|region

  • RuleAction:

    访问控制策略中设置的流量通过云防火墙的方式。取值:

  • Description:

    规则描述 用于规则使用或者场景的描述,最多支持50个字符

  • OrderIndex:

    规则顺序,-1表示最低,1表示最高,请勿和外层Type冲突(和外层的Type配合使用,当中间插入时,指定添加位置)

  • Protocol:

    协议;TCP/UDP/ICMP/ICMPv6/ANY

  • Port:

    访问控制策略的端口。取值:

  • ServiceTemplateId:

    端口协议类型参数模板id;协议端口模板id;与Protocol,Port互斥

  • Id:

    (入参时无需填写,自动生成)规则对应的唯一id

  • Enable:

    (入参时Enable无意义;由通用配置中新增规则启用状态控制)

  • Uid:

    规则对应的唯一内部id



9330
9331
9332
# File 'lib/v20190904/models.rb', line 9330

def Enable
  @Enable
end

#IdObject

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表示禁用

Parameters:

  • SourceContent:

    访问源示例:

  • SourceType:

    访问源类型,类型可以为以下6种:net|template|instance|resourcegroup|tag|region

  • DestContent:

    访问目的示例:

  • DestType:

    访问目的类型,类型可以为以下6种:net|template|instance|resourcegroup|tag|region

  • RuleAction:

    访问控制策略中设置的流量通过云防火墙的方式。取值:

  • Description:

    规则描述 用于规则使用或者场景的描述,最多支持50个字符

  • OrderIndex:

    规则顺序,-1表示最低,1表示最高,请勿和外层Type冲突(和外层的Type配合使用,当中间插入时,指定添加位置)

  • Protocol:

    协议;TCP/UDP/ICMP/ICMPv6/ANY

  • Port:

    访问控制策略的端口。取值:

  • ServiceTemplateId:

    端口协议类型参数模板id;协议端口模板id;与Protocol,Port互斥

  • Id:

    (入参时无需填写,自动生成)规则对应的唯一id

  • Enable:

    (入参时Enable无意义;由通用配置中新增规则启用状态控制)

  • Uid:

    规则对应的唯一内部id



9330
9331
9332
# File 'lib/v20190904/models.rb', line 9330

def Id
  @Id
end

#OrderIndexObject

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表示禁用

Parameters:

  • SourceContent:

    访问源示例:

  • SourceType:

    访问源类型,类型可以为以下6种:net|template|instance|resourcegroup|tag|region

  • DestContent:

    访问目的示例:

  • DestType:

    访问目的类型,类型可以为以下6种:net|template|instance|resourcegroup|tag|region

  • RuleAction:

    访问控制策略中设置的流量通过云防火墙的方式。取值:

  • Description:

    规则描述 用于规则使用或者场景的描述,最多支持50个字符

  • OrderIndex:

    规则顺序,-1表示最低,1表示最高,请勿和外层Type冲突(和外层的Type配合使用,当中间插入时,指定添加位置)

  • Protocol:

    协议;TCP/UDP/ICMP/ICMPv6/ANY

  • Port:

    访问控制策略的端口。取值:

  • ServiceTemplateId:

    端口协议类型参数模板id;协议端口模板id;与Protocol,Port互斥

  • Id:

    (入参时无需填写,自动生成)规则对应的唯一id

  • Enable:

    (入参时Enable无意义;由通用配置中新增规则启用状态控制)

  • Uid:

    规则对应的唯一内部id



9330
9331
9332
# File 'lib/v20190904/models.rb', line 9330

def OrderIndex
  @OrderIndex
end

#PortObject

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表示禁用

Parameters:

  • SourceContent:

    访问源示例:

  • SourceType:

    访问源类型,类型可以为以下6种:net|template|instance|resourcegroup|tag|region

  • DestContent:

    访问目的示例:

  • DestType:

    访问目的类型,类型可以为以下6种:net|template|instance|resourcegroup|tag|region

  • RuleAction:

    访问控制策略中设置的流量通过云防火墙的方式。取值:

  • Description:

    规则描述 用于规则使用或者场景的描述,最多支持50个字符

  • OrderIndex:

    规则顺序,-1表示最低,1表示最高,请勿和外层Type冲突(和外层的Type配合使用,当中间插入时,指定添加位置)

  • Protocol:

    协议;TCP/UDP/ICMP/ICMPv6/ANY

  • Port:

    访问控制策略的端口。取值:

  • ServiceTemplateId:

    端口协议类型参数模板id;协议端口模板id;与Protocol,Port互斥

  • Id:

    (入参时无需填写,自动生成)规则对应的唯一id

  • Enable:

    (入参时Enable无意义;由通用配置中新增规则启用状态控制)

  • Uid:

    规则对应的唯一内部id



9330
9331
9332
# File 'lib/v20190904/models.rb', line 9330

def Port
  @Port
end

#ProtocolObject

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表示禁用

Parameters:

  • SourceContent:

    访问源示例:

  • SourceType:

    访问源类型,类型可以为以下6种:net|template|instance|resourcegroup|tag|region

  • DestContent:

    访问目的示例:

  • DestType:

    访问目的类型,类型可以为以下6种:net|template|instance|resourcegroup|tag|region

  • RuleAction:

    访问控制策略中设置的流量通过云防火墙的方式。取值:

  • Description:

    规则描述 用于规则使用或者场景的描述,最多支持50个字符

  • OrderIndex:

    规则顺序,-1表示最低,1表示最高,请勿和外层Type冲突(和外层的Type配合使用,当中间插入时,指定添加位置)

  • Protocol:

    协议;TCP/UDP/ICMP/ICMPv6/ANY

  • Port:

    访问控制策略的端口。取值:

  • ServiceTemplateId:

    端口协议类型参数模板id;协议端口模板id;与Protocol,Port互斥

  • Id:

    (入参时无需填写,自动生成)规则对应的唯一id

  • Enable:

    (入参时Enable无意义;由通用配置中新增规则启用状态控制)

  • Uid:

    规则对应的唯一内部id



9330
9331
9332
# File 'lib/v20190904/models.rb', line 9330

def Protocol
  @Protocol
end

#RuleActionObject

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表示禁用

Parameters:

  • SourceContent:

    访问源示例:

  • SourceType:

    访问源类型,类型可以为以下6种:net|template|instance|resourcegroup|tag|region

  • DestContent:

    访问目的示例:

  • DestType:

    访问目的类型,类型可以为以下6种:net|template|instance|resourcegroup|tag|region

  • RuleAction:

    访问控制策略中设置的流量通过云防火墙的方式。取值:

  • Description:

    规则描述 用于规则使用或者场景的描述,最多支持50个字符

  • OrderIndex:

    规则顺序,-1表示最低,1表示最高,请勿和外层Type冲突(和外层的Type配合使用,当中间插入时,指定添加位置)

  • Protocol:

    协议;TCP/UDP/ICMP/ICMPv6/ANY

  • Port:

    访问控制策略的端口。取值:

  • ServiceTemplateId:

    端口协议类型参数模板id;协议端口模板id;与Protocol,Port互斥

  • Id:

    (入参时无需填写,自动生成)规则对应的唯一id

  • Enable:

    (入参时Enable无意义;由通用配置中新增规则启用状态控制)

  • Uid:

    规则对应的唯一内部id



9330
9331
9332
# File 'lib/v20190904/models.rb', line 9330

def RuleAction
  @RuleAction
end

#ServiceTemplateIdObject

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表示禁用

Parameters:

  • SourceContent:

    访问源示例:

  • SourceType:

    访问源类型,类型可以为以下6种:net|template|instance|resourcegroup|tag|region

  • DestContent:

    访问目的示例:

  • DestType:

    访问目的类型,类型可以为以下6种:net|template|instance|resourcegroup|tag|region

  • RuleAction:

    访问控制策略中设置的流量通过云防火墙的方式。取值:

  • Description:

    规则描述 用于规则使用或者场景的描述,最多支持50个字符

  • OrderIndex:

    规则顺序,-1表示最低,1表示最高,请勿和外层Type冲突(和外层的Type配合使用,当中间插入时,指定添加位置)

  • Protocol:

    协议;TCP/UDP/ICMP/ICMPv6/ANY

  • Port:

    访问控制策略的端口。取值:

  • ServiceTemplateId:

    端口协议类型参数模板id;协议端口模板id;与Protocol,Port互斥

  • Id:

    (入参时无需填写,自动生成)规则对应的唯一id

  • Enable:

    (入参时Enable无意义;由通用配置中新增规则启用状态控制)

  • Uid:

    规则对应的唯一内部id



9330
9331
9332
# File 'lib/v20190904/models.rb', line 9330

def ServiceTemplateId
  @ServiceTemplateId
end

#SourceContentObject

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表示禁用

Parameters:

  • SourceContent:

    访问源示例:

  • SourceType:

    访问源类型,类型可以为以下6种:net|template|instance|resourcegroup|tag|region

  • DestContent:

    访问目的示例:

  • DestType:

    访问目的类型,类型可以为以下6种:net|template|instance|resourcegroup|tag|region

  • RuleAction:

    访问控制策略中设置的流量通过云防火墙的方式。取值:

  • Description:

    规则描述 用于规则使用或者场景的描述,最多支持50个字符

  • OrderIndex:

    规则顺序,-1表示最低,1表示最高,请勿和外层Type冲突(和外层的Type配合使用,当中间插入时,指定添加位置)

  • Protocol:

    协议;TCP/UDP/ICMP/ICMPv6/ANY

  • Port:

    访问控制策略的端口。取值:

  • ServiceTemplateId:

    端口协议类型参数模板id;协议端口模板id;与Protocol,Port互斥

  • Id:

    (入参时无需填写,自动生成)规则对应的唯一id

  • Enable:

    (入参时Enable无意义;由通用配置中新增规则启用状态控制)

  • Uid:

    规则对应的唯一内部id



9330
9331
9332
# File 'lib/v20190904/models.rb', line 9330

def SourceContent
  @SourceContent
end

#SourceTypeObject

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表示禁用

Parameters:

  • SourceContent:

    访问源示例:

  • SourceType:

    访问源类型,类型可以为以下6种:net|template|instance|resourcegroup|tag|region

  • DestContent:

    访问目的示例:

  • DestType:

    访问目的类型,类型可以为以下6种:net|template|instance|resourcegroup|tag|region

  • RuleAction:

    访问控制策略中设置的流量通过云防火墙的方式。取值:

  • Description:

    规则描述 用于规则使用或者场景的描述,最多支持50个字符

  • OrderIndex:

    规则顺序,-1表示最低,1表示最高,请勿和外层Type冲突(和外层的Type配合使用,当中间插入时,指定添加位置)

  • Protocol:

    协议;TCP/UDP/ICMP/ICMPv6/ANY

  • Port:

    访问控制策略的端口。取值:

  • ServiceTemplateId:

    端口协议类型参数模板id;协议端口模板id;与Protocol,Port互斥

  • Id:

    (入参时无需填写,自动生成)规则对应的唯一id

  • Enable:

    (入参时Enable无意义;由通用配置中新增规则启用状态控制)

  • Uid:

    规则对应的唯一内部id



9330
9331
9332
# File 'lib/v20190904/models.rb', line 9330

def SourceType
  @SourceType
end

#UidObject

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表示禁用

Parameters:

  • SourceContent:

    访问源示例:

  • SourceType:

    访问源类型,类型可以为以下6种:net|template|instance|resourcegroup|tag|region

  • DestContent:

    访问目的示例:

  • DestType:

    访问目的类型,类型可以为以下6种:net|template|instance|resourcegroup|tag|region

  • RuleAction:

    访问控制策略中设置的流量通过云防火墙的方式。取值:

  • Description:

    规则描述 用于规则使用或者场景的描述,最多支持50个字符

  • OrderIndex:

    规则顺序,-1表示最低,1表示最高,请勿和外层Type冲突(和外层的Type配合使用,当中间插入时,指定添加位置)

  • Protocol:

    协议;TCP/UDP/ICMP/ICMPv6/ANY

  • Port:

    访问控制策略的端口。取值:

  • ServiceTemplateId:

    端口协议类型参数模板id;协议端口模板id;与Protocol,Port互斥

  • Id:

    (入参时无需填写,自动生成)规则对应的唯一id

  • Enable:

    (入参时Enable无意义;由通用配置中新增规则启用状态控制)

  • Uid:

    规则对应的唯一内部id



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