createEip
Description
Create eip.
Request Method
POST
Request Path
/customer/eip/create
Request Parameters Common Parameters
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
chargingMethod | BODY | string | Yes | No sample value for this parameter. | charging method. PayByBandwidth or PayByTraffic |
period | BODY | integer | Yes | No sample value for this parameter. | period |
cost | BODY | number | Yes | No sample value for this parameter. | amount |
quantity | BODY | integer | Yes | No sample value for this parameter. | quantity |
bandwidth | BODY | string | Yes | No sample value for this parameter. | bandwidth. the range is from 1 to 5120MB. |
instanceName | BODY | string | Yes | No sample value for this parameter. | instance name |
billingMethod | BODY | string | Yes | No sample value for this parameter. | billing method. Subscription or PayAsYouGo |
voucherInstanceId | BODY | string | Yes | No sample value for this parameter. | voucher instance id |
couponInstanceId | BODY | string | Yes | No sample value for this parameter. | coupon instance id |
autoRenewalFlag | BODY | boolean | Yes | No sample value for this parameter. | auto renew flag |
regionId | BODY | string | Yes | No sample value for this parameter. | region id |
lineType | BODY | string | Yes | No sample value for this parameter. | line type. eg:BGP |
pricingCycle | BODY | string | Yes | No sample value for this parameter. | cycle. Month or Year |
networkType | BODY | string | Yes | No sample value for this parameter. | network type |
Return data
Name | Type | Sample value | Description |
---|---|---|---|
result | object | `{"orders":[{"instanceId":"d681268a-3489-4c61-a115-d1629e8edea7","orderId":2.0220727154128E+18}]}` | result |
resultCode | string | 0 | result code |
resultMsg | string | success | result message |
Example
Successful Response example
{
"result":
{
"orders":
[
{
"instanceId":"d681268a-3489-4c61-a115-d1629e8edea7",
"orderId":2.0220727154128E+18
}
]
},
"resultCode":"0",
"resultMsg":"success"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}