ucloud eip default charge type Dynamic

This commit is contained in:
TangBin
2019-05-11 15:31:45 +08:00
parent 1053b24a48
commit c8de3c82d7
+1
View File
@@ -228,6 +228,7 @@ func (self *SRegion) CreateEIP(name string, bwMbps int, chargeType string, bgpTy
payMode = "Bandwidth"
}
params.Set("PayMode", payMode)
params.Set("ChargeType", "Dynamic") // 按需付费
eips := make([]SEip, 0)
err := self.DoAction("AllocateEIP", params, &eips)