All Products
Search
Document Center

Alibaba Cloud DNS:DescribeGtmInstances

Last Updated:Oct 11, 2024

Queries the Global Traffic Manager (GTM) instances under your account.

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:DescribeGtmInstancesget
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
LangstringNo

The language in which you want the values of some response parameters to be returned. These response parameters support multiple languages.

en
PageNumberintegerNo

The page number to return.

1
PageSizeintegerNo

The number of entries to return per page.

20
KeywordstringNo

The keyword that you use for query. Exact match is supported by instance ID or instance name.

test
ResourceGroupIdstringNo

The ID of the resource group.

rg-xxxxx
NeedDetailAttributesbooleanNo

Specifies whether additional information is required. Default value: false.

false

Response parameters

ParameterTypeDescriptionExample
object
PageSizeinteger

The number of entries returned per page.

20
RequestIdstring

The ID of the request.

193B0163-7F93-42DF-AB05-ACEEB7D22707
PageNumberinteger

The returned page number.

1
GtmInstancesarray<object>

The list of queried instances.

GtmInstanceobject
ExpireTimestring

The time when the instance expires.

2018-06-06T11:34Z
AccessStrategyNuminteger

The number of access policies.

5
CreateTimestring

The time when the instance was created.

2018-06-06T11:34Z
CnameModestring

The CNAME domain name used to access the instance. Valid values:

  • SYSTEM_ASSIGN: A CNAME domain name assigned by the system is used.
  • CUSTOM: A custom CNAME domain name is used.
SYSTEM_ASSIGN
InstanceIdstring

The ID of the instance.

instance1
ExpireTimestamplong

The UNIX timestamp that indicates when the instance expires.

1528284856000
Ttlinteger

The global time to live (TTL).

60
AlertGroupstring

The name of the alert group.

\[\\"R\&D group\\"]
AddressPoolNuminteger

The number of address pools.

5
InstanceNamestring

The name of the instance.

test
LbaStrategystring

The load balancing policy that is used. Valid values:

  • ALL_RR: Load balancing
  • RATIO: Weighted round-robin
RATIO
Cnamestring

The CNAME domain name that is used to access the instance.

instance1.14.com
VersionCodestring

The version code of the instance.

biaozhun
UserDomainNamestring

The domain name of the user.

www.example.com
CreateTimestamplong

The UNIX timestamp that indicates when the instance was created.

1528284856000
ResourceGroupIdstring

The ID of the resource group to which the instance belongs.

rg-acfm2q2jqpjh***
TotalPagesinteger

The total number of pages returned.

1
TotalItemsinteger

The total number of entries returned.

1

Examples

Sample success responses

JSONformat

{
  "PageSize": 20,
  "RequestId": "193B0163-7F93-42DF-AB05-ACEEB7D22707",
  "PageNumber": 1,
  "GtmInstances": {
    "GtmInstance": [
      {
        "ExpireTime": "2018-06-06T11:34Z",
        "AccessStrategyNum": 5,
        "CreateTime": "2018-06-06T11:34Z",
        "CnameMode": "SYSTEM_ASSIGN",
        "InstanceId": "instance1",
        "ExpireTimestamp": 1528284856000,
        "Ttl": 60,
        "AlertGroup": "\\[\\\\\"R\\&D group\\\\\"]\n",
        "AddressPoolNum": 5,
        "InstanceName": "test",
        "LbaStrategy": "RATIO",
        "Cname": "instance1.14.com",
        "VersionCode": "biaozhun",
        "UserDomainName": "www.example.com",
        "CreateTimestamp": 1528284856000,
        "ResourceGroupId": "rg-acfm2q2jqpjh***"
      }
    ]
  },
  "TotalPages": 1,
  "TotalItems": 1
}

Error codes

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