This page provides instructions for checking to see if a private services access connection is set up for your network. Any network on which you provision a Memorystore for Memcached instance must have a private services access connection. Otherwise, you cannot select that network when creating a Memorystore for Memcached instance. See Networking for more details.
For instructions on setting up a private services access connection, see Establishing a private services access connection .
Console
-
Go to the VPC Networkspage in the Google Cloud console.
VPC Networks -
Click the name of the VPC network that you want to verify.
-
Click the Private service connectiontab.
-
Click the Private connections to servicestab.
If you see a connection listed called
servicenetworking-googleapis-com, then a connection has been established for this network.If the connection has not been established, follow the instructions at Establishing a private services access connection .
gcloud
Verify if private services access is already set up for your project by running the following command, replacing the highlighted-variables with the appropriate values:
gcloud services vpc-peerings list --network= network --project= project-id
To select your default network use --network=default
.
If a connection is enabled, the command returns the text below with the [bracketed-variables]
replaced by your project's variables. If a
connection is not enabled for private services access, the previous
command returns nothing.
network: projects/[project-number]/global/networks/[network] peering: servicenetworking-googleapis-com reservedPeeringRanges: [Range description]
If the connection has not been established, follow the instructions at Establishing a private services access connection .

