Domain name for API request: vpc.intl.tencentcloudapi.com.
This API is used to allocate IPv6 public network bandwidth for classic elastic public IPv6 addresses.
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: AllocateIp6AddressesBandwidth. |
Version | Yes | String | Common Params. The value used for this API: 2017-03-12. |
Region | Yes | String | Common Params. For more information, please see the list of regions supported by the product. |
Ip6Addresses.N | Yes | Array of String | IPv6 addresses that require the public network access capability. |
InternetMaxBandwidthOut | No | Integer | Bandwidth, in Mbps. The default value is 1 Mbps. |
InternetChargeType | No | String | Network billing mode. IPv6 addresses currently support "TRAFFIC_POSTPAID_BY_HOUR" and "BANDWIDTH_PACKAGE". The default network billing mode is "TRAFFIC_POSTPAID_BY_HOUR". |
BandwidthPackageId | No | String | Bandwidth package ID. This ID is required for standard accounts to add the IPv6 addresses to the bandwidth package, thus using the billing mode. |
Tags.N | No | Array of Tag | List of tags to be associated. |
Parameter Name | Type | Description |
---|---|---|
AddressSet | Array of String | List of unique IDs of Classic elastic Public IPv6 instances. |
TaskId | String | Asynchronous task ID. You can call the DescribeTaskResult API to query the task status. |
RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
Specify one or multiple IPv6 addresses to enable public network access capability
POST / HTTP/1.1
Host: vpc.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: AllocateIp6AddressesBandwidth
<Common request parameters>
{
"Ip6Addresses": [
"2402:4e00:1000:200:0:8d8a:60b7:87f8"
],
"InternetMaxBandwidthOut": 1
}
{
"Response": {
"AddressSet": [
"eip-68dqs5ri"
],
"TaskId": "194395704",
"RequestId": "283a29bf-982d-4d55-984a-0d464f61f9ae"
}
}
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 |
---|---|
FailedOperation.BalanceInsufficient | Insufficient account balance. |
FailedOperation.TaskFailed | Task execution failed. |
InternalServerError | Internal error. |
InvalidAccount.NotSupported | This account is not supported. |
InvalidInstanceId.NotFound | Invalid instance ID. The specified instance ID does not exist. |
InvalidParameter | A parameter error occurred. |
InvalidParameter.Coexist | The parameters cannot be specified at the same time. |
InvalidParameterValue.AddressIpNotFound | IP address not found. |
InvalidParameterValue.AddressIpNotInVpc | The IP address does not exist in the VPC. |
InvalidParameterValue.AddressPublished | This IPv6 address has already been published. |
InvalidParameterValue.BandwidthOutOfRange | The bandwidth exceeds the limit. |
InvalidParameterValue.BandwidthPackageNotFound | Failed to query the bandwidth package |
InvalidParameterValue.InvalidIpv6 | Invalid IPv6 addresses. |
InvalidParameterValue.LimitExceeded | The parameter value exceeds the limit. |
InvalidParameterValue.Malformed | Invalid input parameter format. |
UnsupportedOperation.BandwidthPackageIdNotSupported | This bandwidth package does not support this operation. |
UnsupportedOperation.InvalidAddressInternetChargeType | This operation is not allowed under the network billing mode of the IP address. |