AddressPoolProps
Properties for defining a AddressPool.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-dns-addresspool
Initializer
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkdns"
&alicloudroscdkdns.AddressPoolProps {
Addr: interface{},
InstanceId: interface{},
LbaStrategy: interface{},
Name: interface{},
Type: interface{},
EvaluationCount: interface{},
Interval: interface{},
IspCityNode: interface{},
MonitorExtendInfo: interface{},
MonitorStatus: interface{},
ProtocolType: interface{},
Timeout: interface{},
}
Properties
| Name | Type | Description |
|---|---|---|
Addr | interface{} | Property addr: The list of addresses in the address pool. |
InstanceId | interface{} | Property instanceId: The ID of the GTM instance. |
LbaStrategy | interface{} | Property lbaStrategy: The load balancing policy. |
Name | interface{} | Property name: The name of the address pool. |
Type | interface{} | Property type: The type of the address pool. |
EvaluationCount | interface{} | Property evaluationCount: The number of times that the system waits for a response from each address before it marks the address as unhealthy. |
Interval | interface{} | Property interval: The interval between two consecutive health checks, in seconds. |
IspCityNode | interface{} | Property ispCityNode: The list of ISP city nodes. |
MonitorExtendInfo | interface{} | Property monitorExtendInfo: The extended information. |
MonitorStatus | interface{} | Property monitorStatus: The status of the health check feature. |
ProtocolType | interface{} | Property protocolType: The protocol type. |
Timeout | interface{} | Property timeout: The timeout period of a health check, in seconds. |
AddrRequired
Addr interface{}
- Type: interface{}
Property addr: The list of addresses in the address pool.
InstanceIdRequired
InstanceId interface{}
- Type: interface{}
Property instanceId: The ID of the GTM instance.
LbaStrategyRequired
LbaStrategy interface{}
- Type: interface{}
Property lbaStrategy: The load balancing policy.
Valid values:
- ALL_RR: returns all addresses.
- RATIO: returns addresses by weight.
NameRequired
Name interface{}
- Type: interface{}
Property name: The name of the address pool.
TypeRequired
Type interface{}
- Type: interface{}
Property type: The type of the address pool.
Valid values:
- IPV4: IPv4 address
- IPV6: IPv6 address
- DOMAIN: domain name
EvaluationCountOptional
EvaluationCount interface{}
- Type: interface{}
Property evaluationCount: The number of times that the system waits for a response from each address before it marks the address as unhealthy.
IntervalOptional
Interval interface{}
- Type: interface{}
Property interval: The interval between two consecutive health checks, in seconds.
IspCityNodeOptional
IspCityNode interface{}
- Type: interface{}
Property ispCityNode: The list of ISP city nodes.
MonitorExtendInfoOptional
MonitorExtendInfo interface{}
- Type: interface{}
Property monitorExtendInfo: The extended information.
This parameter is a JSON string. The required parameters vary based on the health check protocol:
- HTTP and HTTPS:
- port: The health check port.
- host: The host settings.
- path: The URL path.
- code: The return code. A response with a status code greater than this value is considered abnormal. Valid values: 400 and 500.
- failureRate: The failure rate.
- sni: Specifies whether to enable Server Name Indication (SNI). This parameter is available only for the HTTPS protocol.
- true: Enable SNI.
- Other values: Disable SNI.
- nodeType: The type of the health check node when the address pool type is DOMAIN. Valid values:
- IPV4
- IPV6
- PING:
- failureRate: The failure rate.
- packetNum: The number of ping packets.
- packetLossRate: The packet loss rate.
- nodeType: The type of the health check node when the address pool type is DOMAIN. Valid values:
- IPV4
- IPV6
- TCP:
- port: The health check port.
- failureRate: The failure rate.
- nodeType: The type of the health check node when the address pool type is DOMAIN. Valid values:
- IPV4
- IPV6
MonitorStatusOptional
MonitorStatus interface{}
- Type: interface{}
Property monitorStatus: The status of the health check feature.
Default value: CLOSE. If you set this parameter to OPEN, the health check configuration is verified. Otherwise, the configuration is ignored.
- OPEN: enabled
- CLOSE: disabled
ProtocolTypeOptional
ProtocolType interface{}
- Type: interface{}
Property protocolType: The protocol type.
TimeoutOptional
Timeout interface{}
- Type: interface{}
Property timeout: The timeout period of a health check, in seconds.