IBM COS SDK for JavaScript V2 - v1.0.0
    Preparing search index...

    Interface GetObjectOutput

    interface GetObjectOutput {
        TemporaryCopyStorageClass?: string;
        Transition?: string;
        RetentionLegalHoldCount?: number;
        Body?: StreamingBlobTypes;
        DeleteMarker?: boolean;
        AcceptRanges?: string;
        Expiration?: string;
        Restore?: string;
        LastModified?: Date;
        ContentLength?: number;
        ETag?: string;
        ChecksumCRC32?: string;
        ChecksumCRC32C?: string;
        ChecksumCRC64NVME?: string;
        ChecksumSHA1?: string;
        ChecksumSHA256?: string;
        ChecksumType?: ChecksumType;
        MissingMeta?: number;
        VersionId?: string;
        CacheControl?: string;
        ContentDisposition?: string;
        ContentEncoding?: string;
        ContentLanguage?: string;
        ContentRange?: string;
        ContentType?: string;
        Expires?: string;
        WebsiteRedirectLocation?: string;
        ServerSideEncryption?: ServerSideEncryption;
        Metadata?: Record<string, string>;
        SSECustomerAlgorithm?: string;
        SSECustomerKeyMD5?: string;
        SSEKMSKeyId?: string;
        BucketKeyEnabled?: boolean;
        StorageClass?: StorageClass;
        RequestCharged?: "requester";
        ReplicationStatus?: ReplicationStatus;
        PartsCount?: number;
        TagCount?: number;
        ObjectLockMode?: ObjectLockMode;
        ObjectLockRetainUntilDate?: Date;
        ObjectLockLegalHoldStatus?: ObjectLockLegalHoldStatus;
    }
    Index

    Properties

    TemporaryCopyStorageClass?: string

    Storage class of the temporary restored copy (IBM COS).

    Transition?: string

    Transition metadata (IBM COS).

    RetentionLegalHoldCount?: number

    The number of legal holds applied to the object.

    This header is returned only when the object has an active legal hold.

    Body?: StreamingBlobTypes

    Object data.

    DeleteMarker?: boolean

    Indicates whether the object retrieved was (true) or was not (false) a Delete Marker. If false, this response header does not appear in the response.

    • If the current version of the object is a delete marker, Amazon S3 behaves as if the object was deleted and includes x-amz-delete-marker: true in the response.

    • If the specified version in the request is a delete marker, the response returns a 405 Method Not Allowed error and the Last-Modified: timestamp response header.

    AcceptRanges?: string

    Indicates that a range of bytes was specified in the request.

    Expiration?: string

    If the object expiration is configured (see PutBucketLifecycleConfiguration ), the response includes this header. It includes the expiry-date and rule-id key-value pairs providing object expiration information. The value of the rule-id is URL-encoded.

    Object expiration information is not returned in directory buckets and this header returns the value "NotImplemented" in all responses for directory buckets.

    Restore?: string

    Provides information about object restoration action and expiration time of the restored object copy.

    This functionality is not supported for directory buckets. Directory buckets only support EXPRESS_ONEZONE (the S3 Express One Zone storage class) in Availability Zones and ONEZONE_IA (the S3 One Zone-Infrequent Access storage class) in Dedicated Local Zones.

    LastModified?: Date

    Date and time when the object was last modified.

    General purpose buckets - When you specify a versionId of the object in your request, if the specified version in the request is a delete marker, the response returns a 405 Method Not Allowed error and the Last-Modified: timestamp response header.

    ContentLength?: number

    Size of the body in bytes.

    ETag?: string

    An entity tag (ETag) is an opaque identifier assigned by a web server to a specific version of a resource found at a URL.

    ChecksumCRC32?: string

    The Base64 encoded, 32-bit CRC32 checksum of the object. This checksum is only present if the object was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

    ChecksumCRC32C?: string

    The Base64 encoded, 32-bit CRC32C checksum of the object. This checksum is only present if the checksum was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

    ChecksumCRC64NVME?: string

    The Base64 encoded, 64-bit CRC64NVME checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

    ChecksumSHA1?: string

    The Base64 encoded, 160-bit SHA1 digest of the object. This checksum is only present if the checksum was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

    ChecksumSHA256?: string

    The Base64 encoded, 256-bit SHA256 digest of the object. This checksum is only present if the checksum was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

    ChecksumType?: ChecksumType

    The checksum type, which determines how part-level checksums are combined to create an object-level checksum for multipart objects. You can use this header response to verify that the checksum type that is received is the same checksum type that was specified in the CreateMultipartUpload request. For more information, see Checking object integrity in the Amazon S3 User Guide.

    MissingMeta?: number

    This is set to the number of metadata entries not returned in the headers that are prefixed with x-amz-meta-. This can happen if you create metadata using an API like SOAP that supports more flexible metadata than the REST API. For example, using SOAP, you can create metadata whose values are not legal HTTP headers.

    This functionality is not supported for directory buckets.

    VersionId?: string

    Version ID of the object.

    This functionality is not supported for directory buckets.

    CacheControl?: string

    Specifies caching behavior along the request/reply chain.

    ContentDisposition?: string

    Specifies presentational information for the object.

    ContentEncoding?: string

    Indicates what content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field.

    ContentLanguage?: string

    The language the content is in.

    ContentRange?: string

    The portion of the object returned in the response.

    ContentType?: string

    A standard MIME type describing the format of the object data.

    Expires?: string

    The date and time at which the object is no longer cacheable.

    WebsiteRedirectLocation?: string

    If the bucket is configured as a website, redirects requests for this object to another object in the same bucket or to an external URL. Amazon S3 stores the value of this header in the object metadata.

    This functionality is not supported for directory buckets.

    ServerSideEncryption?: ServerSideEncryption

    The server-side encryption algorithm used when you store this object in Amazon S3 or Amazon FSx.

    When accessing data stored in Amazon FSx file systems using S3 access points, the only valid server side encryption option is aws:fsx.

    Metadata?: Record<string, string>

    A map of metadata to store with the object in S3.

    SSECustomerAlgorithm?: string

    If server-side encryption with a customer-provided encryption key was requested, the response will include this header to confirm the encryption algorithm that's used.

    This functionality is not supported for directory buckets.

    SSECustomerKeyMD5?: string

    If server-side encryption with a customer-provided encryption key was requested, the response will include this header to provide the round-trip message integrity verification of the customer-provided encryption key.

    This functionality is not supported for directory buckets.

    SSEKMSKeyId?: string

    If present, indicates the ID of the KMS key that was used for object encryption.

    BucketKeyEnabled?: boolean

    Indicates whether the object uses an S3 Bucket Key for server-side encryption with Key Management Service (KMS) keys (SSE-KMS).

    StorageClass?: StorageClass

    Provides storage class information of the object. Amazon S3 returns this header for all objects except for S3 Standard storage class objects.

    Directory buckets - Directory buckets only support EXPRESS_ONEZONE (the S3 Express One Zone storage class) in Availability Zones and ONEZONE_IA (the S3 One Zone-Infrequent Access storage class) in Dedicated Local Zones.

    RequestCharged?: "requester"

    If present, indicates that the requester was successfully charged for the request. For more information, see Using Requester Pays buckets for storage transfers and usage in the Amazon Simple Storage Service user guide.

    This functionality is not supported for directory buckets.

    ReplicationStatus?: ReplicationStatus

    Amazon S3 can return this if your request involves a bucket that is either a source or destination in a replication rule.

    This functionality is not supported for directory buckets.

    PartsCount?: number

    The count of parts this object has. This value is only returned if you specify partNumber in your request and the object was uploaded as a multipart upload.

    TagCount?: number

    The number of tags, if any, on the object, when you have the relevant permission to read object tags.

    You can use GetObjectTagging to retrieve the tag set associated with an object.

    This functionality is not supported for directory buckets.

    ObjectLockMode?: ObjectLockMode

    The Object Lock mode that's currently in place for this object.

    This functionality is not supported for directory buckets.

    ObjectLockRetainUntilDate?: Date

    The date and time when this object's Object Lock will expire.

    This functionality is not supported for directory buckets.

    ObjectLockLegalHoldStatus?: ObjectLockLegalHoldStatus

    Indicates whether this object has an active legal hold. This field is only returned if you have permission to view an object's legal hold status.

    This functionality is not supported for directory buckets.