Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Cette page explique comment vérifier si une connexion d'accès aux services privés est configurée pour votre réseau. Tout réseau sur lequel vous provisionnez une instance Memorystore pour Memcached doit disposer d'une connexion d'accès aux services privés.
Sinon, vous ne pouvez pas sélectionner ce réseau lors de la création d'une instance Memorystore pour Memcached. Pour en savoir plus, consultez la section Mise en réseau.
Vérifiez si l'accès aux services privés est déjà configuré pour votre projet à l'aide de la commande suivante, en remplaçant les highlighted-variables par les valeurs appropriées :
gcloud services vpc-peerings list --network=network --project=project-id
Pour sélectionner votre réseau par défaut, utilisez --network=default.
Si une connexion est activée, la commande renvoie le texte ci-dessous, en remplaçant [bracketed-variables] par les variables de votre projet. Si une connexion n'est pas activée pour l'accès aux services privés, la commande précédente ne renvoie aucune réponse.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/09/05 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Difficile à comprendre","hardToUnderstand","thumb-down"],["Informations ou exemple de code incorrects","incorrectInformationOrSampleCode","thumb-down"],["Il n'y a pas l'information/les exemples dont j'ai besoin","missingTheInformationSamplesINeed","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/09/05 (UTC)."],[],[],null,["# Verify a private services access connection\n\nThis page provides instructions for checking to see if a [private services access](/vpc/docs/private-services-access)\nconnection is set up for your network. Any network on which you provision a\nMemorystore for Memcached instance must have a private services access connection.\nOtherwise, you cannot select that network when creating a Memorystore for Memcached instance. See [Networking](/memorystore/docs/memcached/networking)\nfor more details.\n\nFor instructions on setting up a private services access connection, see [Establishing a private services access connection](/memorystore/docs/memcached/establishing-connection). \n\n### Console\n\n1. Go to the **VPC Networks** page in the Google Cloud console.\n\n [VPC Networks](https://console.cloud.google.com/networking/networks/list?)\n\n2. Click the name of the VPC network that you want to verify.\n\n3. Click the **Private service connection** tab.\n\n4. Click the **Private connections to services** tab.\n\n If you see a connection listed called `servicenetworking-googleapis-com`,\n then a connection has been established for this network.\n\n If the connection has not been established, follow the instructions at\n [Establishing a private services access connection](/memorystore/docs/memcached/establishing-connection).\n\n### gcloud\n\nVerify if private services access is already set up for your project by\nrunning the following command, replacing the \u003cvar translate=\"no\"\u003ehighlighted-variables\u003c/var\u003e\nwith the appropriate values:\n\n\u003cbr /\u003e\n\n```\n gcloud services vpc-peerings list --network=network --project=project-id\n \n```\n\n\u003cbr /\u003e\n\nTo select your default network use `--network=default`.\n\nIf a connection is enabled, the command returns the text below with the\n`[bracketed-variables]` replaced by your project's variables. If a\nconnection is not enabled for private services access, the previous\ncommand returns nothing.\n\n\u003cbr /\u003e\n\n```\n network: projects/[project-number]/global/networks/[network]\n peering: servicenetworking-googleapis-com\n reservedPeeringRanges: [Range description]\n \n```\n\n\u003cbr /\u003e\n\nIf the connection has not been established, follow the instructions at [Establishing a private services access connection](/memorystore/docs/memcached/establishing-connection).\n\nWhat's next\n-----------\n\n- [Establish a private services access connection](/memorystore/docs/memcached/establishing-connection).\n- [Create a Memcached instance](/memorystore/docs/memcached/creating-managing-instances)."]]