GetBucketObject
Gets an existing object inside an existing bucket in Google Cloud Storage service (GCS). See the official documentation and API.
Using GetBucketObject
function getBucketObject(args: GetBucketObjectArgs, opts?: InvokeOptions): Promise<GetBucketObjectResult>function get_bucket_object(bucket=None, name=None, opts=None)func LookupBucketObject(ctx *Context, args *LookupBucketObjectArgs, opts ...InvokeOption) (*LookupBucketObjectResult, error)Note: This function is named
LookupBucketObjectin the Go SDK.
public static class GetBucketObject {
public static Task<GetBucketObjectResult> InvokeAsync(GetBucketObjectArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
GetBucketObject Result
The following output properties are available:
- Cache
Control string (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 string
- Content
Disposition string (Computed) Content-Disposition of the object data.
- Content
Encoding string (Computed) Content-Encoding of the object data.
- Content
Language string (Computed) Content-Language of the object data.
- Content
Type string (Computed) Content-Type of the object data. Defaults to “application/octet-stream” or “text/plain; charset=utf-8”.
- Crc32c string
(Computed) Base 64 CRC32 hash of the uploaded data.
- Detect
Md5hash string - Id string
The provider-assigned unique ID for this managed resource.
- Md5hash string
(Computed) Base 64 MD5 hash of the uploaded data.
- Metadata Dictionary<string, string>
- Output
Name string - Self
Link string (Computed) A url reference to this object.
- Source string
- Storage
Class string (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.- Bucket string
- Name string
- Cache
Control string (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 string
- Content
Disposition string (Computed) Content-Disposition of the object data.
- Content
Encoding string (Computed) Content-Encoding of the object data.
- Content
Language string (Computed) Content-Language of the object data.
- Content
Type string (Computed) Content-Type of the object data. Defaults to “application/octet-stream” or “text/plain; charset=utf-8”.
- Crc32c string
(Computed) Base 64 CRC32 hash of the uploaded data.
- Detect
Md5hash string - Id string
The provider-assigned unique ID for this managed resource.
- Md5hash string
(Computed) Base 64 MD5 hash of the uploaded data.
- Metadata map[string]string
- Output
Name string - Self
Link string (Computed) A url reference to this object.
- Source string
- Storage
Class string (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.- Bucket string
- Name string
- cache
Control string (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 string
- content
Disposition string (Computed) Content-Disposition of the object data.
- content
Encoding string (Computed) Content-Encoding of the object data.
- content
Language string (Computed) Content-Language of the object data.
- content
Type string (Computed) Content-Type of the object data. Defaults to “application/octet-stream” or “text/plain; charset=utf-8”.
- crc32c string
(Computed) Base 64 CRC32 hash of the uploaded data.
- detect
Md5hash string - id string
The provider-assigned unique ID for this managed resource.
- md5hash string
(Computed) Base 64 MD5 hash of the uploaded data.
- metadata {[key: string]: string}
- output
Name string - self
Link string (Computed) A url reference to this object.
- source string
- storage
Class string (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.- bucket string
- name string
- cache_
control str (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 str
- content_
disposition str (Computed) Content-Disposition of the object data.
- content_
encoding str (Computed) Content-Encoding of the object data.
- content_
language str (Computed) Content-Language of the object data.
- content_
type str (Computed) Content-Type of the object data. Defaults to “application/octet-stream” or “text/plain; charset=utf-8”.
- crc32c str
(Computed) Base 64 CRC32 hash of the uploaded data.
- detect_
md5hash str - id str
The provider-assigned unique ID for this managed resource.
- md5hash str
(Computed) Base 64 MD5 hash of the uploaded data.
- metadata Dict[str, str]
- output_
name str - self_
link str (Computed) A url reference to this object.
- source str
- storage_
class str (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.- bucket str
- name str
Package Details
- Repository
- https://github.com/pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-betaTerraform Provider.