All Products
Search
Document Center

UpdateDnsGtmAddressPool (new)

Last Updated: Mar 04, 2021

Modifies the configurations of an address pool of a Global Traffic Manager (GTM) instance.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter

Type

Required

Example

Description

Action

String

Yes

UpdateDnsGtmAddressPool

The operation that you want to perform. Set the value to UpdateDnsGtmAddressPool.

Addr.N.Addr

String

Yes

1.1.1.1

The address that you want to add to the address pool.

Addr.N.Mode

String

Yes

online

The type of the address. Valid values:

  • SMART: smart return

  • ONLINE: always online

  • OFFLINE: always offline

AddrPoolId

String

Yes

testpool1

The ID of the address pool.

LbaStrategy

String

Yes

all_rr

The load balancing policy of the address pool. Valid values:

  • ALL_RR: returns all addresses.

  • RATIO: returns addresses by weight.

Lang

String

No

en

The language to return some response parameters. Default value: en. Valid values: en, zh, and ja.

Name

String

No

testpoolname

The name of the address pool.

Addr.N.LbaWeight

Integer

No

1

The weight of the address.

Addr.N.Remark

String

No

test

The description of the address.

Addr.N.AttributeInfo

String

No

linecode:default

The source region of the address, in JSON-formatted string.

  • LineCode: The line code of the source region of the address.(Abused, based on lineCodes data)

  • LineCodes: List of home lineCodes

  • lineCodeRectifyType: The rectification type of the line code. Default value: AUTO. Valid values:

    • NO_NEED: no need for rectification

    • RECTIFIED: rectified

    • AUTO: automatic rectification

Response parameters

Parameter

Type

Example

Description

RequestId

String

6856BCF6-11D6-4D7E-AC53-FD579933522B

The ID of the request.

Examples

Sample requests

http(s)://alidns.aliyuncs.com/? Action=UpdateDnsGtmAddressPool
&Addr.1.Addr=1.1.1.1
&Addr.1.Mode=online
&AddrPoolId=testpool1
&LbaStrategy=all_rr
&Type=ipv4
&<Common request parameters>

Sample success responses

XML format

<RequestId>6856BCF6-11D6-4D7E-AC53-FD579933522B</RequestId>

JSON format

{
    "RequestId":"6856BCF6-11D6-4D7E-AC53-FD579933522B"
    }

Error codes

For a list of error codes, visit the API Error Center.