DescribeDocProcessBuckets
) is used to query the buckets with the file preview feature enabled.GET /docbucket?pageNumber=1&pageSize=2 HTTP/1.1Host: ci.<Region>.myqcloud.comDate: <GMT Date>Authorization: <Auth String>Content-Length: <length>Content-Type: application/xml
Name | Description | Type | Required |
regions | Region. Separate multiple regions by comma. Valid values: All , ap-shanghai , ap-beijing . | string | No |
bucketNames | Bucket name. Separate multiple bucket names by comma. Exact search is supported. | string | No |
bucketName | Bucket name prefix. Prefix search is supported. | string | No |
pageNumber | Page number. | string | No |
pageSize | Number of entries per page. | string | No |
<Response><TotalCount>1</TotalCount><RequestId>RequestId</RequestId><PageNumber>1</PageNumber><PageSize>2</PageSize><DocBucketList><Name>BucketName-APPID</Name><CreateTime>Time</CreateTime><Region>Region</Region><AliasBucketId/><BucketId>BucketName-APPID</BucketId></DocBucketList></Response>
Node Name (Keyword) | Parent Node | Description | Type |
Response | None | Result storage container | Container |
Response
has the following sub-nodes:Node Name (Keyword) | Parent Node | Description | Type |
RequestId | Response | Unique ID of the request | String |
TotalCount | Response | Total number of buckets with file preview enabled. | Int |
PageNumber | Response | Current page number. Same as pageNumber in the request. | Int |
PageSize | Response | Number of records per page. Same as pageSize in the request. | Int |
DocBucketList | Response | List of buckets with file preview enabled. | Container |
DocBucketList
has the following sub-nodes:Node Name (Keyword) | Parent Node | Description | Type |
BucketId | Response.DocBucketList | Bucket ID. | String |
Name | Response.DocBucketList | Bucket name, which is the same as BucketId . | String |
Region | Response.DocBucketList | Region. | String |
CreateTime | Response.DocBucketList | Creation time. | String |
AliasBucketId | Response.DocBucketList | Bucket alias. | String |
GET /docbucket?regions=ap-chongqing HTTP/1.1Connection: keep-aliveAccept-Encoding: gzip, deflateAccept: */*User-Agent: cos-python-sdk-v5.3.2Host: ci.ap-chongqing.myqcloud.comContent-Type: application/xmlAuthorization: Authorization
HTTP/1.1 200 OKDate: Mon, 27 Jul 2020 07:00:43 GMTContent-Type: application/xmlContent-Length: 843Connection: keep-aliveServer: tencent-cix-ci-request-id: NWYxZTdiOWJfYzc2OTQzNjRfM2Qz****<?xml version="1.0" encoding="utf-8"?><Response><TotalCount>3</TotalCount><RequestId>NWYxZTdiOWJfYzc2OTQzNjRfM2Qz****</RequestId><PageNumber>1</PageNumber><PageSize>10</PageSize><DocBucketList><Name>examplebucket-1250000000</Name><CreateTime>2020-07-27T10:54:42+0800</CreateTime><Region>ap-chongqing</Region><AliasBucketId/><BucketId>examplebucket-1250000000</BucketId></DocBucketList><DocBucketList><Name>examplebucket-1250000000</Name><CreateTime>2020-07-24T22:42:26+0800</CreateTime><Region>ap-chongqing</Region><AliasBucketId/><BucketId>examplebucket-1250000000</BucketId></DocBucketList></Response>
Was this page helpful?