gcloud vmware private-clouds subnets update

NAME
gcloud vmware private-clouds subnets update - update a subnet
SYNOPSIS
gcloud vmware private-clouds subnets update(SUBNET :--location=LOCATION--private-cloud=PRIVATE_CLOUD)--ip-cidr-range=IP_CIDR_RANGE[GCLOUD_WIDE_FLAG]
DESCRIPTION
Update a Subnet. Only ip-cidr-range can be updated. This is a synchronouscommand and doesn't support--async and--no-asyncflags.
EXAMPLES
To update a subnet namedmy-subnet, that belongs to the privatecloudmy-private-cloud in projectmy-project and zoneus-west1-a by changing its ip-cidr-range to10.0.0.0/24, run:
gcloudvmwareprivate-cloudssubnetsupdatemy-subnet--private-cloud=my-private-cloud--location=us-west1--project=my-project--ip-cidr-range=10.0.0.0/24

Or:

gcloudvmwareprivate-cloudssubnetsupdatemy-subnet--private-cloud=my-private-cloud--ip-cidr-range=10.0.0.0/24

In the second example, the project and location are taken from gcloud propertiescore/project andcompute/zone, respectively.

POSITIONAL ARGUMENTS
Subnet resource - subnet. The arguments in this group can be used to specify theattributes of this resource. (NOTE) Some attributes are not given arguments inthis group but can be set in other ways.

To set theproject attribute:

  • provide the argumentsubnet on the command line with a fullyspecified name;
  • provide the argument--project on the command line;
  • set the propertycore/project.

This must be specified.

SUBNET
ID of the subnet or fully qualified identifier for the subnet.

To set thesubnet attribute:

  • provide the argumentsubnet on the command line.

This positional argument must be specified if any of the other arguments in thisgroup are specified.

--location=LOCATION
Location of the private cloud or cluster.

To set thelocation attribute:

  • provide the argumentsubnet on the command line with a fullyspecified name;
  • provide the argument--location on the command line;
  • set the propertycompute/zone.
--private-cloud=PRIVATE_CLOUD
VMware Engine private cloud.

To set theprivate-cloud attribute:

  • provide the argumentsubnet on the command line with a fullyspecified name;
  • provide the argument--private-cloud on the command line.
REQUIRED FLAGS
--ip-cidr-range=IP_CIDR_RANGE
Updated IP CIDR range for this subnet.
GCLOUD WIDE FLAGS
These flags are available to all commands:--access-token-file,--account,--billing-project,--configuration,--flags-file,--flatten,--format,--help,--impersonate-service-account,--log-http,--project,--quiet,--trace-token,--user-output-enabled,--verbosity.

Run$gcloud help for details.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-05-07 UTC.