All Products
Search
Document Center

Alibaba Cloud DNS:DescribeDnsGtmInstanceAddressPool

Last Updated:Oct 24, 2024

Queries detailed information about an address pool of a Global Traffic Manager (GTM) instance.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
alidns:DescribeDnsGtmInstanceAddressPoolget
  • gtmInstance
    acs:alidns::{#accountId}:gtmInstance/{#gtmInstanceId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
LangstringNo

The language of the values of specific response parameters. Default value: en. Valid values: en, zh, and ja.

en
AddrPoolIdstringYes

The ID of the address pool.

testpool1

Response parameters

ParameterTypeDescriptionExample
object
Typestring

The type of the address pool. Valid values:

  • IPV4: IPv4 address
  • IPV6: IPv6 address
  • DOMAIN: domain name
ipv4
UpdateTimestring

The time when the address pool was last updated.

2017-12-28T13:08Z
CreateTimestring

The time when the address pool was created.

2017-12-28T13:08Z
MonitorConfigIdstring

The ID of the health check configuration.

test1
UpdateTimestamplong

The timestamp that indicates the time when the address pool was last updated.

1527690629357
MonitorStatusstring

Indicates the status of the health check. Valid values:

  • OPEN: The health check is enabled.
  • CLOSE: The health check is disabled.
  • UNCONFIGURED: The health check is not configured.
open
RequestIdstring

The ID of the request.

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

The ID of the address pool.

testpool1
LbaStrategystring

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

  • ALL_RR: returns all addresses.
  • RATIO: returns addresses by weight.
all_rr
AddrCountinteger

The number of addresses in the address pool.

1
Namestring

The name of the address pool.

test
CreateTimestamplong

The timestamp that indicates the time when the address pool was created.

1527690629357
Addrsarray<object>

The addresses in the address pool.

Addrobject
UpdateTimestamplong

The timestamp that indicates the time when the address was last updated.

1527690629357
AttributeInfostring

The source region of the address.

  • lineCode: the line code of the source region of the address. This parameter is deprecated, and lineCodes prevails.
  • lineName: the line name of the source region of the address. This parameter is deprecated.
  • lineCodes: the line codes of the source regions of the address.
"lineCode":"aliyun_r_cn-zhangjiakou", "lineName": "Alibaba Cloud_China (Zhangjiakou)", "lineCodes": \["aliyun_r_cn-zhangjiakou"]
UpdateTimestring

The time when the address was last updated.

2017-12-28T13:08Z
AlertStatusstring

The status of the last health check on the address. Valid values:

  • OK: No active alerts are triggered.
  • ALERT: Alerts are triggered based on the alert rules.
ok
Remarkstring

The description of the address.

test
LbaWeightinteger

The weight of the address.

1
Addrstring

The address.

1.1.1.1
CreateTimestring

The time when the address was added into the address pool.

2017-12-28T13:08Z
Modestring

The mode of the address. Valid values:

  • SMART: smart return
  • ONLINE: always online
  • OFFLINE: always offline
online
CreateTimestamplong

The timestamp that indicates the time when the address was added into the address pool.

1527690629357

Examples

Sample success responses

JSONformat

{
  "Type": "ipv4",
  "UpdateTime": "2017-12-28T13:08Z",
  "CreateTime": "2017-12-28T13:08Z",
  "MonitorConfigId": "test1",
  "UpdateTimestamp": 1527690629357,
  "MonitorStatus": "open",
  "RequestId": "6856BCF6-11D6-4D7E-AC53-FD579933522B",
  "AddrPoolId": "testpool1",
  "LbaStrategy": "all_rr",
  "AddrCount": 1,
  "Name": "test",
  "CreateTimestamp": 1527690629357,
  "Addrs": {
    "Addr": [
      {
        "UpdateTimestamp": 1527690629357,
        "AttributeInfo": "\"lineCode\":\"aliyun_r_cn-zhangjiakou\", \"lineName\": \"Alibaba Cloud_China (Zhangjiakou)\", \"lineCodes\": \\[\"aliyun_r_cn-zhangjiakou\"]\n",
        "UpdateTime": "2017-12-28T13:08Z",
        "AlertStatus": "ok",
        "Remark": "test",
        "LbaWeight": 1,
        "Addr": "1.1.1.1",
        "CreateTime": "2017-12-28T13:08Z",
        "Mode": "online",
        "CreateTimestamp": 1527690629357
      }
    ]
  }
}

Error codes

For a list of error codes, visit the Service error codes.