Release Notes
Announcements
GET / HTTP/1.1Host: service.cos.myqcloud.comDate: GMT DateAuthorization: Auth String
GET / HTTP/1.1Host: cos.<Region>.myqcloud.comDate: GMT DateAuthorization: Auth String
service.cos.myqcloud.com, to query bucket lists in a specific region, specify it as cos.<Region>.myqcloud.com, where <Region> is the available region for COS, refer to the Regions and Access Domains document.Name | Description | Type | Required or Not |
tagkey | Supports filtering buckets based on bucket Tags (composed of tag key tagkey and tag value tagvalue). Only one bucket Tag can be passed in, and tagkey is used to pass in the tag key. If you need to query buckets based on bucket Tags, then tagkey and tagvalue are required fields. | string | No |
tagvalue | Supports filtering buckets based on bucket Tags (composed of tag key tagkey and tag value tagvalue). Only one bucket Tag can be passed in, and tagvalue is used to pass in the tag value. If you need to query buckets based on bucket Tags, then tagkey and tagvalue are required fields. | string | No |
region | Supports filtering buckets by region, for example region=ap-beijing. For COS supported regions, refer to Regions and Access Domains | string | No |
create-time | GMT timestamp, used together with the range parameter, supports filtering buckets based on creation time, for example create-time=1642662645 | Timestamp | No |
range | Used together with the create-time parameter to filter buckets based on creation time. Supported enumeration values: lt (creation time earlier than create-time), gt (creation time later than create-time), lte (creation time earlier than or equal to create-time), gte (creation time later than or equal to create-time). | string | No |
marker | Start marker. Bucket entries are returned in UTF-8 lexicographical order starting after (exclusive) this marker. | string | No |
max-keys | The maximum number of entries returned in a single response. The default value is 2000, and the maximum is 2000. If not all buckets are listed in a single response, COS will return a NextMarker node, whose value is to be used as the marker parameter in the next GetService request. | integer | No |
Bucket Tag authorization status | GetService authorization status | GetService request | Request returned |
The root account granted the sub-account resource operation permissions for bucket Tag tagA through bucket Tag authorization. | You have not been authorized for the GetService permission. | Include the bucket Tag parameter tagA | List of buckets containing bucket Tag tagA |
| | Does not include the bucket Tag parameter | Access Denied |
| Grant additional GetService permission | Include the bucket Tag parameter tagA | List of buckets containing bucket Tag tagA |
| | Does not include the bucket Tag parameter | List of all buckets |
The root account did not grant the sub-account resource operation permissions for bucket Tag tagA through bucket Tag authorization. | You have not been authorized for the GetService permission. | Include the bucket Tag parameter tagA | Access Denied |
| | Does not include the bucket Tag parameter | Access Denied |
| Grant additional GetService permission | Include the bucket Tag parameter tagA | List of buckets containing bucket Tag tagA |
| | Does not include the bucket Tag parameter | List of all buckets |
<ListAllMyBucketsResult><Owner><ID>string</ID><DisplayName>string</DisplayName></Owner><Marker></Marker><NextMarker></NextMarker><IsTruncated></IsTruncated><Buckets><Bucket><Name>string</Name><Location>Enum</Location><CreationDate>date</CreationDate></Bucket><Bucket><Name>string</Name><Location>Enum</Location><CreationDate>date</CreationDate></Bucket></Buckets></ListAllMyBucketsResult>
Node Name (Keyword) | Parent Node | Description | Type |
ListAllMyBucketsResult | N/A | Save all information of the GET Service results. | Container |
Node Name (Keyword) | Parent Node | Description | Type |
Owner | ListAllMyBucketsResult | Bucket owner information | Container |
Buckets | ListAllMyBucketsResult | List of buckets | Container |
Marker | ListAllMyBucketsResult | Indicates the starting point of this GetService (ListBuckets) operation. | string |
IsTruncated | ListAllMyBucketsResult | Whether all results have been returned. true: indicates that not all results were returned this time. false: indicates that all results have been returned this time. | string |
NextMarker | ListAllMyBucketsResult | When not all results are returned, to be used as the marker parameter for subsequent GetService requests. | string |
Node Name (Keyword) | Parent Node | Description | Type |
ID | ListAllMyBucketsResult.Owner | The full ID of the bucket owner, in the format qcs::cam::uin/[OwnerUin]:uin/[OwnerUin]For example, qcs::cam::uin/100000000001:uin/100000000001 | string |
DisplayName | ListAllMyBucketsResult.Owner | Bucket owner name | string |
Node Name (Keyword) | Parent Node | Description | Type |
Bucket | ListAllMyBucketsResult.Buckets | Bucket information | Container |
Node Name (Keyword) | Parent Node | Description | Type |
Name | ListAllMyBucketsResult.Buckets.Bucket | Bucket name in the format <BucketName-APPID>For example, examplebucket-1250000000 | string |
Location | ListAllMyBucketsResult.Buckets.Bucket | For example, ap-beijing, ap-hongkong, eu-frankfurt, etc. | Enum |
CreationDate | ListAllMyBucketsResult.Buckets.Bucket | Creation time of the bucket in ISO8601 format, such as 2019-05-24T10:56:40Z | date |
GET / HTTP/1.1Host: service.cos.myqcloud.comDate: Fri, 24 May 2019 11:59:50 GMTAuthorization: q-sign-algorithm=sha1&q-ak=************************************&q-sign-time=1558699190;1558706390&q-key-time=1558699190;1558706390&q-header-list=date;host&q-url-param-list=&q-signature=****************************************Connection: close
HTTP/1.1 200 OKContent-Type: application/xmlContent-Length: 805Connection: closeDate: Fri, 24 May 2019 11:59:51 GMTServer: tencent-cosx-cos-request-id: NWNlN2RjYjdfOGFiMjM1MGFfNTVjMl8zMmI1****<ListAllMyBucketsResult><Owner><ID>qcs::cam::uin/100000000001:uin/100000000001</ID><DisplayName>100000000001</DisplayName></Owner></Marker></NextMarker><IsTruncated>false</IsTruncated><Buckets><Bucket><Name>examplebucket1-1250000000</Name><Location>ap-beijing</Location><CreationDate>2019-05-24T11:49:50Z</CreationDate></Bucket><Bucket><Name>examplebucket2-1250000000</Name><Location>ap-beijing</Location><CreationDate>2019-05-24T11:51:50Z</CreationDate></Bucket><Bucket><Name>examplebucket3-1250000000</Name><Location>eu-frankfurt</Location><CreationDate>2019-05-24T11:53:50Z</CreationDate></Bucket><Bucket><Name>examplebucket4-1250000000</Name><Location>eu-frankfurt</Location><CreationDate>2019-05-24T11:55:50Z</CreationDate></Bucket></Buckets></ListAllMyBucketsResult>
GET / HTTP/1.1Host: cos.ap-beijing.myqcloud.comDate: Fri, 24 May 2019 11:59:51 GMTAuthorization: q-sign-algorithm=sha1&q-ak=************************************&q-sign-time=1558699191;1558706391&q-key-time=1558699191;1558706391&q-header-list=date;host&q-url-param-list=&q-signature=****************************************Connection: close
HTTP/1.1 200 OKContent-Type: application/xmlContent-Length: 495Connection: closeDate: Fri, 24 May 2019 11:59:51 GMTServer: tencent-cosx-cos-request-id: NWNlN2RjYjdfZjhjODBiMDlfOWNlNF9hYzc2****<ListAllMyBucketsResult><Owner><ID>qcs::cam::uin/100000000001:uin/100000000001</ID><DisplayName>100000000001</DisplayName></Owner></Marker></NextMarker><IsTruncated>false</IsTruncated><Buckets><Bucket><Name>examplebucket1-1250000000</Name><Location>ap-beijing</Location><CreationDate>2019-05-24T11:49:50Z</CreationDate></Bucket><Bucket><Name>examplebucket2-1250000000</Name><Location>ap-beijing</Location><CreationDate>2019-05-24T11:51:50Z</CreationDate></Bucket></Buckets></ListAllMyBucketsResult>
GET /?region=ap-beijing HTTP/1.1Host: service.cos.myqcloud.comDate: Fri, 24 May 2019 11:59:51 GMTAuthorization: q-sign-algorithm=sha1&q-ak=************************************&q-sign-time=1558699191;1558706391&q-key-time=1558699191;1558706391&q-header-list=date;host&q-url-param-list=&q-signature=****************************************Connection: close
HTTP/1.1 200 OKContent-Type: application/xmlContent-Length: 495Connection: closeDate: Fri, 24 May 2019 11:59:51 GMTServer: tencent-cosx-cos-request-id: NWNlN2RjYjdfZjhjODBiMDlfOWNlNF9hYzc2****<ListAllMyBucketsResult><Owner><ID>qcs::cam::uin/100000000001:uin/100000000001</ID><DisplayName>100000000001</DisplayName></Owner></Marker></NextMarker><IsTruncated>false</IsTruncated><Buckets><Bucket><Name>examplebucket1-</Name><Location>ap-beijing</Location><CreationDate>2019-05-24T11:49:50Z</CreationDate></Bucket><Bucket><Name>examplebucket2-1250000000</Name><Location>ap-beijing</Location><CreationDate>2019-05-24T11:51:50Z</CreationDate></Bucket></Buckets></ListAllMyBucketsResult>
<key1, value1>, and the bucket examplebucket1-1250000000 has the tags <key1, value1> and <key2, value2>.GET /?tagkey=key1&tagvalue=value1 HTTP/1.1Host: service.cos.myqcloud.comDate: Fri, 24 May 2019 11:59:51 GMTAuthorization: q-sign-algorithm=sha1&q-ak=************************************&q-sign-time=1558699191;1558706391&q-key-time=1558699191;1558706391&q-header-list=date;host&q-url-param-list=&q-signature=****************************************Connection: close
HTTP/1.1 200 OKContent-Length: 378Content-Type: application/xmlServer: tencent-cosConnection: keep-aliveDate: Thu, 20 Oct 2022 07:29:40 GMTx-cos-request-id: NjM1MGY4ZTRfMWViMjM1MGFfYjg3MV8xNjdk****<ListAllMyBucketsResult><Owner><ID>qcs::cam::uin/100000000001:uin/100000000001</ID><DisplayName>100000000001</DisplayName></Owner></Marker></NextMarker><IsTruncated>false</IsTruncated><Buckets><Bucket><Name>examplebucket-1250000000 </Name><Location>ap-guangzhou</Location><CreationDate>2022-04-11T03:01:49Z</CreationDate><BucketType>cos</BucketType></Bucket></Buckets><Buckets><Bucket><Name>examplebucket1-1250000000 </Name><Location>ap-guangzhou</Location><CreationDate>2022-04-12T03:01:49Z</CreationDate><BucketType>cos</BucketType></Bucket></Buckets></ListAllMyBucketsResult>
2022-1-20 15:10:45.GET /?range=lt&create-time=1642662645 HTTP/1.1Host: service.cos.myqcloud.comUser-Agent: curl/7.64.1Accept: */*Authorization: q-sign-algorithm=sha1&q-ak=************************************&q-sign-time=1667448802;1668448852&q-key-time=1667448802;1668448852&q-url-param-list=create-time;range&q-header-list=host&q-signature=****************************************
HTTP/1.1 200 OKContent-Type: application/xmlContent-Length: 5566Connection: keep-aliveDate: Thu, 03 Nov 2022 04:14:23 GMTServer: tencent-cosx-cos-request-id: NjM2MzQwMWZfMmJiMjM1MGFfYTc******<ListAllMyBucketsResult><Owner><ID>qcs::cam::uin/100000000001:uin/100000000001</ID><DisplayName>100000000001</DisplayName></Owner></Marker></NextMarker><IsTruncated>false</IsTruncated><Buckets><Bucket><Name>examplebucket-1250000000</Name><Location>ap-beijing</Location><CreationDate>2021-11-23T03:02:12Z</CreationDate><BucketType>cos</BucketType></Bucket></Buckets></ListAllMyBucketsResult>
GET /?max-keys=1 HTTP/1.1Host: service.cos.myqcloud.comUser-Agent: curl/7.64.1Accept: */*Authorization: q-sign-algorithm=sha1&q-ak=************************************&q-sign-time=1667448802;1668448852&q-key-time=1667448802;1668448852&q-url-param-list=create-time;range&q-header-list=host&q-signature=****************************************
HTTP/1.1 200 OKContent-Type: application/xmlContent-Length: 5566Connection: keep-aliveDate: Thu, 03 Nov 2022 04:14:23 GMTServer: tencent-cosx-cos-request-id: NjM2MzQwMWZfMmJiMjM1MGFfYTc******<ListAllMyBucketsResult><Owner><ID>qcs::cam::uin/100000000001:uin/100000000001</ID><DisplayName>100000000001</DisplayName></Owner></Marker><NexMarker>1</NextMarker><IsTruncated>true</IsTruncated><Buckets><Bucket><Name>examplebucket-1250000000</Name><Location>ap-beijing</Location><CreationDate>2021-11-23T03:02:12Z</CreationDate><BucketType>cos</BucketType></Bucket></Buckets></ListAllMyBucketsResult>
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback