All Products
Search
Document Center

Alibaba Cloud DNS:SearchCloudGtmInstanceConfigs

Last Updated:Dec 02, 2025

Searches for instance configurations based on specified parameters.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

alidns:SearchCloudGtmInstanceConfigs

list

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

AcceptLanguage

string

No

The language of the response. Valid values:

  • zh-CN: Chinese

  • en-US: English (Default)

zh-CN

ClientToken

string

No

The client token that is used to ensure the idempotence of the request. Make sure that the client token is unique for each request. The token can contain up to 64 ASCII characters.

1ae05db4-10e7-11ef-b126-00163e24****

PageNumber

integer

No

The page number. The value starts from 1. The default value is 1.

1

PageSize

integer

No

The number of entries to return on each page. Maximum value: 100. Default value: 20.

20

InstanceId

string

No

The ID of the Global Traffic Manager (GTM) 3.0 instance.

gtm-cn-wwo3a3h****

ScheduleZoneName

string

No

The primary domain name, such as example.com, or subdomain name, such as a.example.com, of the GTM access domain. This domain name is usually hosted in the authoritative zone of the Alibaba Cloud DNS console under the account that owns the GTM instance.

example.com

ScheduleDomainName

string

No

The access domain name of GTM. The value is a combination of the host record (the value of ScheduleHostname) and the primary or subdomain name (the value of ScheduleZoneName).

www.example.com

EnableStatus

string

No

The status of the domain name instance. Valid values:

  • enable: Enabled. The intelligent scheduling policy of the GTM instance is active.

  • disable: Disabled. The intelligent scheduling policy of the GTM instance is inactive.

enable

Remark

string

No

The remarks on the domain name instance.

test

HealthStatus

string

No

The health status of the domain name instance. Valid values:

  • ok: Normal. All address pools referenced by the access domain are available.

  • ok_alert: Warning. Some address pools referenced by the access domain are unavailable. In this state, DNS resolution is performed for available address pools, but not for unavailable address pools.

  • exceptional: Abnormal. All address pools referenced by the access domain are unavailable. In this case, failover resolution is performed using addresses from the non-empty address pool with the smallest ordinal number to help clients receive a DNS response.

ok

AvailableStatus

string

No

The service availability of the domain name instance. Valid values:

  • available: Available. The domain name is enabled and its health status is normal.

  • unavailable: Unavailable. The domain name is disabled or its health status is abnormal.

available

Response elements

Element

Type

Description

Example

object

RequestId

string

The unique request ID.

6AEC7A64-3CB1-4C49-8B35-0B901F1E26BF

PageNumber

integer

The page number. The value starts from 1. The default value is 1.

1

PageSize

integer

The number of entries returned on each page. Maximum value: 100. Default value: 20.

20

TotalPages

integer

The total number of pages.

1

TotalItems

integer

The total number of instance configurations.

15

InstanceConfigs

object

InstanceConfig

array<object>

The list of instances.

object

The instance information.

InstanceId

string

The ID of the GTM 3.0 instance.

gtm-cn-x0r38e0****

ConfigId

string

The ID of the instance configuration. The same access domain and GTM instance can have both A and AAAA records. This results in two instance configurations for the same GTM instance. The ConfigId uniquely identifies an instance configuration.

Config-000****

CreateTime

string

The time when the domain name instance was created.

2024-03-15T01:46Z

CreateTimestamp

integer

The timestamp that indicates when the domain name instance was created.

1527690629357

UpdateTime

string

The time when the domain name instance was last modified.

2024-03-15T01:46Z

UpdateTimestamp

integer

The timestamp that indicates when the domain name instance was last modified.

1527690629357

VersionCode

string

The version of the GTM 3.0 instance. Valid values:

  • standard: Standard Edition

  • ultimate: Ultimate Edition

ultimate

CommodityCode

string

The commodity code. Valid values:

  • dns_gtm_public_cn: Commodity code for the China site (aliyun.com).

  • dns_gtm_public_intl: Commodity code for the international site (alibabacloud.com).

dns_gtm_public_cn

ScheduleZoneMode

string

The allocation mode for the access domain name. Valid values:

  • custom: A custom access domain name is used. You can customize the host record and associate it with a domain name that is hosted in the authoritative zone under the account that owns the GTM instance to generate an access domain name.

  • sys_assign: The system assigns a default access domain name. This feature is no longer supported. Do not select this mode.

custom

ScheduleZoneName

string

The primary domain name, such as example.com, or subdomain name, such as a.example.com, of the GTM access domain. This domain name is usually hosted in the authoritative zone of the Alibaba Cloud DNS console under the account that owns the GTM instance.

example.com

ScheduleHostname

string

The host record of the GTM access domain name.

www

ScheduleDomainName

string

The access domain name of GTM. The value is a combination of the host record (the value of ScheduleHostname) and the primary or subdomain name (the value of ScheduleZoneName).

www.example.com

ScheduleRrType

string

The DNS record type of the scheduling domain name. Valid values:

  • A: IPv4 address

  • AAAA: IPv6 address

  • CNAME: Canonical name

A

Ttl

integer

The global Time to Live (TTL) in seconds. This is the TTL value for the DNS record that resolves the access domain name to an address in the address pool. It affects how long the record is cached on a carrier's local DNS server. You can customize the TTL value.

60

AddressPoolLbStrategy

string

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

  • round_robin: Polling. Returns all address pools for any DNS request and rotates the order of the address pools for each request.

  • sequence: Sequential. Returns the address pool with the smallest ordinal number for any DNS request. The ordinal number indicates the priority of an address pool. A smaller value indicates a higher priority. If the address pool with the smallest ordinal number is unavailable, the next one in sequence is returned.

  • weight: Weighted. Returns an address pool based on the configured weight. You can set different weights for each address pool.

  • source_nearest: Source-based. Returns an address pool based on the source of the DNS request. This is the intelligent DNS resolution feature. GTM returns different address pools for different request sources to implement proximity-based access.

round_robin

SequenceLbStrategyMode

string

When the load balancing policy for address pools is sequence, this parameter specifies the service recovery mode for a primary resource that becomes available again after a failure. Valid values:

  • preemptive: Preemptive mode. The primary resource takes over immediately. The address pool with the smallest ordinal number is prioritized.

  • non_preemptive: Non-preemptive mode. The primary resource does not take over. The currently active address pool continues to be used.

preemptive

AvailableStatus

string

The service availability of the domain name instance. Valid values:

  • available: Available. The domain name is enabled and its health status is Normal. The service for the access domain is available.

  • unavailable: Unavailable. The domain name is disabled or its health status is abnormal. The service for the access domain is unavailable.

available

EnableStatus

string

The status of the domain name instance. Valid values:

  • enable: Enabled. The intelligent scheduling policy of the GTM instance is active.

  • disable: Disabled. The intelligent scheduling policy of the GTM instance is inactive.

enable

HealthStatus

string

The health status of the domain name instance. Valid values:

  • ok: Normal. All address pools referenced by the access domain are available.

  • ok_alert: Warning. Some address pools referenced by the access domain are unavailable. In this state, DNS resolution is performed for available address pools, but not for unavailable address pools.

  • exceptional: Abnormal. All address pools referenced by the access domain are unavailable. In this case, failover resolution is performed using addresses from the non-empty address pool with the smallest ordinal number to help clients receive a DNS response.

ok

Remark

string

The remarks on the domain name instance.

test

AddressPools

object

AddressPool

array<object>

The list of address pools.

object

The information about the address pool.

CreateTime

string

The time when the address pool was created.

2024-03-15T01:46Z

CreateTimestamp

integer

The timestamp that indicates when the address pool was created.

1527690629357

UpdateTime

string

The time when the address pool was last modified.

2024-03-15T01:46Z

UpdateTimestamp

integer

The timestamp that indicates when the address pool was last modified.

1527690629357

AddressPoolId

string

The ID of the address pool. This ID uniquely identifies an address pool.

pool-89564504435014**60

WeightValue

integer

The weight value, which is an integer from 1 to 100. You can set different weights for each address pool to return address pools based on the configured weight ratio.

1

SerialNumber

integer

The ordinal number. For any DNS request, the address pool with the smallest ordinal number is returned. The ordinal number indicates the priority of an address pool. A smaller value indicates a higher priority.

1

RequestSource

object

RequestSource

array

The list of request sources.

string

The source of the DNS request. GTM schedules traffic based on the egress IP address of the local DNS server that the client uses. If the local DNS server supports Extension Mechanisms for DNS (EDNS) client subnet (ECS), GTM can also perform intelligent scheduling based on the client's IP address.

["default"]

AddressPoolName

string

The name of the address pool.

AddressPool-1

AddressPoolType

string

The type of the address pool. Valid values:

  • IPv4

  • IPv6

  • domain

IPv4

AddressLbStrategy

string

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

  • round_robin: Polling. Returns all addresses for any DNS request and rotates the order of the addresses for each request.

  • sequence: Sequential. Returns the address with the smallest ordinal number for any DNS request. The ordinal number indicates the priority of an address. A smaller value indicates a higher priority. If the address with the smallest ordinal number is unavailable, the next one in sequence is returned.

  • weight: Weighted. Returns an address based on the configured weight. You can set different weights for each address.

  • source_nearest: Source-based. Returns an address based on the source of the DNS request. This is the intelligent DNS resolution feature. GTM returns different addresses for different request sources to implement proximity-based access.

round_robin

SequenceLbStrategyMode

string

When the load balancing policy for addresses is sequence, this parameter specifies the service recovery mode for a primary resource that becomes available again after a failure. Valid values:

  • preemptive: Preemptive mode. The primary resource takes over immediately. The address with the smallest ordinal number is prioritized.

  • non_preemptive: Non-preemptive mode. The primary resource does not take over. The currently active address continues to be used.

preemptive

EnableStatus

string

The status of the address pool. Valid values:

  • enable: Enabled

  • disable: Disabled

enable

HealthJudgement

string

The condition for determining the health status of the address pool. Valid values:

  • any_ok: At least one address in the address pool is available.

  • p30_ok: At least 30% of the addresses in the address pool are available.

  • p50_ok: At least 50% of the addresses in the address pool are available.

  • p70_ok: At least 70% of the addresses in the address pool are available.

  • all_ok: All addresses in the address pool are available.

any_ok

HealthStatus

string

The health status of the address pool. Valid values:

  • ok: Normal. All addresses referenced by the address pool are available.

  • ok_alert: Warning. Some addresses referenced by the address pool are unavailable, but the address pool is still considered healthy. In this state, DNS resolution is performed for available addresses, but not for unavailable addresses.

  • exceptional: Abnormal. Some or all addresses referenced by the address pool are unavailable, and the address pool is considered unhealthy.

ok

AvailableStatus

string

The availability of the address pool. Valid values:

  • available: Available

  • unavailable: Unavailable

available

SeqNonPreemptiveSchedule

boolean

Indicates whether the object is scheduled in sequential (non-preemptive) mode. This is relevant for integrated cloud management scenarios. Valid values:

  • true: Yes

  • false: No

false

Examples

Success response

JSON format

{
  "RequestId": "6AEC7A64-3CB1-4C49-8B35-0B901F1E26BF",
  "PageNumber": 1,
  "PageSize": 20,
  "TotalPages": 1,
  "TotalItems": 15,
  "InstanceConfigs": {
    "InstanceConfig": [
      {
        "InstanceId": "gtm-cn-x0r38e0****",
        "ConfigId": "Config-000****\n",
        "CreateTime": "2024-03-15T01:46Z",
        "CreateTimestamp": 1527690629357,
        "UpdateTime": "2024-03-15T01:46Z",
        "UpdateTimestamp": 1527690629357,
        "VersionCode": "ultimate",
        "CommodityCode": "dns_gtm_public_cn",
        "ScheduleZoneMode": "custom",
        "ScheduleZoneName": "example.com",
        "ScheduleHostname": "www",
        "ScheduleDomainName": "www.example.com",
        "ScheduleRrType": "A",
        "Ttl": 60,
        "AddressPoolLbStrategy": "round_robin",
        "SequenceLbStrategyMode": "preemptive",
        "AvailableStatus": "available",
        "EnableStatus": "enable",
        "HealthStatus": "ok",
        "Remark": "test",
        "AddressPools": {
          "AddressPool": [
            {
              "CreateTime": "2024-03-15T01:46Z",
              "CreateTimestamp": 1527690629357,
              "UpdateTime": "2024-03-15T01:46Z",
              "UpdateTimestamp": 1527690629357,
              "AddressPoolId": "pool-89564504435014**60",
              "WeightValue": 1,
              "SerialNumber": 1,
              "RequestSource": {
                "RequestSource": [
                  "[\"default\"]"
                ]
              },
              "AddressPoolName": "AddressPool-1",
              "AddressPoolType": "IPv4",
              "AddressLbStrategy": "round_robin",
              "SequenceLbStrategyMode": "preemptive",
              "EnableStatus": "enable",
              "HealthJudgement": "any_ok",
              "HealthStatus": "ok",
              "AvailableStatus": " available",
              "SeqNonPreemptiveSchedule": false
            }
          ]
        }
      }
    ]
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.