资源列举
Last updated
2023-07-14 16:06:47
{"value":"## **\u63cf\u8ff0**\n\n\u672c\u63a5\u53e3\u7528\u4e8e\u5217\u4e3e\u6307\u5b9a\u7a7a\u95f4\u91cc\u7684\u6240\u6709\u6587\u4ef6\u6761\u76ee\u3002\n\n\n\n\n\n## **\u8bf7\u6c42**\n\n\n\n**\u8bf7\u6c42\u8bed\u6cd5**\n\n```\nGET \/list?bucket=<Bucket>&marker=<Marker>&limit=<Limit>&prefix=<UrlEncodedPrefix>&delimiter=<UrlEncodedDelimiter> HTTP\/1.1\nHost: rsf.qiniuapi.com\nContent-Type: application\/x-www-form-urlencoded\nX-Qiniu-Date: 20060102T150405Z\nAuthorization: Qiniu <AccessToken>\n```\n\n\n\n\n\n**\u8bf7\u6c42\u53c2\u6570**\n\n| \u53c2\u6570\u540d\u79f0 | \u5fc5\u586b | \u8bf4\u660e |\n| :-------- | :--- | :----------------------------------------------------------- |\n| bucket | \u662f | \u6307\u5b9a\u7a7a\u95f4\u3002 |\n| marker | \u5426 | \u4e0a\u4e00\u6b21\u5217\u4e3e\u8fd4\u56de\u7684\u4f4d\u7f6e\u6807\u8bb0\uff0c\u4f5c\u4e3a\u672c\u6b21\u5217\u4e3e\u7684\u8d77\u70b9\u4fe1\u606f\u3002\u9ed8\u8ba4\u503c\u4e3a\u7a7a\u5b57\u7b26\u4e32\u3002 |\n| limit | \u5426 | \u672c\u6b21\u5217\u4e3e\u7684\u6761\u76ee\u6570\uff0c\u8303\u56f4\u4e3a1-1000\u3002\u9ed8\u8ba4\u503c\u4e3a1000\u3002 |\n| prefix | \u5426 | \u6307\u5b9a\u524d\u7f00\uff0c\u53ea\u6709\u8d44\u6e90\u540d\u5339\u914d\u8be5\u524d\u7f00\u7684\u8d44\u6e90\u4f1a\u88ab\u5217\u51fa\u3002\u9ed8\u8ba4\u503c\u4e3a\u7a7a\u5b57\u7b26\u4e32\u3002 |\n| delimiter | \u5426 | \u6307\u5b9a\u76ee\u5f55\u5206\u9694\u7b26\uff0c\u5217\u51fa\u6240\u6709\u516c\u5171\u524d\u7f00\uff08\u6a21\u62df\u5217\u51fa\u76ee\u5f55\u6548\u679c\uff09\u3002\u9ed8\u8ba4\u503c\u4e3a\u7a7a\u5b57\u7b26\u4e32\u3002 |\n\n\n\n\n\n**\u8bf7\u6c42\u5934**\n\n| \u5934\u90e8\u540d\u79f0 | \u5fc5\u586b | \u8bf4\u660e | | |\n| :-------------- | :--- | :----------------------------------------------------------- | ------------------------------------------------------------ | ---- |\n| `Authorization` | \u662f | \u8be5\u53c2\u6570\u5e94\u4e25\u683c\u6309\u7167\u7ba1\u7406\u51ed\u8bc1\u683c\u5f0f\u8fdb\u884c\u586b\u5145\uff0c\u5426\u5219\u4f1a\u8fd4\u56de401\u9519\u8bef\u7801\u4e00\u4e2a\u5408\u6cd5\u7684Authorization\u503c\u5e94\u7c7b\u4f3c\u4e8e\uff1a`Qiniu QNJi_bYJlmO5LeY08FfoNj9w_r7...` | | |\n| | \u5176\u4ed6 | | \u8be5\u8bf7\u6c42\u64cd\u4f5c\u7684\u5b9e\u73b0\u4f7f\u7528\u4e86\u6240\u6709\u64cd\u4f5c\u7684\u516c\u5171\u8bf7\u6c42\u5934\u3002\u8be6\u60c5\u8bf7\u67e5\u9605\u516c\u5171\u8bf7\u6c42\u5934 | |\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| \u5934\u90e8\u540d\u79f0 | \u5fc5\u586b | \u8bf4\u660e |\n| :----------- | :--- | :----------------------------------------------------------- |\n| Content-Type | \u662f | \u6b63\u5e38\u60c5\u51b5\u4e0b\u8be5\u503c\u5c06\u88ab\u8bbe\u4e3a `application\/json`\uff0c\u8868\u793a\u8fd4\u56de JSON \u683c\u5f0f\u7684\u6587\u672c\u4fe1\u606f\u3002 |\n| \u5176\u4ed6 | | \u8be5\u8bf7\u6c42\u5b9e\u73b0\u4f7f\u7528\u4e86\u6240\u6709\u64cd\u4f5c\u7684\u516c\u5171\u54cd\u5e94\u5934\u3002\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| \u5b57\u6bb5\u540d\u79f0 | \u5fc5\u54cd\u5e94\u9879\u76ee | \u8bf4\u660e |\n| :------------- | :--------- | :----------------------------------------------------------- |\n| marker | \u662f | \u6709\u5269\u4f59\u6761\u76ee\u5219\u8fd4\u56de\u975e\u7a7a\u5b57\u7b26\u4e32\uff0c\u4f5c\u4e3a\u4e0b\u4e00\u6b21\u5217\u4e3e\u7684\u53c2\u6570\u4f20\u5165\u3002\u5982\u679c\u6ca1\u6709\u5269\u4f59\u6761\u76ee\u5219\u8fd4\u56de\u7a7a\u5b57\u7b26\u4e32\u3002 \u7c7b\u578b\uff1a\u5b57\u7b26\u4e32 |\n| commonPrefixes | \u662f | \u8fd4\u56de\u76ee\u5f55\u540d\u7684\u6570\u7ec4\uff0c\u5982\u6ca1\u6709\u6307\u5b9a`delimiter`\u53c2\u6570\u5219\u8fd4\u56de\u7a7a\u3002 \u7c7b\u578b\uff1a\u6570\u7ec4 |\n| items | \u662f | \u8fd4\u56de\u6761\u76ee\u7684\u6570\u7ec4\u3002\u4e0d\u80fd\u7528\u6765\u5224\u65ad\u662f\u5426\u8fd8\u6709\u5269\u4f59\u6761\u76ee\u3002 \u7c7b\u578b\uff1a\u6570\u7ec4 |\n| key | \u662f | \u8d44\u6e90\u540d\u3002 \u7c7b\u578b\uff1a\u5b57\u7b26\u4e32 |\n| putTime | \u662f | \u4e0a\u4f20\u65f6\u95f4\uff0c\u5355\u4f4d\uff1a100\u7eb3\u79d2\uff0c\u5176\u503c\u53bb\u6389\u4f4e\u4e03\u4f4d\u5373\u4e3aUnix\u65f6\u95f4\u6233\u3002 \u7c7b\u578b\uff1a\u6570\u5b57 |\n| hash | \u662f | \u6587\u4ef6\u7684`HASH`\u503c\uff0c\u4f7f\u7528hash\u503c\u7b97\u6cd5\u8ba1\u7b97\u3002 \u7c7b\u578b\uff1a\u5b57\u7b26\u4e32 |\n| fsize | \u662f | \u8d44\u6e90\u5185\u5bb9\u7684\u5927\u5c0f\uff0c\u5355\u4f4d\uff1a\u5b57\u8282\u3002 \u7c7b\u578b\uff1a\u6570\u5b57 |\n| mimeType | \u662f | \u8d44\u6e90\u7684 MIME \u7c7b\u578b\u3002 \u7c7b\u578b\uff1a\u5b57\u7b26\u4e32 |\n| endUser | \u5426 | \u8d44\u6e90\u5185\u5bb9\u7684\u552f\u4e00\u5c5e\u4e3b\u6807\u8bc6\uff0c\u8bf7\u53c2\u8003\u4e0a\u4f20\u7b56\u7565 (PutPolicy)\u3002 \u7c7b\u578b\uff1a\u5b57\u7b26\u4e32 |\n| type | \u662f | \u8d44\u6e90\u7684\u5b58\u50a8\u7c7b\u578b\uff0c`0`\u8868\u793a\u6807\u51c6\u5b58\u50a8\uff0c`1` \u8868\u793a\u4f4e\u9891\u5b58\u50a8\uff0c`2` \u8868\u793a\u5f52\u6863\u5b58\u50a8\uff0c`3` \u8868\u793a\u6df1\u5ea6\u5f52\u6863\u5b58\u50a8\u3002 \u7c7b\u578b\uff1a\u6570\u5b57 |\n| status | \u662f | \u6587\u4ef6\u7684\u5b58\u50a8\u72b6\u6001\uff0c\u5373\u7981\u7528\u72b6\u6001\u548c\u542f\u7528\u72b6\u6001\u95f4\u7684\u7684\u4e92\u76f8\u8f6c\u6362\uff0c`0`\u8868\u793a\u542f\u7528\uff0c`1`\u8868\u793a\u7981\u7528\uff0c\u8bf7\u53c2\u8003\uff1a\u6587\u4ef6\u72b6\u6001\u3002 \u7c7b\u578b\uff1a\u6570\u5b57 |\n| md5 | \u5426 | \u6587\u4ef6`md5`\u503c\uff0c32\u4f4d16\u8fdb\u5236\u7ec4\u6210\u7684\u5b57\u7b26\u4e32\uff0c\u53ea\u6709\u901a\u8fc7\u76f4\u4f20\u6587\u4ef6\u548c\u8ffd\u52a0\u6587\u4ef6API\u4e0a\u4f20\u7684\u6587\u4ef6\uff0c\u670d\u52a1\u7aef\u786e\u4fdd\u6709\u8be5\u5b57\u6bb5\u8fd4\u56de\uff0c\u5982\u8bf7\u6c42\u65f6\u670d\u52a1\u7aef\u6ca1\u6709\u8fd4\u56demd5\u5b57\u6bb5\uff0c\u53ef\u4ee5\u901a\u8fc7\u8bf7\u6c42qhash\/md5 \u65b9\u6cd5\u6765\u83b7\u53d6\uff0c\u6bd4\u5982 http:\/\/test.com\/test.mp4?qhash\/md5 |\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**\u5217\u51fa\u6240\u6709 00 \u6253\u5934\u7684\u8d44\u6e90**\n\n**\u8bf7\u6c42\u793a\u4f8b**\n\n```\nGET \/list?bucket=test02&prefix=00 HTTP\/1.1\nHost: rsf.qiniuapi.com\nUser-Agent: Go-http-client\/1.1\nX-Qiniu-Date: 20171122T014120Z\nAuthorization: Qiniu j853F3bLkWl59I5BOkWm6q1Z1mZClpr9Z9CLfDE0:XvRh0ABLViTohBkgKqa0upyiug0=\nContent-Type: application\/x-www-form-urlencoded\nAccept-Encoding: gzip\n```\n\n*\u6ce8\uff1a\u8981\u5728`Authorization`\u5934\u90e8\u7684`<AccessToken>`\u524d\u6dfb\u52a0`Qiniu`\u548c\u534a\u89d2\u7a7a\u683c\u3002*\n\n**\u54cd\u5e94\u793a\u4f8b**\n\n```\nHTTP\/1.1 200 OK\nContent-Length: 739\nConnection: keep-alive\nContent-Type: application\/json\nDate: Wed, 22 Nov 2017 01:41:20 GMT\nServer: nginx\nX-Reqid: QBUAAKUcoGrgRPkU\nX-Reqid: QBUAAKUcoGrgRPkU\nX-Reqid: QBUAAKUcoGrgRPkU.peer\n\n{\n \"items\": [\n {\n \"key\": \"000001.pdf\", \n \"hash\": \"Fs3oFOyOFDUp5CEODM8J6xquSq3s\", \n \"fsize\": 452584, \n \"mimeType\": \"application\/pdf\", \n \"putTime\": 15112568720620784, \n \"md5\": \"e41714a18899cf59c200a9bddfa78b95\",\n \"type\": 0, \n \"status\": 0\n }, \n {\n \"key\": \"000002.ico\", \n \"hash\": \"FpGrGHQOjETYnwxmSF3uXmFpmZIb\", \n \"fsize\": 5686, \n \"mimeType\": \"image\/x-icon\", \n \"putTime\": 15112568850754920, \n \"type\": 0, \n \"status\": 0\n }, \n {\n \"key\": \"000003.png\", \n \"hash\": \"FreZ58OmkQe5ZRUktRsO3zoqRaHi\", \n \"fsize\": 21741, \n \"mimeType\": \"image\/png\", \n \"putTime\": 15112568948976712, \n \"type\": 0, \n \"status\": 0\n }, \n {\n \"key\": \"000004.png\", \n \"hash\": \"FreZ58OmkQe5ZRUktRsO3zoqRaHi\", \n \"fsize\": 21741, \n \"mimeType\": \"image\/png\", \n \"putTime\": 15112569033603324, \n \"type\": 0, \n \"status\": 0\n }\n ]\n}\n```\n\n\n\n\n\n**\u5217\u51fa\u6240\u6709 00 \u6253\u5934\u7684\u8d44\u6e90\u5e76\u6bcf\u6279 2 \u4e2a**\n\n**\u8bf7\u6c42\u793a\u4f8b**\n\n```\nGET \/list?bucket=test02&prefix=00&limit=2 HTTP\/1.1\nHost: rsf.qiniuapi.com\nUser-Agent: Go-http-client\/1.1\nAuthorization: Qiniu j853F3bLkWl59I5BOkWm6q1Z1mZClpr9Z9CLfDE0:m-2lEHcnRVwgYBqJdC5SW7groT8=\nContent-Type: application\/x-www-form-urlencoded\nAccept-Encoding: gzip\n```\n\n*\u6ce8\uff1a\u8981\u5728`Authorization`\u5934\u90e8\u7684`<AccessToken>`\u524d\u6dfb\u52a0`Qiniu`\u548c\u534a\u89d2\u7a7a\u683c\u3002*\n\n**\u54cd\u5e94\u793a\u4f8b**\n\n```\nHTTP\/1.1 200 OK\nContent-Length: 352\nConnection: keep-alive\nContent-Type: application\/json\nDate: Wed, 22 Nov 2017 01:46:58 GMT\nServer: nginx\nX-Log: TBLMGR:10;UC:21;CFGG:22;RSF:90;RSF:92;ZONEPROXY:148\nX-Reqid: pEYAABGkVfAuRfkU\nX-Reqid: pEYAABGkVfAuRfkU\nX-Reqid: pEYAABGkVfAuRfkU.peer\n\n{\n \"marker\": \"eyJjIjowLCJrIjoiMDAwMDAyLmljbyJ9\", \n \"items\": [\n {\n \"key\": \"000001.pdf\", \n \"hash\": \"Fs3oFOyOFDUp5CEODM8J6xquSq3s\", \n \"fsize\": 452584, \n \"mimeType\": \"application\/pdf\", \n \"putTime\": 15112568720620784, \n \"type\": 0, \n \"status\": 0\n }, \n {\n \"key\": \"000002.ico\", \n \"hash\": \"FpGrGHQOjETYnwxmSF3uXmFpmZIb\", \n \"fsize\": 5686, \n \"mimeType\": \"image\/x-icon\", \n \"putTime\": 15112568850754920, \n \"type\": 0, \n \"status\": 0\n }\n ]\n}\n```\n"}