GetObject
    • PDF

    GetObject

    • PDF

    Article Summary

    Overview

    Downloads the object by making a GET request with the specified object path. No parameters or payload is used for the operation.

    Request

    Syntax

    GET https://{endpoint}/{bucket-name}/{object-name} # path style
    GET https://{bucket-name}.{endpoint}/{object-name} # virtual host style
    

    Header

    Header NameRequiredTypeRestrictionsDescription
    rangeNostringReturns the size of the object in bytes within the specified range.
    if-matchNostring (ETag)Returns the object if the specified ETag string matches the source object.
    if-none-matchNostring (ETag)Returns the object if the specified ETag string does not match the source object.
    if-unmodified-sinceNostring (timestamp)Returns the object if the source object has not been modified since the specified date. It must be in the valid date format (e.g.: Wed, 30 Nov 2016 20:21:38 GMT).
    if-modified-sinceNostring (timestamp)Returns the object if the source object has been modified since the specified date. It must be in the valid date format (e.g.: Wed, 30 Nov 2016 20:21:38 GMT).

    Examples

    Request example

    GET /example-bucket/worker-bee HTTP/1.1
    Authorization: {authorization-string}
    x-amz-date: 20160825T183244Z
    Host: kr.object.ncloudstorage.com
    

    Response example

    HTTP/1.1 200 OK
    Date: Thu, 25 Aug 2016 18:34:25 GMT
    x-amz-request-id: 116dcd6b-215d-4a81-bd30-30291fa38f93
    Accept-Ranges: bytes
    ETag: "d34d8aada2996fc42e6948b926513907"
    Content-Type: text/plain; charset=UTF-8
    Last-Modified: Thu, 25 Aug 2016 17:46:53 GMT
    Content-Length: 467
    
     Female bees that are not fortunate enough to be selected to be the 'queen'
     while they were still larvae become known as 'worker' bees. These bees lack
     the ability to reproduce and instead ensure that the hive functions smoothly,
     acting almost as a single organism in fulfilling their purpose.
    

    Was this article helpful?

    What's Next
    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.