Yandex Cloud
  • Services
  • Solutions
  • Why Yandex Cloud
  • Blog
  • Pricing
  • Documentation
  • Contact us
Get started
Language / Region
Yandex project
© 2023 Intertech Services AG
Yandex Virtual Private Cloud
  • Getting started
  • Step-by-step instructions
    • All instructions
    • Cloud network
    • Subnet
    • IP address
      • 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
      • Deleting a static public IP address
    • Static routing
    • Security groups
    • Enable a software-accelerated network
    • DDoS protection
    • Chart of network connections
  • Practical guidelines
  • Concepts
  • DDoS Protection
  • Recommendations
  • Access management
  • Pricing policy
  • API reference
  • Questions and answers
  1. Step-by-step instructions
  2. IP address
  3. Moving an address between folders

Moving a public IP address to a different folder

Written by
Yandex Cloud
  • Examples
    • Address in the current folder
    • Address in a different folder

You can move cloud resources between folders within a single cloud.

Management console
CLI
API

To move a public IP address to a different folder:

  1. In the management console, go to the folder where the address is located.
  2. In the list of services, select Virtual Private Cloud.
  3. On the left-hand panel, select IP addresses.
  4. Click in the row of the address to be moved and select Move.
  5. Select the destination folder from the drop-down list.
  6. Click Move.

If you don't have the Yandex Cloud command line interface yet, install and initialize it.

The folder specified in the CLI profile is used by default. You can specify a different folder using the --folder-name or --folder-id parameter.

To move a public IP address to a different folder:

  1. View a description of the CLI move address command:

    yc vpc address move --help
    
  2. Get the name or ID of the address to move:

    yc vpc address list
    

    Result:

    +----------------------+------+---------------+----------+-------+
    |          ID          | NAME |    ADDRESS    | RESERVED | USED  |
    +----------------------+------+---------------+----------+-------+
    | e2l50m7qo8gp35c6c58i |      | 84.252.137.20 | true     | false |
    | e9b0qnmuh2cbglk265oi |      | 51.250.65.244 | true     | false |
    | e9br252il3ceakc3rk94 |      | 51.250.68.195 | false    | true  |
    +----------------------+------+---------------+----------+-------+
    
  3. Get a list of available folders:

    yc resource-manager folder list
    

    Result:

    +----------------------+------------------------+--------+--------+
    |          ID          |          NAME          | LABELS | STATUS |
    +----------------------+------------------------+--------+--------+
    | b1cs8ie21pk10aurd2c3 | default                |        | ACTIVE |
    | b1chgf288nvg541tgu73 | my-folder-1            |        | ACTIVE |
    | b1cu6g9ielh690at5bm7 | my-folder-2            |        | ACTIVE |
    +----------------------+------------------------+--------+--------+
    
  4. Move the address by specifying the name or ID of the address and destination folder:

    yc vpc address move <address_name_or_ID> \
      --destination-folder-name <name_of_destination_folder> \
      --destination-folder-id <ID_of_destination_folder>
    

    Use either the --destination-folder-name parameter or the --destination-folder-id parameter.

    If the address is not in the current folder (default folder), specify the source folder using the --folder-name or --folder-id option.

    Result:

     id: e9br252il3ceakc3rk94
     folder_id: b1chgf288nvg541tgu73
     created_at: "2022-10-10T05:38:43Z"
     external_ipv4_address:
       address: 51.250.68.195
       zone_id: ru-central1-a
       requirements: {}
     used: true
     type: EXTERNAL
     ip_version: IPV4
    

    For more information about the yc vpc address move command, see the CLI reference.

To move a public IP address to a different folder, use the move REST API method for the Address resource or the AddressService/Move gRPC API call.

Examples

Address in the current folder

Move an address from the current folder by specifying the address name and destination folder name:

CLI
yc vpc address move site-1 \
  --destination-folder-name my-folder-1

Address in a different folder

Move an address from a different folder. Specify the address ID and the source and destination folder IDs:

CLI
yc vpc address move e9br252il3ceakc3rk94 \
  --folder-id b1chgf288nvg541tgu73 \
  --destination-folder-id b1cs8ie21pk10aurd2c3

Was the article helpful?

Language / Region
Yandex project
© 2023 Intertech Services AG
In this article:
  • Examples
  • Address in the current folder
  • Address in a different folder