Verificare una connessione di accesso privato ai servizi
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Questa pagina fornisce istruzioni per verificare se è configurata una connessione di accesso privato ai servizi per la tua rete. La creazione di una connessione di accesso privato ai servizi per una rete è un prerequisito per la creazione di un'istanza Redis con la modalità di connessione di accesso privato ai servizi designata per quella rete. Per maggiori dettagli, consulta Networking.
Console
Vai alla pagina Reti VPC nella Google Cloud console.
Reti VPC
Fai clic sul nome della rete VPC da verificare.
Fai clic sulla scheda Connessione privata ai servizi.
Fai clic sulla scheda Connessioni private ai servizi.
Se è presente una connessione denominata servicenetworking-googleapis-com, significa che è stata stabilita una connessione per questa rete.
Verifica se l'accesso ai servizi privati è già configurato per il tuo progetto eseguendo il seguente comando, sostituendo highlighted-variables con i valori appropriati:
gcloud services vpc-peerings list --network=network --project=project-id
Per selezionare la rete predefinita, usa --network=default.
Se una connessione è attiva, il comando restituisce il testo riportato di seguito con [bracketed-values] sostituito dai valori del progetto. Se una connessione non è abilitata per l'accesso ai servizi privati, il comando precedente non restituisce nulla.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 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. Establishing a private services access\nconnection for a network is a prerequisite for creating a Redis instance with\nthe private services access connection mode designated for that network. For\nmore details, see [Networking](/memorystore/docs/redis/networking). \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/redis/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-values]` replaced by your project's values. 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/redis/establishing-connection)."]]