Adds an address pool.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
alidns:AddDnsGtmAddressPool |
create |
*gtmInstance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Lang |
string |
No |
The language of some returned parameters. Default value: en. Valid values: en, zh, and ja. |
en |
| InstanceId |
string |
Yes |
The instance ID. Call DescribeDnsGtmInstances to obtain the instance ID. |
gtm-cn-cs02xyk**** |
| Name |
string |
Yes |
The name of the address pool. |
test |
| Type |
string |
Yes |
The type of the address pool. Valid values:
|
IPV4 |
| LbaStrategy |
string |
Yes |
The load balancing policy. Valid values:
|
ALL_RR |
| MonitorStatus |
string |
No |
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 |
| ProtocolType |
string |
No |
The health check protocol. Valid values:
|
TCP |
| Interval |
integer |
No |
The health check interval. Unit: seconds. |
60 |
| EvaluationCount |
integer |
No |
The number of consecutive failed health checks. |
2 |
| Timeout |
integer |
No |
The timeout period. Unit: milliseconds. |
2000 |
| MonitorExtendInfo |
string |
No |
The extended information. This parameter is a JSON string. The required parameters vary based on the health check protocol:
|
{"failureRate":50,"port":80} |
| Addr |
array<object> |
Yes |
The list of addresses in the address pool. |
|
|
object |
No |
|||
| AttributeInfo |
string |
Yes |
The source region of the address. This parameter is a JSON string.
|
{"lineCodeRectifyType":"AUTO", "lineCode":[]} |
| Remark |
string |
No |
The remarks. |
test |
| LbaWeight |
integer |
No |
The weight. |
1 |
| Addr |
string |
Yes |
The address. |
223.5.XX.XX |
| Mode |
string |
Yes |
The mode. Valid values:
|
SMART |
| IspCityNode |
array<object> |
No |
The list of health check nodes. If MonitorStatus is set to OPEN, you must specify at least one valid health check node. |
|
|
object |
No |
|||
| CityCode |
string |
No |
The city code. If MonitorStatus is set to OPEN, CityCode is required. For information about the valid values, see the response of the DescribeDnsGtmMonitorAvailableConfig operation. |
503 |
| IspCode |
string |
No |
If MonitorStatus is set to OPEN, IspCode is required. For information about the valid values, see the response of the DescribeDnsGtmMonitorAvailableConfig operation. |
465 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The unique request ID. |
6856BCF6-11D6-4D7E-AC53-FD5799335**B |
| AddrPoolId |
string |
The ID of the address pool. |
hrbv** |
| MonitorConfigId |
string |
The ID of the health check configuration. |
hra**a |
Examples
Success response
JSON format
{
"RequestId": "6856BCF6-11D6-4D7E-AC53-FD5799335**B",
"AddrPoolId": "hrbv**",
"MonitorConfigId": "hra**a"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | DnsGtmSystemBusyness |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.