Utilisez la commande instances list pour afficher la liste des instances d'un cluster.
gcloud alloydb instances list \
--region=REGION_ID \
--cluster=CLUSTER_ID \
--project=PROJECT_ID
REGION_ID : région où sont placées les instances.
CLUSTER_ID : ID du cluster dans lequel les instances sont placées.
PROJECT_ID : ID du projet dans lequel le cluster est placé.
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/04 (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/04 (UTC)."],[[["\u003cp\u003eThis page explains how to view a list of instances within an AlloyDB cluster.\u003c/p\u003e\n"],["\u003cp\u003eAccessing this information requires an enabled Google Cloud project and one of the following IAM roles: \u003ccode\u003eroles/alloydb.admin\u003c/code\u003e, \u003ccode\u003eroles/owner\u003c/code\u003e, or \u003ccode\u003eroles/editor\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe list of instances can be viewed via the Google Cloud console's \u003cstrong\u003eClusters\u003c/strong\u003e page, specifically under the \u003cstrong\u003eInstances in your cluster\u003c/strong\u003e section of the chosen cluster.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003egcloud alloydb instances list\u003c/code\u003e command in the Google Cloud CLI can be used to retrieve the list, requiring the region, cluster, and project IDs as parameters.\u003c/p\u003e\n"]]],[],null,["# View the list of instances in a cluster\n\nThis page describes how to view the list of instances in\nan AlloyDB cluster.\n\n\nBefore you begin\n----------------\n\n- The Google Cloud project you are using must have been [enabled to access AlloyDB](/alloydb/docs/project-enable-access).\n- You must have one of these IAM roles in the Google Cloud project you are using:\n - `roles/alloydb.admin` (the AlloyDB Admin predefined IAM role)\n - `roles/owner` (the Owner basic IAM role)\n - `roles/editor` (the Editor basic IAM role)\n\n If you don't have any of these roles, contact your Organization Administrator to request\n access.\n\n\u003cbr /\u003e\n\nProcedure\n---------\n\n### Console\n\n1. In the Google Cloud console, go to the **Clusters** page.\n\n [Go to Clusters](https://console.cloud.google.com/alloydb/clusters)\n2. Click a cluster in the **Resource Name** column.\n3. To view the list of instances, in the **Overview** page, go to the **Instances in your cluster** section.\n\n### gcloud\n\nTo use the gcloud CLI, you can\n[install and initialize](/sdk/docs/install) the Google Cloud CLI, or you\ncan use [Cloud Shell](/shell/docs/using-cloud-shell).\n\nUse the `instances list` command to view the list of instances in\na cluster. \n\n```\ngcloud alloydb instances list \\\n --region=REGION_ID \\\n --cluster=CLUSTER_ID \\\n --project=PROJECT_ID\n```\n\n- \u003cvar translate=\"no\"\u003eREGION_ID\u003c/var\u003e: The region where the instances are placed.\n- \u003cvar translate=\"no\"\u003eCLUSTER_ID\u003c/var\u003e: The ID of the cluster where the instances are placed.\n- \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: The ID of the project where the cluster is placed."]]