gcloud compute networks vpc-access connectors update

NAME
gcloud compute networks vpc-access connectors update - update a VPC Access connector
SYNOPSIS
gcloud compute networks vpc-access connectors update(CONNECTOR :--region=REGION)[--async][--machine-type=MACHINE_TYPE][--max-instances=MAX_INSTANCES][--min-instances=MIN_INSTANCES][GCLOUD_WIDE_FLAG]
DESCRIPTION
Update an existing VPC Access connector with the given name.

This command can fail for the following reasons:

  • Invalid parameters are passed to this command.
  • The active account does not have permission to update instances.
EXAMPLES
The following command updates a VPC Access connector with namemy-vpc-connector in regionus-central1:
gcloudcomputenetworksvpc-accessconnectorsupdatemy-vpc-connector--region=us-central1--min-instances=3--max-instances=5
POSITIONAL ARGUMENTS
Connector resource - Arguments and flags that specify the VPC Access connectoryou want to update. 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 argumentconnector on the command line with a fullyspecified name;
  • provide the argument--project on the command line;
  • set the propertycore/project.

This must be specified.

CONNECTOR
ID of the connector or fully qualified identifier for the connector.

To set theconnector attribute:

  • provide the argumentconnector on the command line.

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

--region=REGION
Compute region (e.g. us-central1) for the connector.To set theregion attribute:
  • provide the argumentconnector on the command line with a fullyspecified name;
  • provide the argument--region on the command line.
FLAGS
--async
Return immediately, without waiting for the operation in progress to complete.
--machine-type=MACHINE_TYPE
If set, updates the machine type of VMs underlying the connector. Acceptedvalues are "e2-micro", "f1-micro", and "e2-standard-4".
--max-instances=MAX_INSTANCES
If set, updates the maximum number of instances within an autoscaling groupunderlying the connector. Value must be between 3 and 10, inclusive, greaterthan or equal to the currently set maximum number of instances, and greater thanthe value specified by--min-instances.--min-instances must be provided.
--min-instances=MIN_INSTANCES
If set, updates the minimum number of instances within an autoscaling groupunderlying the connector. Value must be between 2 and 9, inclusive, greater thanor equal to the currently set minimum number of instances, and less than thevalue specified by --max-instances.--max-instances must beprovided
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.

API REFERENCE
This command uses thevpcaccess/v1 API. The full documentation forthis API can be found at:https://cloud.google.com/vpc/docs/configure-serverless-vpc-access
NOTES
This variant is also available:
gcloudbetacomputenetworksvpc-accessconnectorsupdate

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.