:doc:`EC2 <../../ec2>` / Client / restore_address_to_classic

**************************
restore_address_to_classic
**************************



.. py:method:: EC2.Client.restore_address_to_classic(**kwargs)

  

  .. note::

    

    This action is deprecated.

    

   

  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.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RestoreAddressToClassic>`_  


  **Request Syntax**
  ::

    response = client.restore_address_to_classic(
        DryRun=True|False,
        PublicIp='string'
    )
    
  :type DryRun: boolean
  :param 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 PublicIp: string
  :param PublicIp: **[REQUIRED]** 

    The Elastic IP address.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'PublicIp': 'string',
          'Status': 'MoveInProgress'|'InVpc'|'InClassic'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **PublicIp** *(string) --* 

        The Elastic IP address.

        
      

      - **Status** *(string) --* 

        The move status for the IP address.

        
  

  **Examples**

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

    response = client.restore_address_to_classic(
        PublicIp='198.51.100.0',
    )
    
    print(response)

  
  Expected Output:
  ::

    {
        'PublicIp': '198.51.100.0',
        'Status': 'MoveInProgress',
        'ResponseMetadata': {
            '...': '...',
        },
    }

  