Queries the source regions of addresses.

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 DescribeDnsGtmAddrAttributeInfo

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

Addrs String Yes ["1.1.1.1"]

The addresses whose source regions you want to query.

Type String Yes ipv4

The type of the addresses. Valid values:

  • IPV4: IPv4 address
  • IPV6: IPv6 address
  • DOMAIN: domain name
Lang String No en

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

Response parameters

Parameter Type Example Description
Addr Array of Addr

The addresses that were queried.

Addr
Addr String 1.1.1.1

The address that was queried.

AttributeInfo Struct

The source region of the address.

FatherCode String telecom

The parent line code of the source region.

GroupCode String DEFAULT

The code of the source region group.

GroupName String Global

The name of the source region group.

LineCode String default

The line code of the source region.

LineName String Global

The line name of the source region.

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

The ID of the request.

Examples

Sample requests

http(s)://alidns.aliyuncs.com/? Action=DescribeDnsGtmAddrAttributeInfo
&Addrs=["1.1.1.1"]
&Type=ipv4
&<Common request parameters>

Sample success responses

XML format

<RequestId>6856BCF6-11D6-4D7E-AC53-FD579933522B</RequestId>
<Addr>
    <Addr>
        <Addr>1.1.1.1</Addr>
        <AttributeInfo>
            <GroupName>Global</GroupName>
            <GroupCode>DEFAULT</GroupCode>
            <FatherCode>telecom</FatherCode>
            <LineCode>default</LineCode>
            <LineName>Global</LineName>
        </AttributeInfo>
    </Addr>
</Addr>

JSON format

{
	"RequestId": "6856BCF6-11D6-4D7E-AC53-FD579933522B",
	"Addr": {
		"Addr": [{
			"Addr": "1.1.1.1",
			"AttributeInfo": {
				"GroupName": "Global",
				"GroupCode": "DEFAULT",
				"FatherCode": "telecom",
				"LineCode": "default",
				"LineName": "Global"
			}
		}]
	}
}

Error codes

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