RestoreAddressToClassic - Amazon Elastic Compute Cloud
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China.

RestoreAddressToClassic

Restores an Elastic IP address that was previously moved to the EC2-VPC platform back to the EC2-Classic platform. You cannot move an Elastic IP address that was originally allocated for use in EC2-VPC. The Elastic IP address must not be associated with an instance or network interface.

Note

We are retiring EC2-Classic. We recommend that you migrate from EC2-Classic to a VPC. For more information, see Migrate from EC2-Classic to a VPC in the Amazon Elastic Compute Cloud User Guide.

Request Parameters

The following parameters are for this specific action. For more information about required and optional parameters that are common to all actions, see Common Query Parameters.

DryRun

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

Type: Boolean

Required: No

PublicIp

The Elastic IP address.

Type: String

Required: Yes

Response Elements

The following elements are returned by the service.

publicIp

The Elastic IP address.

Type: String

requestId

The ID of the request.

Type: String

status

The move status for the IP address.

Type: String

Valid Values: MoveInProgress | InVpc | InClassic

Errors

For information about the errors that are common to all actions, see Common client error codes.

Examples

Example

This example restores Elastic IP address 54.123.45.67 to the EC2-Classic platform.

Sample Request

https://ec2.amazonaws.com/?Action=RestoreAddressToClassic &publicIp=54.123.45.67 &AUTHPARAMS

Sample Response

<RestoreAddressToClassicResponse xmlns="http://ec2.amazonaws.com/doc/2016-11-15/"> <requestId>f7de5e98-491a-4c19-a92d-908d6EXAMPLE</requestId> <publicIp>54.123.45.67</publicIp> <status>MoveInProgress</status> </RestoreAddressToClassicResponse>

See Also

For more information about using this API in one of the language-specific Amazon SDKs, see the following: