Service接口
Last updated
2023-07-14 14:09:10
{"value":"## Service\u63a5\u53e3\n\nService\u64cd\u4f5c\u76f8\u5173\u63a5\u53e3\u5982\u4e0b\n\n| \u63a5\u53e3 | \u8bf4\u660e |\n| ---------- | ------------------------------------ |\n| getservice | \u7528\u4e8e\u83b7\u53d6\u8bf7\u6c42\u8005\u62e5\u6709\u7684\u6240\u6709\u5b58\u50a8\u7a7a\u95f4\u5217\u8868 |\n\n\n\n## \u83b7\u53d6Bucket\u5217\u8868\n\n### **\u63cf\u8ff0**\n\n\u672c\u63a5\u53e3\u4f5c GET \u8bf7\u6c42\u7528\u6765\u83b7\u53d6\u8bf7\u6c42\u8005\u62e5\u6709\u7684\u6240\u6709\u5b58\u50a8\u7a7a\u95f4\u5217\u8868\u3002\u8be5\u63a5\u53e3\u9700\u8981\u60a8\u4f7f\u7528\u5e26 Authorization \u7b7e\u540d\u8ba4\u8bc1\u7684\u8bf7\u6c42\uff0c\u5982\u679c\u4f7f\u7528\u533f\u540d\u8bf7\u6c42\u65e0\u6cd5\u83b7\u53d6\u5b58\u50a8\u7a7a\u95f4\u5217\u8868\uff0c\u4e14\u53ea\u80fd\u83b7\u53d6\u7b7e\u540d\u4e2d AccessKey \u6240\u5c5e\u8d26\u6237\u7684\u5b58\u50a8\u7a7a\u95f4\u5217\u8868\u3002\n\n\n\n### **\u8bf7\u6c42**\n\n\n\n**\u8bf7\u6c42\u8bed\u6cd5**\n\n```\nGET \/buckets?tagCondition=<Encodedtags> HTTP\/1.1\nHost: uc.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| Encodedtags | \u5426 | \u8fc7\u6ee4\u7a7a\u95f4\u7684\u6807\u7b7e\u6216\u6807\u7b7e\u503c\u6761\u4ef6\uff0c\u6307\u5b9a\u591a\u4e2a\u6807\u7b7e\u6216\u6807\u7b7e\u503c\u65f6\u540c\u65f6\u6ee1\u8db3\u6761\u4ef6\u7684\u7a7a\u95f4\u624d\u4f1a\u8fd4\u56de\u3002\u53c2\u6570\u503c\u5fc5\u987b\u505aURL \u5b89\u5168\u7684 Base64 \u7f16\u7801\u3002 \u6309\u6807\u7b7e\u540d\u8fc7\u6ee4\u7a7a\u95f4\u65f6\uff0c\u53c2\u6570\u503c\u8bbe\u7f6e\u4e3aEncoded(key1=&key2=)\uff1b\u6309\u6807\u7b7e\u503c\u8fc7\u6ee4\u7a7a\u95f4\u65f6\uff0c\u53c2\u6570\u503c\u8bbe\u7f6e\u4e3aEncoded(key1=value1&key2=value2) \u522b\u4eba\u6388\u6743\u7684\u7a7a\u95f4\uff0c\u6807\u7b7e\u5c5e\u6027\u4e0d\u4f20\u9012\uff0c\u56e0\u6b64\u4f9d\u636e\u6807\u7b7e\u5217\u4e3e\u7a7a\u95f4\u65f6\u53ea\u4f1a\u8fd4\u56de\u81ea\u5df1\u521b\u5efa\u7684\u7a7a\u95f4 |\n\n\n\n\n\n### **\u8bf7\u6c42\u5934**\n\n\u8be5\u8bf7\u6c42\u64cd\u4f5c\u7684\u5b9e\u73b0\u4f7f\u7528\u4e86\u6240\u6709\u64cd\u4f5c\u7684\u516c\u5171\u8bf7\u6c42\u5934\u3002\u6709\u5173\u8be6\u7ec6\u4fe1\u606f\uff0c\u8bf7\u67e5\u9605\u516c\u5171\u8bf7\u6c42\u5934\u3002\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### **\u54cd\u5e94\u8bed\u6cd5**\n\n```\nHTTP\/1.1 200 OK\nContent-Type: application\/json\n{\nBucketName\n}\n```\n\n\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 | \u8bf4\u660e |\n| ---------- | ---------------------- |\n| BucketName | \u7a7a\u95f4\u540d\u79f0 \u7c7b\u578b\uff1a\u5b57\u7b26\u4e32 |\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?tagCondition=S09ETy1CVUtDRVQtVEFHUy1rZXktWDdPNjZiNkxLdz1LT0RPLUJVS0NFVC1UQUdTLXZhbHVlLWdFOGhIV2VXUGo= HTTP\/1.1\nHost: uc.qiniuapi.com\nUser-Agent: Go-http-client\/1.1\nX-Qiniu-Date: 20060102T150405Z\nAuthorization: Qiniu HwFOxpYCQU6oXoZXFOTh1mq5ZZig6Yyocgk3BTZZ:8tgafMszuwgd99Ix4eQ2HeVT9B0=\n```\n\n*\u6ce8\uff1a\u8981\u5728 `Authorization` \u5934\u90e8\u7684 `<AccessToken>` \u524d\u6dfb\u52a0 `Qiniu` \u548c\u534a\u89d2\u7a7a\u683c\u3002*\n\n\n\n\n\n### **\u54cd\u5e94\u793a\u4f8b**\n\n```\nHTTP\/1.1 200 OK\nContent-Length: 75\nConnection: keep-alive\nContent-Type: application\/json\nDate: Mon, 02 Jan 2006 15:04:05 GMT\nX-Reqid: rWkAACgHbskB5dYV\n\n{\n \"temp-bucket-xufk1x3r1wa9ayoy7knuz0\", \n \"temp-bucket-pighpwdt7lu88ljltffmz0\"\n}\n```\n"}