gcloud_beta_compute_networks_subnets_update (1)
NAME
- gcloud beta compute networks subnets update - updates properties of an existing Google Compute Engine subnetwork
SYNOPSIS
-
gcloud beta compute networks subnets update NAME [--region=REGION] [--add-secondary-ranges=PROPERTY=VALUE,[...] | --[no-]enable-flow-logs | --[no-]enable-private-ip-google-access | --remove-secondary-ranges=PROPERTY=VALUE,[...]] [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
(BETA) Updates properties of an existing Google Compute Engine subnetwork.
POSITIONAL ARGUMENTS
-
- NAME
-
- Name of the subnetwork to update.
- Name of the subnetwork to update.
FLAGS
-
- --region=REGION
-
Region of the subnetwork to update. If not specified, you may be prompted to
select a region.
To avoid prompting when this flag is omitted, you can set the compute/region property:
- $ gcloud config set compute/region REGION
A list of regions can be fetched by running:
- $ gcloud compute regions list
To unset the property, run:
- $ gcloud config unset compute/region
Alternatively, the region can be stored in the environment variable CLOUDSDK_COMPUTE_REGION.
-
At most one of these may be specified:
-
- --add-secondary-ranges=PROPERTY=VALUE,[...]
-
Adds secondary IP ranges to the subnetwork for use in IP aliasing.
For example, --add-secondary-ranges range1=192.168.64.0/24 adds a secondary range 192.168.64.0/24 with name range1.
-
- *
- RANGE_NAME - Name of the secondary range.
- *
- RANGE - IP range in CIDR format.
-
-
-
- --[no-]enable-flow-logs
-
Enable/disable VPC flow logging for this subnet. More information for VPC flow
logs can be found at cloud.google.com/vpc/docs/using-flow-logs Use
--enable-flow-logs to enable and --no-enable-flow-logs to
disable.
-
- --[no-]enable-private-ip-google-access
-
Enable/disable access to Google Cloud APIs from this subnet for instances
without a public ip address. Use --enable-private-ip-google-access
to enable and --no-enable-private-ip-google-access to disable.
- --remove-secondary-ranges=PROPERTY=VALUE,[...]
-
Removes secondary ranges from the subnetwork.
For example, --remove-secondary-ranges range2,range3 removes the secondary ranges with names range2 and range3.
-
GCLOUD WIDE FLAGS
These flags are available to all commands: --account, --configuration, --flags-file, --flatten, --format, --help, --log-http, --project, --quiet, --trace-token, --user-output-enabled, --verbosity. Run $ gcloud help for details.
NOTES
This command is currently in BETA and may change without notice. These variants are also available:
- $ gcloud compute networks subnets update $ gcloud alpha compute networks subnets update