Domain name for API request: vpc.intl.tencentcloudapi.com.
This API is used to query the price of modifying EIP bandwidth.
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: InquiryPriceModifyAddressesBandwidth. |
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. |
AddressIds.N | Yes | Array of String | Unique ID of EIP |
InternetMaxBandwidthOut | Yes | Integer | New Bandwidth Value |
Parameter Name | Type | Description |
---|---|---|
Price | InternetPrice | Inquiry results for adjusting EIP bandwidth. |
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. |
Hourly traffic EIP bandwidth modification inquiry.
POST / HTTP/1.1
Host: vpc.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: InquiryPriceModifyAddressesBandwidth
<Common request parameters>
{
"InternetMaxBandwidthOut": "2",
"AddressIds": [
"eip-hxlqja90"
]
}
{
"Response": {
"Price": {
"AddressPrice": {
"UnitPrice": 0.8,
"DiscountPrice": 0.8,
"ChargeUnit": "HOUR"
}
},
"RequestId": "7daad6af-50de-4df5-8238-0d76c7be62e1"
}
}
This example shows you how to modify the bandwidth inquiry for hourly bandwidth EIP.
POST / HTTP/1.1
Host: vpc.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: InquiryPriceModifyAddressesBandwidth
<Common request parameters>
{
"AddressIds": [
"eip-3hwtklhj"
],
"InternetMaxBandwidthOut": 5
}
{
"Response": {
"Price": {
"AddressPrice": {
"UnitPrice": 0.315,
"DiscountPrice": 0.315,
"ChargeUnit": "HOUR"
}
},
"RequestId": "db071565-27cb-482a-a3fe-1c7bba77e4a9"
}
}
This example shows you how to modify the bandwidth inquiry for monthly bandwidth EIP.
POST / HTTP/1.1
Host: vpc.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: InquiryPriceModifyAddressesBandwidth
<Common request parameters>
{
"AddressIds": [
"eip-iu4ml5pp"
],
"InternetMaxBandwidthOut": 5
}
{
"Response": {
"Price": {
"AddressPrice": {
"OriginalPrice": 95,
"DiscountPrice": 95
}
},
"RequestId": "ddf8edf2-0457-4ba7-b2ab-e66e98823cc6"
}
}
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 |
---|---|
InvalidParameterValue.AddressNotFound | Unable to find the address. |
InvalidParameterValue.BandwidthOutOfRange | The bandwidth exceeds the limit. |
InvalidParameterValue.BandwidthTooSmall | The selected bandwidth is smaller than the minimum permissible range. |
InvalidParameterValue.ResourceExpired | The resource has expired. |
InvalidParameterValue.ResourceNotSupport | The resource does not support this operation. |
本页内容是否解决了您的问题?