Checks whether a specified IP address belongs to a CDN edge node.

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 DescribeIpInfo

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

IP String Yes 1.2.3.4

The IP address that you want to query. You can specify only one IP address in each call.

Response parameters

Parameter Type Example Description
RequestId String 1B1D0EE7-9559-489D-BC4E-279495EB8FB8

The ID of the request.

CdnIp String True

Indicates whether the specified IP address belongs to a CDN edge node.

  • True: Yes
  • False: No
ISP String Chine Telecom

The Internet service provider (ISP) to which the specified IP address belongs.

Region String China-Guizhou-Guiyang

The region to which the specified IP address belongs.

IspEname String telecom

The name of the ISP.

RegionEname String China-Guizhou-guiyang

The name of the region.

Examples

Sample requests

http(s)://cdn.aliyuncs.com/?Action=DescribeIpInfo
&IP=1.2.3.4
&<Common request parameters>

Sample success responses

XML format

<DescribeIpInfoResponse>
      <RequestId>1B1D0EE7-9559-489D-BC4E-279495EB8FB8</RequestId>
      <CdnIp>True</CdnIp>
      <ISP>China Telecom</ISP>
      <Region>China-Guizhou-Guiyang</Region>
      <IspEname>telecom</IspEname>
      <RegionEname>China-Guizhou-guiyang</RegionEname>
</DescribeIpInfoResponse>

JSON format

{
   "RequestId": "1B1D0EE7-9559-489D-BC4E-279495EB8FB8",
   "CdnIp": "True",
   "ISP": "China Telecom"
   "Region": "China-Guizhou-Guiyang",
   "IspEname": "telecom",
   "RegionEname": "China-Guizhou-guiyang"
}

Error codes

HttpCode Error code Error message Description
400 InvalidIP.ValueNotSupported The specified value of parameter IP is not supported. The error message returned because the specified IP address is invalid. Check the IP address and try again.
400 MissingParameter The specified value of parameter "IP" is not valid. The error message returned because the IP parameter is set to an invalid value.

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