Skip to content

PolicyProps

Properties for defining a Policy.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ddos-policy

Initializer

using AlibabaCloud.SDK.ROS.CDK.Ddos;
new PolicyProps {
    object PolicyName,
    object Type,
    object ActionType = null,
    object BlackIpList = null,
    object Content = null,
    object WhiteIpList = null
};

Properties

Name Type Description
PolicyName object Property policyName: The name of the policy.
Type object Property type: The type of the policy.
ActionType object Property actionType: Operation type ActionType = 10 Modify policy name ActionType = 11 Modify whitelist and whitelist timeout ActionType = 12 modify add white high anti-back source network segment switch ActionType = 13 Modify the switch to discard ICMP ActionType = 20 Add black and white list ActionType = 21 Delete whitelist and whitelist ActionType = 22 Clear White List ActionType = 23 Clear the blacklist ActionType = 30 Modify Smart Switch ActionType = 31 Modify regional ban ActionType = 32 Modify Source Speed Limit Black ActionType = 34 Modifying Reflective Port Filtering ActionType = 40,41,42 Create, delete, and modify Port rules ActionType = 50,51,52 Create, delete, and modify fingerprint rules ActionType = 60 switch L4 protection ActionType = 61,62,63 Create, delete, and modify L4 rules.
BlackIpList object Property blackIpList: Blacklist list.
Content object Property content: Configuration Content.
WhiteIpList object Property whiteIpList: Whitelist IP list.

PolicyNameRequired

public object PolicyName { get; set; }
  • Type: object

Property policyName: The name of the policy.


TypeRequired

public object Type { get; set; }
  • Type: object

Property type: The type of the policy.

Values:

  • default: Indicates the default protection strategy.
  • l3: Indicates the IP protection strategy.
  • l4: Indicates the port protection strategy.

ActionTypeOptional

public object ActionType { get; set; }
  • Type: object

Property actionType: Operation type ActionType = 10 Modify policy name ActionType = 11 Modify whitelist and whitelist timeout ActionType = 12 modify add white high anti-back source network segment switch ActionType = 13 Modify the switch to discard ICMP ActionType = 20 Add black and white list ActionType = 21 Delete whitelist and whitelist ActionType = 22 Clear White List ActionType = 23 Clear the blacklist ActionType = 30 Modify Smart Switch ActionType = 31 Modify regional ban ActionType = 32 Modify Source Speed Limit Black ActionType = 34 Modifying Reflective Port Filtering ActionType = 40,41,42 Create, delete, and modify Port rules ActionType = 50,51,52 Create, delete, and modify fingerprint rules ActionType = 60 switch L4 protection ActionType = 61,62,63 Create, delete, and modify L4 rules.


BlackIpListOptional

public object BlackIpList { get; set; }
  • Type: object

Property blackIpList: Blacklist list.


ContentOptional

public object Content { get; set; }
  • Type: object

Property content: Configuration Content.


WhiteIpListOptional

public object WhiteIpList { get; set; }
  • Type: object

Property whiteIpList: Whitelist IP list.