获取VPN价格-GetVPNGatewayPrice

获取VPN价格

Request Parameters

Parameter nameTypeDescriptionRequired
Regionstring地域。 参见 地域和可用区列表Yes
ProjectIdstring项目ID。不填写为默认项目,子帐号必须填写。 请参考GetProjectList接口Yes
GradestringVPN网关规格。枚举值,包括:标准型:Standard,增强型:Enhanced。Yes
ChargeTypestring付费方式, 枚举值为: Year, 按年付费; Month, 按月付费; Dynamic, 按需付费(需开启权限); 默认为获取三种价格No
Quantityint购买时长, 默认: 1No

Response Elements

Parameter nameTypeDescriptionRequired
RetCodeint操作返回码Yes
Actionstring操作名称Yes
PriceSetarray获取的VPN网关价格信息列表,每项参数详见 VPNGatewayPriceSetNo

Request Example

https://api.ucloud.cn/?Action=GetVPNGatewayPrice
&Region=cn-sh2
&ProjectId=org-XXXXXX
&Grade=Standard
&ChargeType=Month
&Quantity=1

Response Example

{
    "Action": "GetVPNGatewayPriceResponse",
    "PriceSet": [
        {
            "Price": 0.19,
            "PurchaseValue": 1530080647,
            "ChargeType": "Dynamic"
        },
        {
            "Price": 90,
            "PurchaseValue": 1532669047,
            "ChargeType": "Month"
        },
        {
            "Price": 900,
            "PurchaseValue": 1561613047,
            "ChargeType": "Year"
        }
    ],
    "RetCode": 0
}