更新时间:2024-11-13 gmt 08:00

sdk功能矩阵-九游平台

java、python、c、.net、node.js、android sdk对obs各接口的支持情况请参见表1

ios、php、go、browserjs、harmony sdk对obs各接口的支持情况请参见表2

表1 obs sdk功能矩阵1

接口类型

接口名

函数名/特性归属函数名

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

表2 obs sdk功能矩阵2

接口类型

接口名

函数名/特性归属函数名

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

相关文档

网站地图