Adds an address pool.
Try it now
Test
RAM authorization
Action | Access level | Resource type | Condition key | Dependent action |
alidns:AddGtmAddressPool | create | *gtminstance
| None | None |
Request parameters
Parameter | Type | Required | Description | Example |
Lang | string | No | The response language. | en |
InstanceId | string | Yes | The instance ID. | gtm-cn-xxxxxxx |
Name | string | Yes | The name of the address pool. | Test |
Type | string | Yes | The type of the address pool. Valid values:
| IP |
MinAvailableAddrNum | integer | Yes | The minimum number of available addresses. | 1 |
MonitorStatus | string | No | The status of the health check. Valid values:
| OPEN |
ProtocolType | string | No | The health check protocol. Valid values:
| TCP |
Interval | integer | No | The health check interval. Unit: seconds. The value must be 60. | 60 |
EvaluationCount | integer | No | The number of consecutive failed health checks. | 2 |
Timeout | integer | No | The timeout period. Unit: milliseconds. Valid values: 2000, 3000, 5000, and 10000. | 5000 |
MonitorExtendInfo | string | No | The extended information. The parameters that you must configure vary based on the health check protocol. HTTP and HTTPS:
PING:
TCP:
| {"host":"aliyun.com","port":80} |
| Addr | array<object> | Yes | The list of addresses in the address pool. | |
object | No | |||
Value | string | No | The address. | 1.1.XX.XX |
LbaWeight | integer | No | The weight of the address. | 1 |
Mode | string | No | The mode of the address. Valid values:
| SMART |
| IspCityNode | array<object> | No | The list of city nodes for monitoring. | |
object | No | |||
CityCode | string | No | The city code of the monitoring node. For information about valid values, see the response of DescribeGtmMonitorAvailableConfig. | 546 |
IspCode | string | No |
| 465 |
Response elements
Element | Type | Description | Example |
object | |||
RequestId | string | The unique request ID. | 6856BCF6-11D6-4D7E-AC53-FD579933522B |
AddrPoolId | string | The ID of the address pool. | hraf3x |
MonitorConfigId | string | The ID of the health check configuration. | hraf14 |
Examples
Success response
JSON format
{
"RequestId": "6856BCF6-11D6-4D7E-AC53-FD579933522B",
"AddrPoolId": "hraf3x",
"MonitorConfigId": "hraf14"
}Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.