gcloud network-connectivity internal-ranges update - update an internal range
gcloud network-connectivity internal-ranges update (INTERNAL_RANGE : --region=REGION) (--ip-cidr-range=IP_CIDR_RANGE | --prefix-length=PREFIX_LENGTH) [--async] [GCLOUD_WIDE_FLAG ...]
Update the details of an internal range.
Update ip-cidr-range of an internal range named my-range:
$ gcloud network-connectivity internal-ranges update my-range \ --ip-cidr-range="192.168.0.0/24"
Extend an internal range named my-range to an address block of /24:
$ gcloud network-connectivity internal-ranges update my-range \ --prefix-length=24
- Internal range resource - Name of the internal range to be created. 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 project attribute:
- —
provide the argument internal_range on the command line with a fully specified name;
- —
set the property core/project;
- —
provide the argument --project on the command line.
This must be specified.
- INTERNAL_RANGE
ID of the internal range or fully qualified identifier for the internal range. To set the internal_range attribute:
provide the argument internal_range on the command line.
This positional argument must be specified if any of the other arguments in this group are specified.
- --region=REGION
The location ID.
To set the region attribute:
provide the argument internal_range on the command line with a fully specified name;
provide the argument --region on the command line;
use default global location .
- Exactly one of these must be specified:
- --ip-cidr-range=IP_CIDR_RANGE
IP range that this internal range defines.
- --prefix-length=PREFIX_LENGTH
An alternative to ip-cidr-range. Can be set when trying to create a reservation that automatically finds a free range of the given size.
- --async
Return immediately, without waiting for the operation in progress to complete.
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.
This command uses the networkconnectivity/v1 API. The full documentation for this API can be found at: https://cloud.google.com/network-connectivity/docs/reference/networkconnectivity/rest
This variant is also available:
$ gcloud alpha network-connectivity internal-ranges update