- 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 synchronous
command and doesn't support
--asyncand--no-asyncflags. - EXAMPLES
-
To update a subnet named
my-subnet, that belongs to the private cloudmy-private-cloudin projectmy-projectand zoneus-west1-aby changing its ip-cidr-range to10.0.0.0/24, run:gcloud vmware private-clouds subnets update my-subnet --private-cloud=my-private-cloud --location=us-west1 --project=my-project --ip-cidr-range=10.0.0.0/24Or:
gcloud vmware private-clouds subnets update my-subnet --private-cloud=my-private-cloud --ip-cidr-range=10.0.0.0/24In the second example, the project and location are taken from gcloud properties
core/projectandcompute/zone, respectively. - POSITIONAL ARGUMENTS
-
-
Subnet resource - subnet. The arguments in this group can be used to specify the
attributes of this resource. (NOTE) Some attributes are not given arguments in
this group but can be set in other ways.
To set the
projectattribute:-
provide the argument
subneton the command line with a fully specified name; -
provide the argument
--projecton the command line; -
set the property
core/project.
This must be specified.
SUBNET-
ID of the subnet or fully qualified identifier for the subnet.
To set the
subnetattribute:-
provide the argument
subneton the command line.
This positional argument must be specified if any of the other arguments in this group are specified.
-
provide the argument
--location=LOCATION-
Location of the private cloud or cluster.
To set the
locationattribute:-
provide the argument
subneton the command line with a fully specified name; -
provide the argument
--locationon the command line; -
set the property
compute/zone.
-
provide the argument
--private-cloud=PRIVATE_CLOUD-
VMware Engine private cloud.
To set the
private-cloudattribute:-
provide the argument
subneton the command line with a fully specified name; -
provide the argument
--private-cloudon the command line.
-
provide the argument
-
provide the argument
-
Subnet resource - subnet. The arguments in this group can be used to specify the
attributes of this resource. (NOTE) Some attributes are not given arguments in
this group but can be set in other ways.
- 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 helpfor details.
gcloud vmware private-clouds subnets update
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-07 UTC.