Domain name for API request: dc.tencentcloudapi.com.
This API is used to apply for an internet tunnel’s CIDR block.
A maximum of 20 requests can be initiated per second for this API.
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: ApplyInternetAddress. |
Version | Yes | String | Common Params. The value used for this API: 2018-04-10. |
Region | No | String | Common Params. This parameter is not required for this API. |
MaskLen | Yes | Integer | Mask length of a CIDR block |
AddrType | Yes | Integer | Address type. Valid values: 0: BGP 1: China Telecom 2: China Mobile 3: China Unicom |
AddrProto | Yes | Integer | Address protocol. Valid values: 0: IPv4 1: IPv6 |
Parameter Name | Type | Description |
---|---|---|
InstanceId | String | ID of the internet tunnel’s public IP address Note: this field may return null , indicating that no valid values can be obtained. |
RequestId | String | The unique request ID, which is returned for each request. RequestId is required for locating a problem. |
https://dc.tencentcloudapi.com/?Action=ApplyInternetAddress
&AddrType=0
&AddrProto=0
&MaskLen=30
&<Common request parameters>
{
"Response": {
"InstanceId": "ipv4-h2k2jna1",
"RequestId": "24a0d7e5-4c13-49be-aa16-94f698fbef3e"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
Error Code | Description |
---|---|
LimitExceeded | The quota limit is exceeded. |
本页内容是否解决了您的问题?