获取弹性IP价格-GetEIPPrice

获取弹性IP价格

Request Parameters

Parameter nameTypeDescriptionRequired
Regionstring地域。 参见 地域和可用区列表Yes
ProjectIdstring项目ID。不填写为默认项目,子帐号必须填写。 请参考GetProjectList接口No
OperatorNamestring弹性IP的线路如下: 国际: International BGP: Bgp 各地域允许的线路参数如下: cn-sh1: Bgp cn-sh2: Bgp cn-gd: Bgp cn-bj1: Bgp cn-bj2: Bgp hk: International us-ca: International th-bkk: International kr-seoul:International us-ws:International ge-fra:International sg:International tw-kh:International.其他海外线路均为 InternationalYes
Bandwidthint弹性IP的外网带宽, 单位为Mbps, 范围 [0-800]Yes
ChargeTypestring付费方式, 枚举值为: Year, 按年付费; Month, 按月付费; Dynamic, 按需付费(需开启权限); 默认为获取三种价格No
PayModestring弹性IP计费方式r. 枚举值为: Traffic, 流量计费; Bandwidth, 带宽计费; "ShareBandwidth",共享带宽模式. 默认为BandwidthNo

Response Elements

Parameter nameTypeDescriptionRequired
RetCodeint操作返回码Yes
Actionstring操作名称Yes
PriceSetarray弹性IP价格详情 详情见 EIPPriceDetailSetNo

EIPPriceDetailSet

Parameter nameTypeDescriptionRequired
ChargeTypestring弹性IP付费方式No
Pricefloat弹性IP价格, 单位"元"No
PurchaseValueint资源有效期, 以Unix Timestamp表示No

Request Example

https://api.ucloud.cn/?Action=GetEIPPrice
&Region=cn-bj2
&OperatorName=Bgp
&Bandwidth=4
&ChargeType=Month
&PayMode=Traffic

Response Example

{
    "Action": "GetEIPPriceResponse",
    "PriceSet": [
        {
            "ChargeType": "Dynamic",
            "Price": 0.1,
            "PurchaseValue": 1529900854
        },
        {
            "ChargeType": "Month",
            "Price": 50,
            "PurchaseValue": 1532489254
        },
        {
            "ChargeType": "Year",
            "Price": 500,
            "PurchaseValue": 1561433254
        }
    ],
    "Request_uuid": "b2f6d562-4a22-428b-b88c-XXXXXX",
    "RetCode": 0
}