ceph-request 工具箱开发
2016-11-05 00:00
411 查看
https://github.com/wzyuliyang/ceph-request
目前支持s3,后期支持swift
create bucket named yuliyang
delete bucket named yuliyang
upload file
upload file from content
delete object
get location of bucket named yuliyang
get acl of bucket yuliyang
set acl for bucket yuliyang
目前支持s3,后期支持swift
INSTALL
python setup.py install
HOW
ceph-request --help
create bucket named yuliyang
ceph-request -c ceph-request.cfg -m put -r '/yuliyang'
delete bucket named yuliyang
ceph-request -c ceph-request.cfg -m delete -r '/yuliyang'
upload file
ceph-request -c ceph-request.cfg -m put -r '/yuliyang/object1' --file 1.txt
upload file from content
ceph-request -c ceph-request.cfg -m put -r '/yuliyang/object1' --content "this is content for object1"
delete object
ceph-request -c ceph-request.cfg -m delete -r '/yuliyang/object1'
get location of bucket named yuliyang
ceph-request -c ceph-request.cfg -m get -r '/yuliyang?location'
get acl of bucket yuliyang
ceph-request -c ceph-request.cfg -m get -r '/yuliyang?acl'
set acl for bucket yuliyang
ceph-request -c ceph-request.cfg -m put -r '/yuliyang?acl' --content '<?xml version="1.0" encoding="UTF-8"?><AccessControlPolicy xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Owner><ID>admin</ID><DisplayName>admin</DisplayName></Owner><AccessControlList><Grant><Grantee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="CanonicalUser"><ID>admin</ID><DisplayName>admin</DisplayName></Grantee><Permission>READ</Permission></Grant></AccessControlList></AccessControlPolicy>'
相关文章推荐
- 解决·微信小程序开发-网络请求报Invalid request 400错误
- web_开发常见问题_request.getParameter() 和request.getAttribute() 区别
- 安卓开发——android8.0应用崩溃,报错: Only fullscreen opaque activities can request orientation
- 安卓开发——android8.0应用崩溃,报错: Only fullscreen opaque activities can request orientation
- XMLHttpRequest和AJAX入主Web开发
- JAVAWEB开发之HttpServletResponse和HttpServletRequest详解(上)(各种乱码、验证码、重定向和转发)
- iOS开发asi使用(四)ASIHTTPRequest数据压缩
- IOS开发之—HTTP操作之ASIHTTPRequest(一)(一)
- 项目经理的工具箱---走出软件作坊:三五个人十来条枪 如何成为开发正规军(三) 推荐
- XMLHttpRequest和AJAX入主Web开发
- iOS开发 生成CSR(.certSigningRequest)文件
- iphone开发学习,开源,ASIHTTPRequest的学习
- 项目经理的工具箱---走出软件作坊:三五个人十来条枪 如何成为开发正规军(三)
- C/C++ 开发人员:充实您的 XML 工具箱
- IOS开发网络篇之──ASIHTTPRequest下载示例(支持断点续传)
- iPhone开发笔记(9)ASIHttpRequest和json-framework实现json解析(iOS客户端)
- IOS开发网络篇之──ASIHTTPRequest下载示例(支持断点续传)【转】
- wxPYTHON图形化软件开发(一)---LOMO工具箱
- struts2开发环境中,enctype="multipart/form-data"上传文件时,request.getInputStream()为null的原因(转http://topic.csdn.net/u/20101210/11/78454a19-7
- iOS开发ASIHTTPRequest数据压缩【7】