Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Questa pagina fornisce una panoramica di Cloud Storage e del suo funzionamento.
Cloud Storage è un servizio per l'archiviazione di oggetti in
Google Cloud. Un oggetto è un dato immutabile costituito da un file di qualsiasi formato. Gli oggetti vengono memorizzati in container chiamati bucket.
Tutti i bucket sono associati a un progetto e puoi raggruppare i tuoi progetti in un'organizzazione. Ogni progetto, bucket, cartella gestita e oggetto in Google Cloud è una risorsa in Google Cloud, così come lo sono elementi come le istanze di Compute Engine.
Ecco come la struttura di Cloud Storage può essere applicata a un caso reale:
Organizzazione: la tua azienda, chiamata Esempio S.p.A., crea un'organizzazione chiamata exampleinc.org. Google Cloud
Progetto: Example Inc. sta creando diverse applicazioni e ognuna è
associata a un progetto. Ogni progetto ha il proprio set di
API Cloud Storage, nonché altre risorse.
Bucket: ogni progetto può contenere più bucket, che sono contenitori per archiviare gli oggetti. Ad esempio, potresti creare un bucket photos per tutti i file immagine generati dalla tua app e un bucket videos separato.
Oggetto: ogni bucket può contenere un numero illimitato di singoli oggetti,
ad esempio un'immagine chiamata puppy.png.
Cartella gestita: ogni bucket può contenere anche più cartelle gestite, che concedono un accesso aggiuntivo rispetto a quello concesso al bucket complessivo.
Questo accesso aggiuntivo si applica agli oggetti con un prefisso corrispondente al
nome della cartella gestita. Ad esempio, potresti creare una cartella gestita animals/, che concede agli utenti designati un accesso aggiuntivo a oggetti come animals/puppy.png e animals/kitten.png.
Bucket abilitati per spazi dei nomi gerarchici: i bucket possono avere
spazi dei nomi gerarchici abilitati. I bucket con lo spazio dei nomi gerarchico
abilitato possono archiviare i dati in una struttura logica del file system. Le operazioni di gestione delle cartelle forniscono funzionalità di affidabilità e gestione, tra cui la creazione, l'eliminazione, l'elenco e la ridenominazione delle cartelle. Lo spazio dei nomi gerarchico è
vantaggioso per le attività che richiedono molti dati, come i workload di analisi, AI e ML, in quanto
offre limiti QPS iniziali fino a 8 volte superiori per la lettura e la scrittura di oggetti
rispetto ai bucket senza spazio dei nomi gerarchico abilitato.
Strumenti di base per Cloud Storage
Ecco alcuni modi di base per interagire con Cloud Storage:
Console: la Google Cloud console fornisce un'interfaccia visiva per gestire i dati in un browser.
Google Cloud CLI: gcloud CLI ti consente di interagire
con Cloud Storage tramite un terminale utilizzando
i comandi gcloud storage.
Librerie client: le librerie client di Cloud Storage ti consentono di gestire i tuoi dati utilizzando uno dei tuoi linguaggi preferiti, tra cui C++, C#, Go, Java, Node.js, PHP, Python e Ruby.
API REST: gestisci i tuoi dati utilizzando le API JSON o XML.
Terraform: Terraform è uno strumento Infrastructure as Code (IaC)
che puoi utilizzare per eseguire il provisioning dell'infrastruttura per
Cloud Storage.
Cloud Storage FUSE: Cloud Storage FUSE ti consente di montare i bucket Cloud Storage
nel file system locale. In questo modo, le tue applicazioni possono leggere da
un bucket o scrivere in un bucket utilizzando la semantica standard del file system.
gRPC: gRPC ti consente di interagire con Cloud Storage. gRPC
è un framework RPC universale open source ad alte prestazioni sviluppato da Google
che puoi utilizzare per definire i tuoi servizi utilizzando Protocol Buffer.
Protezione dei dati
Una volta caricati gli oggetti in Cloud Storage, hai un controllo
preciso su come proteggere e condividere i tuoi dati. Ecco alcuni modi per proteggere
i dati che carichi in Cloud Storage:
Identity and Access Management: utilizza IAM per controllare chi ha accesso alle risorse nel tuo progetto Google Cloud . Le risorse includono bucket e oggetti Cloud Storage, nonché altre entità Google Cloud come le istanze di Compute Engine. Puoi concedere alle entità determinati tipi di accesso
a bucket e oggetti, ad esempio update, create o delete.
Eliminazione temporanea: impedisci la perdita permanente di dati in caso di eliminazione accidentale o dannosa conservando gli oggetti e i bucket eliminati di recente. Per impostazione predefinita, Cloud Storage attiva l'eliminazione temporanea
per tutti i bucket con un periodo di conservazione di sette giorni.
Controllo delle versioni degli oggetti: quando una versione attiva di un oggetto viene sostituita o
eliminata, può essere conservata come versione non corrente se
abiliti il controllo delle versioni degli oggetti.
Filtro IP bucket: con il filtro IP bucket, puoi limitare l'accesso a un bucket in base all'indirizzo IP di origine della richiesta e proteggere i tuoi dati da accessi non autorizzati da indirizzi IP specifici o da Virtual Private Cloud (VPC).
Nomi delle risorse
Ogni risorsa ha un nome univoco che la identifica, proprio come un nome file.
I bucket hanno un nome risorsa nel formato
projects/_/buckets/BUCKET_NAME, dove
BUCKET_NAME è l'ID del bucket. Gli oggetti hanno un
nome risorsa nel formato
projects/_/buckets/BUCKET_NAME/objects/OBJECT_NAME,
dove OBJECT_NAME è l'ID dell'oggetto.
Un #NUMBER aggiunto alla fine del nome della risorsa
indica una generazione specifica dell'oggetto. #0 è un identificatore speciale per
la versione più recente di un oggetto. #0 è utile da aggiungere quando il nome
dell'oggetto termina con una stringa che altrimenti verrebbe interpretata come un numero
di generazione.
Guide rapide
Per scoprire le nozioni di base sull'utilizzo di Cloud Storage, consulta le seguenti guide:
[[["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,["# Product overview of Cloud Storage\n\nThis page provides an overview of Cloud Storage and how it works.\n\nCloud Storage is a service for storing your [*objects*](/storage/docs/objects) in\nGoogle Cloud. An object is an immutable piece of data consisting of a file of\nany format. You store objects in containers called [*buckets*](/storage/docs/buckets).\n\nAll buckets are associated with a [*project*](/storage/docs/projects), and you can group your\nprojects under an [*organization*](/resource-manager/docs/cloud-platform-resource-hierarchy#organizations). Each project, bucket, managed folder,\nand object in Google Cloud is a *resource* in Google Cloud, as are things such\nas [Compute Engine instances](/compute/docs/instances).\n\nAfter you create a project, you can [create Cloud Storage buckets](/storage/docs/creating-buckets),\n[upload objects](/storage/docs/uploading-objects) to your buckets, and [download objects](/storage/docs/downloading-objects) from your\nbuckets. You can also grant permissions to make your data accessible to\nprincipals you specify or [accessible to everyone on the public internet](/storage/docs/access-control/making-data-public).\n\nThe Google Cloud hierarchy\n--------------------------\n\nHere's how the Cloud Storage structure can apply to a real-world case:\n\n- **Organization** : Your company, called Example Inc., creates a Google Cloud\n organization called `exampleinc.org`.\n\n- **Project**: Example Inc. is building several applications, and each one is\n associated with a project. Each project has its own set of\n Cloud Storage APIs, as well as other resources.\n\n- **Bucket** : Each project can contain multiple buckets, which are containers to\n store your objects. For example, you might create a `photos` bucket for all the\n image files your app generates and a separate `videos` bucket.\n\n- **Object** : Each bucket can contain essentially unlimited individual objects,\n such as an image called `puppy.png`.\n\n- **Managed folder** : Each bucket can also contain multiple\n [managed folders](/storage/docs/managed-folders), which grant additional access beyond the access granted\n to the overall bucket.\n This additional access applies to objects that have a prefix matching the\n managed folder name. For example, you might create an `animals/` managed folder,\n which gives designated users additional access to objects such as\n `animals/puppy.png` and `animals/kitten.png`.\n\n- **Hierarchical namespace enabled buckets** : Buckets can have\n [hierarchical namespace](/storage/docs/hns-overview) enabled. Buckets with hierarchical namespace\n enabled can store your data in a logical file system structure. The folder\n management operations provide reliability and management capabilities, including\n creating, deleting, listing, and renaming folders. Hierarchical namespace is\n beneficial for data-intensive tasks like analytics, AI, and ML workloads as they\n offer up to 8 times higher initial QPS limits for reading and writing objects\n compared to buckets without hierarchical namespace enabled.\n\nBasic tools for Cloud Storage\n-----------------------------\n\nHere are some basic ways you can interact with Cloud Storage:\n\n- **Console** : The [Google Cloud console](https://console.cloud.google.com/storage/browser) provides a visual interface for\n you to manage your data in a browser.\n\n- **Google Cloud CLI** : The [gcloud CLI](/sdk/gcloud) allows you to interact\n with Cloud Storage through a terminal using\n [`gcloud storage` commands](/sdk/gcloud/reference/storage).\n\n- **Client libraries** : The Cloud Storage [client libraries](/storage/docs/reference/libraries) allow\n you to manage your data using one of your preferred languages, including C++,\n C#, Go, Java, Node.js, PHP, Python, and Ruby.\n\n- **REST APIs** : Manage your data using the [JSON](/storage/docs/json_api) or [XML](/storage/docs/xml-api/overview) API.\n\n- **Terraform** : [Terraform](https://www.terraform.io/) is an infrastructure-as-code (IaC)\n tool that you can use to provision the infrastructure for\n Cloud Storage.\n\n- **Cloud Storage FUSE** : [Cloud Storage FUSE](/storage/docs/gcs-fuse) lets you mount Cloud Storage\n buckets to your local file system. This enables your applications to read from\n a bucket or write to a bucket by using standard file system semantics.\n\n- **gRPC** : [gRPC](/storage/docs/enable-grpc-api) lets you interact with Cloud Storage. gRPC\n is a high performance, open source universal RPC framework developed by Google\n that you can use to define your services using Protocol Buffers.\n\nSecuring your data\n------------------\n\nOnce you upload your objects to Cloud Storage, you have fine-grained\ncontrol over how you secure and share your data. Here are some ways to secure\nthe data you upload to Cloud Storage:\n\n- **Identity and Access Management** : Use [IAM](/storage/docs/access-control/iam) to control who has access to the\n resources in your Google Cloud project. Resources include Cloud Storage\n buckets and objects, as well as other Google Cloud entities such as\n [Compute Engine instances](/compute/docs/instances). You can grant principals certain types of access\n to buckets and objects, such as `update`, `create`, or `delete`.\n\n- **Data encryption** : Cloud Storage uses server-side encryption to\n [encrypt your data](/storage/docs/encryption) by default. You can also use supplemental data\n encryption options such as [customer-managed encryption keys](/storage/docs/encryption/customer-managed-keys) and\n [customer-supplied encryption keys](/storage/docs/encryption/customer-supplied-keys).\n\n- **Authentication** : Ensure that anyone who accesses your data has [proper\n credentials](/storage/docs/authentication).\n\n- **Bucket Lock** : Govern how long objects in buckets must be retained by\n [specifying a retention policy](/storage/docs/using-bucket-lock).\n\n- **Soft delete** : Prevent permanent loss of data against\n accidental or malicious deletion by retaining recently deleted objects and\n buckets. By default, Cloud Storage enables [soft delete](/storage/docs/soft-delete)\n for all buckets with a seven day retention period.\n\n- **Object Versioning** : When a live version of an object is replaced or\n deleted, it can be retained as a *noncurrent version* if you\n [enable Object Versioning](/storage/docs/using-object-versioning).\n\n- **Bucket IP filtering** : With [bucket IP filtering](/storage/docs/ip-filtering-overview), you\n can restrict access to a bucket based on the source IP address of the request\n and secure your data from unauthorized access from specific IP addresses or\n Virtual Private Cloud (VPC).\n\n### Resource names\n\n| **Note:** The use of resource names within Cloud Storage is limited to [Pub/Sub Notifications for Cloud Storage](/storage/docs/pubsub-notifications) and [Identity and Access Management](/storage/docs/access-control/iam).\n\nEach resource has a unique name that identifies it, much like a filename.\nBuckets have a resource name in the form of\n`projects/_/buckets/`\u003cvar translate=\"no\"\u003eBUCKET_NAME\u003c/var\u003e, where\n\u003cvar translate=\"no\"\u003eBUCKET_NAME\u003c/var\u003e is the ID of the bucket. Objects have a\nresource name in the form of\n`projects/_/buckets/`\u003cvar translate=\"no\"\u003eBUCKET_NAME\u003c/var\u003e`/objects/`\u003cvar translate=\"no\"\u003eOBJECT_NAME\u003c/var\u003e,\nwhere \u003cvar translate=\"no\"\u003eOBJECT_NAME\u003c/var\u003e is the ID of the object.\n\nA `#`\u003cvar translate=\"no\"\u003eNUMBER\u003c/var\u003e appended to the end of the resource name\nindicates a specific generation of the object. `#0` is a special identifier for\nthe most recent version of an object. `#0` is useful to add when the name of\nthe object ends in a string that would otherwise be interpreted as a generation\nnumber.\n\nQuickstart guides\n-----------------\n\nTo learn the fundamentals of using Cloud Storage, visit the following\nguides:\n\n- [Google Cloud console quickstart](/storage/docs/discover-object-storage-console)\n- [gcloud quickstart](/storage/docs/discover-object-storage-gcloud)\n- [Terraform quickstart](/storage/docs/terraform-create-bucket-upload-object)\n\nWhat's next\n-----------\n\n- Learn the fundamentals of Cloud Storage through the [Google Cloud console](/storage/docs/discover-object-storage-console) or [Google Cloud CLI](/storage/docs/discover-object-storage-gcloud).\n- Try [Google Cloud jump start solutions that use Cloud Storage](/architecture/storage).\n- Get started with [client libraries](/storage/docs/reference/libraries).\n- Quickly import online data into Cloud Storage or between Cloud Storage buckets using [Storage Transfer Service](/storage-transfer/docs/overview)."]]