Yandex Cloud
  • Services
  • Solutions
  • Why Yandex Cloud
  • Pricing
  • Documentation
  • Contact us
Get started
Language / Region
© 2022 Yandex.Cloud LLC
Yandex Virtual Private Cloud
  • Getting started
  • Step-by-step instructions
    • All instructions
    • Cloud network
      • Creating a cloud network
      • Deleting a cloud network
      • Updating a cloud network
    • Subnet
      • Creating a subnet
      • Deleting a subnet
      • Updating a subnet
      • Viewing a list of used addresses
    • IP address
      • Reserving a static public IP address
      • Making a dynamic public IP address static
      • Making a static public IP address dynamic
      • Deleting a static public IP address
    • Static routing
      • Creating a static route
      • Enabling NAT to the internet
    • Security groups
      • Create a security group
      • Update a security group and rules
      • Delete a security group
    • Enable a software-accelerated network
    • Protection from DDoS attacks
      • Enable protection from DDoS attacks
  • Practical guidelines
    • Architecture and protection of a basic internet service
    • DHCP settings for working with a corporate DNS server
  • Concepts
    • Relationship between service resources
    • Cloud networks and subnets
    • Cloud resource addresses
    • Static routes
    • Security groups
    • Public IP address ranges
    • MTU and MSS
    • DHCP settings
    • Software-accelerated network
    • Quotas and limits
  • DDoS Protection
  • Recommendations
    • Using public IP addresses
  • Access management
  • Pricing policy
    • Current pricing policy
    • Archive
      • Before January 1, 2019
  • API reference
    • Authentication in the API
    • REST
      • Overview
      • Address
        • Overview
        • create
        • delete
        • get
        • getByValue
        • list
        • listOperations
        • move
        • update
      • Gateway
        • Overview
        • create
        • delete
        • get
        • list
        • listOperations
        • move
        • update
      • Network
        • Overview
        • create
        • delete
        • get
        • list
        • listOperations
        • listRouteTables
        • listSecurityGroups
        • listSubnets
        • move
        • update
      • RouteTable
        • Overview
        • create
        • delete
        • get
        • list
        • listOperations
        • move
        • update
      • SecurityGroup
        • Overview
        • create
        • delete
        • get
        • list
        • listOperations
        • move
        • update
        • updateRule
        • updateRules
      • Subnet
        • Overview
        • addCidrBlocks
        • create
        • delete
        • get
        • list
        • listOperations
        • move
        • removeCidrBlocks
        • update
      • Operation
        • Overview
        • get
    • gRPC
      • Overview
      • AddressService
      • GatewayService
      • NetworkService
      • RouteTableService
      • SecurityGroupService
      • SubnetService
      • OperationService
  • Questions and answers
  1. Step-by-step instructions
  2. Cloud network
  3. Updating a cloud network

Updating a cloud network

Written by
Yandex Cloud
  • Examples
    • Changing a cloud network using its name

After creating a cloud network, you can change its name, description, and tags.

CLI

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.

  1. See the description of the CLI command for updating cloud network parameters:

    $ yc vpc network update --help
    
  2. Get a list of all networks in the default folder:

    $ yc vpc network list
    +----------------------+----------------+
    |          ID          |      NAME      |
    +----------------------+----------------+
    | enpavfmgapumnl7cqin8 | test-network-1 |
    | enplom7a98s1t0lhass8 | default        |
    +----------------------+----------------+
    
  3. Select the ID or NAME of the network you need.

  4. Change the parameters of the cloud network by specifying its name:

    $ yc vpc network update enpavfmgapumnl7cqin8 --new-name test-network-renamed
    id: enpavfmgapumnl7cqin8
    folder_id: b1g6ci08ma55klukmdjs
    created_at: "2018-10-23T14:05:32Z"
    name: test-network-renamed
    description: My first network
    labels:
      new_label: test_label
    

You can pass the ID and name as positional arguments, or you can use the --id and --name flags:

$ yc vpc network update --name test-network-1 --new-name test-network-renamed --labels new_label=test_label
$ yc vpc network update --id enpavfmgapumnl7cqin8 --new-name test-network-renamed --labels new_label=test_label

Examples

Changing a cloud network using its name

You can change a cloud network using its name instead of its ID:

CLI
$ yc vpc network update test-network-1 --new-name test-network-renamed --labels new_label=test_label
id: enpavfmgapumnl7cqin8
folder_id: b1g6ci08ma55klukmdjs
created_at: "2018-10-23T14:05:32Z"
name: test-network-renamed
description: My first network
labels:
  new_label: test_label

Was the article helpful?

Language / Region
© 2022 Yandex.Cloud LLC
In this article:
  • Examples
  • Changing a cloud network using its name