All Products
Search
Document Center

ENS:UnassignPrivateIpAddresses

Last Updated:Mar 12, 2024

Unassigns secondary private IP addresses from an elastic network interface (ENI).

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
NetworkInterfaceIdstringYes

The ID of the ENI.

eni-f8z57orgmt6d144t20dw
PrivateIpAddressarrayYes

The secondary private IP addresses that you want to unassign.

stringYes

The secondary private IP address.

192.168.1.12

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

RequestIdstring

Id of the request

1ECC937A-AE0E-4626-BE51-DED1D6D1C888

Examples

Sample success responses

JSONformat

{
  "RequestId": "1ECC937A-AE0E-4626-BE51-DED1D6D1C888"
}

Error codes

HTTP status codeError codeError message
400Invalid%sThe specified parameter %s is invalid.
400Missing%sYou must specify the parameter %s.
400ens.interface.errorAn error occurred while calling the API.
400InvalidEniId.NotFoundThe specified NetworkInterfaceId does not exist.
400InvalidPrivateIpAddress.NotFoundThe specified privateIpAddress does not exist.
400IncorrectPrivateIpAddressStatusThe current status of the resource does not support this operation.
400NoPermissionPermission denied.
400InvalidParameter.%sThe specified field %s invalid. Please check it again.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history