tencent cloud

피드백

InquiryPriceCreateVpnGateway

마지막 업데이트 시간:2022-01-18 17:04:51

1. API Description

Domain name for API request: vpc.tencentcloudapi.com.

This API (InquiryPriceCreateVpnGateway) is used to query the price for VPN gateway creation.

A maximum of 100 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.
This document describes the parameters for Signature V1. It's recommended to use the V3 signature, which provides higher security. Note that for Signature V3, the common parameters need to be placed in the HTTP Header. See details.

Parameter Name Required Type Description
Action Yes String Common parameter. The value used for this API: InquiryPriceCreateVpnGateway.
Version Yes String Common parameter. The value used for this API: 2017-03-12.
Region Yes String Common parameter. For more information, please see the list of regions supported by the product.
InternetMaxBandwidthOut Yes Integer The public network bandwidth configuration. Available bandwidth specifications: 5, 10, 20, 50, and 100. Unit: Mbps.
InstanceChargeType No String The VPN gateway billing mode. PREPAID: prepaid means monthly subscription. POSTPAID_BY_HOUR: postpaid means pay-as-you-go. Default: POSTPAID_BY_HOUR. If prepaid mode is specified, the InstanceChargePrepaid parameter must be entered.
InstanceChargePrepaid No InstanceChargePrepaid Parameter settings for prepaid billing mode, also known as monthly subscription. This parameter can specify the purchase period and other attributes such as auto-renewal. This parameter is mandatory for prepaid instances.

3. Output Parameters

Parameter Name Type Description
Price Price Product price.
RequestId String The unique request ID, which is returned for each request. RequestId is required for locating a problem.

4. Example

Example1 Querying monthly subscription prices

Input Example

https://vpc.tencentcloudapi.com/?Action=InquiryPriceCreateVpnGateway
&Version=2017-03-12
&InstanceChargeType=PREPAID
&InstanceChargePrepaid.Period=1
&InternetMaxBandwidthOut=5
&<Common request parameters>

Output Example

{
  "Response": {
    "Price": {
      "InstancePrice": {
        "OriginalPrice": 380,
        "DiscountPrice": 380
      }
    },
    "RequestId": "1b2534de-3f38-4913-921a-af5ff1a9cb73"
  }
}

Example2 Querying pay-as-you-go prices

Input Example

https://vpc.tencentcloudapi.com/?Action=InquiryPriceCreateVpnGateway
&Version=2017-03-12
&InstanceChargeType=POSTPAID_BY_HOUR
&InternetMaxBandwidthOut=5
&<Common request parameters>

Output Example

{
  "Response": {
    "Price": {
      "InstancePrice": {
        "UnitPrice": 0.48,
        "ChargeUnit": "HOUR"
      },
      "BandwidthPrice": {
        "UnitPrice": 0.8,
        "ChargeUnit": "GB"
      }
    },
    "RequestId": "e87327cd-f8fa-4340-9959-58ebe8f11f6b"
  }
}

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 Incorrect parameter value.
문의하기

고객의 업무에 전용 서비스를 제공해드립니다.

기술 지원

더 많은 도움이 필요하시면, 티켓을 통해 연락 바랍니다. 티켓 서비스는 연중무휴 24시간 제공됩니다.

연중무휴 24시간 전화 지원