ModifyEipAddressAttribute - 修改EIP属性

更新时间:
复制 MD 格式

调用ModifyEipAddressAttribute接口修改指定EIP的名称、描述信息和带宽峰值。

调试

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

调试

授权信息

下表是API对应的授权信息,可以在RAM权限策略语句的Action元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:

  • 操作:是指具体的权限点。

  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。

  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:

    • 对于必选的资源类型,用前面加 * 表示。

    • 对于不支持资源级授权的操作,用全部资源表示。

  • 条件关键字:是指云产品自身定义的条件关键字。

  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。

操作

访问级别

资源类型

条件关键字

关联操作

vpc:ModifyEipAddressAttribute

update

*Address

acs:vpc:{#regionId}:{#accountId}:eip/{#AllocationId}

请求参数

名称

类型

必填

描述

示例值

AllocationId

string

需要修改的后付费类型 EIP 的 ID。

eip-2zeerraiwb7uj6i0d****

Bandwidth

string

需要修改 EIP 的带宽峰值,取值:

  • 1~200,按使用流量计费,单位为 Mbps。

  • 1~500,按固定带宽计费,单位为 Mbps。

100

RegionId

string

EIP 所属的地域 ID。

您可以通过调用 DescribeRegions 接口获取地域 ID。

cn-hangzhou

Name

string

需要修改的 EIP 的名称。

名称长度为 0-128 个字符,不能以http://https://开头。

Test123

Description

string

需要修改的 EIP 描述信息。

长度为 0-256 个字符,不能以http://https://开头。

abc

返回参数

名称

类型

描述

示例值

object

返回信息列表。

RequestId

string

请求 ID。

0ED8D006-F706-4D23-88ED-E11ED28DCAC0

示例

正常返回示例

JSON格式

{
  "RequestId": "0ED8D006-F706-4D23-88ED-E11ED28DCAC0"
}

错误码

HTTP status code

错误码

错误信息

描述

400 OrderError.EIP The Account failed to create order. 下单失败
400 InsufficientBalance.Eip Your account does not have enough balance.
400 InvalidParameter Specified value of "Bandwidth" is not supported.
400 Forbidden.ChargeTypeIsPrepaid It?s forbidden to change prepaid EIP?s bandwidth by API. It can be changed on Aliyun web console.
400 IncorrectEipStatus Current elastic IP status does not support this operation.
400 InvalidBandwidth.OutOfMaxTrafficBindedOnNatgw The bandwidth is out of max traffic binded on natgw.
400 QuotaExceeded.LargeSpecEip Elastic IP address with large spec quota exceeded.
400 InvalidEipAddressName.Malformed The specified Name is not valid.
400 ResourceQueryError The specified resource is queried error. 查询指定的资源时出错。
400 InvalidDescription.Malformed Invalid description.
400 Abs.InvalidBandwidth.Malformed Specified value of Bandwidth is not supported.
400 InvalidEIPStatus.BizDisabled The EIP has been locked. EIP实例被锁定
400 OperationFailed.SaleValidate Validate sale condition with subArticle failed. 使用子项目验证销售条件失败。
400 OperationFailed.SyncOrderToSub SyncOrderToSub error. 操作失败
400 COMMODITY.INVALID_COMPONENT The instance component is invalid. 销售模块参数不满足约束检查
400 OperationFailed.CompleteUserInfo Complete user info failed.
400 OperationFailed.ConcurrentRequest Operation failed because concurrent request.
400 IncorrectStatus.ResourceStatus Resource status is abnormal for renew.
400 Forbidden.FinancialLocked The ip business status is invalid. 该实例已欠费锁定,无法操作
400 MissingParam.InstanceId The parameter InstanceId is mandatory. 物理专线实例ID必须填写。
500 InternalError The request processing has failed due to some unknown error.
500 OrderError.EIP The Account failed to create order.
404 InvalidAllocationId.NotFound Specified allocation id is not found.
404 Forbidden.InCommonBandwidthPackage Specified allocation ID in common bandwidth package.
404 Forbidden.RegionNotFound Specified region is not found during access authentication.

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

变更历史

更多信息,参考变更详情