public interface OSS
阿里云存储服务(Object Storage Service,简称OSS),是阿里云对外提供的海量,安全,低成本,
高可靠的云存储服务。用户可以通过简单的REST接口,在任何时间、任何地点上传和下载数据,
也可以使用WEB页面对数据进行管理。
基于OSS,用户可以搭建出各种多媒体分享网站、网盘、个人企业数据备份等基于大规模数据的服务。
void switchCredentials(Credentials creds)
creds - 用户身份认证。void shutdown()
Bucket createBucket(String bucketName) throws OSSException, ClientException
Bucket。bucketName - Bucket名称。OSSExceptionClientExceptionBucket createBucket(CreateBucketRequest createBucketRequest) throws OSSException, ClientException
Bucket。createBucketRequest - 请求参数CreateBucketRequest。OSSExceptionClientExceptionvoid deleteBucket(String bucketName) throws OSSException, ClientException
Bucket。bucketName - Bucket名称。OSSExceptionClientExceptionvoid deleteBucket(GenericRequest genericRequest) throws OSSException, ClientException
Bucket。genericRequest - 请求信息。OSSExceptionClientExceptionList<Bucket> listBuckets() throws OSSException, ClientException
Bucket的列表。Bucket的列表。OSSExceptionClientExceptionBucketList listBuckets(String prefix, String marker, Integer maxKeys) throws OSSException, ClientException
Bucket列表。prefix - 限定返回的bucket的名字必须以prefix作为前缀,可以为null(表示不设置前缀)marker - 设定结果从marker之后按字母排序的第一个开始返回,可以为null(表示没有marker的点,从头开始返回)maxKeys - 限定此次返回bucket的最大数,取值不能大于1000,默认为100,可以为null(表示默认返回最多100个)Bucket的列表。OSSExceptionClientExceptionBucketList listBuckets(ListBucketsRequest listBucketsRequest) throws OSSException, ClientException
Bucket列表。listBucketsRequest - 请求信息Bucket的列表。OSSExceptionClientExceptionvoid setBucketAcl(String bucketName, CannedAccessControlList acl) throws OSSException, ClientException
Bucket的Access Control List(ACL)。bucketName - Bucket名称。acl - CannedAccessControlList中列出的ACL。
如果传入null,则保持Bucket原先的ACL不变。OSSExceptionClientExceptionvoid setBucketAcl(SetBucketAclRequest setBucketAclRequest) throws OSSException, ClientException
Bucket的Access Control List(ACL)。bucketName - Bucket名称。setBucketAclRequest - 请求信息。OSSExceptionClientExceptionAccessControlList getBucketAcl(String bucketName) throws OSSException, ClientException
Bucket的Access Control List(ACL)。bucketName - Bucket名称。AccessControlList。OSSExceptionClientExceptionAccessControlList getBucketAcl(GenericRequest genericRequest) throws OSSException, ClientException
Bucket的Access Control List(ACL)。genericRequest - 请求信息。AccessControlList。OSSExceptionClientExceptionvoid setBucketReferer(String bucketName, BucketReferer referer) throws OSSException, ClientException
Bucket的http referer。bucketName - Bucket名称。referer - BucketReferer。
如果传入null,则表示使用默认值BucketReferer。OSSExceptionClientExceptionvoid setBucketReferer(SetBucketRefererRequest setBucketRefererRequest) throws OSSException, ClientException
Bucket的http referer。bucketName - Bucket名称。setBucketRefererRequest - 请求信息。OSSExceptionClientExceptionBucketReferer getBucketReferer(String bucketName) throws OSSException, ClientException
Bucket的http referer。bucketName - Bucket名称。BucketReferer。OSSExceptionClientExceptionBucketReferer getBucketReferer(GenericRequest genericRequest) throws OSSException, ClientException
Bucket的http referer。genericRequest - 请求信息。BucketReferer。OSSExceptionClientExceptionString getBucketLocation(String bucketName) throws OSSException, ClientException
Bucket所在的数据中心。bucketName - Bucket名称。OSSExceptionClientExceptionString getBucketLocation(GenericRequest genericRequest) throws OSSException, ClientException
Bucket所在的数据中心。genericRequest - 请求信息。OSSExceptionClientExceptionvoid setBucketTagging(String bucketName, Map<String,String> tags) throws OSSException, ClientException
Bucket的标签。bucketName - Bucket名称。tags - 标签集。OSSExceptionClientExceptionvoid setBucketTagging(String bucketName, TagSet tagSet) throws OSSException, ClientException
Bucket的标签。bucketName - Bucket名称。tagSet - 标签集。OSSExceptionClientExceptionvoid setBucketTagging(SetBucketTaggingRequest setBucketTaggingRequest) throws OSSException, ClientException
Bucket的标签。setBucketTaggingRequest - 请求信息。OSSExceptionClientExceptionTagSet getBucketTagging(String bucketName) throws OSSException, ClientException
Bucket的标签。bucketName - Bucket名称。OSSExceptionClientExceptionTagSet getBucketTagging(GenericRequest genericRequest) throws OSSException, ClientException
Bucket的标签。genericRequest - 请求信息。OSSExceptionClientExceptionvoid deleteBucketTagging(String bucketName) throws OSSException, ClientException
Bucket的标签。bucketName - Bucket名称。OSSExceptionClientExceptionvoid deleteBucketTagging(GenericRequest genericRequest) throws OSSException, ClientException
Bucket的标签。genericRequest - 请求信息。OSSExceptionClientExceptionboolean doesBucketExist(String bucketName) throws OSSException, ClientException
Bucket是否存在。bucketName - Bucket名称。OSSExceptionClientExceptionboolean doesBucketExist(GenericRequest genericRequest) throws OSSException, ClientException
Bucket是否存在。genericRequest - 请求信息。OSSExceptionClientExceptionObjectListing listObjects(String bucketName) throws OSSException, ClientException
bucketName - Bucket名称。ObjectListingOSSExceptionClientExceptionObjectListing listObjects(String bucketName, String prefix) throws OSSException, ClientException
bucketName - Bucket名称。prefix - 限定返回的Object key必须以prefix作为前缀。ObjectListingOSSExceptionClientExceptionObjectListing listObjects(ListObjectsRequest listObjectsRequest) throws OSSException, ClientException
listObjectsRequest - 请求信息。ObjectListingOSSExceptionClientExceptionPutObjectResult putObject(String bucketName, String key, InputStream input) throws OSSException, ClientException
bucketName - Bucket名称。key - object的key。input - 输入流。OSSExceptionClientExceptionPutObjectResult putObject(String bucketName, String key, InputStream input, ObjectMetadata metadata) throws OSSException, ClientException
bucketName - Bucket名称。key - object的key。input - 输入流。metadata - object的元信息ObjectMetadata,若该元信息未包含Content-Length,
则采用chunked编码传输请求数据。OSSExceptionClientExceptionPutObjectResult putObject(String bucketName, String key, File file, ObjectMetadata metadata) throws OSSException, ClientException
Bucket。bucketName - Bucket名称。key - object的key。file - 指定上传文件。metadata - object的元信息ObjectMetadata,若该元信息未包含Content-Length,
则采用chunked编码传输请求数据。OSSExceptionClientExceptionPutObjectResult putObject(String bucketName, String key, File file) throws OSSException, ClientException
Bucket。bucketName - Bucket名称。key - object的key。file - 指定上传文件。OSSExceptionClientExceptionPutObjectResult putObject(PutObjectRequest putObjectRequest) throws OSSException, ClientException
Bucket。putObjectRequest - 请求参数PutObjectRequest。PutObjectResult实例。OSSExceptionClientExceptionPutObjectResult putObject(URL signedUrl, String filePath, Map<String,String> requestHeaders) throws OSSException, ClientException
signedUrl - PUT请求类型的URL签名。filePath - 上传文件的路径。requestHeaders - 请求头(包括HTTP标准请求头、用户自定义请求头)。PutObjectResult实例。OSSExceptionClientExceptionPutObjectResult putObject(URL signedUrl, String filePath, Map<String,String> requestHeaders, boolean useChunkEncoding) throws OSSException, ClientException
signedUrl - PUT请求类型的URL签名。filePath - 上传文件的路径。requestHeaders - 请求头(包括HTTP标准请求头、用户自定义请求头)。useChunkEncoding - 是否采用chunked编码传输请求数据。PutObjectResult实例。OSSExceptionClientExceptionPutObjectResult putObject(URL signedUrl, InputStream requestContent, long contentLength, Map<String,String> requestHeaders) throws OSSException, ClientException
signedUrl - PUT请求类型的URL签名。requestContent - 请求输入流。contentLength - 请求输入流的长度。requestHeaders - 请求头(包括HTTP标准请求头、用户自定义请求头)。PutObjectResult实例。OSSExceptionClientExceptionPutObjectResult putObject(URL signedUrl, InputStream requestContent, long contentLength, Map<String,String> requestHeaders, boolean useChunkEncoding) throws OSSException, ClientException
signedUrl - PUT请求类型的URL签名。requestContent - 请求输入流。contentLength - 请求输入流的长度,如果采用chunked编码则设置为-1。requestHeaders - 请求头(包括HTTP标准请求头、用户自定义请求头)。useChunkEncoding - 是否采用chunked编码传输请求数据。PutObjectResult实例。OSSExceptionClientExceptionCopyObjectResult copyObject(String sourceBucketName, String sourceKey, String destinationBucketName, String destinationKey) throws OSSException, ClientException
sourceBucketName - 源Object所在的Bucket的名称。sourceKey - 源Object的Key。destinationBucketName - 目标Object所在的Bucket的名称。destinationKey - 目标Object的Key。CopyObjectResult实例。OSSExceptionClientExceptionCopyObjectResult copyObject(CopyObjectRequest copyObjectRequest) throws OSSException, ClientException
copyObjectRequest - 请求参数CopyObjectRequest实例。OSSExceptionClientExceptionOSSObject getObject(String bucketName, String key) throws OSSException, ClientException
bucketName - Bucket名称。key - Object Key。OSSObject实例。使用完之后需要手动关闭其中的ObjectContent释放请求连接。OSSExceptionClientExceptionObjectMetadata getObject(GetObjectRequest getObjectRequest, File file) throws OSSException, ClientException
getObjectRequest - 请求参数GetObjectRequest。file - 目标文件。OSSExceptionClientExceptionOSSObject getObject(GetObjectRequest getObjectRequest) throws OSSException, ClientException
getObjectRequest - 请求参数GetObjectRequest。OSSObject实例。使用完之后需要手动关闭其中的ObjectContent释放请求连接。OSSExceptionClientExceptionOSSObject getObject(URL signedUrl, Map<String,String> requestHeaders) throws OSSException, ClientException
OSSObject。signedUrl - GET请求类型的URL签名。requestHeaders - 请求头(包括HTTP标准请求头、用户自定义请求头)。OSSObject实例。使用完之后需要手动关闭其中的ObjectContent释放请求连接。OSSExceptionClientExceptionSimplifiedObjectMeta getSimplifiedObjectMeta(String bucketName, String key) throws OSSException, ClientException
OSSObject的基本元信息。
相比Head Object更轻量,仅返回指定Object的少量基本meta信息, 包括该Object的ETag、Size(文件大小)、LastModified(最后修改时间)。
bucketName - Bucket名称。key - Object key。OSSObject的基本元信息SimplifiedObjectMeta。OSSExceptionClientExceptionSimplifiedObjectMeta getSimplifiedObjectMeta(GenericRequest genericRequest) throws OSSException, ClientException
OSSObject的基本元信息。
相比Head Object更轻量,仅返回指定Object的少量基本meta信息, 包括该Object的ETag、Size(文件大小)、LastModified(最后修改时间)。
genericRequest - 请求信息。OSSObject的基本元信息SimplifiedObjectMeta。OSSExceptionClientExceptionObjectMetadata getObjectMetadata(String bucketName, String key) throws OSSException, ClientException
OSSObject的元数据。bucketName - Bucket名称。key - Object key。OSSExceptionClientExceptionObjectMetadata getObjectMetadata(GenericRequest genericRequest) throws OSSException, ClientException
OSSObject的元数据。genericRequest - 请求信息。OSSExceptionClientExceptionAppendObjectResult appendObject(AppendObjectRequest appendObjectRequest) throws OSSException, ClientException
appendObjectRequest - 请求参数AppendObjectRequest实例。OSSExceptionClientExceptionvoid deleteObject(String bucketName, String key) throws OSSException, ClientException
OSSObject。bucketName - Bucket名称。key - Object key。OSSExceptionClientExceptionvoid deleteObject(GenericRequest genericRequest) throws OSSException, ClientException
OSSObject。genericRequest - 请求信息。OSSExceptionClientExceptionDeleteObjectsResult deleteObjects(DeleteObjectsRequest deleteObjectsRequest) throws OSSException, ClientException
OSSObject。deleteObjectsRequest - 请求参数DeleteObjectsRequest实例。OSSExceptionClientExceptionboolean doesObjectExist(String bucketName, String key) throws OSSException, ClientException
bucketName - Bucket名称。key - Object Key。OSSExceptionClientExceptionboolean doesObjectExist(HeadObjectRequest headObjectRequest) throws OSSException, ClientException
OSSObject是否存在。headObjectRequest - 请求参数HeadObjectRequest实例。OSSExceptionClientExceptionvoid setObjectAcl(String bucketName, String key, CannedAccessControlList cannedAcl) throws OSSException, ClientException
OSSObject的Access Control List(ACL)。bucketName - Bucket名称。key - Object Key。cannedAcl - Private/PublicRead/PublicReadWrite中的一种。OSSExceptionClientExceptionvoid setObjectAcl(SetObjectAclRequest setObjectAclRequest) throws OSSException, ClientException
OSSObject的Access Control List(ACL)。setObjectAclRequest - 请求信息。OSSExceptionClientExceptionObjectAcl getObjectAcl(String bucketName, String key) throws OSSException, ClientException
OSSObject的Access Control List(ACL)。bucketName - Bucket名称。key - Object Key。OSSObject的Access Control List(ACL)。OSSExceptionClientExceptionObjectAcl getObjectAcl(GenericRequest genericRequest) throws OSSException, ClientException
OSSObject的Access Control List(ACL)。bucketName - Bucket名称。genericRequest - 请求信息。OSSExceptionClientExceptionURL generatePresignedUrl(String bucketName, String key, Date expiration) throws ClientException
OSSObject的URL。bucketName - Bucket名称。key - Object key。expiration - URL的超时时间。OSSObject的URL。ClientExceptionURL generatePresignedUrl(String bucketName, String key, Date expiration, HttpMethod method) throws ClientException
OSSObject的URL。bucketName - Bucket名称。key - Object Key。expiration - URL的超时时间。method - HTTP方法,只支持HttpMethod.GET和HttpMethod.PUT。OSSObject的URL。ClientExceptionURL generatePresignedUrl(GeneratePresignedUrlRequest request) throws ClientException
OSSObject的URL。request - GeneratePresignedUrlRequest对象。OSSObject的URL。ClientExceptionvoid putBucketImage(PutBucketImageRequest request) throws OSSException, ClientException
Bucket 图片处理功能request - OSSExceptionClientExceptionGetBucketImageResult getBucketImage(String bucketName) throws OSSException, ClientException
Bucket 图片处理功能属性result - OSSExceptionClientExceptionGetBucketImageResult getBucketImage(String bucketName, GenericRequest genericRequest) throws OSSException, ClientException
Bucket 图片处理功能属性result - genericRequest - OSSExceptionClientExceptionvoid deleteBucketImage(String bucketName) throws OSSException, ClientException
Bucket 图片处理功能void deleteBucketImage(String bucketName, GenericRequest genericRequest) throws OSSException, ClientException
Bucket 图片处理功能genericRequest - OSSExceptionClientExceptionvoid deleteImageStyle(String bucketName, String styleName) throws OSSException, ClientException
Bucket 名为styleName 的 stylebucketName - styleName - OSSExceptionClientExceptionvoid deleteImageStyle(String bucketName, String styleName, GenericRequest genericRequest) throws OSSException, ClientException
Bucket 名为styleName 的 stylebucketName - styleName - genericRequest - OSSExceptionClientExceptionvoid putImageStyle(PutImageStyleRequest putImageStyleRequest) throws OSSException, ClientException
Bucket 图片处理样式putImageStyleRequest - OSSExceptionClientExceptionGetImageStyleResult getImageStyle(String bucketName, String styleName) throws OSSException, ClientException
Bucket 名为styleName 的样式bucketName - styleName - OSSExceptionClientExceptionGetImageStyleResult getImageStyle(String bucketName, String styleName, GenericRequest genericRequest) throws OSSException, ClientException
Bucket 名为styleName 的样式bucketName - styleName - genericRequest - OSSExceptionClientExceptionList<Style> listImageStyle(String bucketName) throws OSSException, ClientException
Bucket bucketName下的所有样式bucketName - genericRequest - OSSExceptionClientExceptionList<Style> listImageStyle(String bucketName, GenericRequest genericRequest) throws OSSException, ClientException
Bucket bucketName下的所有样式bucketName - OSSException - OSS Server异常信息。ClientException - OSS Client异常信息。void setBucketProcess(SetBucketProcessRequest setBucketProcessRequest) throws OSSException, ClientException
setBucketProcessRequest - 请求信息。OSSException - OSS Server异常信息。ClientException - OSS Client异常信息。BucketProcess getBucketProcess(String bucketName) throws OSSException, ClientException
bucketName - Bucket名称。OSSException - OSS Server异常信息。ClientException - OSS Client异常信息。BucketProcess getBucketProcess(GenericRequest genericRequest) throws OSSException, ClientException
genericRequest - 请求信息。OSSException - OSS Server异常信息。ClientException - OSS Client异常信息。InitiateMultipartUploadResult initiateMultipartUpload(InitiateMultipartUploadRequest request) throws OSSException, ClientException
使用Multipart模式上传数据前,必须先调用该接口来通过OSS初始化一个Multipart上传事件。 该接口会返回一个OSS服务器创建的全局唯一的Upload ID,用于标识本次Multipart上传事件。 用户可以根据这个ID来发起相关的操作,如中止、查询Multipart上传等。
此方法对应的操作为非幂等操作,SDK不会对其进行重试(即使设置最大重试次数大于0也不会重试)
request - InitiateMultipartUploadRequest对象。ClientExceptionOSSExceptionMultipartUploadListing listMultipartUploads(ListMultipartUploadsRequest request) throws OSSException, ClientException
即已经被初始化的 Multipart Upload 但是未被完成或被终止的 Multipart上传事件。 OSS返回的罗列结果中最多会包含1000个Multipart上传事件。
request - ListMultipartUploadsRequest对象。MultipartUploadListing。ClientExceptionOSSExceptionPartListing listParts(ListPartsRequest request) throws OSSException, ClientException
request - ListPartsRequest对象。ClientExceptionOSSExceptionUploadPartResult uploadPart(UploadPartRequest request) throws OSSException, ClientException
request - UploadPartRequest对象。UploadPartResult。ClientExceptionOSSExceptionUploadPartCopyResult uploadPartCopy(UploadPartCopyRequest request) throws OSSException, ClientException
request - 分片拷贝请求参数。OSSExceptionClientExceptionvoid abortMultipartUpload(AbortMultipartUploadRequest request) throws OSSException, ClientException
request - AbortMultipartUploadRequest对象。ClientExceptionOSSExceptionCompleteMultipartUploadResult completeMultipartUpload(CompleteMultipartUploadRequest request) throws OSSException, ClientException
在将所有数据Part 都上传完成后,可以调用 Complete Multipart Upload API 来完成整个文件的 Multipart Upload。在执行该操作时,用户必须提供所有有效 的数据Part的列表(包括part号码和ETAG); OSS收到用户提交的Part列表后, 会逐一验证每个数据 Part 的有效性。当所有的数据 Part 验证通过后,OSS 将把 这些数据part组合成一个完整的 Object。
此方法对应的操作为非幂等操作,SDK不会对其进行重试(即使设置最大重试次数大于0也不会重试)
request - CompleteMultipartUploadRequest对象。ClientExceptionOSSExceptionvoid setBucketCORS(SetBucketCORSRequest request) throws OSSException, ClientException
request - SetBucketCORSRequest}OSSExceptionClientExceptionList<SetBucketCORSRequest.CORSRule> getBucketCORSRules(String bucketName) throws OSSException, ClientException
bucketName - OSSExceptionClientExceptionList<SetBucketCORSRequest.CORSRule> getBucketCORSRules(GenericRequest genericRequest) throws OSSException, ClientException
genericRequest - 请求信息。OSSExceptionClientExceptionvoid deleteBucketCORSRules(String bucketName) throws OSSException, ClientException
bucketName - OSSExceptionClientExceptionvoid deleteBucketCORSRules(GenericRequest genericRequest) throws OSSException, ClientException
genericRequest - 请求信息。OSSExceptionClientException@Deprecated ResponseMessage optionsObject(OptionsRequest request) throws OSSException, ClientException
void setBucketLogging(SetBucketLoggingRequest request) throws OSSException, ClientException
Bucket的访问日志记录功能。
这个功能开启后,OSS将自动记录访问这个Bucket请求的详细信息,并按照用户指定的规则,
以小时为单位,将访问日志作为一个Object写入用户指定的Bucket。request - PutBucketLoggingRequest对象。OSSExceptionClientExceptionBucketLoggingResult getBucketLogging(String bucketName) throws OSSException, ClientException
Bucket的访问日志配置。bucketName - OSSExceptionClientExceptionBucketLoggingResult getBucketLogging(GenericRequest genericRequest) throws OSSException, ClientException
Bucket的访问日志配置。genericRequest - 请求信息。OSSExceptionClientExceptionvoid deleteBucketLogging(String bucketName) throws OSSException, ClientException
Bucket的访问日志记录功能。bucketName - OSSExceptionClientExceptionvoid deleteBucketLogging(GenericRequest genericRequest) throws OSSException, ClientException
Bucket的访问日志记录功能。genericRequest - 请求信息。OSSExceptionClientExceptionvoid setBucketWebsite(SetBucketWebsiteRequest setBucketWebSiteRequest) throws OSSException, ClientException
Bucket设置成静态网站托管模式。setBucketWebSiteRequest - OSSExceptionClientExceptionBucketWebsiteResult getBucketWebsite(String bucketName) throws OSSException, ClientException
Bucket的静态网站托管状态。bucketName - OSSExceptionClientExceptionBucketWebsiteResult getBucketWebsite(GenericRequest genericRequest) throws OSSException, ClientException
Bucket的静态网站托管状态。genericRequest - 请求信息。OSSExceptionClientExceptionvoid deleteBucketWebsite(String bucketName) throws OSSException, ClientException
Bucket的静态网站托管模式。bucketName - OSSExceptionClientExceptionvoid deleteBucketWebsite(GenericRequest genericRequest) throws OSSException, ClientException
Bucket的静态网站托管模式。genericRequest - 请求信息。OSSExceptionClientExceptionString generatePostPolicy(Date expiration, PolicyConditions conds) throws ClientException
expiration - policy过期时间。conds - policy条件列表。ClientExceptionString calculatePostSignature(String postPolicy)
postPolicy - 由generatePostPolicy(Date, PolicyConditions)生成的policy字符串。void setBucketLifecycle(SetBucketLifecycleRequest setBucketLifecycleRequest) throws OSSException, ClientException
Bucket的Lifecycle规则。setBucketLifecycleRequest - 请求参数。OSSException - OSS Server异常信息。ClientException - OSS Client异常信息。List<LifecycleRule> getBucketLifecycle(String bucketName) throws OSSException, ClientException
Bucket的Lifecycle规则列表。bucketName - 指定Bucket名称。OSSException - OSS Server异常信息。ClientException - OSS Client异常信息。List<LifecycleRule> getBucketLifecycle(GenericRequest genericRequest) throws OSSException, ClientException
Bucket的Lifecycle规则列表。genericRequest - 请求信息。OSSException - OSS Server异常信息。ClientException - OSS Client异常信息。void deleteBucketLifecycle(String bucketName) throws OSSException, ClientException
Bucket的Lifecycle规则。bucketName - 指定Bucket名称。OSSException - OSS Server异常信息。ClientException - OSS Client异常信息。void deleteBucketLifecycle(GenericRequest genericRequest) throws OSSException, ClientException
Bucket的Lifecycle规则。genericRequest - 请求信息。OSSException - OSS Server异常信息。ClientException - OSS Client异常信息。void addBucketReplication(AddBucketReplicationRequest addBucketReplicationRequest) throws OSSException, ClientException
Bucket的跨区域复制规则。addBucketReplicationRequest - 请求参数。OSSException - OSS Server异常信息。ClientException - OSS Client异常信息。List<ReplicationRule> getBucketReplication(String bucketName) throws OSSException, ClientException
Bucket已设置的跨区域复制规则。bucketName - 指定Bucket名称。OSSException - OSS Server异常信息。ClientException - OSS Client异常信息。List<ReplicationRule> getBucketReplication(GenericRequest genericRequest) throws OSSException, ClientException
Bucket已设置的跨区域复制规则。genericRequest - 请求信息。OSSException - OSS Server异常信息。ClientException - OSS Client异常信息。void deleteBucketReplication(String bucketName, String replicationRuleID) throws OSSException, ClientException
Bucket的跨区域复制并删除复制配置。bucketName - 指定Bucket名称。replicationRuleID - 复制规则对应的ID。OSSException - OSS Server异常信息。ClientException - OSS Client异常信息。void deleteBucketReplication(DeleteBucketReplicationRequest deleteBucketReplicationRequest) throws OSSException, ClientException
Bucket的跨区域复制并删除复制配置。deleteBucketReplicationRequest - 请求信息。OSSException - OSS Server异常信息。ClientException - OSS Client异常信息。BucketReplicationProgress getBucketReplicationProgress(String bucketName, String replicationRuleID) throws OSSException, ClientException
Bucket的跨区域复制进度。bucketName - 指定Bucket名称。replicationRuleID - 复制规则对应的ID。OSSException - OSS Server异常信息。ClientException - OSS Client异常信息。BucketReplicationProgress getBucketReplicationProgress(GetBucketReplicationProgressRequest getBucketReplicationProgressRequest) throws OSSException, ClientException
Bucket的跨区域复制进度。genericRequest - 请求信息。OSSException - OSS Server异常信息。ClientException - OSS Client异常信息。List<String> getBucketReplicationLocation(String bucketName) throws OSSException, ClientException
Bucket所在的数据中心配对的可复制到的数据中心。bucketName - 指定Bucket名称。OSSException - OSS Server异常信息。ClientException - OSS Client异常信息。List<String> getBucketReplicationLocation(GenericRequest genericRequest) throws OSSException, ClientException
Bucket的所在的数据中心配对的可复制到的数据中心。genericRequest - 请求信息。OSSException - OSS Server异常信息。ClientException - OSS Client异常信息。void addBucketCname(AddBucketCnameRequest addBucketCnameRequest) throws OSSException, ClientException
Bucket的cname。setBucketCnameRequest - 请求参数。OSSException - OSS Server异常信息。ClientException - OSS Client异常信息。List<CnameConfiguration> getBucketCname(String bucketName) throws OSSException, ClientException
Bucket已设置的cname。bucketName - 指定Bucket名称。OSSException - OSS Server异常信息。ClientException - OSS Client异常信息。List<CnameConfiguration> getBucketCname(GenericRequest genericRequest) throws OSSException, ClientException
Bucket已设置的cname。genericRequest - 请求信息。OSSException - OSS Server异常信息。ClientException - OSS Client异常信息。void deleteBucketCname(String bucketName, String domain) throws OSSException, ClientException
Bucket的指定的cname。bucketName - 指定Bucket名称。domain - cname。OSSException - OSS Server异常信息。ClientException - OSS Client异常信息。void deleteBucketCname(DeleteBucketCnameRequest deleteBucketCnameRequest) throws OSSException, ClientException
Bucket的指定的cname。deleteBucketCnameRequest - 删除cname请求。OSSException - OSS Server异常信息。ClientException - OSS Client异常信息。BucketInfo getBucketInfo(String bucketName) throws OSSException, ClientException
Bucket的信息。bucketName - 指定Bucket名称。OSSException - OSS Server异常信息。ClientException - OSS Client异常信息。BucketInfo getBucketInfo(GenericRequest genericRequest) throws OSSException, ClientException
Bucket的信息。genericRequest - 请求信息。OSSException - OSS Server异常信息。ClientException - OSS Client异常信息。void setBucketStorageCapacity(String bucketName, UserQos userQos) throws OSSException, ClientException
Bucket的容量。bucketName - 指定Bucket名称。userQos - 包括的容量的Bucket Qos。OSSException - OSS Server异常信息。ClientException - OSS Client异常信息。void setBucketStorageCapacity(SetBucketStorageCapacityRequest setBucketStorageCapacityRequest) throws OSSException, ClientException
Bucket的容量。setBucketStorageCapacityRequest - 请求信息。OSSException - OSS Server异常信息。ClientException - OSS Client异常信息。UserQos getBucketStorageCapacity(String bucketName) throws OSSException, ClientException
Bucket的容量。bucketName - 指定Bucket名称。OSSException - OSS Server异常信息。ClientException - OSS Client异常信息。UserQos getBucketStorageCapacity(GenericRequest genericRequest) throws OSSException, ClientException
Bucket的容量。genericRequest - 请求信息。OSSException - OSS Server异常信息。ClientException - OSS Client异常信息。UploadFileResult uploadFile(UploadFileRequest uploadFileRequest) throws Throwable
uploadFileRequest上传文件请求。 - ThrowableDownloadFileResult downloadFile(DownloadFileRequest downloadFileRequest) throws Throwable
downloadFileRequest分片下载请求。 - ThrowableCreateLiveChannelResult createLiveChannel(CreateLiveChannelRequest createLiveChannelRequest) throws OSSException, ClientException
createLiveChannelRequest - 请求参数。CreateLiveChannelResult实例。OSSException - OSS Server异常信息。ClientException - OSS Client异常信息。void setLiveChannelStatus(String bucketName, String liveChannel, LiveChannelStatus status) throws OSSException, ClientException
bucketName - Bucket名称。liveChannel - Live Channel名称。status - Live Channel状态,可选值包括enabled、disabled。OSSException - OSS Server异常信息。ClientException - OSS Client异常信息。void setLiveChannelStatus(SetLiveChannelRequest setLiveChannelRequest) throws OSSException, ClientException
setLiveChannelRequest - 请求参数。OSSException - OSS Server异常信息。ClientException - OSS Client异常信息。LiveChannelInfo getLiveChannelInfo(String bucketName, String liveChannel) throws OSSException, ClientException
bucketName - Bucket名称。liveChannel - Live Channel名称。LiveChannelInfo实例。OSSException - OSS Server异常信息。ClientException - OSS Client异常信息。LiveChannelInfo getLiveChannelInfo(LiveChannelGenericRequest liveChannelGenericRequest) throws OSSException, ClientException
liveChannelGenericRequest - 请求参数。LiveChannelInfo实例。OSSException - OSS Server异常信息。ClientException - OSS Client异常信息。LiveChannelStat getLiveChannelStat(String bucketName, String liveChannel) throws OSSException, ClientException
bucketName - Bucket名称。liveChannel - Live Channel名称。LiveChannelStat实例。OSSException - OSS Server异常信息。ClientException - OSS Client异常信息。LiveChannelStat getLiveChannelStat(LiveChannelGenericRequest liveChannelGenericRequest) throws OSSException, ClientException
liveChannelGenericRequest - 请求参数。LiveChannelStat实例。OSSException - OSS Server异常信息。ClientException - OSS Client异常信息。void deleteLiveChannel(String bucketName, String liveChannel) throws OSSException, ClientException
bucketName - Bucket名称。liveChannel - Live Channel名称。OSSException - OSS Server异常信息。ClientException - OSS Client异常信息。void deleteLiveChannel(LiveChannelGenericRequest liveChannelGenericRequest) throws OSSException, ClientException
liveChannelGenericRequest - 请求参数。OSSException - OSS Server异常信息。ClientException - OSS Client异常信息。List<LiveChannel> listLiveChannels(String bucketName) throws OSSException, ClientException
LiveChannel的列表。bucketName - Bucket名称。LiveChannel的列表。OSSException - OSS Server异常信息。ClientException - OSS Client异常信息。LiveChannelListing listLiveChannels(ListLiveChannelsRequest listLiveChannelRequest) throws OSSException, ClientException
LiveChannel列表。listLiveChannelRequest - 请求参数。LiveChannel列表。OSSException - OSS Server异常信息。ClientException - OSS Client异常信息。List<LiveRecord> getLiveChannelHistory(String bucketName, String liveChannel) throws OSSException, ClientException
bucketName - Bucket名称。liveChannel - Live Channel名称。OSSException - OSS Server异常信息。ClientException - OSS Client异常信息。List<LiveRecord> getLiveChannelHistory(LiveChannelGenericRequest liveChannelGenericRequest) throws OSSException, ClientException
liveChannelGenericRequest - 请求参数。OSSException - OSS Server异常信息。ClientException - OSS Client异常信息。void generateVodPlaylist(String bucketName, String liveChannelName, String PlaylistName, long startTime, long endTime) throws OSSException, ClientException
bucketName - Bucket名称。liveChannel - Live Channel名称。PlaylistName - 生成的点播用m3u8文件的basename,例如playlist.m3u8。startTime - 播放列表的开始时间,格式采用epoch time,例如1459922563。endTime - 播放列表的结束时间,格式采用epoch time,例如1459922563。OSSException - OSS Server异常信息。ClientException - OSS Client异常信息。void generateVodPlaylist(GenerateVodPlaylistRequest generateVodPlaylistRequest) throws OSSException, ClientException
generateVodPlaylistRequest - 请求参数。OSSException - OSS Server异常信息。ClientException - OSS Client异常信息。String generateRtmpUri(String bucketName, String liveChannelName, String PlaylistName, long expires) throws OSSException, ClientException
bucketName - Bucket名称。liveChannel - Live Channel名称。PlaylistName - 生成的点播用m3u8文件的basename,例如playlist.m3u8。expires - 期望的过期时间,格式采用epoch time,例如1459922563。OSSException - OSS Server异常信息。ClientException - OSS Client异常信息。String generateRtmpUri(GenerateRtmpUriRequest generatePushflowUrlRequest) throws OSSException, ClientException
generatePushflowUrlRequest - 请求参数。OSSException - OSS Server异常信息。ClientException - OSS Client异常信息。void createSymlink(String bucketName, String symlink, String target) throws OSSException, ClientException
bucketName - Bucket名称。symlink - 符号链接。target - 目标文件。OSSException - OSS Server异常信息。ClientException - OSS Client异常信息。void createSymlink(CreateSymlinkRequest createSymlinkRequest) throws OSSException, ClientException
createSymlinkRequest - 创建符号链接请求。OSSException - OSS Server异常信息。ClientException - OSS Client异常信息。OSSSymlink getSymlink(String bucketName, String symlink) throws OSSException, ClientException
bucketName - Bucket名称。symlink - 符号链接。OSSException - OSS Server异常信息。ClientException - OSS Client异常信息。OSSSymlink getSymlink(GenericRequest genericRequest) throws OSSException, ClientException
genericRequest - 请求,包括bucketName、symLink。OSSException - OSS Server异常信息。ClientException - OSS Client异常信息。Copyright © 2016. All Rights Reserved.