gcloud compute networks vpc-access connectors update Stay organized with collections Save and categorize content based on your preferences.
- 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 name
my-vpc-connectorin 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 the
projectattribute:- provide the argument
connectoron the command line with a fullyspecified name; - provide the argument
--projecton the command line; - set the property
core/project.
This must be specified.
CONNECTOR- ID of the connector or fully qualified identifier for the connector.
To set the
connectorattribute:- provide the argument
connectoron the command line.
This positional argument must be specified if any of the other arguments in thisgroup are specified.
- provide the argument
--region=REGION- Compute region (e.g. us-central1) for the connector.To set the
regionattribute:- provide the argument
connectoron the command line with a fullyspecified name; - provide the argument
--regionon the command line.
- provide the argument
- provide the argument
- 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.
- 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-instancesmust 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-instancesmust 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 helpfor details. - API REFERENCE
- This command uses the
vpcaccess/v1API. 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.