调用CreateEipInstance接口创建EIP实例。

使用说明

  • API调用频率:5000次/秒。
  • 单用户调用频率:50次/秒。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
Action String CreateEipInstance

系统规定参数。取值:CreateEipInstance

EnsRegionId String cn-suzhou-telecom

ENS节点ID。

Bandwidth Long 5

EIP的带宽峰值,默认值为5。取值范围:5~10000,单位:Mbps。

InstanceChargeType String PostPaid

EIP的计费方式,取值:

  • PrePaid:包年包月。
  • PostPaid(默认值):月按量计费。
说明InstanceChargeType取值为PostPaid时,InternetChargeType不能为PayByBandwidth
InternetChargeType String 95BandwidthByMonth

EIP的计费方式,取值:

  • PayByBandwidth(默认值):按带宽计费。
  • 95BandwidthByMonth:月95带宽计费。
Name String EIP1

EIP实例名称。

Isp String cmcc

运营商信息,取值:

  • cmcc:中国移动。
  • unicom:中国联通。
  • telecom:中国电信。

返回数据

名称 类型 示例值 描述
RequestId String 9DB6123F-470D-510A-A9EB-EBA799340452

请求ID。

AllocationId String eip-25877c70gddh****

EIP实例的ID。

示例

请求示例

http(s)://ens.aliyuncs.com/?Action=CreateEipInstance
&EnsRegionId=cn-suzhou-telecom
&Bandwidth=5
&InstanceChargeType=PostPaid
&InternetChargeType=95BandwidthByMonth
&Name=EIP1
&Isp=cmcc
&公共请求参数

正常返回示例

XML格式

HTTP/1.1 200 OK
Content-Type:application/xml

<CreateEipInstanceResponse>
    <RequestId>9DB6123F-470D-510A-A9EB-EBA799340452</RequestId>
    <AllocationId>eip-25877c70gddh****</AllocationId>
</CreateEipInstanceResponse>

JSON格式

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "9DB6123F-470D-510A-A9EB-EBA799340452",
  "AllocationId" : "eip-25877c70gddh****"
}

错误码

HttpCode 错误码 错误信息 描述
400 NoPermission Permission denied. 没有足够的权限,请联系云账号管理员授予您相应权限。

访问错误中心查看更多错误码。