Domain name for API request: vpc.intl.tencentcloudapi.com.
This API (InquiryPriceRenewAddresses) is used to query the price of renewing prepaid EIPs.
A maximum of 2 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: InquiryPriceRenewAddresses. |
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 | Indicates the renewal resource instance ID. |
AddressChargePrepaid | Yes | AddressChargePrepaid | A required billing parameter for an EIP billed by "BANDWIDTH_PREPAID_BY_MONTH". When the EIP is billed by "BANDWIDTH_PREPAID_BY_MONTH", this parameter is required. For other scenarios, it can be ignored. |
Parameter Name | Type | Description |
---|---|---|
Price | InternetPrice | Elastic Public IP renewal price. |
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. |
POST / HTTP/1.1
Host: vpc.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: InquiryPriceRenewAddresses
<Common request parameters>
{
"AddressIds": [
"eip-iu4ml5pp"
],
"AddressChargePrepaid": {
"Period": 12
}
}
{
"Response": {
"Price": {
"AddressPrice": {
"OriginalPrice": 240,
"DiscountPrice": 240
}
},
"RequestId": "84658acc-bdb9-4a3e-a37a-84a2e0c14e44"
}
}
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 |
---|---|
InvalidAddressId.NotFound | The specified EIP does not exist. |
InvalidParameterValue.AddressNotFound | Unable to find the address. |
UnsupportedOperation.InvalidAddressInternetChargeType | This operation is not allowed under the network billing mode of the IP address. |
Was this page helpful?