Skip to content

DomainConfigProps

Properties for defining a DomainConfig.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-waf-domainconfig

Initializer

using AlibabaCloud.SDK.ROS.CDK.Waf;
new DomainConfigProps {
    object Domain,
    object InstanceId,
    object IsAccessProduct,
    object Protocols,
    object HttpPort = null,
    object HttpsPort = null,
    object HttpsRedirect = null,
    object HttpToUserIp = null,
    object LoadBalancing = null,
    object Region = null,
    object RsType = null,
    object SourceIps = null
};

Properties

Name Type Description
Domain object Property domain: Domain name.
InstanceId object Property instanceId: WAF instance ID.
IsAccessProduct object Property isAccessProduct: The domain before WAF is configured with seven agents (eg, high defense, CDN, etc.), the value of: 0: none. 1: expressed.
Protocols object Property protocols: The domain supports access protocols, values: http: expressed support for the HTTP protocol.
HttpPort object Property httpPort: HTTP protocol configuration port.
HttpsPort object Property httpsPort: HTTPS protocol configuration port.
HttpsRedirect object Property httpsRedirect: HTTPS is turned forcefully jump the argument: 0: off (default) 1: Turn Description required to complete the request parameters using only HTTPS access protocol.
HttpToUserIp object Property httpToUserIp: Whether to open HTTPS access request is forwarded back to the source station via the HTTP protocol, the value of: 0: off (default) 1: Turn Note If your site does not support HTTPS back to the source, open source HTTP return (default back to the source port is port 80) function key, can be realized by WAF HTTPS access.
LoadBalancing object Property loadBalancing: Back to the source load balancing policy values: 0: IP Hash way.
Region object Property region: Examples of areas where the WAF.
RsType object Property rsType: Back to the source address type the domain name values: 0: back to the source to IP.
SourceIps object Property sourceIps: Source station IP, supports a plurality of specified IP.

DomainRequired

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

Property domain: Domain name.


InstanceIdRequired

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

Property instanceId: WAF instance ID.

Description Interface You can view your current WAF instance ID by calling DescribePayInfo.


IsAccessProductRequired

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

Property isAccessProduct: The domain before WAF is configured with seven agents (eg, high defense, CDN, etc.), the value of: 0: none. 1: expressed.


ProtocolsRequired

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

Property protocols: The domain supports access protocols, values: http: expressed support for the HTTP protocol.

https: support for HTTPS protocol. http, https: supports HTTP, HTTPS protocol.


HttpPortOptional

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

Property httpPort: HTTP protocol configuration port.

When specifying a plurality of HTTP port "," separated. Example values: [80]. Configure the HTTP protocol, this parameter is required. The default value is 80. HttpPort HttpsPort with at least two parameters need to fill a request.


HttpsPortOptional

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

Property httpsPort: HTTPS protocol configuration port.

When specifying a plurality HTTPS port, using the "," separated. Example values: [443]. Configure the protocol is HTTPS, this parameter is required. The default value is 443. HttpPort HttpsPort with at least two parameters need to fill a request.


HttpsRedirectOptional

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

Property httpsRedirect: HTTPS is turned forcefully jump the argument: 0: off (default) 1: Turn Description required to complete the request parameters using only HTTPS access protocol.

After opening force will show a jump HTTP request is HTTPS, a default jump to 443.


HttpToUserIpOptional

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

Property httpToUserIp: Whether to open HTTPS access request is forwarded back to the source station via the HTTP protocol, the value of: 0: off (default) 1: Turn Note If your site does not support HTTPS back to the source, open source HTTP return (default back to the source port is port 80) function key, can be realized by WAF HTTPS access.


LoadBalancingOptional

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

Property loadBalancing: Back to the source load balancing policy values: 0: IP Hash way.

1: represents a polling mode.


RegionOptional

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

Property region: Examples of areas where the WAF.

Value: cn: China mainland (default) cn-hongkong: China HongKong and other overseas


RsTypeOptional

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

Property rsType: Back to the source address type the domain name values: 0: back to the source to IP.

1: Indicates the domain name back to the source.


SourceIpsOptional

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

Property sourceIps: Source station IP, supports a plurality of specified IP.

Example values: [ "1.1.1.1"].