• Object Storage Service

obs
  1. Help Center
  2. Object Storage Service
  3. API Reference (Python SDK)
  4. Data Types
  5. Response Result of GET Object

Response Result of GET Object

Namespace

Class

Module

ObjectStream

com.obs.response.get_object_response

Parameter Description

Field

Type

Description

response

object

If loadStreamInMemory is set to False and downloadPath is None in the request, this field is returned and indicates a readable stream. You can read object content from it.

buffer

object

If loadStreamInMemory is set to True in the request, this field is returned and indicates the data stream in the memory.

size

int

If loadStreamInMemory is set to True in the request, this field is returned and indicates the size of the data stream.

url

str

If loadStreamInMemory is set to False and downloadPath is not None, this field is returned and indicates the download path.

deleteMarker

bool

Whether the deleted object is a delete marker

storageClass

str

Storage class of the object

accessContorlAllowOrigin

str

If origin in the request meets the CORS rules of the bucket, allowedOrigin in the CORS rules is returned.

accessContorlAllowHeaders

str

If requestHeaders in the request meets the CORS rules of the bucket, allowedHeader in the CORS rules is returned.

accessContorlAllowMethods

str

allowedMethod in the CORS rules of the bucket

accessContorlExposeHeaders

str

exposeHeader in the CORS rules of the bucket

accessContorlMaxAge

int

maxAgeSecond in the CORS rules of the bucket

contentLength

int

Object size in bytes

cacheControl

str

Cache-Control header in the response

contentDisposition

str

Content-Disposition header in the response

contentEncoding

str

Content-Encoding header in the response

contentLanguage

str

Content-Language header in the response

contentType

str

MIME type of the object

expires

str

Expires header in the response

lastModified

str

Time when the last modification was made to the object

etag

str

Object ETag

versionId

str

Object version ID

restore

str

Restore status of the object in the OBS Cold storage class. If the object is not in the OBS Cold storage class, the value is None.

expiration

str

Expiration details

sseKms

str

SSE-KMS algorithm

sseKmsKey

str

Master key used in SSE-KMS decryption

sseC

str

SSE-C algorithm

sseCKeyMd5

str

MD5 value of the key used in SSE-C decryption

websiteRedirectLocation

str

Location where the object is redirected to, when the bucket is configured with website hosting.

If response is not None, you must call its close method to close the connection after reading the data.