tencent cloud

文档反馈

InquiryPriceModifyAddressesBandwidth

最后更新时间:2024-12-30 20:28:02

1. API Description

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.

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: 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

3. Output Parameters

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.

4. Example

Example1 Modifying Bandwidth Inquiry for Hourly Traffic EIP

Hourly traffic EIP bandwidth modification inquiry.

Input Example

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"
    ]
}

Output Example

{
    "Response": {
        "Price": {
            "AddressPrice": {
                "UnitPrice": 0.8,
                "DiscountPrice": 0.8,
                "ChargeUnit": "HOUR"
            }
        },
        "RequestId": "7daad6af-50de-4df5-8238-0d76c7be62e1"
    }
}

Example2 Modifying Bandwidth Inquiry for Hourly Bandwidth EIP

This example shows you how to modify the bandwidth inquiry for hourly bandwidth EIP.

Input Example

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
}

Output Example

{
    "Response": {
        "Price": {
            "AddressPrice": {
                "UnitPrice": 0.315,
                "DiscountPrice": 0.315,
                "ChargeUnit": "HOUR"
            }
        },
        "RequestId": "db071565-27cb-482a-a3fe-1c7bba77e4a9"
    }
}

Example3 Modifying Bandwidth Inquiry for Monthly Bandwidth EIP

This example shows you how to modify the bandwidth inquiry for monthly bandwidth EIP.

Input Example

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
}

Output Example

{
    "Response": {
        "Price": {
            "AddressPrice": {
                "OriginalPrice": 95,
                "DiscountPrice": 95
            }
        },
        "RequestId": "ddf8edf2-0457-4ba7-b2ab-e66e98823cc6"
    }
}

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
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.