tencent cloud

文档反馈

DescribeIpGeolocationDatabaseUrl

最后更新时间:2023-07-11 17:48:44

1. API Description

Domain name for API request: vpc.tencentcloudapi.com.

This API is used to obtain the download link of an IP location database.
This API will be discontinued soon and is only available for existing users.

A maximum of 20 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

Parameter Name Required Type Description
Action Yes String Common Params. The value used for this API: DescribeIpGeolocationDatabaseUrl.
Version Yes String Common Params. The value used for this API: 2017-03-12.
Region No String Common Params. This parameter is not required for this API.
Type Yes String Protocol type for an IP location database. Valid value: ipv4.

3. Output Parameters

Parameter Name Type Description
DownLoadUrl String Download link of an IP location database
ExpiredAt Timestamp ISO8601 Link expiration time in UTC format following the ISO8601 standard.
RequestId String The unique request ID, which is returned for each request. RequestId is required for locating a problem.

4. Example

This example shows you how to obtain the download link of an IPv4 location database.

Input Example

https://vpc.tencentcloudapi.com/?Action=DescribeIpGeolocationDatabaseUrl
&Type=ipv4
&<common request parameters>

Output Example

{
    "Response": {
        "DownLoadUrl": "https://ip-address-repo-1255852779.cos.ap-guangzhou.myqcloud.com/tencent_ipv4_repo.tgz?q-sign-algorithm=sha1&q-ak=AKIDb5RbYFe5PcrwtkazVpxqX2MQIRM2xfy4&q-sign-time=1578970542;1579057002&q-key-time=1578970542;1579057002&q-header-list=&q-url-param-list=&q-signature=00f8d6ad0252822e17cca6450ebcd626eadc8405",
        "ExpiredAt": "2020-01-15T10:56:42+00:00",
        "RequestId": "21b41e67-8c0f-48cf-8af3-de0b6e1f4a4b"
    }
}

5. Developer Resources

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

Error Code Description
AuthFailure CAM signature or authentication error.
InternalError An internal error occurred.
InvalidAccount.NotSupported This account is not supported.
InvalidParameterConflict The two parameters cannot be specified at the same time, nor exist concurrently. EIP can only be bound to the instances or the specified private IPs of the specified ENIs.
InvalidParameterValue Incorrect parameter value.