Skip to Content
基础网络 UNet获取弹性IP价格 - GetEIPPrice

获取弹性IP价格 - GetEIPPrice

简介

获取弹性IP价格

定义

公共参数

参数名类型描述信息必填
Actionstring对应的 API 指令名称,当前 API 为 GetEIPPriceYes
PublicKeystring用户公钥,可从 控制台 获取Yes
Signaturestring根据公钥及 API 指令生成的用户签名,参见 签名算法Yes

请求参数

参数名类型描述信息必填
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.其他海外线路均为 International,泉州为移动单线cn-qz:ChinaMobileYes
Bandwidthint弹性IP的外网带宽, 单位为Mbps, 范围 [0-800]Yes
ChargeTypestring付费方式, 枚举值为: Year, 按年付费; Month, 按月付费; Dynamic, 按时付费; 默认为获取三种价格No
PayModestring弹性IP计费方式r. 枚举值为: Traffic, 流量计费; Bandwidth, 带宽计费; “ShareBandwidth”,共享带宽模式. 默认为BandwidthNo
Quantityint购买时长。默认: 1。按小时购买(Dynamic)时无需此参数。 月付时,此参数传0,代表了购买至月末No

响应字段

字段名类型描述信息必填
RetCodeint返回状态码,为 0 则为成功返回,非 0 为失败Yes
Actionstring操作指令名称Yes
Messagestring返回错误消息,当 RetCode 非 0 时提供详细的描述信息No
PriceSetarray[EIPPriceDetailSet]弹性IP价格详情 详情见 EIPPriceDetailSetNo

数据模型

EIPPriceDetailSet

字段名类型描述信息必填
ChargeTypestring弹性IP付费方式No
Pricefloat购买弹性IP的实际价格, 单位”元”No
OriginalPricefloat弹性IP的原价,单位“元”No
PurchaseValueint资源有效期, 以Unix Timestamp表示No

示例

请求示例

https://api-ajyun.cachecenter.com/?Action=GetEIPPrice &Region=cn-bj2 &OperatorName=Bgp &Bandwidth=4 &ChargeType=Month &PayMode=Traffic &Quantity=2

响应示例

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