SDK功能矩阵
Java、Python、C、.NET、Node.js、Android SDK对OBS各接口的支持情况请参见表1。
iOS、PHP、Go、BrowserJS、Harmony SDK对OBS各接口的支持情况请参见表2。
接口类型 |
接口名 |
函数名/特性归属函数名 |
Java |
Python |
C |
.NET |
Node.js |
Android |
---|---|---|---|---|---|---|---|---|
桶相关接口 |
获取桶列表 |
listBuckets |
√ |
√ |
√ |
√ |
√ |
√ |
创建桶 |
createBucket |
√ |
√ |
√ |
√ |
√ |
√ |
|
列举桶内对象 |
listObjects |
√ |
√ |
√ |
√ |
√ |
√ |
|
列举桶内多版本对象 |
listVersions |
√ |
√ |
√ |
√ |
√ |
√ |
|
获取桶元数据 |
getBucketMetadata |
√ |
√ |
× |
√ |
√ |
√ |
|
获取桶区域位置 |
getBucketLocation |
√ |
√ |
× |
√ |
√ |
√ |
|
删除桶 |
deleteBucket |
√ |
√ |
√ |
√ |
√ |
√ |
|
设置桶策略 |
setBucketPolicy |
√ |
√ |
√ |
√ |
√ |
√ |
|
获取桶策略 |
getBucketPolicy |
√ |
√ |
√ |
√ |
√ |
√ |
|
删除桶策略 |
deleteBucketPolicy |
√ |
√ |
√ |
√ |
√ |
√ |
|
设置桶ACL |
setBucketAcl |
√ |
√ |
√ |
√ |
√ |
√ |
|
获取桶ACL |
getBucketAcl |
√ |
√ |
√ |
√ |
√ |
√ |
|
设置桶日志管理配置 |
setBucketLogging、setBucketLoggingConfiguration |
√ |
√ |
√ |
√ |
√ |
√ |
|
获取桶日志管理配置 |
getBucketLogging、getBucketLoggingConfiguration |
√ |
√ |
√ |
√ |
√ |
√ |
|
设置桶的生命周期配置 |
setBucketLifecycle、setBucketLifecycleConfiguration |
√ |
√ |
√ |
√ |
√ |
√ |
|
获取桶的生命周期配置 |
getBucketLifecycle、getBucketLifecycleConfiguration |
√ |
√ |
√ |
√ |
√ |
√ |
|
删除桶的生命周期配置 |
deleteBucketLifecycle、deleteBucketLifecycleConfiguration |
√ |
√ |
√ |
√ |
√ |
√ |
|
设置桶的多版本状态 |
setBucketVersioning、setBucketVersioningConfiguration |
√ |
√ |
√ |
√ |
√ |
√ |
|
获取桶的多版本状态 |
getBucketVersioning、getBucketVersioningConfiguration |
√ |
√ |
√ |
√ |
√ |
√ |
|
设置桶存储类型 |
setBucketStoragePolicy |
√ |
√ |
√ |
√ |
√ |
√ |
|
获取桶存储类型 |
getBucketStoragePolicy |
√ |
√ |
√ |
√ |
√ |
√ |
|
设置桶的跨区域复制配置 |
setBucketReplication |
× |
× |
× |
× |
× |
× |
|
获取桶的跨区域复制配置 |
getBucketReplication |
× |
× |
× |
× |
× |
× |
|
删除桶的跨区域复制配置 |
deleteBucketReplication |
× |
× |
× |
× |
× |
× |
|
设置桶标签 |
setBucketTagging |
√ |
√ |
√ |
√ |
√ |
√ |
|
获取桶标签 |
getBucketTagging |
√ |
√ |
√ |
√ |
√ |
√ |
|
删除桶标签 |
deleteBucketTagging |
√ |
√ |
√ |
√ |
√ |
√ |
|
设置桶配额 |
setBucketQuota |
√ |
√ |
√ |
√ |
√ |
√ |
|
获取桶配额 |
getBucketQuota |
√ |
√ |
√ |
√ |
√ |
√ |
|
获取桶存量信息 |
getBucketStorageInfo |
√ |
√ |
√ |
√ |
√ |
√ |
|
设置桶的网站配置 |
setBucketWebsite、setBucketWebsiteConfiguration |
√ |
√ |
√ |
√ |
√ |
√ |
|
获取桶的网站配置 |
getBucketWebsite、getBucketWebsiteConfiguration |
√ |
√ |
√ |
√ |
√ |
√ |
|
删除桶的网站配置 |
deleteBucketWebsite、deleteBucketWebsiteConfiguration |
√ |
√ |
√ |
√ |
√ |
√ |
|
设置桶的CORS配置 |
setBucketCors |
√ |
√ |
√ |
√ |
√ |
√ |
|
获取桶的CORS配置 |
getBucketCors |
√ |
√ |
√ |
√ |
√ |
√ |
|
删除桶的CORS配置 |
deleteBucketCors |
√ |
√ |
√ |
√ |
√ |
√ |
|
设置桶清单配置 |
setBucketInventory |
√ |
× |
× |
× |
× |
× |
|
获取桶清单配置 |
getBucketInventory |
√ |
× |
× |
× |
× |
× |
|
列举桶清单配置 |
listBucketInventory |
√ |
× |
× |
× |
× |
× |
|
删除桶清单配置 |
deleteBucketInventory |
√ |
× |
× |
× |
× |
× |
|
设置桶归档对象直读策略 |
setDirectcoldaccess |
× |
× |
× |
× |
× |
× |
|
获取桶归档对象直读策略 |
getDirectcoldaccess |
× |
× |
× |
× |
× |
× |
|
删除桶归档对象直读策略 |
deleteDirectcoldaccess |
× |
× |
× |
× |
× |
× |
|
设置桶的加密配置 |
setBucketEncryption |
× |
× |
× |
× |
× |
× |
|
获取桶的加密配置 |
getBucketEncryption |
× |
× |
× |
× |
× |
× |
|
删除桶的加密配置 |
deleteBucketEncryption |
× |
× |
× |
× |
× |
× |
|
设置桶的自定义域名配置 |
setBucketCustomedomain |
× |
× |
× |
× |
× |
× |
|
获取桶的自定义域名配置 |
getBucketCustomdomain |
× |
× |
× |
× |
× |
× |
|
删除桶的自定义域名配置 |
deleteBucketCustomdomain |
× |
× |
× |
× |
× |
× |
|
对象相关接口 |
PUT上传对象 |
putObject |
√ |
√ |
√ |
√ |
√ |
√ |
复制对象 |
copyObject |
√ |
√ |
√ |
√ |
√ |
√ |
|
获取对象内容 |
getObject |
√ |
√ |
√ |
√ |
√ |
√ |
|
获取对象元数据 |
getObjectMetadata |
√ |
√ |
√ |
√ |
√ |
√ |
|
删除对象 |
deleteObject |
√ |
√ |
√ |
√ |
√ |
√ |
|
批量删除对象 |
deleteObjects |
√ |
√ |
√ |
√ |
√ |
√ |
|
恢复归档存储对象 |
restoreObject |
√ |
√ |
√ |
√ |
√ |
√ |
|
追加写对象 |
appendObject |
√ |
√ |
√ |
√ |
√ |
√ |
|
设置对象ACL |
setObjectAcl |
√ |
√ |
√ |
√ |
√ |
√ |
|
获取对象ACL |
getObjectAcl |
√ |
√ |
√ |
√ |
√ |
√ |
|
修改对象元数据 |
setObjectMetadata |
√ |
√ |
× |
× |
× |
√ |
|
列举桶中已初始化多段任务 |
listMultipartUploads |
√ |
√ |
√ |
√ |
√ |
√ |
|
初始化上传段任务 |
initiateMultipartUpload |
√ |
√ |
√ |
√ |
√ |
√ |
|
上传段 |
uploadPart |
√ |
√ |
√ |
√ |
√ |
√ |
|
拷贝段 |
copyPart |
√ |
√ |
√ |
√ |
√ |
√ |
|
列举已上传的段 |
listParts |
√ |
√ |
√ |
√ |
√ |
√ |
|
合并段 |
completeMultipartUpload |
√ |
√ |
√ |
√ |
√ |
√ |
|
取消多段上传任务 |
abortMultipartUpload |
√ |
√ |
√ |
√ |
√ |
√ |
|
POSIX特性 |
创建支持POSIX协议的桶 |
newBucket |
√ |
× |
√ |
× |
× |
√ |
指定列举POSIX桶 |
listBuckets |
√ |
× |
× |
× |
× |
√ |
|
修改写对象 |
modifyObject |
√ |
× |
√ |
× |
× |
√ |
|
重命名对象 |
renameObject |
√ |
× |
√ |
× |
× |
√ |
|
截断POSIX文件 |
truncateObject |
√ |
× |
√ |
× |
× |
√ |
|
临时鉴权 |
计算临时授权签名URL |
createSignedUrl(python、go)createTemporarySignature(java) |
√ |
√ |
√ |
√ |
√ |
√ |
计算POST表单鉴权参数 |
createPostSignature、createBrowserBasedSignature |
√ |
√ |
× |
× |
√ |
√ |
|
支持Security Token鉴权 |
N/A |
√ |
√ |
√ |
√ |
√ |
√ |
|
新特性 |
上传对象支持设置生命周期 |
putObject、initiateMultipartUpload |
√ |
√ |
√ |
√ |
√ |
√ |
支持多项目管理特性(epid) |
createBucket、getBucketMetadata |
√ |
√ |
× |
× |
× |
√ |
|
下载对象支持设置图片转码参数 |
getObject |
√ |
√ |
√ |
√ |
√ |
√ |
|
列举桶支持返回桶的区域信息 |
listBuckets |
√ |
√ |
√ |
√ |
√ |
√ |
|
增值功能 |
上传对象支持流式上传 |
putObject |
√ |
√ |
√ |
√ |
√ |
√ |
下载对象支持流式下载 |
getObject |
√ |
√ |
√ |
√ |
√ |
√ |
|
上传段支持流式上传 |
uploadPart |
√ |
√ |
√ |
√ |
√ |
√ |
|
分段上传文件(含断点续传能力) |
uploadFile |
√ |
√ |
√ |
√ |
√ |
√ |
|
分段下载文件(含断点续传能力) |
downloadFile |
√ |
√ |
√ |
√ |
√ |
√ |
|
支持根据对象名后缀自动设置MIME类型 |
putObject、initiateMultipartUpload |
√ |
√ |
× |
√ |
√ |
√ |
|
支持设置HTTP代理 |
N/A |
√ |
√ |
√ |
√ |
× |
√ |
|
异步化接口 |
N/A |
× |
× |
× |
√ |
√ |
× |
|
支持批量恢复对象 |
N/A |
× |
× |
× |
× |
× |
× |
|
支持批量下载对象 |
N/A |
× |
× |
× |
× |
× |
× |
|
支持批量上传对象 |
N/A |
× |
× |
× |
× |
× |
× |
|
支持批量复制对象 |
N/A |
× |
× |
× |
× |
× |
× |
|
数据传输支持进度条 |
putObject、uploadFile、uploadPart、getObject、downloadFile |
√ |
√ |
× |
√ |
× |
√ |
|
支持长短连接配置 |
N/A |
√ |
√ |
× |
√ |
√ |
√ |
|
支持配置日志 |
N/A |
√ |
√ |
√ |
√ |
√ |
√ |
接口类型 |
接口名 |
函数名/特性归属函数名 |
iOS |
PHP |
Go |
BrowserJS |
Harmony |
---|---|---|---|---|---|---|---|
桶相关接口 |
获取桶列表 |
listBuckets |
√ |
√ |
√ |
× |
√ |
创建桶 |
createBucket |
√ |
√ |
√ |
× |
√ |
|
列举桶内对象 |
listObjects |
√ |
√ |
√ |
√ |
√ |
|
列举桶内多版本对象 |
listVersions |
√ |
√ |
√ |
√ |
√ |
|
获取桶元数据 |
getBucketMetadata |
√ |
√ |
√ |
√ |
√ |
|
获取桶区域位置 |
getBucketLocation |
√ |
√ |
√ |
√ |
√ |
|
删除桶 |
deleteBucket |
√ |
√ |
√ |
√ |
√ |
|
设置桶策略 |
setBucketPolicy |
√ |
√ |
√ |
√ |
√ |
|
获取桶策略 |
getBucketPolicy |
√ |
√ |
√ |
√ |
√ |
|
删除桶策略 |
deleteBucketPolicy |
√ |
√ |
√ |
√ |
√ |
|
设置桶ACL |
setBucketAcl |
√ |
√ |
√ |
√ |
√ |
|
获取桶ACL |
getBucketAcl |
√ |
√ |
√ |
√ |
√ |
|
设置桶日志管理配置 |
setBucketLogging、setBucketLoggingConfiguration |
√ |
√ |
√ |
√ |
√ |
|
获取桶日志管理配置 |
getBucketLogging、getBucketLoggingConfiguration |
√ |
√ |
√ |
√ |
√ |
|
设置桶的生命周期配置 |
setBucketLifecycle、setBucketLifecycleConfiguration |
√ |
√ |
√ |
√ |
√ |
|
获取桶的生命周期配置 |
getBucketLifecycle、getBucketLifecycleConfiguration |
√ |
√ |
√ |
√ |
√ |
|
删除桶的生命周期配置 |
deleteBucketLifecycle、deleteBucketLifecycleConfiguration |
√ |
√ |
√ |
√ |
√ |
|
设置桶的多版本状态 |
setBucketVersioning、setBucketVersioningConfiguration |
√ |
√ |
√ |
√ |
√ |
|
获取桶的多版本状态 |
getBucketVersioning、getBucketVersioningConfiguration |
√ |
√ |
√ |
√ |
√ |
|
设置桶存储类型 |
setBucketStoragePolicy |
√ |
√ |
√ |
√ |
√ |
|
获取桶存储类型 |
getBucketStoragePolicy |
√ |
√ |
√ |
√ |
√ |
|
设置桶的跨区域复制配置 |
setBucketReplication |
× |
× |
× |
× |
× |
|
获取桶的跨区域复制配置 |
getBucketReplication |
× |
× |
× |
× |
× |
|
删除桶的跨区域复制配置 |
deleteBucketReplication |
× |
× |
× |
× |
× |
|
设置桶标签 |
setBucketTagging |
√ |
√ |
√ |
√ |
√ |
|
获取桶标签 |
getBucketTagging |
√ |
√ |
√ |
√ |
√ |
|
删除桶标签 |
deleteBucketTagging |
√ |
√ |
√ |
√ |
√ |
|
设置桶配额 |
setBucketQuota |
√ |
√ |
√ |
√ |
√ |
|
获取桶配额 |
getBucketQuota |
√ |
√ |
√ |
√ |
√ |
|
获取桶存量信息 |
getBucketStorageInfo |
√ |
√ |
√ |
√ |
√ |
|
设置桶的网站配置 |
setBucketWebsite、setBucketWebsiteConfiguration |
√ |
√ |
√ |
√ |
√ |
|
获取桶的网站配置 |
getBucketWebsite、getBucketWebsiteConfiguration |
√ |
√ |
√ |
√ |
√ |
|
删除桶的网站配置 |
deleteBucketWebsite、deleteBucketWebsiteConfiguration |
√ |
√ |
√ |
√ |
√ |
|
设置桶的CORS配置 |
setBucketCors |
√ |
√ |
√ |
√ |
√ |
|
获取桶的CORS配置 |
getBucketCors |
√ |
√ |
√ |
√ |
√ |
|
删除桶的CORS配置 |
deleteBucketCors |
√ |
√ |
√ |
√ |
√ |
|
设置桶清单配置 |
setBucketInventory |
× |
× |
× |
× |
× |
|
获取桶清单配置 |
getBucketInventory |
× |
× |
× |
× |
× |
|
列举桶清单配置 |
listBucketInventory |
× |
× |
× |
× |
× |
|
删除桶清单配置 |
deleteBucketInventory |
× |
× |
× |
× |
× |
|
设置桶归档对象直读策略 |
setDirectcoldaccess |
× |
× |
× |
× |
× |
|
获取桶归档对象直读策略 |
getDirectcoldaccess |
× |
× |
× |
× |
× |
|
删除桶归档对象直读策略 |
deleteDirectcoldaccess |
× |
× |
× |
× |
× |
|
设置桶的加密配置 |
setBucketEncryption |
× |
× |
√ |
× |
√ |
|
获取桶的加密配置 |
getBucketEncryption |
× |
× |
√ |
× |
√ |
|
删除桶的加密配置 |
deleteBucketEncryption |
× |
× |
√ |
× |
√ |
|
设置桶的自定义域名配置 |
setBucketCustomedomain |
× |
× |
√ |
× |
√ |
|
获取桶的自定义域名配置 |
getBucketCustomdomain |
× |
× |
√ |
× |
√ |
|
删除桶的自定义域名配置 |
deleteBucketCustomdomain |
× |
× |
√ |
× |
√ |
|
对象相关接口 |
PUT上传对象 |
putObject |
√ |
√ |
√ |
√ |
√ |
复制对象 |
copyObject |
√ |
√ |
√ |
√ |
√ |
|
获取对象内容 |
getObject |
√ |
√ |
√ |
√ |
√ |
|
获取对象元数据 |
getObjectMetadata |
√ |
√ |
√ |
√ |
√ |
|
删除对象 |
deleteObject |
√ |
√ |
√ |
√ |
√ |
|
批量删除对象 |
deleteObjects |
√ |
√ |
√ |
√ |
√ |
|
恢复归档存储对象 |
restoreObject |
√ |
√ |
√ |
√ |
√ |
|
追加写对象 |
appendObject |
√ |
× |
√ |
√ |
√ |
|
设置对象ACL |
setObjectAcl |
√ |
√ |
√ |
√ |
√ |
|
获取对象ACL |
getObjectAcl |
√ |
√ |
√ |
√ |
√ |
|
修改对象元数据 |
setObjectMetadata |
√ |
√ |
√ |
√ |
√ |
|
列举桶中已初始化多段任务 |
listMultipartUploads |
√ |
√ |
√ |
√ |
√ |
|
初始化上传段任务 |
initiateMultipartUpload |
√ |
√ |
√ |
√ |
√ |
|
上传段 |
uploadPart |
√ |
√ |
√ |
√ |
√ |
|
拷贝段 |
copyPart |
√ |
√ |
√ |
√ |
√ |
|
列举已上传的段 |
listParts |
√ |
√ |
√ |
√ |
√ |
|
合并段 |
completeMultipartUpload |
√ |
√ |
√ |
√ |
√ |
|
取消多段上传任务 |
abortMultipartUpload |
√ |
√ |
√ |
√ |
√ |
|
POSIX特性 |
创建支持POSIX协议的桶 |
newBucket |
× |
× |
× |
× |
√ |
指定列举POSIX桶 |
listBuckets |
× |
× |
× |
× |
√ |
|
修改写对象 |
modifyObject |
× |
× |
√ |
× |
√ |
|
重命名对象 |
renameObject |
× |
× |
× |
× |
√ |
|
截断POSIX文件 |
truncateObject |
× |
× |
× |
× |
√ |
|
临时鉴权 |
计算临时授权签名URL |
createSignedUrl(python、go)createTemporarySignature(java) |
√ |
√ |
√ |
√ |
√ |
计算POST表单鉴权参数 |
createPostSignature、createBrowserBasedSignature |
× |
√ |
× |
√ |
√ |
|
支持Security Token鉴权 |
N/A |
√ |
√ |
√ |
√ |
√ |
|
新特性 |
上传对象支持设置生命周期 |
putObject、initiateMultipartUpload |
× |
× |
× |
√ |
√ |
支持多项目管理特性(epid) |
createBucket、getBucketMetadata |
× |
× |
√ |
× |
√ |
|
下载对象支持设置图片转码参数 |
getObject |
× |
√ |
√ |
√ |
√ |
|
列举桶支持返回桶的区域信息 |
listBuckets |
√ |
√ |
√ |
√ |
√ |
|
增值功能 |
上传对象支持流式上传 |
putObject |
√ |
√ |
√ |
√ |
× |
下载对象支持流式下载 |
getObject |
√ |
√ |
√ |
√ |
× |
|
上传段支持流式上传 |
uploadPart |
√ |
√ |
√ |
√ |
× |
|
分段上传文件(含断点续传能力) |
uploadFile |
√ |
× |
√ |
√ |
× |
|
分段下载文件(含断点续传能力) |
downloadFile |
√ |
× |
√ |
× |
× |
|
支持根据对象名后缀自动设置MIME类型 |
putObject、initiateMultipartUpload |
× |
× |
√ |
√ |
√ |
|
支持设置HTTP代理 |
N/A |
√ |
× |
√ |
× |
× |
|
异步化接口 |
N/A |
√ |
√ |
× |
√ |
√ |
|
支持批量恢复对象 |
N/A |
× |
× |
× |
× |
× |
|
支持批量下载对象 |
N/A |
× |
× |
× |
× |
× |
|
支持批量上传对象 |
N/A |
× |
× |
× |
× |
× |
|
支持批量复制对象 |
N/A |
× |
× |
× |
× |
× |
|
数据传输支持进度条 |
putObject、uploadFile、uploadPart、getObject、downloadFile |
√ |
× |
× |
√ |
× |
|
支持长短连接配置 |
N/A |
× |
× |
× |
× |
× |
|
支持配置日志 |
N/A |
√ |
√ |
√ |
√ |
√ |