ModifyEipAddressAttribute - 修改EIP屬性

更新時間:
Copy as 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.

訪問錯誤中心查看更多錯誤碼。

變更歷史

更多資訊,參考變更詳情