<!-- This change is generated by MagicModules. --> /cc @chrisst
2.3 KiB
layout | page_title | sidebar_current | description |
---|---|---|---|
Google: google_storage_bucket_object | docs-google-datasource-storage-bucket-object | Get information about a Google Cloud Storage bucket object. |
google_storage_bucket_object
Gets an existing object inside an existing bucket in Google Cloud Storage service (GCS). See the official documentation and API.
Example Usage
Example picture stored within a folder.
data "google_storage_bucket_object" "picture" {
name = "folder/butterfly01.jpg"
bucket = "image-store"
}
Argument Reference
The following arguments are supported:
-
bucket
- (Required) The name of the containing bucket. -
name
- (Required) The name of the object.
Attributes Reference
The following attributes are exported:
-
cache_control
- (Computed) Cache-Control directive to specify caching behavior of object data. If omitted and object is accessible to all anonymous users, the default will be public, max-age=3600 -
content_disposition
- (Computed) Content-Disposition of the object data. -
content_encoding
- (Computed) Content-Encoding of the object data. -
content_language
- (Computed) Content-Language of the object data. -
content_type
- (Computed) Content-Type of the object data. Defaults to "application/octet-stream" or "text/plain; charset=utf-8". -
crc32c
- (Computed) Base 64 CRC32 hash of the uploaded data. -
md5hash
- (Computed) Base 64 MD5 hash of the uploaded data. -
self_link
- (Computed) A url reference to this object. -
storage_class
- (Computed) The StorageClass of the new bucket object. Supported values include:MULTI_REGIONAL
,REGIONAL
,NEARLINE
,COLDLINE
. If not provided, this defaults to the bucket's default storage class or to a standard class.