Modifies the EIP forwarding mode.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- For mandatory resource types, indicate with a prefix of * .
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
vpc:ModifyEipForwardMode | update | *Address acs:vpc:{#regionId}:{#accountId}:eip/{#AllocationId} |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The ID of the region to which the EIP belongs. You can call the DescribeRegions operation to query the most recent region list. | cn-hangzhou |
InstanceId | string | Yes | The ID of the EIP whose attributes you want to modify. | eip-j5ebhbw3br92fy**** |
Mode | string | Yes | The association mode. Valid values:
This parameter is required only if InstanceType is set to NetworkInterface.
| BINDED |
ClientToken | string | No | The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The client token can contain only ASCII characters.
If you do not specify this parameter, the system automatically uses the request ID as the client token. The RequestId may be different for each request.
| 02fb3da4-130e-11e9-8e44-0016e04115b |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "62C6A6A5-1534-53D9-AB1E-C9307A147ED5"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | Region.NotSupport | Region not support. | - |
400 | Instance.ModeError | eip instance mode error. | - |
400 | Instance.StatusError | eip status error. | - |
400 | ENI.BindEcs | eni bind ecs. | - |
400 | Forbidden.PrePaidBindedEip | prepaid eip cannot be direct. | - |
400 | BindInstance.NotSupport | eip can only change mode when it is allocated or bind eni. | - |
400 | Forbidden.PrePaidBindedEip | Prepaid eip cannot be direct. | - |
400 | IncorrectStatus.EipInstance | Eip instance's status is invalid. | - |
403 | Forbidden | User not authorized to operate on the specified resource. | You do not have the permissions to manage the specified resource. Apply for the permissions and try again. |
404 | Instance.NotFound | eip instance not found. | - |
404 | ENI.NotFound | eni not found. | - |
For a list of error codes, visit the Service error codes.