Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Cette page vous explique comment lister les objets dans les buckets de stockage isolés de Google Distributed Cloud (GDC).
Avant de commencer
Un espace de noms de projet gère les ressources de bucket sur le serveur de l'API Management. Vous devez disposer d'un projet pour travailler avec des buckets et des objets.
Vous devez également disposer des autorisations de bucket appropriées pour effectuer l'opération suivante. Consultez Accorder l'accès à un bucket.
Lister les objets dans les buckets de stockage
Console
Dans le menu de navigation, cliquez sur Stockage d'objets.
Cliquez sur le nom du bucket contenant les objets.
Attendez d'être redirigé vers la page Informations sur le bucket, où les objets sont listés dans un tableau.
Cliquez sur le nom d'un objet, puis sélectionnez l'onglet Objet actif ou Historique des versions pour afficher plus de détails.
CLI
Répertoriez les objets du répertoire racine d'un bucket :
gdcloudstoragelss3://FULLY_QUALIFIED_BUCKET_NAME
Lister toutes les versions des objets du répertoire de premier niveau d'un bucket :
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 guide demonstrates how to list objects within Google Distributed Cloud (GDC) air-gapped storage buckets.\u003c/p\u003e\n"],["\u003cp\u003eA project is required to manage bucket resources, and you must have the necessary bucket permissions to perform this operation.\u003c/p\u003e\n"],["\u003cp\u003eYou can list objects in a bucket via the console by navigating to the Object Storage section, clicking on the relevant bucket, and viewing objects on the "Bucket details" page.\u003c/p\u003e\n"],["\u003cp\u003eThe command-line interface (CLI) can be used to list objects in the top-level directory of a bucket, list all versions of objects, and list objects with a specified prefix.\u003c/p\u003e\n"],["\u003cp\u003eThe CLI command \u003ccode\u003egdcloud storage ls\u003c/code\u003e can be utilized with the flag \u003ccode\u003e--all-versions\u003c/code\u003e to retrieve a full list of all object versions.\u003c/p\u003e\n"]]],[],null,["# List storage objects\n\nThis page shows you how to list objects within Google Distributed Cloud (GDC) air-gapped storage buckets.\n\nBefore you begin\n----------------\n\nA project namespace manages bucket resources in the Management API server. You\nmust have a [project](/distributed-cloud/hosted/docs/latest/gdch/platform/pa-user/project-management) to work with buckets and objects.\n\nYou must also have the appropriate bucket permissions to perform the following\noperation. See [Grant bucket access](/distributed-cloud/hosted/docs/latest/gdch/platform/pa-user/grant-obtain-storage-access#grant_bucket_access).\n\nList objects in storage buckets\n-------------------------------\n\n### Console\n\n1. In the navigation menu, click **Object Storage**.\n2. Click the name of the bucket containing the objects.\n3. Wait to be redirected to the **Bucket details** page with objects listed in a table.\n4. Click on an object's name and select either the **Live Object** tab or **Version history** tab to view further details.\n\n### CLI\n\nList the objects in the top level directory of a bucket: \n\n gdcloud storage ls s3://\u003cvar translate=\"no\"\u003eFULLY_QUALIFIED_BUCKET_NAME\u003c/var\u003e\n\nList all versions of objects in the top level directory of a bucket: \n\n\n gdcloud storage ls --all-versions s3://\u003cvar translate=\"no\"\u003eFULLY_QUALIFIED_BUCKET_NAME\u003c/var\u003e\n\nList the objects in a bucket with a prefix: \n\n gdcloud storage ls s3://\u003cvar translate=\"no\"\u003eFULLY_QUALIFIED_BUCKET_NAME\u003c/var\u003e/\u003cPrefix\u003e/\n\nList all versions of objects in a bucket with a prefix: \n\n gdcloud storage ls --all-versions s3://\u003cvar translate=\"no\"\u003eFULLY_QUALIFIED_BUCKET_NAME\u003c/var\u003e/\u003cPrefix\u003e/"]]