History
Introduction
API Category
Making API Requests
Region APIs
Instance APIs
Cloud Hosting Cluster APIs
Image APIs
Instance Launch Template APIs
Placement Group APIs
Key APIs
Security Group APIs
Network APIs
Data Types
Error Codes
GET /for-test.zip?ci-process=zippreview&uncompress-key=<key> HTTP/1.1Host: <BucketName-APPID>.cos.<Region>.myqcloud.comDate: <GMT Date>Authorization: <Auth String>Content-Length: <length>
节点名称(关键字) | 描述 | 是否必选 |
ci-process | 操作类型,压缩包预览计算固定为:zippreview。 | 是 |
uncompress-key | 对于已加密的压缩包,可通过该字段填入解密密钥,密钥需进行 base64编码。 | 否 |
<Response><FileNumber>2</FileNumber><Contents><Key>test1.jpg</Key><LastModified>2021-11-21T12:30:42+0000</LastModified><UncompressedSize>46743</UncompressedSize></Contents><Contents><Key>test2.mp3</Key><LastModified>2021-11-22T12:11:26+0000</LastModified><UncompressedSize>733318</UncompressedSize></Contents></Response>
节点名称(关键字) | 父节点 | 描述 | 类型 |
Response | 无 | 保存结果的容器 | Container |
节点名称(关键字) | 父节点 | 描述 | 类型 |
FileNumber | Response | 压缩包中的文件数量 | Int |
Contents | Response | 保存文件信息的容器 | Container 数组 |
IsTruncated | Response | 响应条目是否被截断。预览接口仅返回前1000条,若压缩包里超出1000文件,IsTruncated为true,反之为false | Boolean |
节点名称(关键字) | 父节点 | 描述 | 类型 |
Key | Response.Contents | 文件名称 | String |
LastModified | Response.Contents | 文件的最近一次修改的时间 | String |
UncompressedSize | Response.Contents | 文件压缩前的大小 | Int |
GET /for-test.zip?ci-process=zippreview HTTP/1.1Host: test-1234567890.cos.ap-beijing.myqcloud.comAuthorization: q-sign-algorithm=sha1&q-ak=***************************************&q-key-time=1484213027;32557109027&q-header-list=host&q-url-param-list=acl&q-signature=****************************************Content-Length: 0
HTTP/1.1 200 OKContent-Type: application/xmlContent-Length: 666Connection: keep-aliveDate: Mon, 28 Jun 2022 15:23:12 GMTServer: tencent-cosx-cos-request-id: NTg3NzRiMjVfYmRjMzVfMTViMl82ZGZmNw==<Response><FileNumber>2</FileNumber><Contents><Key>test1.jpg</Key><LastModified>2021-11-21T12:30:42+0000</LastModified><UncompressedSize>46743</UncompressedSize></Contents><Contents><Key>test2.mp3</Key><LastModified>2021-11-22T12:11:26+0000</LastModified><UncompressedSize>733318</UncompressedSize></Contents><IsTruncated>false</IsTruncated></Response>
文档反馈