Interface ObjectStorage
-
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
ObjectStorageClient
@Generated(value="OracleSDKGenerator", comments="API Version: 20160918") public interface ObjectStorage extends AutoCloseable
Use Object Storage and Archive Storage APIs to manage buckets, objects, and related resources.For more information, see Overview of Object Storage and Overview of Archive Storage.
This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by default if no circuit breaker configuration is defined by the user.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AbortMultipartUploadResponse
abortMultipartUpload(AbortMultipartUploadRequest request)
Aborts an in-progress multipart upload and deletes all parts that have been uploaded.CancelWorkRequestResponse
cancelWorkRequest(CancelWorkRequestRequest request)
Cancels a work request.CommitMultipartUploadResponse
commitMultipartUpload(CommitMultipartUploadRequest request)
Commits a multipart upload, which involves checking part numbers and entity tags (ETags) of the parts, to create an aggregate object.CopyObjectResponse
copyObject(CopyObjectRequest request)
Creates a request to copy an object within a region or to another region.CreateBucketResponse
createBucket(CreateBucketRequest request)
Creates a bucket in the given namespace with a bucket name and optional user-defined metadata.CreateMultipartUploadResponse
createMultipartUpload(CreateMultipartUploadRequest request)
Starts a new multipart upload to a specific object in the given bucket in the given namespace.CreatePreauthenticatedRequestResponse
createPreauthenticatedRequest(CreatePreauthenticatedRequestRequest request)
Creates a pre-authenticated request specific to the bucket.CreatePrivateEndpointResponse
createPrivateEndpoint(CreatePrivateEndpointRequest request)
Create a PrivateEndpoint.CreateReplicationPolicyResponse
createReplicationPolicy(CreateReplicationPolicyRequest request)
Creates a replication policy for the specified bucket.CreateRetentionRuleResponse
createRetentionRule(CreateRetentionRuleRequest request)
Creates a new retention rule in the specified bucket.DeleteBucketResponse
deleteBucket(DeleteBucketRequest request)
Deletes a bucket if the bucket is already empty.DeleteObjectResponse
deleteObject(DeleteObjectRequest request)
Deletes an object.DeleteObjectLifecyclePolicyResponse
deleteObjectLifecyclePolicy(DeleteObjectLifecyclePolicyRequest request)
Deletes the object lifecycle policy for the bucket.DeletePreauthenticatedRequestResponse
deletePreauthenticatedRequest(DeletePreauthenticatedRequestRequest request)
Deletes the pre-authenticated request for the bucket.DeletePrivateEndpointResponse
deletePrivateEndpoint(DeletePrivateEndpointRequest request)
Deletes a Private Endpoint if it exists in the given namespace.DeleteReplicationPolicyResponse
deleteReplicationPolicy(DeleteReplicationPolicyRequest request)
Deletes the replication policy associated with the source bucket.DeleteRetentionRuleResponse
deleteRetentionRule(DeleteRetentionRuleRequest request)
Deletes the specified rule.GetBucketResponse
getBucket(GetBucketRequest request)
Gets the current representation of the given bucket in the given Object Storage namespace.String
getEndpoint()
Gets the set endpoint for REST call (ex, https://www.example.com)GetNamespaceResponse
getNamespace(GetNamespaceRequest request)
Each Oracle Cloud Infrastructure tenant is assigned one unique and uneditable Object Storage namespace.GetNamespaceMetadataResponse
getNamespaceMetadata(GetNamespaceMetadataRequest request)
Gets the metadata for the Object Storage namespace, which contains defaultS3CompartmentId and defaultSwiftCompartmentId.GetObjectResponse
getObject(GetObjectRequest request)
Gets the metadata and body of an object.GetObjectLifecyclePolicyResponse
getObjectLifecyclePolicy(GetObjectLifecyclePolicyRequest request)
Gets the object lifecycle policy for the bucket.ObjectStoragePaginators
getPaginators()
Gets the pre-configured paginators available for list operations in this service which may return multiple pages of data.GetPreauthenticatedRequestResponse
getPreauthenticatedRequest(GetPreauthenticatedRequestRequest request)
Gets the pre-authenticated request for the bucket.GetPrivateEndpointResponse
getPrivateEndpoint(GetPrivateEndpointRequest request)
Gets the current representation of the given Private Endpoint in the given Object Storage namespace.GetReplicationPolicyResponse
getReplicationPolicy(GetReplicationPolicyRequest request)
Get the replication policy.GetRetentionRuleResponse
getRetentionRule(GetRetentionRuleRequest request)
Get the specified retention rule.ObjectStorageWaiters
getWaiters()
Gets the pre-configured waiters available for resources for this service.GetWorkRequestResponse
getWorkRequest(GetWorkRequestRequest request)
Gets the status of the work request for the given ID.HeadBucketResponse
headBucket(HeadBucketRequest request)
Efficiently checks to see if a bucket exists and gets the current entity tag (ETag) for the bucket.HeadObjectResponse
headObject(HeadObjectRequest request)
Gets the user-defined metadata and entity tag (ETag) for an object.ListBucketsResponse
listBuckets(ListBucketsRequest request)
Gets a list of all BucketSummary items in a compartment.ListMultipartUploadPartsResponse
listMultipartUploadParts(ListMultipartUploadPartsRequest request)
Lists the parts of an in-progress multipart upload.ListMultipartUploadsResponse
listMultipartUploads(ListMultipartUploadsRequest request)
Lists all of the in-progress multipart uploads for the given bucket in the given Object Storage namespace.ListObjectsResponse
listObjects(ListObjectsRequest request)
Lists the objects in a bucket.ListObjectVersionsResponse
listObjectVersions(ListObjectVersionsRequest request)
Lists the object versions in a bucket.ListPreauthenticatedRequestsResponse
listPreauthenticatedRequests(ListPreauthenticatedRequestsRequest request)
Lists pre-authenticated requests for the bucket.ListPrivateEndpointsResponse
listPrivateEndpoints(ListPrivateEndpointsRequest request)
Gets a list of all PrivateEndpointSummary in a compartment associated with a namespace.ListReplicationPoliciesResponse
listReplicationPolicies(ListReplicationPoliciesRequest request)
List the replication policies associated with a bucket.ListReplicationSourcesResponse
listReplicationSources(ListReplicationSourcesRequest request)
List the replication sources of a destination bucket.ListRetentionRulesResponse
listRetentionRules(ListRetentionRulesRequest request)
List the retention rules for a bucket.ListWorkRequestErrorsResponse
listWorkRequestErrors(ListWorkRequestErrorsRequest request)
Lists the errors of the work request with the given ID.ListWorkRequestLogsResponse
listWorkRequestLogs(ListWorkRequestLogsRequest request)
Lists the logs of the work request with the given ID.ListWorkRequestsResponse
listWorkRequests(ListWorkRequestsRequest request)
Lists the work requests in a compartment.MakeBucketWritableResponse
makeBucketWritable(MakeBucketWritableRequest request)
Stops replication to the destination bucket and removes the replication policy.PutObjectResponse
putObject(PutObjectRequest request)
Creates a new object or overwrites an existing object with the same name.PutObjectLifecyclePolicyResponse
putObjectLifecyclePolicy(PutObjectLifecyclePolicyRequest request)
Creates or replaces the object lifecycle policy for the bucket.ReencryptBucketResponse
reencryptBucket(ReencryptBucketRequest request)
Re-encrypts the unique data encryption key that encrypts each object written to the bucket by using the most recent version of the master encryption key assigned to the bucket.ReencryptObjectResponse
reencryptObject(ReencryptObjectRequest request)
Re-encrypts the data encryption keys that encrypt the object and its chunks.void
refreshClient()
Rebuilds the client from scratch.RenameObjectResponse
renameObject(RenameObjectRequest request)
Rename an object in the given Object Storage namespace.RestoreObjectsResponse
restoreObjects(RestoreObjectsRequest request)
Restores the object specified by the objectName parameter.void
setEndpoint(String endpoint)
Sets the endpoint to call (ex, https://www.example.com).void
setRegion(Region region)
Sets the region to call (ex, Region.US_PHOENIX_1).void
setRegion(String regionId)
Sets the region to call (ex, ‘us-phoenix-1’).UpdateBucketResponse
updateBucket(UpdateBucketRequest request)
Performs a partial or full update of a bucket’s user-defined metadata.UpdateNamespaceMetadataResponse
updateNamespaceMetadata(UpdateNamespaceMetadataRequest request)
By default, buckets created using the Amazon S3 Compatibility API or the Swift API are created in the root compartment of the Oracle Cloud Infrastructure tenancy.UpdateObjectStorageTierResponse
updateObjectStorageTier(UpdateObjectStorageTierRequest request)
Changes the storage tier of the object specified by the objectName parameter.UpdatePrivateEndpointResponse
updatePrivateEndpoint(UpdatePrivateEndpointRequest request)
Performs a partial or full update of a user-defined data associated with the Private Endpoint.UpdateRetentionRuleResponse
updateRetentionRule(UpdateRetentionRuleRequest request)
Updates the specified retention rule.UploadPartResponse
uploadPart(UploadPartRequest request)
Uploads a single part of a multipart upload.void
useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled)
Determines whether realm specific endpoint should be used or not.-
Methods inherited from interface java.lang.AutoCloseable
close
-
-
-
-
Method Detail
-
refreshClient
void refreshClient()
Rebuilds the client from scratch.Useful to refresh certificates.
-
setEndpoint
void setEndpoint(String endpoint)
Sets the endpoint to call (ex, https://www.example.com).- Parameters:
endpoint
- The endpoint of the service.
-
getEndpoint
String getEndpoint()
Gets the set endpoint for REST call (ex, https://www.example.com)
-
setRegion
void setRegion(Region region)
Sets the region to call (ex, Region.US_PHOENIX_1).Note, this will call
setEndpoint
after resolving the endpoint. If the service is not available in this Region, however, an IllegalArgumentException will be raised.- Parameters:
region
- The region of the service.
-
setRegion
void setRegion(String regionId)
Sets the region to call (ex, ‘us-phoenix-1’).Note, this will first try to map the region ID to a known Region and call
setRegion
.If no known Region could be determined, it will create an endpoint based on the default endpoint format (
Region.formatDefaultRegionEndpoint(Service, String)
and then callsetEndpoint
.- Parameters:
regionId
- The public region ID.
-
useRealmSpecificEndpointTemplate
void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled)
Determines whether realm specific endpoint should be used or not.Set realmSpecificEndpointTemplateEnabled to “true” if the user wants to enable use of realm specific endpoint template, otherwise set it to “false”
- Parameters:
realmSpecificEndpointTemplateEnabled
- flag to enable the use of realm specific endpoint template
-
abortMultipartUpload
AbortMultipartUploadResponse abortMultipartUpload(AbortMultipartUploadRequest request)
Aborts an in-progress multipart upload and deletes all parts that have been uploaded.- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException
- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.63.0/objectstorage/AbortMultipartUploadExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use AbortMultipartUpload API.
-
cancelWorkRequest
CancelWorkRequestResponse cancelWorkRequest(CancelWorkRequestRequest request)
Cancels a work request.- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException
- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.63.0/objectstorage/CancelWorkRequestExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use CancelWorkRequest API.
-
commitMultipartUpload
CommitMultipartUploadResponse commitMultipartUpload(CommitMultipartUploadRequest request)
Commits a multipart upload, which involves checking part numbers and entity tags (ETags) of the parts, to create an aggregate object.- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException
- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.63.0/objectstorage/CommitMultipartUploadExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use CommitMultipartUpload API.
-
copyObject
CopyObjectResponse copyObject(CopyObjectRequest request)
Creates a request to copy an object within a region or to another region.See [Object Names](https://docs.oracle.com/iaas/Content/Object/Tasks/managingobjects.htm#namerequirements) for object naming requirements.
- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException
- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.63.0/objectstorage/CopyObjectExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use CopyObject API.
-
createBucket
CreateBucketResponse createBucket(CreateBucketRequest request)
Creates a bucket in the given namespace with a bucket name and optional user-defined metadata.Avoid entering confidential information in bucket names.
- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException
- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.63.0/objectstorage/CreateBucketExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use CreateBucket API.
-
createMultipartUpload
CreateMultipartUploadResponse createMultipartUpload(CreateMultipartUploadRequest request)
Starts a new multipart upload to a specific object in the given bucket in the given namespace.See [Object Names](https://docs.oracle.com/iaas/Content/Object/Tasks/managingobjects.htm#namerequirements) for object naming requirements.
- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException
- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.63.0/objectstorage/CreateMultipartUploadExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use CreateMultipartUpload API.
-
createPreauthenticatedRequest
CreatePreauthenticatedRequestResponse createPreauthenticatedRequest(CreatePreauthenticatedRequestRequest request)
Creates a pre-authenticated request specific to the bucket.- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException
- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.63.0/objectstorage/CreatePreauthenticatedRequestExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use CreatePreauthenticatedRequest API.
-
createPrivateEndpoint
CreatePrivateEndpointResponse createPrivateEndpoint(CreatePrivateEndpointRequest request)
Create a PrivateEndpoint.- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException
- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.63.0/objectstorage/CreatePrivateEndpointExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use CreatePrivateEndpoint API.
-
createReplicationPolicy
CreateReplicationPolicyResponse createReplicationPolicy(CreateReplicationPolicyRequest request)
Creates a replication policy for the specified bucket.- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException
- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.63.0/objectstorage/CreateReplicationPolicyExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use CreateReplicationPolicy API.
-
createRetentionRule
CreateRetentionRuleResponse createRetentionRule(CreateRetentionRuleRequest request)
Creates a new retention rule in the specified bucket.The new rule will take effect typically within 30 seconds. Note that a maximum of 100 rules are supported on a bucket.
- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException
- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.63.0/objectstorage/CreateRetentionRuleExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use CreateRetentionRule API.
-
deleteBucket
DeleteBucketResponse deleteBucket(DeleteBucketRequest request)
Deletes a bucket if the bucket is already empty.If the bucket is not empty, use
deleteObject
first. In addition, you cannot delete a bucket that has a multipart upload in progress or a pre-authenticated request associated with that bucket.- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException
- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.63.0/objectstorage/DeleteBucketExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use DeleteBucket API.
-
deleteObject
DeleteObjectResponse deleteObject(DeleteObjectRequest request)
Deletes an object.- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException
- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.63.0/objectstorage/DeleteObjectExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use DeleteObject API.
-
deleteObjectLifecyclePolicy
DeleteObjectLifecyclePolicyResponse deleteObjectLifecyclePolicy(DeleteObjectLifecyclePolicyRequest request)
Deletes the object lifecycle policy for the bucket.- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException
- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.63.0/objectstorage/DeleteObjectLifecyclePolicyExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use DeleteObjectLifecyclePolicy API.
-
deletePreauthenticatedRequest
DeletePreauthenticatedRequestResponse deletePreauthenticatedRequest(DeletePreauthenticatedRequestRequest request)
Deletes the pre-authenticated request for the bucket.- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException
- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.63.0/objectstorage/DeletePreauthenticatedRequestExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use DeletePreauthenticatedRequest API.
-
deletePrivateEndpoint
DeletePrivateEndpointResponse deletePrivateEndpoint(DeletePrivateEndpointRequest request)
Deletes a Private Endpoint if it exists in the given namespace.- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException
- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.63.0/objectstorage/DeletePrivateEndpointExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use DeletePrivateEndpoint API.
-
deleteReplicationPolicy
DeleteReplicationPolicyResponse deleteReplicationPolicy(DeleteReplicationPolicyRequest request)
Deletes the replication policy associated with the source bucket.- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException
- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.63.0/objectstorage/DeleteReplicationPolicyExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use DeleteReplicationPolicy API.
-
deleteRetentionRule
DeleteRetentionRuleResponse deleteRetentionRule(DeleteRetentionRuleRequest request)
Deletes the specified rule.The deletion takes effect typically within 30 seconds.
- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException
- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.63.0/objectstorage/DeleteRetentionRuleExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use DeleteRetentionRule API.
-
getBucket
GetBucketResponse getBucket(GetBucketRequest request)
Gets the current representation of the given bucket in the given Object Storage namespace.- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException
- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.63.0/objectstorage/GetBucketExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use GetBucket API.
-
getNamespace
GetNamespaceResponse getNamespace(GetNamespaceRequest request)
Each Oracle Cloud Infrastructure tenant is assigned one unique and uneditable Object Storage namespace.The namespace is a system-generated string assigned during account creation. For some older tenancies, the namespace string may be the tenancy name in all lower-case letters. You cannot edit a namespace.
GetNamespace returns the name of the Object Storage namespace for the user making the request. If an optional compartmentId query parameter is provided, GetNamespace returns the namespace name of the corresponding tenancy, provided the user has access to it.
- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException
- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.63.0/objectstorage/GetNamespaceExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use GetNamespace API.
-
getNamespaceMetadata
GetNamespaceMetadataResponse getNamespaceMetadata(GetNamespaceMetadataRequest request)
Gets the metadata for the Object Storage namespace, which contains defaultS3CompartmentId and defaultSwiftCompartmentId.Any user with the OBJECTSTORAGE_NAMESPACE_READ permission will be able to see the current metadata. If you are not authorized, talk to an administrator. If you are an administrator who needs to write policies to give users access, see [Getting Started with Policies](https://docs.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm).
- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException
- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.63.0/objectstorage/GetNamespaceMetadataExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use GetNamespaceMetadata API.
-
getObject
GetObjectResponse getObject(GetObjectRequest request)
Gets the metadata and body of an object.- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException
- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.63.0/objectstorage/GetObjectExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use GetObject API.
-
getObjectLifecyclePolicy
GetObjectLifecyclePolicyResponse getObjectLifecyclePolicy(GetObjectLifecyclePolicyRequest request)
Gets the object lifecycle policy for the bucket.- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException
- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.63.0/objectstorage/GetObjectLifecyclePolicyExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use GetObjectLifecyclePolicy API.
-
getPreauthenticatedRequest
GetPreauthenticatedRequestResponse getPreauthenticatedRequest(GetPreauthenticatedRequestRequest request)
Gets the pre-authenticated request for the bucket.- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException
- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.63.0/objectstorage/GetPreauthenticatedRequestExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use GetPreauthenticatedRequest API.
-
getPrivateEndpoint
GetPrivateEndpointResponse getPrivateEndpoint(GetPrivateEndpointRequest request)
Gets the current representation of the given Private Endpoint in the given Object Storage namespace.- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException
- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.63.0/objectstorage/GetPrivateEndpointExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use GetPrivateEndpoint API.
-
getReplicationPolicy
GetReplicationPolicyResponse getReplicationPolicy(GetReplicationPolicyRequest request)
Get the replication policy.- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException
- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.63.0/objectstorage/GetReplicationPolicyExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use GetReplicationPolicy API.
-
getRetentionRule
GetRetentionRuleResponse getRetentionRule(GetRetentionRuleRequest request)
Get the specified retention rule.- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException
- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.63.0/objectstorage/GetRetentionRuleExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use GetRetentionRule API.
-
getWorkRequest
GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request)
Gets the status of the work request for the given ID.- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException
- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.63.0/objectstorage/GetWorkRequestExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use GetWorkRequest API.
-
headBucket
HeadBucketResponse headBucket(HeadBucketRequest request)
Efficiently checks to see if a bucket exists and gets the current entity tag (ETag) for the bucket.- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException
- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.63.0/objectstorage/HeadBucketExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use HeadBucket API.
-
headObject
HeadObjectResponse headObject(HeadObjectRequest request)
Gets the user-defined metadata and entity tag (ETag) for an object.- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException
- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.63.0/objectstorage/HeadObjectExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use HeadObject API.
-
listBuckets
ListBucketsResponse listBuckets(ListBucketsRequest request)
Gets a list of all BucketSummary items in a compartment.A BucketSummary contains only summary fields for the bucket and does not contain fields like the user-defined metadata.
ListBuckets returns a BucketSummary containing at most 1000 buckets. To paginate through more buckets, use the returned `opc-next-page` value with the `page` request parameter.
To use this and other API operations, you must be authorized in an IAM policy. If you are not authorized, talk to an administrator. If you are an administrator who needs to write policies to give users access, see [Getting Started with Policies](https://docs.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm).
- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException
- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.63.0/objectstorage/ListBucketsExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use ListBuckets API.
-
listMultipartUploadParts
ListMultipartUploadPartsResponse listMultipartUploadParts(ListMultipartUploadPartsRequest request)
Lists the parts of an in-progress multipart upload.- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException
- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.63.0/objectstorage/ListMultipartUploadPartsExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use ListMultipartUploadParts API.
-
listMultipartUploads
ListMultipartUploadsResponse listMultipartUploads(ListMultipartUploadsRequest request)
Lists all of the in-progress multipart uploads for the given bucket in the given Object Storage namespace.- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException
- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.63.0/objectstorage/ListMultipartUploadsExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use ListMultipartUploads API.
-
listObjectVersions
ListObjectVersionsResponse listObjectVersions(ListObjectVersionsRequest request)
Lists the object versions in a bucket.ListObjectVersions returns an ObjectVersionCollection containing at most 1000 object versions. To paginate through more object versions, use the returned `opc-next-page` value with the `page` request parameter.
To use this and other API operations, you must be authorized in an IAM policy. If you are not authorized, talk to an administrator. If you are an administrator who needs to write policies to give users access, see [Getting Started with Policies](https://docs.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm).
- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException
- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.63.0/objectstorage/ListObjectVersionsExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use ListObjectVersions API.
-
listObjects
ListObjectsResponse listObjects(ListObjectsRequest request)
Lists the objects in a bucket.By default, ListObjects returns object names only. See the
fields
parameter for other fields that you can optionally include in ListObjects response.ListObjects returns at most 1000 objects. To paginate through more objects, use the returned 'nextStartWith' value with the 'start' parameter. To filter which objects ListObjects returns, use the 'start' and 'end' parameters.
To use this and other API operations, you must be authorized in an IAM policy. If you are not authorized, talk to an administrator. If you are an administrator who needs to write policies to give users access, see [Getting Started with Policies](https://docs.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm).
- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException
- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.63.0/objectstorage/ListObjectsExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use ListObjects API.
-
listPreauthenticatedRequests
ListPreauthenticatedRequestsResponse listPreauthenticatedRequests(ListPreauthenticatedRequestsRequest request)
Lists pre-authenticated requests for the bucket.- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException
- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.63.0/objectstorage/ListPreauthenticatedRequestsExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use ListPreauthenticatedRequests API.
-
listPrivateEndpoints
ListPrivateEndpointsResponse listPrivateEndpoints(ListPrivateEndpointsRequest request)
Gets a list of all PrivateEndpointSummary in a compartment associated with a namespace.To use this and other API operations, you must be authorized in an IAM policy. If you are not authorized, talk to an administrator. If you are an administrator who needs to write policies to give users access, see Getting Started with Policies.
- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException
- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.63.0/objectstorage/ListPrivateEndpointsExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use ListPrivateEndpoints API.
-
listReplicationPolicies
ListReplicationPoliciesResponse listReplicationPolicies(ListReplicationPoliciesRequest request)
List the replication policies associated with a bucket.- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException
- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.63.0/objectstorage/ListReplicationPoliciesExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use ListReplicationPolicies API.
-
listReplicationSources
ListReplicationSourcesResponse listReplicationSources(ListReplicationSourcesRequest request)
List the replication sources of a destination bucket.- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException
- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.63.0/objectstorage/ListReplicationSourcesExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use ListReplicationSources API.
-
listRetentionRules
ListRetentionRulesResponse listRetentionRules(ListRetentionRulesRequest request)
List the retention rules for a bucket.The retention rules are sorted based on creation time, with the most recently created retention rule returned first.
- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException
- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.63.0/objectstorage/ListRetentionRulesExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use ListRetentionRules API.
-
listWorkRequestErrors
ListWorkRequestErrorsResponse listWorkRequestErrors(ListWorkRequestErrorsRequest request)
Lists the errors of the work request with the given ID.- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException
- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.63.0/objectstorage/ListWorkRequestErrorsExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use ListWorkRequestErrors API.
-
listWorkRequestLogs
ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsRequest request)
Lists the logs of the work request with the given ID.- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException
- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.63.0/objectstorage/ListWorkRequestLogsExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use ListWorkRequestLogs API.
-
listWorkRequests
ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request)
Lists the work requests in a compartment.- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException
- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.63.0/objectstorage/ListWorkRequestsExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use ListWorkRequests API.
-
makeBucketWritable
MakeBucketWritableResponse makeBucketWritable(MakeBucketWritableRequest request)
Stops replication to the destination bucket and removes the replication policy.When the replication policy was created, this destination bucket became read-only except for new and changed objects replicated automatically from the source bucket. MakeBucketWritable removes the replication policy. This bucket is no longer the target for replication and is now writable, allowing users to make changes to bucket contents.
- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException
- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.63.0/objectstorage/MakeBucketWritableExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use MakeBucketWritable API.
-
putObject
PutObjectResponse putObject(PutObjectRequest request)
Creates a new object or overwrites an existing object with the same name.The maximum object size allowed by PutObject is 50 GiB.
See [Object Names](https://docs.oracle.com/iaas/Content/Object/Tasks/managingobjects.htm#namerequirements) for object naming requirements.
See [Special Instructions for Object Storage PUT](https://docs.oracle.com/iaas/Content/API/Concepts/signingrequests.htm#ObjectStoragePut) for request signature requirements.
Note: This operation consumes a stream.
If the stream supports
InputStream.mark(int)
andInputStream.reset()
, when a retry is necessary, the stream is reset so it starts at the beginning (or whatever the stream's position was at the time this operation is called}.Note this means that if the caller has used
InputStream.mark(int)
before, then the mark will not be the same anymore after this operation, and a subsequent call toInputStream.reset()
by the caller will reset the stream not to the caller's mark, but to the position the stream was in when this operation was called.If the stream is a
FileInputStream
, and the stream'sFileChannel
position can be changed (like for a regular file), the stream will be wrapped in such a way that it does provide support forInputStream.mark(int)
andInputStream.reset()
. Then the same procedure as above is followed. If the stream'sFileChannel
position cannot be changed (like for a named pipe), then the stream's contents will be buffered in memory, as described below.If the stream does not support
InputStream.mark(int)
andInputStream.reset()
, then the stream is wrapped in aBufferedInputStream
, which means the entire contents may be buffered in memory. Then the same procedure as above is followed.The contents of the stream, except when the stream is a
FileInputStream
whoseFileChannel
position can be changed, should be less than 2 GiB in size if retries are used. This is because streams 2 GiB in size or larger do no guarantee that mark-and-reset can be performed. If the stream is larger, do not use built-in retries and manage retries yourself.- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException
- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.63.0/objectstorage/PutObjectExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use PutObject API.
-
putObjectLifecyclePolicy
PutObjectLifecyclePolicyResponse putObjectLifecyclePolicy(PutObjectLifecyclePolicyRequest request)
Creates or replaces the object lifecycle policy for the bucket.- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException
- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.63.0/objectstorage/PutObjectLifecyclePolicyExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use PutObjectLifecyclePolicy API.
-
reencryptBucket
ReencryptBucketResponse reencryptBucket(ReencryptBucketRequest request)
Re-encrypts the unique data encryption key that encrypts each object written to the bucket by using the most recent version of the master encryption key assigned to the bucket.(All data encryption keys are encrypted by a master encryption key. Master encryption keys are assigned to buckets and managed by Oracle by default, but you can assign a key that you created and control through the Oracle Cloud Infrastructure Key Management service.) The kmsKeyId property of the bucket determines which master encryption key is assigned to the bucket. If you assigned a different Key Management master encryption key to the bucket, you can call this API to re-encrypt all data encryption keys with the newly assigned key. Similarly, you might want to re-encrypt all data encryption keys if the assigned key has been rotated to a new key version since objects were last added to the bucket. If you call this API and there is no kmsKeyId associated with the bucket, the call will fail.
Calling this API starts a work request task to re-encrypt the data encryption key of all objects in the bucket. Only objects created before the time of the API call will be re-encrypted. The call can take a long time, depending on how many objects are in the bucket and how big they are. This API returns a work request ID that you can use to retrieve the status of the work request task. All the versions of objects will be re-encrypted whether versioning is enabled or suspended at the bucket.
- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException
- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.63.0/objectstorage/ReencryptBucketExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use ReencryptBucket API.
-
reencryptObject
ReencryptObjectResponse reencryptObject(ReencryptObjectRequest request)
Re-encrypts the data encryption keys that encrypt the object and its chunks.By default, when you create a bucket, the Object Storage service manages the master encryption key used to encrypt each object’s data encryption keys. The encryption mechanism that you specify for the bucket applies to the objects it contains.
You can alternatively employ one of these encryption strategies for an object:
- You can assign a key that you created and control through the Oracle Cloud Infrastructure Vault service.
- You can encrypt an object using your own encryption key. The key you supply is known as a customer-provided encryption key (SSE-C).
- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException
- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.63.0/objectstorage/ReencryptObjectExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use ReencryptObject API.
-
renameObject
RenameObjectResponse renameObject(RenameObjectRequest request)
Rename an object in the given Object Storage namespace.See [Object Names](https://docs.oracle.com/iaas/Content/Object/Tasks/managingobjects.htm#namerequirements) for object naming requirements.
- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException
- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.63.0/objectstorage/RenameObjectExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use RenameObject API.
-
restoreObjects
RestoreObjectsResponse restoreObjects(RestoreObjectsRequest request)
Restores the object specified by the objectName parameter.By default object will be restored for 24 hours. Duration can be configured using the hours parameter.
- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException
- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.63.0/objectstorage/RestoreObjectsExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use RestoreObjects API.
-
updateBucket
UpdateBucketResponse updateBucket(UpdateBucketRequest request)
Performs a partial or full update of a bucket’s user-defined metadata.Use UpdateBucket to move a bucket from one compartment to another within the same tenancy. Supply the compartmentID of the compartment that you want to move the bucket to. For more information about moving resources between compartments, see [Moving Resources to a Different Compartment](https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes).
- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException
- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.63.0/objectstorage/UpdateBucketExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use UpdateBucket API.
-
updateNamespaceMetadata
UpdateNamespaceMetadataResponse updateNamespaceMetadata(UpdateNamespaceMetadataRequest request)
By default, buckets created using the Amazon S3 Compatibility API or the Swift API are created in the root compartment of the Oracle Cloud Infrastructure tenancy.You can change the default Swift/Amazon S3 compartmentId designation to a different compartmentId. All subsequent bucket creations will use the new default compartment, but no previously created buckets will be modified. A user must have OBJECTSTORAGE_NAMESPACE_UPDATE permission to make changes to the default compartments for Amazon S3 and Swift.
- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException
- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.63.0/objectstorage/UpdateNamespaceMetadataExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use UpdateNamespaceMetadata API.
-
updateObjectStorageTier
UpdateObjectStorageTierResponse updateObjectStorageTier(UpdateObjectStorageTierRequest request)
Changes the storage tier of the object specified by the objectName parameter.- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException
- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.63.0/objectstorage/UpdateObjectStorageTierExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use UpdateObjectStorageTier API.
-
updatePrivateEndpoint
UpdatePrivateEndpointResponse updatePrivateEndpoint(UpdatePrivateEndpointRequest request)
Performs a partial or full update of a user-defined data associated with the Private Endpoint.Use UpdatePrivateEndpoint to move a Private Endpoint from one compartment to another within the same tenancy. Supply the compartmentID of the compartment that you want to move the Private Endpoint to. Or use it to update the name, subnetId, endpointFqdn or privateEndpointIp or accessTargets of the Private Endpoint. For more information about moving resources between compartments, see [Moving Resources to a Different Compartment](https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes).
This API follows replace semantics (rather than merge semantics). That means if the body provides values for parameters and the resource has exisiting ones, this operation will replace those existing values.
- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException
- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.63.0/objectstorage/UpdatePrivateEndpointExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use UpdatePrivateEndpoint API.
-
updateRetentionRule
UpdateRetentionRuleResponse updateRetentionRule(UpdateRetentionRuleRequest request)
Updates the specified retention rule.Rule changes take effect typically within 30 seconds.
- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException
- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.63.0/objectstorage/UpdateRetentionRuleExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use UpdateRetentionRule API.
-
uploadPart
UploadPartResponse uploadPart(UploadPartRequest request)
Uploads a single part of a multipart upload.Note: This operation consumes a stream.
If the stream supports
InputStream.mark(int)
andInputStream.reset()
, when a retry is necessary, the stream is reset so it starts at the beginning (or whatever the stream's position was at the time this operation is called}.Note this means that if the caller has used
InputStream.mark(int)
before, then the mark will not be the same anymore after this operation, and a subsequent call toInputStream.reset()
by the caller will reset the stream not to the caller's mark, but to the position the stream was in when this operation was called.If the stream is a
FileInputStream
, and the stream'sFileChannel
position can be changed (like for a regular file), the stream will be wrapped in such a way that it does provide support forInputStream.mark(int)
andInputStream.reset()
. Then the same procedure as above is followed. If the stream'sFileChannel
position cannot be changed (like for a named pipe), then the stream's contents will be buffered in memory, as described below.If the stream does not support
InputStream.mark(int)
andInputStream.reset()
, then the stream is wrapped in aBufferedInputStream
, which means the entire contents may be buffered in memory. Then the same procedure as above is followed.The contents of the stream, except when the stream is a
FileInputStream
whoseFileChannel
position can be changed, should be less than 2 GiB in size if retries are used. This is because streams 2 GiB in size or larger do no guarantee that mark-and-reset can be performed. If the stream is larger, do not use built-in retries and manage retries yourself.- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException
- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.63.0/objectstorage/UploadPartExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use UploadPart API.
-
getWaiters
ObjectStorageWaiters getWaiters()
Gets the pre-configured waiters available for resources for this service.- Returns:
- The service waiters.
-
getPaginators
ObjectStoragePaginators getPaginators()
Gets the pre-configured paginators available for list operations in this service which may return multiple pages of data.These paginators provide an
Iterable
interface so that service responses, or resources/records, can be iterated through without having to manually deal with pagination and page tokens.- Returns:
- The service paginators.
-
-