Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
  • Blog
  • Pricing
  • Documentation
Yandex project
© 2025 Yandex.Cloud LLC
Yandex Virtual Private Cloud
  • Getting started
    • All guides
      • Reserving a static public IP address
      • Converting a dynamic public IP address to static
      • Converting a static public IP address to dynamic
      • Moving an address between folders
      • Getting information about an IP address
      • Deleting a static public IP address
    • Enabling a software-accelerated network
    • Chart of network connections
    • Viewing operations with resources
  • DDoS Protection
  • Access management
  • Terraform reference
  • Audit Trails events
  • Release notes
  • FAQ
  1. Step-by-step guides
  2. IP address
  3. Converting a static public IP address to dynamic

Converting a static public IP address to dynamic

Written by
Yandex Cloud
Updated at May 5, 2025

You can convert a static public IP address assigned to a cloud resource to dynamic. If a VM uses a dynamic IP address, it gets lost when the VM is stopped and changes when it is started again.

Management console
CLI
API
  1. In the management console, select the folder containing the address.
  2. In the list of services, select Virtual Private Cloud.
  3. In the left-hand panel, select IP addresses.
  4. Click in the row of the IP address and select Make dynamic.
  5. In the window that opens, click Change.

If you do not have the Yandex Cloud CLI yet, install and initialize it.

The folder specified when creating the CLI profile is used by default. To change the default folder, use the yc config set folder-id <folder_ID> command. You can specify a different folder using the --folder-name or --folder-id parameter.

  1. View the description of the CLI commands for updating the address attribute:

    yc vpc address update --help
    
  2. Get a list of addresses in the default folder:

    yc vpc address list
    

    Result:

    +----------------------+------+---------------+----------+------+
    |          ID          | NAME |    ADDRESS    | RESERVED | USED |
    +----------------------+------+---------------+----------+------+
    | e2l46k8conff******** |      | 84.201.177.41 | true     | true |
    +----------------------+------+---------------+----------+------+
    

    The true value of the RESERVED parameter for the IP address with the e2l46k8conff******** ID shows that this address is static.

  3. Convert it to dynamic by using the --reserved=false key and the address ID:

    yc vpc address update --reserved=false e2l46k8conff********
    

    Result:

    id: e2l46k8conff********
    folder_id: b1g7gvsi89m3********
    created_at: "2021-01-14T09:36:46Z"
    external_ipv4_address:
      address: 84.201.177.41
      zone_id: ru-central1-a
      requirements: {}
    used: true
    

    The IP address is now dynamic.

To change the type of a public IP address from static to dynamic, use the update REST API method for the Address resource or the AddressService/Update gRPC API call, and provide the following in the request:

  • ID of the IP address you want to convert to dynamic, in the addressId parameter.

    To get the address ID, use the list REST API method for the Address resource or the AddressService/List gRPC API call and provide the folder ID in the folderId request parameter.

    To learn how to find out the folder ID, see Getting the folder ID.

  • false in the reserved parameter.

  • Name of the reserved parameter in the updateMask parameter.

Warning

The API method will assign default values to all the parameters of the object you are modifying unless you explicitly provide them in your request. To avoid this, list the settings you want to change in the updateMask parameter as a single comma-separated string.

Was the article helpful?

Previous
Converting a dynamic public IP address to static
Next
Moving an address between folders
Yandex project
© 2025 Yandex.Cloud LLC