列举已上传的块
Last updated
2023-07-14 11:15:28
{"value":"## **\u63cf\u8ff0**\n\nAPI \u53ef\u5217\u4e3e\u51fa\u6307\u5b9a UploadId \u6240\u5c5e\u4efb\u52a1\u6240\u6709\u5df2\u7ecf\u4e0a\u4f20\u6210\u529f Part\u3002\n\n\n\n\n\n## **\u8bf7\u6c42**\n\n\n\n**\u8bf7\u6c42\u8bed\u6cd5**\n\n```\nGET \/buckets\/<BucketName>\/objects\/<EncodedObjectName>\/uploads\/<UploadId>?max-parts=<MaxParts>&part-number-marker=<PartNumberMarker> HTTP\/1.1\nHost: <UpHost>\nAuthorization: UpToken <UploadToken>\n```\n\n\u4f7f\u7528\u8bf4\u660e\uff1a\n\n- \u8fd4\u56de\u7ed3\u679c\u6309\u7167 PartNumber \u5347\u5e8f\u6392\u5217\u3002\n\n\n\n\n\n**\u8bf7\u6c42\u53c2\u6570**\n\n| \u53c2\u6570\u540d\u79f0 | \u5fc5\u586b | \u7c7b\u578b | \u8bf4\u660e |\n| ------------------ | ---- | ------ | ------------------------------------------------------------ |\n| BucketName | \u662f | \u5b57\u7b26\u4e32 | \u7a7a\u95f4\u540d\u79f0 |\n| EncodedObjectName | \u5426 | \u5b57\u7b26\u4e32 | \u8d44\u6e90\u540d\uff0cEncodedObjectName \u9700\u8981\u7ecf\u8fc7 Base64 \u7f16\u7801\u3002\u5177\u4f53\u53ef\u4ee5\u53c2\u7167\uff1aURL \u5b89\u5168\u7684 Base64 \u7f16\u7801 |\n| UploadId | \u662f | \u5b57\u7b26\u4e32 | \u5728\u670d\u52a1\u7aef\u7533\u8bf7\u7684 Multipart Upload \u4efb\u52a1 id |\n| max-parts | \u5426 | \u6574\u6570 | \u54cd\u5e94\u4e2d\u7684\u6700\u5927 Part \u6570\u76ee\u3002\u9ed8\u8ba4\u503c \uff1a1,000\uff0c\u6700\u5927\u503c \uff1a1,000 |\n| part-number-marker | \u5426 | \u6574\u6570 | \u6307\u5b9a\u5217\u4e3e\u7684\u8d77\u59cb\u4f4d\u7f6e\uff0c\u53ea\u6709 PartNumber \u503c\u5927\u4e8e\u8be5\u53c2\u6570\u7684 Part \u4f1a\u88ab\u5217\u51fa\u3002\u9ed8\u8ba4\u503c \uff1a\u65e0 |\n\n\n\n\n\n**\u8bf7\u6c42\u5934**\n\n| \u5934\u90e8\u540d\u79f0 | \u5fc5\u586b | \u8bf4\u660e |\n| ------------- | ---- | ------------------------------------------------------------ |\n| Host | \u662f | \u4e0a\u4f20\u57df\u540d\u3002\u8bbf\u95ee\u57df\u540d\u5217\u8868 |\n| Authorization | \u662f | \u8be5\u53c2\u6570\u5e94\u4e25\u683c\u6309\u7167\u4e0a\u4f20\u51ed\u8bc1\u683c\u5f0f\u8fdb\u884c\u586b\u5145\uff0c\u5426\u5219\u4f1a\u8fd4\u56de 401 \u9519\u8bef\u7801\u3002\u4e00\u4e2a\u5408\u6cd5\u7684 Authorization \u503c\u5e94\u7c7b\u4f3c\u4e8e Authorization: UpToken QNJi_bYJlmO5LeY08FfoNj9w_r... |\n\n\n\n\n\n**\u8bf7\u6c42\u5185\u5bb9**\n\n\u8be5\u8bf7\u6c42\u64cd\u4f5c\u7684\u8bf7\u6c42\u4f53\u4e3a\u7a7a\u3002\n\n\n\n\n\n## **\u54cd\u5e94**\n\n\n\n**\u54cd\u5e94\u5934**\n\n\u8be5\u8bf7\u6c42\u64cd\u4f5c\u7684\u5b9e\u73b0\u4f7f\u7528\u4e86\u6240\u6709\u64cd\u4f5c\u7684\u516c\u5171\u54cd\u5e94\u5934\u3002\u6709\u5173\u8be6\u7ec6\u4fe1\u606f\uff0c\u8bf7\u67e5\u9605\u516c\u5171\u54cd\u5e94\u5934\u3002\n\n\n\n\n\n**\u54cd\u5e94\u5185\u5bb9**\n\n| \u540d\u79f0 | \u7c7b\u578b | \u8bf4\u660e |\n| ---------------- | ------ | ------------------------------------------------------------ |\n| uploadId | string | \u521d\u59cb\u5316\u6587\u4ef6\u751f\u6210\u7684 id |\n| expireAt | int64 | UploadId \u7684\u8fc7\u671f\u65f6\u95f4 Unix \u65f6\u95f4\u6233\uff0c\u8fc7\u671f\u4e4b\u540e UploadId \u4e0d\u53ef\u7528\uff0c\u56fa\u5b9a 7 \u5929\u6709\u6548\u671f |\n| partNumberMarker | int | \u4e0b\u6b21\u7ee7\u7eed\u5217\u4e3e\u7684\u8d77\u59cb\u4f4d\u7f6e\uff0c0 \u8868\u793a\u5217\u4e3e\u7ed3\u675f\uff0c\u6ca1\u6709\u66f4\u591a\u5206\u7247 |\n| parts | Array | \u5df2\u7ecf\u4e0a\u4f20 Part \u5217\u8868\uff08 \u5305\u62ec PartNumber\uff08 int \uff09\u3001\u8c03\u7528 uploadPart API\u670d\u52a1\u7aef\u8fd4\u56de\u7684 Etag\uff08 string \uff09\u3001\u5206\u7247\u5927\u5c0f Size ( int64 )\u548c\u5206\u7247\u4e0a\u4f20\u65f6\u95f4 Unix \u65f6\u95f4\u6233 PutTime ( int64 ) ) |\n\n\n\n\n\n**\u54cd\u5e94\u72b6\u6001\u7801**\n\n\u8be5\u64cd\u4f5c\u7684\u5b9e\u73b0\u4e0d\u4f1a\u8fd4\u56de\u7279\u6b8a\u9519\u8bef\u3002\u6709\u5173\u9519\u8bef\u548c\u9519\u8bef\u4ee3\u7801\u5217\u8868\u7684\u4e00\u822c\u4fe1\u606f\uff0c\u8bf7\u67e5\u9605\u9519\u8bef\u54cd\u5e94\u3002\n\n\n\n\n\n## **\u793a\u4f8b**\n\n\n\n**\u8bf7\u6c42\u793a\u4f8b**\n\n```\nGET \/buckets\/myBucket\/objects\/bXlPYmplY3Q=\/uploads\/myUploadID?max-parts=2 HTTP\/1.1\nHost: up.qiniup.com\nAuthorization: UpToken j853F3bLkWl59I5BOkWm6q1Z1mZClpr9Z9CLfDE0:nP7NSSyGo4x3W_nJ8T9X1gJrgpk=\n```\n\n\n\n\n\n**\u54cd\u5e94\u793a\u4f8b**\n\n```\nHTTP\/1.1 200 OK\nContent-Length: 2\nConnection: keep-alive\nContent-Type: application\/json\nDate: Wed, 18 Dec 2019 17:02:11 GMT\nServer: nginx\nX-Reqid: SFkAAAC8BDebTtsU\n\n{\n \"uploadId\": \"myUploadID\",\n \"expireAt\": 1590725318,\n \"partNumberMarker\": 3,\n \"parts\": [\n {\n \"size\": 4,\n \"etag\": \"FqlKj-XMsZumHEwIc9OR6YeYL7vT\",\n \"partNumber\": 1,\n \"putTime\": 1590725018\n },\n {\n \"size\": 9,\n \"etag\": \"FqvtxHpe3j-rEzkImMUWDsmvu27D\",\n \"partNumber\": 3,\n \"putTime\": 1590725019\n }\n ]\n}\n```\n"}