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 details the process of listing objects within Google Distributed Cloud (GDC) air-gapped storage buckets.\u003c/p\u003e\n"],["\u003cp\u003eA project namespace is required for managing bucket resources, and proper bucket permissions are needed to list objects.\u003c/p\u003e\n"],["\u003cp\u003eYou can list objects via the console by navigating to the Object Storage section and selecting the specific bucket, or via the CLI using the \u003ccode\u003egdcloud storage ls\u003c/code\u003e command.\u003c/p\u003e\n"],["\u003cp\u003eThe CLI allows you to list objects in the top level directory, as well as view all versions of objects, and list objects with a specified prefix.\u003c/p\u003e\n"]]],[],null,["# List storage objects in projects\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/application/ao-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/"]]