接口 IObsClient
- 所有超级接口:
IObsBucketExtendClient
- 所有已知实现类:
AbstractBatchClient,AbstractBucketAdvanceClient,AbstractBucketClient,AbstractClient,AbstractDeprecatedBucketClient,AbstractFileClient,AbstractMultipartObjectClient,AbstractObjectClient,AbstractPFSClient,CryptoObsClient,ObsClient,OefClient,SecretFlexibleBucketObsClient,SecretFlexibleObsClient
Basic OBS interface
-
方法概要
修饰符和类型方法说明Abort a multipart upload.appendObject(AppendObjectRequest request) Perform an appendable upload.voidclose()Close ObsClient and release connection resources.Combine parts.copyObject(CopyObjectRequest request) Copy an object.copyObject(String sourceBucketName, String sourceObjectKey, String destBucketName, String destObjectKey) Copy an object.copyPart(CopyPartRequest request) Copy a part.createBucket(CreateBucketRequest request) Create a bucket.createBucket(ObsBucket bucket) Create a bucket.createBucket(String bucketName) Create a bucket.createBucket(String bucketName, String location) Create a bucket.createPostSignature(PostSignatureRequest request) Generate parameters for browser-based authorized access.Generate temporarily authorized access parameters.Create a virtual bucket.deleteBucket(BaseBucketRequest request) Delete a bucket.deleteBucket(String bucketName) Delete a bucket.deleteBucketCors(BaseBucketRequest request) Delete the bucket CORS rules.deleteBucketCors(String bucketName) Delete the bucket CORS rules.Delete the direct reading policy for Archive objects in a bucket.deleteBucketDirectColdAccess(String bucketName) Delete the direct reading policy for Archive objects in a bucket.deleteBucketEncryption(BaseBucketRequest request) Delete bucket encryption configuration.deleteBucketEncryption(String bucketName) Delete bucket encryption configuration.deleteBucketLifecycle(BaseBucketRequest request) Delete the bucket lifecycle rules from a bucket.deleteBucketLifecycle(String bucketName) Delete the bucket lifecycle rules from a bucket.deleteBucketPolicy(BaseBucketRequest request) Delete bucket policies.deleteBucketPolicy(String bucketName) Delete bucket policies.deleteBucketReplication(BaseBucketRequest request) Delete the bucket cross-region replication configuration.deleteBucketReplication(String bucketName) Delete the bucket cross-region replication configuration.deleteBucketTagging(BaseBucketRequest request) Delete bucket tags.deleteBucketTagging(String bucketName) Delete bucket tags.deleteBucketWebsite(BaseBucketRequest request) Delete the website hosting configuration of a bucket.deleteBucketWebsite(String bucketName) Delete the website hosting configuration of a bucket.deleteObject(DeleteObjectRequest request) Delete an object.deleteObject(String bucketName, String objectKey) Delete an object.deleteObject(String bucketName, String objectKey, String versionId) Delete an object.deleteObjects(DeleteObjectsRequest deleteObjectsRequest) Delete objects in a batch.deleteObjectTagging(ObjectTaggingRequest request) Delete object tags.deleteReadAheadObjects(String bucketName, String prefix) Delete the read-ahead cache.booleandoesObjectExist(GetObjectMetadataRequest request) Check whether an object exists.booleandoesObjectExist(String buckeName, String objectKey) Check whether an object exists.downloadFile(DownloadFileRequest downloadFileRequest) Download a file.getBucketAcl(BaseBucketRequest request) Obtain a bucket ACL.getBucketAcl(String bucketName) Obtain a bucket ACL.getBucketCors(BaseBucketRequest request) Obtain the bucket CORS rules.getBucketCors(String bucketName) Obtain the bucket CORS rules.Obtain the direct reading policy for Archive objects in a bucket.getBucketDirectColdAccess(String bucketName) Obtain the direct reading policy for Archive objects in a bucket.getBucketEncryption(BaseBucketRequest request) Obtain bucket encryption configuration.getBucketEncryption(String bucketName) Obtain bucket encryption configuration.getBucketLifecycle(BaseBucketRequest request) Obtain the bucket lifecycle rules.getBucketLifecycle(String bucketName) Obtain the bucket lifecycle rules.getBucketLocation(BaseBucketRequest request) Obtain the bucket location.getBucketLocation(String bucketName) Obtain the bucket location.getBucketLocationV2(String bucketName) Obtain the bucket location.getBucketLogging(BaseBucketRequest request) Obtain the logging settings of a bucket.getBucketLogging(String bucketName) Obtain the logging settings of a bucket.Obtain bucket metadata.getBucketNotification(BaseBucketRequest request) Obtain the notification configuration of a bucket.getBucketNotification(String bucketName) Obtain the notification configuration of a bucket.getBucketPolicy(BaseBucketRequest request) Obtain a bucket policy.getBucketPolicy(String bucketName) Obtain bucket policies.getBucketPolicyV2(BaseBucketRequest request) Obtain bucket policies.getBucketPolicyV2(String bucketName) Obtain bucket policies.getBucketQuota(BaseBucketRequest request) Obtain the bucket quota.getBucketQuota(String bucketName) Obtain the bucket quota.getBucketReplication(BaseBucketRequest request) Obtain the cross-region replication configuration of a bucket.getBucketReplication(String bucketName) Obtain the cross-region replication configuration of a bucket.getBucketRequestPayment(BaseBucketRequest request) Obtain the requester-pays status of a bucket.getBucketRequestPayment(String bucketName) Obtain the status of the requester-pays function of a bucket.getBucketStorageInfo(BaseBucketRequest request) Obtain bucket storage information.getBucketStorageInfo(String bucketName) Obtain bucket storage information.getBucketStoragePolicy(BaseBucketRequest request) Obtain the bucket storage class.getBucketStoragePolicy(String bucketName) Obtain the bucket storage class.getBucketTagging(BaseBucketRequest request) Obtain bucket tags.getBucketTagging(String bucketName) Obtain bucket tags.getBucketVersioning(BaseBucketRequest request) Obtain the versioning status for a bucket.getBucketVersioning(String bucketName) Obtain the versioning status for a bucket.getBucketWebsite(BaseBucketRequest request) Obtain the website hosting settings of a BucketgetBucketWebsite(String bucketName) Obtain the website hosting configuration of a BucketgetCrrProgress(GetCrrProgressRequest request) getObject(GetObjectRequest request) Download an object.Download an object.Download an object.getObjectAcl(GetObjectAclRequest request) Obtain an object ACL.getObjectAcl(String bucketName, String objectKey) Obtain an object ACL.getObjectAcl(String bucketName, String objectKey, String versionId) Obtain an object ACL.Obtain object properties.getObjectMetadata(String bucketName, String objectKey) Obtain object properties.getObjectMetadata(String bucketName, String objectKey, String versionId) Obtain object properties.getObjectTagging(ObjectTaggingRequest request) Obtain object tags.booleanheadBucket(BaseBucketRequest request) Identify whether a bucket exists.booleanheadBucket(String bucketName) Identify whether a bucket exists.Initialize a multipart upload.Obtain the bucket alias list.listBuckets(ListBucketsRequest request) Obtain the bucket list.listBucketsV2(ListBucketsRequest request) Obtain the bucket list.List incomplete multipart uploads.listObjects(ListObjectsRequest request) List objects in the bucket.listObjects(String bucketName) List objects in the bucket.listParts(ListPartsRequest request) List uploaded parts.listVersions(ListVersionsRequest request) List versioning objects in a bucket.listVersions(String bucketName) List versioning objects in a bucket.listVersions(String bucketName, long maxKeys) List versioning objects in a bucket.listVersions(String bucketName, String prefix, String delimiter, String keyMarker, String versionIdMarker, long maxKeys) List versioning objects in a bucket.modifyObject(ModifyObjectRequest request) Write a file.modifyObject(String bucketName, String objectKey, long position, File file) Write a file.modifyObject(String bucketName, String objectKey, long position, InputStream input) Write a file.putObject(PutObjectRequest request) Upload an object.Upload an object.putObject(String bucketName, String objectKey, File file, ObjectMetadata metadata) Upload an object.putObject(String bucketName, String objectKey, InputStream input) Upload an object.putObject(String bucketName, String objectKey, InputStream input, ObjectMetadata metadata) Upload an object.putObjects(PutObjectsRequest request) Upload files in a batch.queryReadAheadObjectsTask(String bucketName, String taskId) Query the progress of a read-ahead task.readAheadObjects(ReadAheadRequest request) Read ahead objects.voidRefresh the temporary access key.renameObject(RenameObjectRequest request) Rename a file or directory.renameObject(String bucketName, String objectKey, String newObjectKey) Rename a file or directory.restoreObject(RestoreObjectRequest request) Restore an Archive object.restoreObjects(RestoreObjectsRequest request) Restore Archive objects in a batch.restoreObjectV2(RestoreObjectRequest request) Restore an Archive object.selectObjectContent(SelectObjectRequest selectRequest) Selects rows from an object using a SQL statement.setBucketAcl(SetBucketAclRequest request) Set a bucket ACL.setBucketAcl(String bucketName, AccessControlList acl) Set a bucket ACL.setBucketCors(SetBucketCorsRequest request) Configure the bucket CORS.setBucketCors(String bucketName, BucketCors bucketCors) Configure the bucket CORS.Configure the direct reading policy for Archive objects in a bucket.setBucketDirectColdAccess(String bucketName, BucketDirectColdAccess access) Set the direct reading policy for Archive objects in a bucket.Configure bucket encryption.setBucketEncryption(String bucketName, BucketEncryption bucketEncryption) Set bucket encryption.Configure lifecycle rules for a bucket.setBucketLifecycle(String bucketName, LifecycleConfiguration lifecycleConfig) Set the bucket lifecycle rules.setBucketLogging(SetBucketLoggingRequest request) Configure logging for a bucket.setBucketLogging(String bucketName, BucketLoggingConfiguration loggingConfiguration) Configure logging for a bucket.setBucketLoggingConfiguration(String bucketName, BucketLoggingConfiguration loggingConfiguration, boolean updateTargetACLifRequired) Set event notification for a bucket.setBucketNotification(String bucketName, BucketNotificationConfiguration bucketNotificationConfiguration) Configure bucket notification.setBucketPolicy(SetBucketPolicyRequest request) Set bucket policies.setBucketPolicy(String bucketName, String policy) Set bucket policies.setBucketQuota(SetBucketQuotaRequest request) Set the bucket quota.setBucketQuota(String bucketName, BucketQuota bucketQuota) Set the bucket quota.Configure cross-region replication for a bucket.setBucketReplication(String bucketName, ReplicationConfiguration replicationConfiguration) Configure cross-region replication for a bucket.Configure the requester-pays function for a bucket.setBucketRequestPayment(String bucketName, RequestPaymentEnum payer) Configure the requester-pays function for a bucket.Set the bucket storage class.setBucketStoragePolicy(String bucketName, BucketStoragePolicyConfiguration bucketStorage) Set the bucket storage class.setBucketTagging(SetBucketTaggingRequest request) Set bucket tags.setBucketTagging(String bucketName, BucketTagInfo bucketTagInfo) Set bucket tags.Set the versioning status for a bucket.setBucketVersioning(String bucketName, BucketVersioningConfiguration versioningConfiguration) Set the versioning status for a bucket.setBucketWebsite(SetBucketWebsiteRequest request) Configure website hosting for a bucket.setBucketWebsite(String bucketName, WebsiteConfiguration websiteConfig) Configure website hosting for a bucket.setObjectAcl(SetObjectAclRequest request) Set an object ACL.setObjectAcl(String bucketName, String objectKey, AccessControlList acl) Set an object ACL.setObjectAcl(String bucketName, String objectKey, AccessControlList acl, String versionId) Set an object ACL.Set object properties.setObjectTagging(ObjectTaggingRequest request) Set object tags.truncateObject(TruncateObjectRequest request) Truncate a file.truncateObject(String bucketName, String objectKey, long newLength) Truncate a file.uploadFile(UploadFileRequest uploadFileRequest) Upload a file.uploadPart(UploadPartRequest request) Upload a part.uploadPart(String bucketName, String objectKey, String uploadId, int partNumber, File file) Upload a part.uploadPart(String bucketName, String objectKey, String uploadId, int partNumber, InputStream input) Upload a part.从接口继承的方法 cn.warpin.thirdPart.huawei.obs.obs.services.IObsBucketExtendClient
deleteBucketCustomDomain, deleteBucketCustomDomain, getBucketCustomDomain, getBucketCustomDomain, setBucketCustomDomain, setBucketCustomDomain
-
方法详细资料
-
refresh
Refresh the temporary access key.- 参数:
accessKey- AK in the temporary access keysecretKey- SK in the temporary access keysecurityToken- Security token
-
createTemporarySignature
Generate temporarily authorized access parameters.- 参数:
request- Parameters in a request for temporarily authorized access- 返回:
- Response to the request for temporarily authorized access
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
createPostSignature
Generate parameters for browser-based authorized access.- 参数:
request- Request parameters for V4 browser-based authorized access- 返回:
- Response to the V4 browser-based authorized access
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
createBucket
Create a bucket.
Bucket naming rules:
- Contain only lowercase letters, digits, hyphens (-), and periods (.).
- Must start with a digit or a letter.
- Contain 3 to 63 characters.
- Cannot be an IP address.
- Cannot end with a hyphen (-).
- Cannot contain two consecutive periods (..).
- Cannot contain periods (.) and hyphens (-) adjacent to each other, for example, "my-.bucket" and "my.-bucket".
- 参数:
bucketName- Bucket name- 返回:
- Bucket information
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
createBucket
Create a bucket.
Create a bucket of a specific name in the given region.Bucket naming rules:
- Contain only lowercase letters, digits, hyphens (-), and periods (.).
- Must start with a digit or a letter.
- Contain 3 to 63 characters.
- Cannot be an IP address.s
- Cannot end with a hyphen (-).
- Cannot contain two consecutive periods (..).
- Cannot contain periods (.) and hyphens (-) adjacent to each other, for example, "my-.bucket" and "my.-bucket".
- 参数:
bucketName- Bucket namelocation- Bucket location. This parameter is mandatory unless the endpoint belongs to the default region.- 返回:
- Bucket information
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
createBucket
Create a bucket.
Create a bucket of a specific name in the given region.Bucket naming rules:
- Contain only lowercase letters, digits, hyphens (-), and periods (.).
- Must start with a digit or a letter.
- Contain 3 to 63 characters.
- Cannot be an IP address.
- Cannot end with a hyphen (-).
- Cannot contain two consecutive periods (..).
- Cannot contain periods (.) and hyphens (-) adjacent to each other, for example, "my-.bucket" and "my.-bucket".
- 参数:
bucket- Bucket information, including the request parameters- 返回:
- Bucket information
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
createBucket
Create a bucket.
Bucket naming rules:
- Contain only lowercase letters, digits, hyphens (-), and periods (.).
- Must start with a digit or a letter.
- Contain 3 to 63 characters.
- Cannot be an IP address.
- Cannot end with a hyphen (-).
- Cannot contain two consecutive periods (..).
- Cannot contain periods (.) and hyphens (-) adjacent to each other, for example, "my-.bucket" and "my.-bucket".
- 参数:
request- Request parameters for creating a bucket- 返回:
- Bucket information
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
createVirtualBucket
CreateVirtualBucketResult createVirtualBucket(CreateVirtualBucketRequest request) throws ObsException Create a virtual bucket.- 参数:
request- Request parameters for creating a virtual bucket- 返回:
- Virtual bucket information
- 抛出:
ObsException
-
listAliasBuckets
Obtain the bucket alias list.- 返回:
- Alias Bucket list
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
renameObject
RenameObjectResult renameObject(String bucketName, String objectKey, String newObjectKey) throws ObsException Rename a file or directory. Only the parallel file system supports this interface.- 参数:
bucketName- Bucket nameobjectKey- File name or directory namenewObjectKey- Name of the renamed file or directory- 返回:
- Response to the request for renaming a file
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
renameObject
Rename a file or directory. Only the parallel file system supports this interface.- 参数:
request- Parameters of a request for renaming a file- 返回:
- Response to the request for renaming a file
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails- 从以下版本开始:
- 3.20.3
-
truncateObject
TruncateObjectResult truncateObject(String bucketName, String objectKey, long newLength) throws ObsException Truncate a file. Only the parallel file system supports this interface.- 参数:
bucketName- Bucket nameobjectKey- File namenewLength- Size of the truncated file- 返回:
- Response to the request for truncating a file
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
truncateObject
Truncate a file. Only the parallel file system supports this interface.- 参数:
request- Parameters of a request for truncating a file- 返回:
- Response to the request for truncating a file
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails- 从以下版本开始:
- 3.20.3
-
modifyObject
ModifyObjectResult modifyObject(String bucketName, String objectKey, long position, File file) throws ObsException Write a file. Only the parallel file system supports this interface.- 参数:
bucketName- Bucket nameobjectKey- File nameposition- Start position for writing data to a filefile- Local file path- 返回:
- Files in the bucket that supports the file interface
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
modifyObject
ModifyObjectResult modifyObject(String bucketName, String objectKey, long position, InputStream input) throws ObsException Write a file. Only the parallel file system supports this interface.- 参数:
bucketName- Bucket nameobjectKey- File nameposition- Start position for writing data to a fileinput- Data stream to be uploaded- 返回:
- Files in the bucket that supports the file interface
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
modifyObject
Write a file. Only the parallel file system supports this interface.- 参数:
request- Request parameters for writing data to a file- 返回:
- Files in the bucket that supports the file interface
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
listBuckets
Obtain the bucket list.- 参数:
request- Obtain the request parameters for obtaining the bucket list.- 返回:
- Bucket list
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
listBucketsV2
Obtain the bucket list.- 参数:
request- Obtain the request parameters for obtaining the bucket list.- 返回:
- Response to the request for obtaining the bucket list
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
deleteBucket
Delete a bucket.- 参数:
bucketName- Bucket name- 返回:
- Common response headers
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
deleteBucket
Delete a bucket.- 参数:
request- Parameters of a request for deleting a bucket- 返回:
- Common response headers
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails- 从以下版本开始:
- 3.20.3
-
listObjects
List objects in the bucket.- 参数:
request- Request parameters for listing objects in a bucket- 返回:
- Response to the request for listing objects in the bucket
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
listObjects
List objects in the bucket.- 参数:
bucketName- Bucket name- 返回:
- Response to the request for listing objects in the bucket
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
headBucket
Identify whether a bucket exists.- 参数:
bucketName- Bucket name- 返回:
- Identifier indicating whether the bucket exists
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
headBucket
Identify whether a bucket exists.- 参数:
request- Request parameters- 返回:
- Identifier indicating whether the bucket exists
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails- 从以下版本开始:
- 3.20.3
-
listVersions
List versioning objects in a bucket.- 参数:
request- Request parameters for listing versioning objects in the bucket- 返回:
- Response to the request for listing versioning objects in the bucket
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
listVersions
List versioning objects in a bucket.- 参数:
bucketName- Bucket name- 返回:
- Response to the request for listing versioning objects in the bucket
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
listVersions
List versioning objects in a bucket.- 参数:
bucketName- Bucket namemaxKeys- Maximum number of versioning objects to be listed- 返回:
- Response to the request for listing versioning objects in the bucket
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
listVersions
ListVersionsResult listVersions(String bucketName, String prefix, String delimiter, String keyMarker, String versionIdMarker, long maxKeys) throws ObsException List versioning objects in a bucket.- 参数:
bucketName- Bucket nameprefix- Object name prefix used for listing versioning objectsdelimiter- Character for grouping object nameskeyMarker- Start position for listing versioning objects (sorted by object name)versionIdMarker- Start position for listing versioning objects (sorted by version ID)maxKeys- Maximum number of versioning objects to be listed- 返回:
- Response to the request for listing versioning objects in the bucket
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
getBucketMetadata
Obtain bucket metadata.- 参数:
request- Request parameters for obtaining bucket metadata- 返回:
- Response to the request for obtaining bucket metadata
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
getBucketAcl
Obtain a bucket ACL.- 参数:
bucketName- Bucket name- 返回:
- Bucket ACL
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
getBucketAcl
Obtain a bucket ACL.- 参数:
request- Request parameters for obtaining the bucket ACL- 返回:
- Response to a request for obtaining the bucket ACL
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails- 从以下版本开始:
- 3.20.3
-
setBucketAcl
Set a bucket ACL.- 参数:
bucketName- Bucket nameacl- ACL- 返回:
- Common response headers
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
setBucketAcl
Set a bucket ACL.- 参数:
request- Request parameters for setting a bucket ACL- 返回:
- Common response headers
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails- 从以下版本开始:
- 3.20.3
-
getBucketLocation
Obtain the bucket location.- 参数:
bucketName- Bucket name- 返回:
- Bucket location
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
getBucketLocation
Obtain the bucket location.- 参数:
request- Request parameters- 返回:
- Response to the request for obtaining the bucket location
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails- 从以下版本开始:
- 3.20.3
-
getBucketLocationV2
Obtain the bucket location.- 参数:
bucketName- Bucket name- 返回:
- Response to the request for obtaining the bucket location
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
getBucketStorageInfo
Obtain bucket storage information.- 参数:
bucketName- Bucket name- 返回:
- Bcket storage information
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
getBucketStorageInfo
Obtain bucket storage information.- 参数:
request- Bucket name- 返回:
- Bucket storage information
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails- 从以下版本开始:
- 3.20.3
-
getBucketQuota
Obtain the bucket quota.- 参数:
bucketName- Bucket name- 返回:
- Bucket quota
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
getBucketQuota
Obtain the bucket quota.- 参数:
request- Request parameters- 返回:
- Bucket quota
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails- 从以下版本开始:
- 3.20.3
-
setBucketQuota
Set the bucket quota.- 参数:
bucketName- Bucket namebucketQuota- Bucket quota- 返回:
- Common response headers
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
setBucketQuota
Set the bucket quota.- 参数:
request- Request parameters- 返回:
- Common response headers
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails- 从以下版本开始:
- 3.20.3
-
getBucketStoragePolicy
Obtain the bucket storage class.- 参数:
bucketName- Bucket name- 返回:
- Bucket storage policy
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
getBucketStoragePolicy
BucketStoragePolicyConfiguration getBucketStoragePolicy(BaseBucketRequest request) throws ObsException Obtain the bucket storage class.- 参数:
request- Request parameters- 返回:
- Bucket storage policy
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails- 从以下版本开始:
- 3.20.3
-
setBucketStoragePolicy
HeaderResponse setBucketStoragePolicy(String bucketName, BucketStoragePolicyConfiguration bucketStorage) throws ObsException Set the bucket storage class.- 参数:
bucketName- Bucket namebucketStorage- Bucket storage policy- 返回:
- Common response headers
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
setBucketStoragePolicy
Set the bucket storage class.- 参数:
request- Request parameters- 返回:
- Common response headers
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails- 从以下版本开始:
- 3.20.3
-
setBucketCors
Configure the bucket CORS.- 参数:
bucketName- Bucket namebucketCors- CORS rules- 返回:
- Common response headers
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
setBucketCors
Configure the bucket CORS.- 参数:
request- Request parameters- 返回:
- Common response headers
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails- 从以下版本开始:
- 3.20.3
-
getBucketCors
Obtain the bucket CORS rules.- 参数:
bucketName- Bucket name- 返回:
- Bucket CORS rules
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
getBucketCors
Obtain the bucket CORS rules.- 参数:
request- Request parameters- 返回:
- Bucket CORS configuration
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails- 从以下版本开始:
- 3.20.3
-
deleteBucketCors
Delete the bucket CORS rules.- 参数:
bucketName- Bucket name- 返回:
- Common response headers
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
deleteBucketCors
Delete the bucket CORS rules.- 参数:
request- Request parameters- 返回:
- Common response headers
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails- 从以下版本开始:
- 3.20.3
-
getBucketLogging
Obtain the logging settings of a bucket.- 参数:
bucketName- Bucket name- 返回:
- Logging settings of the bucket
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
getBucketLogging
Obtain the logging settings of a bucket.- 参数:
request- Request parameters- 返回:
- Logging settings of the bucket
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails- 从以下版本开始:
- 3.20.3
-
setBucketLoggingConfiguration
HeaderResponse setBucketLoggingConfiguration(String bucketName, BucketLoggingConfiguration loggingConfiguration, boolean updateTargetACLifRequired) throws ObsException - 抛出:
ObsException
-
setBucketLogging
HeaderResponse setBucketLogging(String bucketName, BucketLoggingConfiguration loggingConfiguration) throws ObsException Configure logging for a bucket.- 参数:
bucketName- Bucket nameloggingConfiguration- Logging settings- 返回:
- Common response headers
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
setBucketLogging
Configure logging for a bucket.- 参数:
request- Request parameters- 返回:
- Common response headers
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails- 从以下版本开始:
- 3.20.3
-
setBucketVersioning
HeaderResponse setBucketVersioning(String bucketName, BucketVersioningConfiguration versioningConfiguration) throws ObsException Set the versioning status for a bucket.- 参数:
bucketName- Bucket nameversioningConfiguration- Versioning status of the bucket- 返回:
- Common response headers
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
setBucketVersioning
Set the versioning status for a bucket.- 参数:
request- Request parameters- 返回:
- Common response headers
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails- 从以下版本开始:
- 3.20.3
-
getBucketVersioning
Obtain the versioning status for a bucket.- 参数:
bucketName- Bucket name- 返回:
- Versioning status of the bucket
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
getBucketVersioning
Obtain the versioning status for a bucket.- 参数:
request- Request parameters- 返回:
- Versioning status of the bucket
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails- 从以下版本开始:
- 3.20.3
-
setBucketRequestPayment
HeaderResponse setBucketRequestPayment(String bucketName, RequestPaymentEnum payer) throws ObsException Configure the requester-pays function for a bucket.- 参数:
bucketName- Bucket namepayer- The status of the requester-pays function- 返回:
- Common response headers
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
setBucketRequestPayment
Configure the requester-pays function for a bucket.- 参数:
request- Configuration of the requester-pays function of a bucket- 返回:
- Common response headers
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails- 从以下版本开始:
- 3.20.3
-
getBucketRequestPayment
Obtain the status of the requester-pays function of a bucket.- 参数:
bucketName- Bucket name- 返回:
- Configuration of the requester-pays function of the bucket
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails- 从以下版本开始:
- 3.20.3
-
getBucketRequestPayment
Obtain the requester-pays status of a bucket.- 参数:
request- Basic bucket information- 返回:
- Configuration of the requester-pays function of the bucket
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails- 从以下版本开始:
- 3.20.3
-
getBucketLifecycle
Obtain the bucket lifecycle rules.- 参数:
bucketName- Bucket name- 返回:
- Bucket lifecycle rules
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
getBucketLifecycle
Obtain the bucket lifecycle rules.- 参数:
request- Request parameters- 返回:
- Bucket lifecycle rules
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails- 从以下版本开始:
- 3.20.3
-
setBucketLifecycle
HeaderResponse setBucketLifecycle(String bucketName, LifecycleConfiguration lifecycleConfig) throws ObsException Set the bucket lifecycle rules.- 参数:
bucketName- Bucket namelifecycleConfig- Bucket lifecycle rules- 返回:
- Common response headers
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
setBucketLifecycle
Configure lifecycle rules for a bucket.- 参数:
request- Request parameters- 返回:
- Common response headers
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails- 从以下版本开始:
- 3.20.3
-
deleteBucketLifecycle
Delete the bucket lifecycle rules from a bucket.- 参数:
bucketName- Bucket name- 返回:
- Common response headers
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
deleteBucketLifecycle
Delete the bucket lifecycle rules from a bucket.- 参数:
request- Request parameters- 返回:
- Common response headers
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails- 从以下版本开始:
- 3.20.3
-
getBucketPolicy
Obtain bucket policies.- 参数:
bucketName- Bucket name- 返回:
- Bucket policy, in the JSON format
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
getBucketPolicy
Obtain a bucket policy.- 参数:
request- Request parameters- 返回:
- Bucket policy, in the JSON format
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails- 从以下版本开始:
- 3.20.3
-
getBucketPolicyV2
Obtain bucket policies.- 参数:
bucketName- Bucket name- 返回:
- Response to a request for obtaining bucket policies
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
getBucketPolicyV2
Obtain bucket policies.- 参数:
request- Request parameters- 返回:
- Response to a request for obtaining bucket policies
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails- 从以下版本开始:
- 3.20.3
-
setBucketPolicy
Set bucket policies.- 参数:
bucketName- Bucket namepolicy- Bucket policy, in the JSON format- 返回:
- Common response headers
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
setBucketPolicy
Set bucket policies.- 参数:
request- Request parameters- 返回:
- Common response headers
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails- 从以下版本开始:
- 3.20.3
-
deleteBucketPolicy
Delete bucket policies.- 参数:
bucketName- Bucket name- 返回:
- Common response headers
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
deleteBucketPolicy
Delete bucket policies.- 参数:
request- Request parameters- 返回:
- Common response headers
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails- 从以下版本开始:
- 3.20.3
-
getBucketWebsite
Obtain the website hosting configuration of a Bucket- 参数:
bucketName- Bucket name- 返回:
- Website hosting configuration of a bucket
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
getBucketWebsite
Obtain the website hosting settings of a Bucket- 参数:
request- Request parameters- 返回:
- Website hosting configuration of a bucket
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails- 从以下版本开始:
- 3.20.3
-
setBucketWebsite
HeaderResponse setBucketWebsite(String bucketName, WebsiteConfiguration websiteConfig) throws ObsException Configure website hosting for a bucket.- 参数:
bucketName- Bucket namewebsiteConfig- Website hosting configuration of a bucket- 返回:
- Common response headers
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
setBucketWebsite
Configure website hosting for a bucket.- 参数:
request- Request parameters- 返回:
- Common response headers
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails- 从以下版本开始:
- 3.20.3
-
deleteBucketWebsite
Delete the website hosting configuration of a bucket.- 参数:
bucketName- Bucket name- 返回:
- Common response headers
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
deleteBucketWebsite
Delete the website hosting configuration of a bucket.- 参数:
request- Request parameters- 返回:
- Common response headers
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails- 从以下版本开始:
- 3.20.3
-
getBucketTagging
Obtain bucket tags.- 参数:
bucketName- Bucket name- 返回:
- Bucket tag
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
getBucketTagging
Obtain bucket tags.- 参数:
request- Request parameters- 返回:
- Bucket tag
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails- 从以下版本开始:
- 3.20.3
-
setBucketTagging
Set bucket tags.- 参数:
bucketName- Bucket namebucketTagInfo- Bucket tags- 返回:
- Common response headers
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
setBucketTagging
Set bucket tags.- 参数:
request- Request parameters- 返回:
- Common response headers
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails- 从以下版本开始:
- 3.20.3
-
deleteBucketTagging
Delete bucket tags.- 参数:
bucketName- Bucket name- 返回:
- Common response headers
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
deleteBucketTagging
Delete bucket tags.- 参数:
request- Request parameters- 返回:
- Common response headers
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails- 从以下版本开始:
- 3.20.3
-
getObjectTagging
Obtain object tags.- 参数:
request- Request parameters- 返回:
- Object tag
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails- 从以下版本开始:
- 3.20.3
-
setObjectTagging
Set object tags.- 参数:
request- Request parameters- 返回:
- Common response headers
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails- 从以下版本开始:
- 3.20.3
-
deleteObjectTagging
Delete object tags.- 参数:
request- Request parameters- 返回:
- Common response headers
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails- 从以下版本开始:
- 3.20.3
-
getBucketEncryption
Obtain bucket encryption configuration.- 参数:
bucketName- Bucket name- 返回:
- Bucket encryption configuration
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
getBucketEncryption
Obtain bucket encryption configuration.- 参数:
request- Request parameters- 返回:
- Bucket encryption configuration
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails- 从以下版本开始:
- 3.20.3
-
setBucketEncryption
HeaderResponse setBucketEncryption(String bucketName, BucketEncryption bucketEncryption) throws ObsException Set bucket encryption.- 参数:
bucketName- Bucket namebucketEncryption- Bucket encryption configuration- 返回:
- Common response headers
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
setBucketEncryption
Configure bucket encryption.- 参数:
request- Request parameters- 返回:
- Common response headers
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails- 从以下版本开始:
- 3.20.3
-
deleteBucketEncryption
Delete bucket encryption configuration.- 参数:
bucketName- Bucket name- 返回:
- Common response headers
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
deleteBucketEncryption
Delete bucket encryption configuration.- 参数:
request- Request parameters- 返回:
- Common response headers
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails- 从以下版本开始:
- 3.20.3
-
setBucketReplication
HeaderResponse setBucketReplication(String bucketName, ReplicationConfiguration replicationConfiguration) throws ObsException Configure cross-region replication for a bucket.- 参数:
bucketName- Bucket namereplicationConfiguration- Cross-region replication configuration- 返回:
- Common response headers
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
setBucketReplication
Configure cross-region replication for a bucket.- 参数:
request- Request parameters- 返回:
- Common response headers
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails- 从以下版本开始:
- 3.20.3
-
getBucketReplication
Obtain the cross-region replication configuration of a bucket.- 参数:
bucketName- Bucket name- 返回:
- Cross-region replication configuration
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
getBucketReplication
Obtain the cross-region replication configuration of a bucket.- 参数:
request- Request parameters- 返回:
- Cross-region replication configuration
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails- 从以下版本开始:
- 3.20.3
-
getCrrProgress
- 抛出:
ObsException
-
deleteBucketReplication
Delete the bucket cross-region replication configuration.- 参数:
bucketName- Bucket name- 返回:
- Common response headers
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
deleteBucketReplication
Delete the bucket cross-region replication configuration.- 参数:
request- Request parameters- 返回:
- Common response headers
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails- 从以下版本开始:
- 3.20.3
-
getBucketNotification
Obtain the notification configuration of a bucket.- 参数:
bucketName- Bucket name- 返回:
- Bucket notification configuration
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
getBucketNotification
BucketNotificationConfiguration getBucketNotification(BaseBucketRequest request) throws ObsException Obtain the notification configuration of a bucket.- 参数:
request- Request parameters- 返回:
- Bucket notification configuration
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails- 从以下版本开始:
- 3.20.3
-
setBucketNotification
HeaderResponse setBucketNotification(String bucketName, BucketNotificationConfiguration bucketNotificationConfiguration) throws ObsException Configure bucket notification.- 参数:
bucketName- Bucket namebucketNotificationConfiguration- Bucket notification configuration- 返回:
- Common response headers
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
setBucketNotification
Set event notification for a bucket.- 参数:
request- Request parameters- 返回:
- Common response headers
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails- 从以下版本开始:
- 3.20.3
-
putObject
PutObjectResult putObject(String bucketName, String objectKey, InputStream input, ObjectMetadata metadata) throws ObsException Upload an object.- 参数:
bucketName- Bucket nameobjectKey- Object nameinput- Data stream to be uploadedmetadata- Object properties- 返回:
- Response to an object upload request
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
putObject
PutObjectResult putObject(String bucketName, String objectKey, InputStream input) throws ObsException Upload an object.- 参数:
bucketName- Bucket nameobjectKey- Object nameinput- Data stream to be uploaded- 返回:
- Response to an object upload request
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
putObject
Upload an object.- 参数:
request- Parameters in an object upload request- 返回:
- Response to an object upload request
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
putObject
Upload an object.- 参数:
bucketName- Bucket nameobjectKey- Object namefile- File to be uploaded- 返回:
- Response to an object upload request
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
putObject
PutObjectResult putObject(String bucketName, String objectKey, File file, ObjectMetadata metadata) throws ObsException Upload an object.- 参数:
bucketName- Bucket nameobjectKey- Object namefile- File to be uploadedmetadata- Object properties- 返回:
- Response to an object upload request
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
putObjectInTwoBucket
PutObjectInTwoBucketResult putObjectInTwoBucket(PutObjectInTwoBucketRequest request) throws ObsException - 抛出:
ObsException
-
appendObject
Perform an appendable upload.- 参数:
request- Parameters in an appendable upload request- 返回:
- Response to the appendable upload request
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
uploadFile
Upload a file. The resumable upload mode is supported.- 参数:
uploadFileRequest- Parameters in a file upload request- 返回:
- Result of part combination
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
putObjects
Upload files in a batch.- 参数:
request- Request parameters for uploading files in a batch- 返回:
- Batch task execution status
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
doesObjectExist
Check whether an object exists.- 参数:
buckeName- Bucket nameobjectKey- Object name- 返回:
- Whether an object exists
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
doesObjectExist
Check whether an object exists.- 参数:
request- Request parameters for obtaining the properties of an object- 返回:
- Whether an object exists
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
downloadFile
Download a file. The resumable download mode is supported.- 参数:
downloadFileRequest- Parameters in a request for downloading a file- 返回:
- File download result
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
getObject
Download an object.- 参数:
request- Parameters in an object download request- 返回:
- Object information, including the object data stream
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
selectObjectContent
Selects rows from an object using a SQL statement.- 参数:
selectRequest- Parameters in an object select request- 返回:
- Select result container
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
getObject
Download an object.- 参数:
bucketName- Bucket nameobjectKey- Object nameversionId- Object version ID- 返回:
- Object information, including the object data stream
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
getObject
Download an object.- 参数:
bucketName- Bucket nameobjectKey- Object name- 返回:
- Object information, including the object data stream
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
getObjectMetadata
Obtain object properties.- 参数:
request- Parameters in a request for obtaining the properties of an object- 返回:
- Object properties
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
getObjectMetadata
ObjectMetadata getObjectMetadata(String bucketName, String objectKey, String versionId) throws ObsException Obtain object properties.- 参数:
bucketName- Bucket nameobjectKey- Object nameversionId- Object version ID- 返回:
- Object properties
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
getObjectMetadata
Obtain object properties.- 参数:
bucketName- Bucket nameobjectKey- Object name- 返回:
- Object properties
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
setObjectMetadata
Set object properties.- 参数:
request- Parameters in the request for obtaining object properties- 返回:
- Object properties
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
restoreObject
RestoreObjectRequest.RestoreObjectStatus restoreObject(RestoreObjectRequest request) throws ObsException Restore an Archive object.- 参数:
request- Parameters in a request for restoring an Archive object- 返回:
- Status of the to-be-restored Archive object
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
restoreObjectV2
Restore an Archive object.- 参数:
request- Request parameters for restoring an Archive object- 返回:
- Result of restoring the Archive object
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
restoreObjects
Restore Archive objects in a batch.- 参数:
request- Request parameters for restoring Archive objects in a batch- 返回:
- Batch task execution status
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
deleteObject
DeleteObjectResult deleteObject(String bucketName, String objectKey, String versionId) throws ObsException Delete an object.- 参数:
bucketName- Bucket nameobjectKey- Object nameversionId- Object version ID- 返回:
- Common response headers
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
deleteObject
Delete an object.- 参数:
bucketName- Bucket nameobjectKey- Object name- 返回:
- Common response headers
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
deleteObject
Delete an object.- 参数:
request- Request parameters for deleting an object- 返回:
- Common response headers
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails- 从以下版本开始:
- 3.20.3
-
deleteObjects
Delete objects in a batch.- 参数:
deleteObjectsRequest- Parameters in an object batch deletion request- 返回:
- Result of the object batch deletion request
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
getObjectAcl
AccessControlList getObjectAcl(String bucketName, String objectKey, String versionId) throws ObsException Obtain an object ACL.- 参数:
bucketName- Bucket nameobjectKey- Object nameversionId- Object version ID- 返回:
- Object ACL
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
getObjectAcl
Obtain an object ACL.- 参数:
bucketName- Bucket nameobjectKey- Object name- 返回:
- Object ACL
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
getObjectAcl
Obtain an object ACL.- 参数:
request- Request parameters for obtaining an object ACL- 返回:
- Object ACL
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails- 从以下版本开始:
- 3.20.3
-
setObjectAcl
HeaderResponse setObjectAcl(String bucketName, String objectKey, AccessControlList acl, String versionId) throws ObsException Set an object ACL.- 参数:
bucketName- Bucket nameobjectKey- Object nameacl- ACLversionId- Object version ID- 返回:
- Common response headers
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
setObjectAcl
HeaderResponse setObjectAcl(String bucketName, String objectKey, AccessControlList acl) throws ObsException Set an object ACL.- 参数:
bucketName- Bucket nameobjectKey- Object nameacl- ACL- 返回:
- Common response headers
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
setObjectAcl
Set an object ACL.- 参数:
request- Request parameters- 返回:
- Common response headers
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails- 从以下版本开始:
- 3.20.3
-
copyObject
Copy an object.- 参数:
request- Parameters in a request for copying an object- 返回:
- Result of the object copy
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
copyObject
CopyObjectResult copyObject(String sourceBucketName, String sourceObjectKey, String destBucketName, String destObjectKey) throws ObsException Copy an object.- 参数:
sourceBucketName- Source bucket namesourceObjectKey- Source object namedestBucketName- Destination bucket namedestObjectKey- Destination object name- 返回:
- Result of the object copy
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
initiateMultipartUpload
InitiateMultipartUploadResult initiateMultipartUpload(InitiateMultipartUploadRequest request) throws ObsException Initialize a multipart upload.- 参数:
request- Parameters in a request for initializing a multipart upload- 返回:
- Result of the multipart upload
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
abortMultipartUpload
Abort a multipart upload.- 参数:
request- Parameters in a request for aborting a multipart upload- 返回:
- Common response headers
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
uploadPart
UploadPartResult uploadPart(String bucketName, String objectKey, String uploadId, int partNumber, InputStream input) throws ObsException Upload a part.- 参数:
bucketName- Bucket nameobjectKey- Object nameuploadId- Multipart upload IDpartNumber- Part numberinput- Data stream to be uploaded- 返回:
- Response to a part upload request
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
uploadPart
UploadPartResult uploadPart(String bucketName, String objectKey, String uploadId, int partNumber, File file) throws ObsException Upload a part.- 参数:
bucketName- Bucket nameobjectKey- Object nameuploadId- Multipart upload IDpartNumber- Part numberfile- File to be uploaded- 返回:
- Response to a part upload request
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
uploadPart
Upload a part.- 参数:
request- Parameters in a part upload request- 返回:
- Response to a part upload request
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
copyPart
Copy a part.- 参数:
request- Parameters in the request for copying a part- 返回:
- Response to a part copy request
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
completeMultipartUpload
CompleteMultipartUploadResult completeMultipartUpload(CompleteMultipartUploadRequest request) throws ObsException Combine parts.- 参数:
request- Parameters in a request for combining parts- 返回:
- Result of part combination
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
listParts
List uploaded parts.- 参数:
request- Parameters in a request for listing uploaded parts- 返回:
- Response to a request for listing uploaded parts
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
listMultipartUploads
MultipartUploadListing listMultipartUploads(ListMultipartUploadsRequest request) throws ObsException List incomplete multipart uploads.- 参数:
request- Parameters in a request for listing multipart uploads- 返回:
- List of multipart uploads
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
readAheadObjects
Read ahead objects.- 参数:
request- Request parameters for reading ahead objects- 返回:
- Response to the request for reading ahead objects
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
deleteReadAheadObjects
Delete the read-ahead cache.- 参数:
bucketName- Bucket nameprefix- Name prefix of objects to be read ahead- 返回:
- Response to the request for reading ahead objects
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
queryReadAheadObjectsTask
ReadAheadQueryResult queryReadAheadObjectsTask(String bucketName, String taskId) throws ObsException Query the progress of a read-ahead task.- 参数:
bucketName- Bucket nametaskId- ID of the read-ahead task- 返回:
- Response to the request for querying the progress of the read-ahead task
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
setBucketDirectColdAccess
HeaderResponse setBucketDirectColdAccess(String bucketName, BucketDirectColdAccess access) throws ObsException Set the direct reading policy for Archive objects in a bucket.- 参数:
bucketName- Bucket nameaccess- Direct reading policy- 返回:
- Common response headers
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
setBucketDirectColdAccess
HeaderResponse setBucketDirectColdAccess(SetBucketDirectColdAccessRequest request) throws ObsException Configure the direct reading policy for Archive objects in a bucket.- 参数:
request- Request parameters- 返回:
- Common response headers
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails- 从以下版本开始:
- 3.20.3
-
getBucketDirectColdAccess
Obtain the direct reading policy for Archive objects in a bucket.- 参数:
bucketName- Bucket name- 返回:
- Direct reading policy for Archive objects of a bucket
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
getBucketDirectColdAccess
Obtain the direct reading policy for Archive objects in a bucket.- 参数:
request- Request parameters- 返回:
- Direct reading policy for Archive objects in a bucket
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails- 从以下版本开始:
- 3.20.3
-
deleteBucketDirectColdAccess
Delete the direct reading policy for Archive objects in a bucket.- 参数:
bucketName- Bucket name- 返回:
- Common response headers
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
deleteBucketDirectColdAccess
Delete the direct reading policy for Archive objects in a bucket.- 参数:
request- Request parameters- 返回:
- Common response headers
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails- 从以下版本开始:
- 3.20.3
-
setInventoryConfiguration
HeaderResponse setInventoryConfiguration(SetInventoryConfigurationRequest request) throws ObsException - 抛出:
ObsException
-
getInventoryConfiguration
GetInventoryConfigurationResult getInventoryConfiguration(GetInventoryConfigurationRequest request) throws ObsException - 抛出:
ObsException
-
listInventoryConfiguration
ListInventoryConfigurationResult listInventoryConfiguration(ListInventoryConfigurationRequest request) throws ObsException - 抛出:
ObsException
-
deleteInventoryConfiguration
HeaderResponse deleteInventoryConfiguration(DeleteInventoryConfigurationRequest request) throws ObsException - 抛出:
ObsException
-
close
Close ObsClient and release connection resources.- 抛出:
IOException- ObsClient close exception
-