用途
用于创建一个弹性公网IP EIP实例
请求参数
名称 |
类型 |
描述 |
name |
String |
模板任务名称,必填 |
operator |
String |
模板任务类型,必填 |
properties |
Map<String, Object> |
任务执行所需参数,必填,详细内容见下表 |
properties参数
名称 |
类型 |
描述 |
name |
String |
EIP实例名称,必填 |
bandwidthInMbps |
int |
公网带宽,必填,单位:Mbps |
paymentTiming |
String |
付费方式,必填,Prepaid:预付费,Postpaid:后付费 |
billingMethod |
String |
计费方式,后付费时必填,ByTraffic:按流量付费,ByBandwidth:按带宽付费 |
reservationLength |
int |
购买时长,预付费时必填,单位:月 |
输出参数
名称 |
类型 |
描述 |
eip |
String |
EIP实例的公网IP地址 |
请求参数示例
{
"name": "createEipInstance",
"operator": "BCE::EIP::Create",
"properties": {
"name": "my_test_eip",
"bandwidthInMbps": 1,
"paymentTiming": "Postpaid",
"billingMethod": "ByTraffic"
}
}
{
"name": "createEipInstance",
"operator": "BCE::EIP::Create",
"properties": {
"name": "my_test_eip",
"bandwidthInMbps": 1,
"paymentTiming": "Prepaid",
"reservationLength": 1
}
}
输出参数示例