GET / HTTP/1.1Host: <BucketName-APPID>.cos.<Region>.myqcloud.comDate: GMT DateAuthorization: Auth String
Name | Description | Type | Required or Not |
prefix | Object keys matching the prefix, limiting the response to only include object keys with the specified prefix. | string | No |
delimiter | The delimiter, a single character, is used to group object keys. The identical portion from the prefix (or from the beginning if no prefix is specified) to the first delimiter in all object keys will be listed as a Prefix node under CommonPrefixes. Grouped object keys will not appear in subsequent object listings. For specific scenarios and usage, refer to the practical example below. | string | No |
encoding-type | Specifies the encoding method for the returned value. Optional value: url, indicating that the returned object key is URL-encoded (percent-encoded). For example, "Tencent Cloud" will be encoded as %E8%85%BE%E8%AE%AF%E4%BA%91. | string | No |
marker | The starting object key marker, after which (exclusive) object key entries are returned in UTF-8 lexicographical order. | string | No |
max-keys | The maximum number of items returned in a single response. Default: 1000; Minimum: 0; Maximum: 1000. Note: The max-keys parameter limits the maximum number of items returned per List operation. COS returns no more than the number of items specified by max-keys (that is, the sum of CommonPrefixes and Contents) in each List response. If not all objects are listed in a single response, COS returns a NextMarker node. Use its value as the marker parameter in your next List request to retrieve subsequent objects. | integer | No |
Name | Description | Type |
x-cos-bucket-region | The region of the bucket. For enumerated values, see Regions and Access Domains, such as ap-beijing, ap-hongkong, eu-frankfurt, and so on | Enum |
<?xml version='1.0' encoding='utf-8' ?><ListBucketResult><Name>string</Name><EncodingType>string</EncodingType><Prefix>string</Prefix><Marker>string</Marker><MaxKeys>integer</MaxKeys><Delimiter>string</Delimiter><IsTruncated>boolean</IsTruncated><NextMarker>string</NextMarker><CommonPrefixes><Prefix>string</Prefix></CommonPrefixes><CommonPrefixes><Prefix>string</Prefix></CommonPrefixes><Contents><Key>string</Key><LastModified>date</LastModified><ETag>string</ETag><Size>integer</Size><Owner><ID>string</ID><DisplayName>string</DisplayName></Owner><StorageClass>Enum</StorageClass><StorageTier>Enum</StorageTier><RestoreStatus>Enum</RestoreStatus></Contents><Contents><Key>string</Key><LastModified>date</LastModified><ETag>string</ETag><Size>integer</Size><Owner><ID>string</ID><DisplayName>string</DisplayName></Owner><StorageClass>Enum</StorageClass><StorageTier>Enum</StorageTier><RestoreStatus>Enum</RestoreStatus></Contents></ListBucketResult>
Node Name (Keyword) | Parent Node | Description | Type |
ListBucketResult | N/A | Stores all the information of the GET Bucket results. | Container |
Node Name (Keyword) | Parent Node | Description | Type |
Name | ListBucketResult | The bucket name in the format of <BucketName-APPID>, for example, examplebucket-1250000000. | string |
EncodingType | ListBucketResult | The encoding format, corresponding to the encoding-type parameter in the request. This node is returned only if the encoding-type parameter is specified in the request. | string |
Prefix | ListBucketResult | Object keys matching the prefix, corresponding to the prefix parameter in the request. | string |
Marker | ListBucketResult | The starting object key marker, after which (exclusive) object key entries are returned in UTF-8 lexicographical order, corresponding to the marker parameter in the request. | string |
MaxKeys | ListBucketResult | The maximum number of items returned in a single response, corresponding to the max-keys parameter in the request. | integer |
Delimiter | ListBucketResult | The delimiter, corresponding to the delimiter parameter in the request. This node is returned only if the delimiter parameter is specified in the request. | string |
IsTruncated | ListBucketResult | Indicates whether the response entries are truncated, a Boolean value, such as true and false. | boolean |
NextMarker | ListBucketResult | This node is returned only when the response entries are truncated (IsTruncated is true). Its value represents the last object key in the current response entries. To retrieve subsequent entries, pass this node's value as the marker parameter in the next request. | string |
CommonPrefixes | ListBucketResult | The identical portion from the prefix or from the beginning (if no prefix is specified) to the first delimiter is defined as the Common Prefix. This node may be returned only if the delimiter parameter is specified in the request. | Container |
Contents | ListBucketResult | Object entries. | Container |
Node Name (Keyword) | Parent Node | Description | Type |
Prefix | ListBucketResult.CommonPrefixes | The prefix of a single Common Prefix. | string |
Node Name (Keyword) | Parent Node | Description | Type |
Key | ListBucketResult.Contents | Object key. | string |
LastModified | ListBucketResult.Contents | Last modified time of the object, in ISO8601 format, such as 2019-05-24T10:56:40Z. | date |
ETag | ListBucketResult.Contents | The Entity Tag (ETag) of the object, which is an information tag identifying the object's content when it is created. It can be used to check whether the object's content has changed. For example, "8e0b617ca298a564c3331da28dcb50df". This header does not necessarily return the MD5 value of the object, but varies depending on the object upload and encryption methods. | string |
Size | ListBucketResult.Contents | Object size, in Byte. | integer |
Owner | ListBucketResult.Contents | Object owner information. | Container |
StorageClass | ListBucketResult.Contents | COS storage type. For enumerated values, see the Storage Type document, such as STANDARD_IA, ARCHIVE. | Enum |
StorageTier | ListBucketResult.Contents | When the COS storage type is INTELLIGENT_TIERING, it indicates the current storage tier of the object. Enumerated values: FREQUENT (frequent access tier). INFREQUENT (infrequent access tier). ARCHIVE_ACCESS (archive tier). DEEP_ARCHIVE_ACCESS (deep archive tier). This node is returned only when the StorageClass is INTELLIGENT_TIERING (Intelligent Tiering). | Enum |
RestoreStatus | ListBucketResult.Contents | When the COS storage type is ARCHIVE or DEEP_ARCHIVE, it indicates the restore status of the object. Supported enumerated values: ONGOING, DONE, FAILED. When no restore request is initiated for the object, this field is empty. When a restore request is initiated, ONGOING indicates the restore is in progress, DONE indicates the restore is completed, and FAILED indicates the restore has failed. This node is returned only when StorageClass is ARCHIVE (archive storage) or DEEP_ARCHIVE (deep archive storage), or when StorageClass is INTELLIGENT_TIERING (intelligent tiering) and StorageTier is ARCHIVE_ACCESS (archive tier) or DEEP_ARCHIVE_ACCESS (deep archive tier). | Enum |
Node Name (Keyword) | Parent Node | Description | Type |
ID | ListBucketResult.Contents.Owner | Owner's APPID. | string |
DisplayName | ListBucketResult.Contents.Owner | Owner's name. | string |
GET / HTTP/1.1Host: examplebucket-1250000000.cos.ap-beijing.myqcloud.comDate: Thu, 10 Dec 2020 03:37:41 GMTAuthorization: q-sign-algorithm=sha1&q-ak=************************************&q-sign-time=1607571461;1607578661&q-key-time=1607571461;1607578661&q-header-list=date;host&q-url-param-list=&q-signature=****************************************Connection: close
HTTP/1.1 200 OKContent-Type: application/xmlContent-Length: 2931Connection: closeDate: Thu, 10 Dec 2020 03:37:41 GMTServer: tencent-cosx-cos-bucket-region: ap-beijingx-cos-request-id: NWZkMTk4MDVfNjViODJhMDlfNDZkYl8xNzU0****<?xml version='1.0' encoding='utf-8' ?><ListBucketResult><Name>examplebucket-1250000000</Name><Prefix/><Marker/><MaxKeys>1000</MaxKeys><IsTruncated>false</IsTruncated><Contents><Key>example-folder-1/example-object-1.jpg</Key><LastModified>2020-12-10T03:37:30.000Z</LastModified><ETag>"f173c1199e3d3b53dd91223cae16fb42"</ETag><Size>37</Size><Owner><ID>1250000000</ID><DisplayName>1250000000</DisplayName></Owner><StorageClass>STANDARD</StorageClass></Contents><Contents><Key>example-folder-1/example-object-2.jpg</Key><LastModified>2020-12-10T03:37:30.000Z</LastModified><ETag>"c9d28698978bb6fef6c1ed1c439a17d3"</ETag><Size>37</Size><Owner><ID>1250000000</ID><DisplayName>1250000000</DisplayName></Owner><StorageClass>INTELLIGENT_TIERING</StorageClass><StorageTier>FREQUENT</StorageTier></Contents>...<Contents><Key>example-object-2.jpg</Key><LastModified>2020-12-10T03:37:30.000Z</LastModified><ETag>"51370fc64b79d0d3c7c609635be1c41f"</ETag><Size>20</Size><Owner><ID>1250000000</ID><DisplayName>1250000000</DisplayName></Owner><StorageClass>STANDARD_IA</StorageClass></Contents><Contents><Key>example-object-3.jpg</Key><LastModified>2020-12-10T04:37:30.000Z</LastModified><ETag>"51370fc64b79d0d3c7c609635be1c41f"</ETag><Size>20</Size><Owner><ID>1250000000</ID><DisplayName>1250000000</DisplayName></Owner><StorageClass>ARCHIVE</StorageClass><RestoreStatus>DONE</RestoreStatus></Contents></ListBucketResult>
GET /?encoding-type=url HTTP/1.1Host: examplebucket-1250000000.cos.ap-beijing.myqcloud.comDate: Tue, 08 Dec 2020 13:54:16 GMTAuthorization: q-sign-algorithm=sha1&q-ak=************************************&q-sign-time=1607435656;1607442856&q-key-time=1607435656;1607442856&q-header-list=date;host&q-url-param-list=encoding-type&q-signature=****************************************Connection: close
HTTP/1.1 200 OKContent-Type: application/xmlContent-Length: 1220Connection: closeDate: Wed, 09 Dec 2020 15:28:29 GMTServer: tencent-cosx-cos-bucket-region: ap-beijingx-cos-request-id: NWZkMGVkMWRfZjdjNzJhMDlfMjJhYTlfYmJk****<?xml version='1.0' encoding='utf-8' ?><ListBucketResult><Name>examplebucket-1250000000</Name><EncodingType>url</EncodingType><Prefix/><Marker/><MaxKeys>1000</MaxKeys><IsTruncated>false</IsTruncated><Contents><Key>Tencent%20Cloud.jpg</Key><LastModified>2020-12-09T15:28:19.000Z</LastModified><ETag>"ee8de918d05640145b18f70f4c3aa602"</ETag><Size>16</Size><Owner><ID>1250000000</ID><DisplayName>1250000000</DisplayName></Owner><StorageClass>STANDARD</StorageClass></Contents><Contents><Key>%E7%85%A7%E7%89%87/2020%E5%B9%B4/IMG0001.jpg</Key><LastModified>2020-12-09T15:28:19.000Z</LastModified><ETag>"ee8de918d05640145b18f70f4c3aa602"</ETag><Size>16</Size><Owner><ID>1250000000</ID><DisplayName>1250000000</DisplayName></Owner><StorageClass>STANDARD</StorageClass></Contents><Contents><Key>%E8%85%BE%E8%AE%AF%E4%BA%91.jpg</Key><LastModified>2020-12-09T15:28:19.000Z</LastModified><ETag>"ee8de918d05640145b18f70f4c3aa602"</ETag><Size>16</Size><Owner><ID>1250000000</ID><DisplayName>1250000000</DisplayName></Owner><StorageClass>STANDARD</StorageClass></Contents></ListBucketResult>
GET /?delimiter=%2F HTTP/1.1Host: examplebucket-1250000000.cos.ap-beijing.myqcloud.comDate: Thu, 10 Dec 2020 03:37:41 GMTAuthorization: q-sign-algorithm=sha1&q-ak=************************************&q-sign-time=1607571461;1607578661&q-key-time=1607571461;1607578661&q-header-list=date;host&q-url-param-list=delimiter&q-signature=****************************************Connection: close
HTTP/1.1 200 OKContent-Type: application/xmlContent-Length: 1011Connection: closeDate: Thu, 10 Dec 2020 03:37:41 GMTServer: tencent-cosx-cos-bucket-region: ap-beijingx-cos-request-id: NWZkMTk4MDVfNjRiMDJhMDlfOTZjZV8xOTgw****<?xml version='1.0' encoding='utf-8' ?><ListBucketResult><Name>examplebucket-1250000000</Name><Prefix/><Marker/><MaxKeys>1000</MaxKeys><Delimiter>/</Delimiter><IsTruncated>false</IsTruncated><CommonPrefixes><Prefix>example-folder-1/</Prefix></CommonPrefixes><CommonPrefixes><Prefix>example-folder-2/</Prefix></CommonPrefixes><Contents><Key>example-object-1.jpg</Key><LastModified>2020-12-10T03:37:30.000Z</LastModified><ETag>"0f0cd12c48979d1bf3f95255a36cb861"</ETag><Size>20</Size><Owner><ID>1250000000</ID><DisplayName>1250000000</DisplayName></Owner><StorageClass>STANDARD</StorageClass></Contents><Contents><Key>example-object-2.jpg</Key><LastModified>2020-12-10T03:37:30.000Z</LastModified><ETag>"51370fc64b79d0d3c7c609635be1c41f"</ETag><Size>20</Size><Owner><ID>1250000000</ID><DisplayName>1250000000</DisplayName></Owner><StorageClass>STANDARD_IA</StorageClass></Contents></ListBucketResult>
GET /?prefix=example-folder-1%2F&delimiter=%2F HTTP/1.1Host: examplebucket-1250000000.cos.ap-beijing.myqcloud.comDate: Thu, 10 Dec 2020 03:37:41 GMTAuthorization: q-sign-algorithm=sha1&q-ak=************************************&q-sign-time=1607571461;1607578661&q-key-time=1607571461;1607578661&q-header-list=date;host&q-url-param-list=delimiter;prefix&q-signature=****************************************Connection: close
HTTP/1.1 200 OKContent-Type: application/xmlContent-Length: 1142Connection: closeDate: Thu, 10 Dec 2020 03:37:41 GMTServer: tencent-cosx-cos-bucket-region: ap-beijingx-cos-request-id: NWZkMTk4MDVfZGZjNzJhMDlfMzJiMjRfMTY0****<?xml version='1.0' encoding='utf-8' ?><ListBucketResult><Name>examplebucket-1250000000</Name><Prefix>example-folder-1/</Prefix><Marker/><MaxKeys>1000</MaxKeys><Delimiter>/</Delimiter><IsTruncated>false</IsTruncated><CommonPrefixes><Prefix>example-folder-1/sub-folder-1/</Prefix></CommonPrefixes><CommonPrefixes><Prefix>example-folder-1/sub-folder-2/</Prefix></CommonPrefixes><Contents><Key>example-folder-1/example-object-1.jpg</Key><LastModified>2020-12-10T03:37:30.000Z</LastModified><ETag>"f173c1199e3d3b53dd91223cae16fb42"</ETag><Size>37</Size><Owner><ID>1250000000</ID><DisplayName>1250000000</DisplayName></Owner><StorageClass>STANDARD</StorageClass></Contents><Contents><Key>example-folder-1/example-object-2.jpg</Key><LastModified>2020-12-10T03:37:30.000Z</LastModified><ETag>"c9d28698978bb6fef6c1ed1c439a17d3"</ETag><Size>37</Size><Owner><ID>1250000000</ID><DisplayName>1250000000</DisplayName></Owner><StorageClass>INTELLIGENT_TIERING</StorageClass><StorageTier>FREQUENT</StorageTier></Contents></ListBucketResult>
GET /?max-keys=3 HTTP/1.1Host: examplebucket-1250000000.cos.ap-beijing.myqcloud.comDate: Tue, 08 Dec 2020 12:05:10 GMTAuthorization: q-sign-algorithm=sha1&q-ak=************************************&q-sign-time=1607429110;1607436310&q-key-time=1607429110;1607436310&q-header-list=date;host&q-url-param-list=max-keys&q-signature=****************************************Connection: close
HTTP/1.1 200 OKContent-Type: application/xmlContent-Length: 1195Connection: closeDate: Tue, 08 Dec 2020 12:05:10 GMTServer: tencent-cosx-cos-bucket-region: ap-beijingx-cos-request-id: NWZjZjZiZjZfZGRjODJhMDlfMWFjZDVfMTlmZTY5****<?xml version='1.0' encoding='utf-8' ?><ListBucketResult><Name>examplebucket-1250000000</Name><Prefix/><Marker/><MaxKeys>3</MaxKeys><IsTruncated>true</IsTruncated><NextMarker>example-object-3.jpg</NextMarker><Contents><Key>example-object-1.jpg</Key><LastModified>2020-12-08T12:05:00.000Z</LastModified><ETag>"0f0cd12c48979d1bf3f95255a36cb861"</ETag><Size>20</Size><Owner><ID>1250000000</ID><DisplayName>1250000000</DisplayName></Owner><StorageClass>STANDARD</StorageClass></Contents><Contents><Key>example-object-2.jpg</Key><LastModified>2020-12-08T12:05:00.000Z</LastModified><ETag>"51370fc64b79d0d3c7c609635be1c41f"</ETag><Size>20</Size><Owner><ID>1250000000</ID><DisplayName>1250000000</DisplayName></Owner><StorageClass>STANDARD</StorageClass></Contents><Contents><Key>example-object-3.jpg</Key><LastModified>2020-12-08T12:05:00.000Z</LastModified><ETag>"b2f1d893c5fde000ee8ea6eca18ed81f"</ETag><Size>20</Size><Owner><ID>1250000000</ID><DisplayName>1250000000</DisplayName></Owner><StorageClass>STANDARD</StorageClass></Contents></ListBucketResult>
GET /?max-keys=3&marker=example-object-3.jpg HTTP/1.1Host: examplebucket-1250000000.cos.ap-beijing.myqcloud.comDate: Tue, 08 Dec 2020 12:05:11 GMTAuthorization: q-sign-algorithm=sha1&q-ak=************************************&q-sign-time=1607429111;1607436311&q-key-time=1607429111;1607436311&q-header-list=date;host&q-url-param-list=marker;max-keys&q-signature=****************************************Connection: close
HTTP/1.1 200 OKContent-Type: application/xmlContent-Length: 859Connection: closeDate: Tue, 08 Dec 2020 12:05:11 GMTServer: tencent-cosx-cos-bucket-region: ap-beijingx-cos-request-id: NWZjZjZiZjdfMjRhZjJhMDlfMjc2NV8xYmE2****<?xml version='1.0' encoding='utf-8' ?><ListBucketResult><Name>examplebucket-1250000000</Name><Prefix/><Marker>example-object-3.jpg</Marker><MaxKeys>3</MaxKeys><IsTruncated>false</IsTruncated><Contents><Key>example-object-4.jpg</Key><LastModified>2020-12-08T12:05:00.000Z</LastModified><ETag>"e9ec8bcb980d2e4d8526c346eb3b2585"</ETag><Size>20</Size><Owner><ID>1250000000</ID><DisplayName>1250000000</DisplayName></Owner><StorageClass>STANDARD</StorageClass></Contents><Contents><Key>example-object-5.jpg</Key><LastModified>2020-12-08T12:05:00.000Z</LastModified><ETag>"201669a14bdf051d8a9d6f9828d3f4c4"</ETag><Size>20</Size><Owner><ID>1250000000</ID><DisplayName>1250000000</DisplayName></Owner><StorageClass>STANDARD</StorageClass></Contents></ListBucketResult>
GET /?delimiter=%2F&max-keys=3 HTTP/1.1Host: examplebucket-1250000000.cos.ap-beijing.myqcloud.comDate: Wed, 09 Dec 2020 03:22:38 GMTAuthorization: q-sign-algorithm=sha1&q-ak=************************************&q-sign-time=1607484158;1607491358&q-key-time=1607484158;1607491358&q-header-list=date;host&q-url-param-list=delimiter;max-keys&q-signature=****************************************Connection: close
HTTP/1.1 200 OKContent-Type: application/xmlContent-Length: 486Connection: closeDate: Wed, 09 Dec 2020 03:22:38 GMTServer: tencent-cosx-cos-bucket-region: ap-beijingx-cos-request-id: NWZkMDQyZmVfYTJjMjJhMDlfYmQwOF8xYjkw****<?xml version='1.0' encoding='utf-8' ?><ListBucketResult><Name>examplebucket-1250000000</Name><Prefix/><Marker/><MaxKeys>3</MaxKeys><Delimiter>/</Delimiter><IsTruncated>true</IsTruncated><NextMarker>example-folder-3/</NextMarker><CommonPrefixes><Prefix>example-folder-1/</Prefix></CommonPrefixes><CommonPrefixes><Prefix>example-folder-2/</Prefix></CommonPrefixes><CommonPrefixes><Prefix>example-folder-3/</Prefix></CommonPrefixes></ListBucketResult>
GET /?delimiter=%2F&max-keys=3&marker=example-folder-3%2F HTTP/1.1Host: examplebucket-1250000000.cos.ap-beijing.myqcloud.comDate: Wed, 09 Dec 2020 03:22:39 GMTAuthorization: q-sign-algorithm=sha1&q-ak=************************************&q-sign-time=1607484159;1607491359&q-key-time=1607484159;1607491359&q-header-list=date;host&q-url-param-list=delimiter;marker;max-keys&q-signature=****************************************Connection: close
HTTP/1.1 200 OKContent-Type: application/xmlContent-Length: 956Connection: closeDate: Wed, 09 Dec 2020 03:22:39 GMTServer: tencent-cosx-cos-bucket-region: ap-beijingx-cos-request-id: NWZkMDQyZmZfZmNhODBiMDlfZmM4N19jYmQz****<?xml version='1.0' encoding='utf-8' ?><ListBucketResult><Name>examplebucket-1250000000</Name><Prefix/><Marker>example-folder-3/</Marker><MaxKeys>3</MaxKeys><Delimiter>/</Delimiter><IsTruncated>false</IsTruncated><CommonPrefixes><Prefix>example-folder-4/</Prefix></CommonPrefixes><Contents><Key>example-object-1.jpg</Key><LastModified>2020-12-09T03:22:28.000Z</LastModified><ETag>"0f0cd12c48979d1bf3f95255a36cb861"</ETag><Size>20</Size><Owner><ID>1250000000</ID><DisplayName>1250000000</DisplayName></Owner><StorageClass>STANDARD</StorageClass></Contents><Contents><Key>example-object-2.jpg</Key><LastModified>2020-12-09T03:22:28.000Z</LastModified><ETag>"51370fc64b79d0d3c7c609635be1c41f"</ETag><Size>20</Size><Owner><ID>1250000000</ID><DisplayName>1250000000</DisplayName></Owner><StorageClass>STANDARD</StorageClass></Contents></ListBucketResult>
피드백