MENU
      ListObjectsV2

        ListObjectsV2


        Article summary

        Available in Classic and VPC

        View the object list of Object Storage. No request body is used for the operation.

        Note

        The number of objects retrieved at a time is limited to 1000 and are returned in random order. If the StorageClass operation is not implemented in NAVER Cloud Platform Object Storage, the value of StorageClass returned in the response code is the default value.

        Requests

        The following describes the request format for the endpoint. The request format is as follows.

        MethodURI
        GET{bucket-name}

        Request syntax

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

        Request headers

        For headers common to all Object Storage APIs, see Object Storage common headers.

        Request path parameters

        The following describes the parameters.

        FieldTypeRequiredDescription
        bucket-nameStringRequiredName of the bucket to create

        Request query parameters

        The following describes the parameters.

        FieldTypeRequiredDescription
        prefixStringOptionalLimit the response to object names starting with the prefix
        delimiterStringOptionalBind the objects between the prefix and delimiter together
        encoding-typeStringOptionalEncoding type
        • Resolve encoding issues by setting the parameter to URL if Unicode characters not supported by XML are used in the object name
        max-keysStringOptionalNumber of objects to display in the response
        • 0 - 1000 (default: 1000)
        fetch-ownerBooleanOptionalOwner field
        • true | false
          • true: It returns the owner field
        • By default, it doesn't exist for version 2 methods
        start-afterStringOptionalSpecify objects from place where the list should start, in the UTF-8 binary order
        continuation-tokenStringOptionalEnable the next list of objects to be retrieved by token

        Request example

        The following is a sample request.

        GET /{bucket-name}?list-type=2 HTTP/1.1
        Content-Type: text/plain
        Host: kr.object.ncloudstorage.com
        X-Amz-Date: {Timestamp}
        Authorization: {authorization-string}
        HTTP

        Responses

        The following describes the response format.

        Response headers

        For response headers common to all Object Storage APIs, see Object Storage common response headers.

        Response status codes

        For response status codes common to all Object Storage APIs, see Object Storage response status codes.

        Response example

        The following is a sample response.

        HTTP/1.1 200 OK
        Date: Wed, 24 Aug 2016 17:45:25 GMT
        Accept-Ranges: bytes
        x-amz-request-id: xxxxx-xxxxx-xxxxx-xxxxx-xxxxx
        Content-Type: application/xml
        Content-Length: 909
        HTTP
        <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
        <ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
            <Name>ncpdocker</Name>
            <Prefix></Prefix>
            <NextContinuationToken>1a8jKPiaWXb4OhJOLGR9KE495oNwIO1KbsTYDLDvtMArEbHtv8h-NKvDagEgx5nJYDx3X4G7r2bDBBMsD9bZN88ECyHcMDZI_HuE-kq5RiM9I_v2ocKx5h7K9QBXV_0NUCWj0EGYwoBOxyJUyhrrbTRN3swqI9xgmavCCZ2IziP8</NextContinuationToken>
            <KeyCount>2</KeyCount>
            <MaxKeys>10</MaxKeys>
            <Delimiter>/</Delimiter>
            <IsTruncated>false</IsTruncated>
            <Contents>
                <Key>ncpdocker.txt</Key>
                <LastModified>2024-04-02T00:57:49.695Z</LastModified>
                <ETag>&quot;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&quot;</ETag>
                <Size>12</Size>
                <StorageClass>Standard</StorageClass>
            </Contents>
        </ListBucketResult>
        XML

        Was this article helpful?

        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.