Modifies the name, description, and maximum bandwidth of a pay-as-you-go elastic IP address (EIP). You cannot call this operation to modify the name, description, or maximum bandwidth of a subscription EIP.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ModifyEipAddressAttribute | The operation that you want to perform. Set the value to ModifyEipAddressAttribute. |
AllocationId | String | Yes | eip-2zeerraiwb7uj6i0d**** | The ID of the pay-as-you-go EIP. |
Bandwidth | String | No | 100 | The new maximum bandwidth of the EIP. Valid values:
|
RegionId | String | No | cn-hangzhou | The region ID of the EIP. You can call the DescribeRegions operation to query the most recent region list. |
Name | String | No | Test123 | The new name of the EIP. The name must be 1 to 128 characters in length, and can contain digits, periods (.), underscores (_), and hyphens (-). |
Description | String | No | abc | The new description of the EIP. The description must be 2 to 256 characters in length. It must start with a letter but cannot start with |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 0ED8D006-F706-4D23-88ED-E11ED28DCAC0 | The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=ModifyEipAddressAttribute
&AllocationId=eip-2zeerraiwb7uj6i0d****
&Bandwidth=100
&RegionId=cn-hangzhou
&Name=Test123
&Description=abc
&Common request parameters
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<ModifyEipAddressAttributeResponse>
<RequestId>0ED8D006-F706-4D23-88ED-E11ED28DCAC0</RequestId>
</ModifyEipAddressAttributeResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "0ED8D006-F706-4D23-88ED-E11ED28DCAC0"
}
Error codes
HttpCode | Error code | Error message | Description |
---|---|---|---|
400 | OrderError.EIP | The Account failed to create order. | The error message returned because the system failed to generate an order. |
400 | InsufficientBalance.Eip | Your account does not have enough balance. | The error message returned because you do not have sufficient balance within your Apsara Stack tenant account. Top up your Apsara Stack tenant account and try again. |
400 | InvalidParameter | Specified value of "Bandwidth" is not supported. | The error message returned because the specified bandwidth value is invalid. |
400 | IncorrectEipStatus | Current elastic IP status does not support this operation. | The error message returned because you cannot perform the operation when the specified EIP is in the current state. |
400 | InvalidParameter | The parameter is invalid. | The error message returned because the parameter is set to an invalid value. |
400 | InvalidEIPStatus.BizDisabled | The EIP has been locked. | The error message returned because the EIP is locked. |
400 | OperationFailed.SyncOrderToSub | SyncOrderToSub error. | The error message returned because the operation failed. |
400 | Forbidden.FinancialLocked | The ip business status is invalid. | The error message returned because the instance has overdue payments. |
404 | InvalidAllocationId.NotFound | Specified allocation id is not found. | The error message returned because the specified EIP does not exist. Check whether the value of the parameter is valid. |
404 | Forbidden.RegionNotFound | Specified region is not found during access authentication. | The error message returned because the specified region does not exist. Check whether the specified region ID is valid. |
500 | InternalError | The request processing has failed due to some unknown error. | The error message returned because some unknown errors occurred. |
500 | InternalError | The request processing has failed due to some unknown error, exception or failure. | The error message returned because an internal error has occurred. |
For a list of error codes, see Service error codes.