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 LookupBucketObject in the Go SDK.

public static class GetBucketObject {
    public static Task<GetBucketObjectResult> InvokeAsync(GetBucketObjectArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Bucket string

The name of the containing bucket.

Name string

The name of the object.

Bucket string

The name of the containing bucket.

Name string

The name of the object.

bucket string

The name of the containing bucket.

name string

The name of the object.

bucket str

The name of the containing bucket.

name str

The name of the object.

GetBucketObject Result

The following output properties are available:

CacheControl 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
ContentDisposition string

(Computed) Content-Disposition of the object data.

ContentEncoding string

(Computed) Content-Encoding of the object data.

ContentLanguage string

(Computed) Content-Language of the object data.

ContentType 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.

DetectMd5hash 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>
OutputName string
SelfLink string

(Computed) A url reference to this object.

Source string
StorageClass 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
CacheControl 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
ContentDisposition string

(Computed) Content-Disposition of the object data.

ContentEncoding string

(Computed) Content-Encoding of the object data.

ContentLanguage string

(Computed) Content-Language of the object data.

ContentType 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.

DetectMd5hash 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
OutputName string
SelfLink string

(Computed) A url reference to this object.

Source string
StorageClass 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
cacheControl 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
contentDisposition string

(Computed) Content-Disposition of the object data.

contentEncoding string

(Computed) Content-Encoding of the object data.

contentLanguage string

(Computed) Content-Language of the object data.

contentType 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.

detectMd5hash 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}
outputName string
selfLink string

(Computed) A url reference to this object.

source string
storageClass 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-beta Terraform Provider.