调用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的计费方式,取值:
说明 当InstanceChargeType取值为PostPaid时,InternetChargeType不能为PayByBandwidth。
|
InternetChargeType | String | 是 | 95BandwidthByMonth |
EIP的计费方式,取值:
|
Name | String | 否 | EIP1 |
EIP实例名称。 |
Isp | String | 否 | cmcc |
运营商信息,取值:
|
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
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. | 没有足够的权限,请联系云账号管理员授予您相应权限。 |
访问错误中心查看更多错误码。