Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ObjectStorageClient

This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.

Hierarchy

  • ObjectStorageClient

Constructors

Properties

Accessors

Methods

Object literals

Constructors

constructor

  • new ObjectStorageClient(params: common.AuthParams, clientConfiguration?: common.ClientConfiguration): ObjectStorageClient

Properties

Protected _bodyDuplexMode

_bodyDuplexMode: any = undefined

Protected _circuitBreaker

_circuitBreaker: typeof Breaker | null = null

Protected _clientConfiguration

_clientConfiguration: ClientConfiguration

Protected _defaultHeaders

_defaultHeaders: any

Protected _endpoint

_endpoint: string = ""

Protected _httpClient

_httpClient: HttpClient

Protected _httpOptions

_httpOptions: any = undefined

Protected _lastSetRegionOrRegionId

_lastSetRegionOrRegionId: string = ""

Protected _realmSpecificEndpointTemplateEnabled

_realmSpecificEndpointTemplateEnabled: boolean | undefined = undefined

Protected _region

_region: Region

Protected _regionId

_regionId: string = ""

Protected _waiters

targetService

targetService: string = "ObjectStorage"

Static Protected endpointServiceName

endpointServiceName: string = "objectstorage"

Static Protected serviceEndpointTemplate

serviceEndpointTemplate: string = "https://objectstorage.{region}.{secondLevelDomain}"

Accessors

endpoint

  • get endpoint(): string
  • set endpoint(endpoint: string): void

logger

region

  • set region(region: Region): void
  • Sets the region to call (ex, Region.US_PHOENIX_1). Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.

    Parameters

    • region: Region

      The region of the service.

    Returns void

regionId

  • set regionId(regionId: string): void
  • Sets the regionId to call (ex, 'us-phoenix-1').

    Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}. If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1 and then call {@link #endpoint(String) endpoint}.

    Parameters

    • regionId: string

      The public region ID.

    Returns void

useRealmSpecificEndpointTemplate

  • set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled: boolean): void
  • 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: boolean

      flag to enable the use of realm specific endpoint template

    Returns void

Methods

abortMultipartUpload

  • Aborts an in-progress multipart upload and deletes all parts that have been uploaded.

    This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.

    throws

    OciError when an error occurs

    example

    Click here to see how to use AbortMultipartUpload API.

    Parameters

    Returns Promise<AbortMultipartUploadResponse>

    AbortMultipartUploadResponse

cancelWorkRequest

close

  • close(): void

commitMultipartUpload

  • Commits a multipart upload, which involves checking part numbers and entity tags (ETags) of the parts, to create an aggregate object.

    This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.

    throws

    OciError when an error occurs

    example

    Click here to see how to use CommitMultipartUpload API.

    Parameters

    Returns Promise<CommitMultipartUploadResponse>

    CommitMultipartUploadResponse

copyObject

  • Creates a request to copy an object within a region or to another region.

    See [Object Names](https://docs.cloud.oracle.com/Content/Object/Tasks/managingobjects.htm#namerequirements) for object naming requirements.

    This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.

    throws

    OciError when an error occurs

    example

    Click here to see how to use CopyObject API.

    Parameters

    Returns Promise<CopyObjectResponse>

    CopyObjectResponse

createBucket

  • Creates a bucket in the given namespace with a bucket name and optional user-defined metadata. Avoid entering confidential information in bucket names.

    This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.

    throws

    OciError when an error occurs

    example

    Click here to see how to use CreateBucket API.

    Parameters

    Returns Promise<CreateBucketResponse>

    CreateBucketResponse

createMultipartUpload

  • Starts a new multipart upload to a specific object in the given bucket in the given namespace.

    See [Object Names](https://docs.cloud.oracle.com/Content/Object/Tasks/managingobjects.htm#namerequirements) for object naming requirements.

    This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.

    throws

    OciError when an error occurs

    example

    Click here to see how to use CreateMultipartUpload API.

    Parameters

    Returns Promise<CreateMultipartUploadResponse>

    CreateMultipartUploadResponse

createPreauthenticatedRequest

createReplicationPolicy

createRetentionRule

  • 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.

    This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.

    throws

    OciError when an error occurs

    example

    Click here to see how to use CreateRetentionRule API.

    Parameters

    Returns Promise<CreateRetentionRuleResponse>

    CreateRetentionRuleResponse

createWaiters

deleteBucket

  • Deletes a bucket if the bucket is already empty. If the bucket is not empty, use {@link #deleteObject(DeleteObjectRequest) 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.

    This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.

    throws

    OciError when an error occurs

    example

    Click here to see how to use DeleteBucket API.

    Parameters

    Returns Promise<DeleteBucketResponse>

    DeleteBucketResponse

deleteObject

deleteObjectLifecyclePolicy

deletePreauthenticatedRequest

deleteReplicationPolicy

deleteRetentionRule

  • Deletes the specified rule. The deletion takes effect typically within 30 seconds. This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.

    throws

    OciError when an error occurs

    example

    Click here to see how to use DeleteRetentionRule API.

    Parameters

    Returns Promise<DeleteRetentionRuleResponse>

    DeleteRetentionRuleResponse

getBucket

  • Gets the current representation of the given bucket in the given Object Storage namespace.

    This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.

    throws

    OciError when an error occurs

    example

    Click here to see how to use GetBucket API.

    Parameters

    Returns Promise<GetBucketResponse>

    GetBucketResponse

getNamespace

  • 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.

    This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.

    throws

    OciError when an error occurs

    example

    Click here to see how to use GetNamespace API.

    Parameters

    Returns Promise<GetNamespaceResponse>

    GetNamespaceResponse

getNamespaceMetadata

  • 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.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm).

    This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.

    throws

    OciError when an error occurs

    example

    Click here to see how to use GetNamespaceMetadata API.

    Parameters

    Returns Promise<GetNamespaceMetadataResponse>

    GetNamespaceMetadataResponse

getObject

  • Gets the metadata and body of an object.

    This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.

    throws

    OciError when an error occurs

    example

    Click here to see how to use GetObject API.

    Parameters

    Returns Promise<GetObjectResponse>

    GetObjectResponse

getObjectLifecyclePolicy

getPreauthenticatedRequest

getReplicationPolicy

getRetentionRule

getWaiters

getWorkRequest

  • Gets the status of the work request for the given ID. This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.

    throws

    OciError when an error occurs

    example

    Click here to see how to use GetWorkRequest API.

    Parameters

    Returns Promise<GetWorkRequestResponse>

    GetWorkRequestResponse

headBucket

  • Efficiently checks to see if a bucket exists and gets the current entity tag (ETag) for the bucket.

    This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.

    throws

    OciError when an error occurs

    example

    Click here to see how to use HeadBucket API.

    Parameters

    Returns Promise<HeadBucketResponse>

    HeadBucketResponse

headObject

  • Gets the user-defined metadata and entity tag (ETag) for an object.

    This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.

    throws

    OciError when an error occurs

    example

    Click here to see how to use HeadObject API.

    Parameters

    Returns Promise<HeadObjectResponse>

    HeadObjectResponse

listAllBuckets

  • NOTE: This function is deprecated in favor of listBucketsRecordIterator function. Creates a new async iterator which will iterate over the models.BucketSummary objects contained in responses from the listBuckets operation. This iterator will fetch more data from the server as needed.

    Parameters

    Returns AsyncIterableIterator<BucketSummary>

listAllBucketsResponses

  • NOTE: This function is deprecated in favor of listBucketsResponseIterator function. Creates a new async iterator which will iterate over the responses received from the listBuckets operation. This iterator will fetch more data from the server as needed.

    Parameters

    Returns AsyncIterableIterator<ListBucketsResponse>

listAllMultipartUploadParts

  • NOTE: This function is deprecated in favor of listMultipartUploadPartsRecordIterator function. Creates a new async iterator which will iterate over the models.MultipartUploadPartSummary objects contained in responses from the listMultipartUploadParts operation. This iterator will fetch more data from the server as needed.

    Parameters

    Returns AsyncIterableIterator<MultipartUploadPartSummary>

listAllMultipartUploadPartsResponses

listAllMultipartUploads

  • NOTE: This function is deprecated in favor of listMultipartUploadsRecordIterator function. Creates a new async iterator which will iterate over the models.MultipartUpload objects contained in responses from the listMultipartUploads operation. This iterator will fetch more data from the server as needed.

    Parameters

    Returns AsyncIterableIterator<MultipartUpload>

listAllMultipartUploadsResponses

  • NOTE: This function is deprecated in favor of listMultipartUploadsResponseIterator function. Creates a new async iterator which will iterate over the responses received from the listMultipartUploads operation. This iterator will fetch more data from the server as needed.

    Parameters

    Returns AsyncIterableIterator<ListMultipartUploadsResponse>

listAllObjects

  • NOTE: This function is deprecated in favor of listObjectsRecordIterator function. Creates a new async iterator which will iterate over the models.ObjectSummary objects contained in responses from the listObjects operation. This iterator will fetch more data from the server as needed.

    Parameters

    Returns AsyncIterableIterator<ObjectSummary>

listAllObjectsResponses

  • NOTE: This function is deprecated in favor of listObjectsResponseIterator function. Creates a new async iterator which will iterate over the responses received from the listObjects operation. This iterator will fetch more data from the server as needed.

    Parameters

    Returns AsyncIterableIterator<ListObjectsResponse>

listAllPreauthenticatedRequests

  • NOTE: This function is deprecated in favor of listPreauthenticatedRequestsRecordIterator function. Creates a new async iterator which will iterate over the models.PreauthenticatedRequestSummary objects contained in responses from the listPreauthenticatedRequests operation. This iterator will fetch more data from the server as needed.

    Parameters

    Returns AsyncIterableIterator<PreauthenticatedRequestSummary>

listAllPreauthenticatedRequestsResponses

listAllReplicationPolicies

  • NOTE: This function is deprecated in favor of listReplicationPoliciesRecordIterator function. Creates a new async iterator which will iterate over the models.ReplicationPolicySummary objects contained in responses from the listReplicationPolicies operation. This iterator will fetch more data from the server as needed.

    Parameters

    Returns AsyncIterableIterator<ReplicationPolicySummary>

listAllReplicationPoliciesResponses

listAllReplicationSources

  • NOTE: This function is deprecated in favor of listReplicationSourcesRecordIterator function. Creates a new async iterator which will iterate over the models.ReplicationSource objects contained in responses from the listReplicationSources operation. This iterator will fetch more data from the server as needed.

    Parameters

    Returns AsyncIterableIterator<ReplicationSource>

listAllReplicationSourcesResponses

  • NOTE: This function is deprecated in favor of listReplicationSourcesResponseIterator function. Creates a new async iterator which will iterate over the responses received from the listReplicationSources operation. This iterator will fetch more data from the server as needed.

    Parameters

    Returns AsyncIterableIterator<ListReplicationSourcesResponse>

listAllWorkRequestErrors

  • NOTE: This function is deprecated in favor of listWorkRequestErrorsRecordIterator function. Creates a new async iterator which will iterate over the models.WorkRequestError objects contained in responses from the listWorkRequestErrors operation. This iterator will fetch more data from the server as needed.

    Parameters

    Returns AsyncIterableIterator<WorkRequestError>

listAllWorkRequestErrorsResponses

  • NOTE: This function is deprecated in favor of listWorkRequestErrorsResponseIterator function. Creates a new async iterator which will iterate over the responses received from the listWorkRequestErrors operation. This iterator will fetch more data from the server as needed.

    Parameters

    Returns AsyncIterableIterator<ListWorkRequestErrorsResponse>

listAllWorkRequestLogs

  • NOTE: This function is deprecated in favor of listWorkRequestLogsRecordIterator function. Creates a new async iterator which will iterate over the models.WorkRequestLogEntry objects contained in responses from the listWorkRequestLogs operation. This iterator will fetch more data from the server as needed.

    Parameters

    Returns AsyncIterableIterator<WorkRequestLogEntry>

listAllWorkRequestLogsResponses

  • NOTE: This function is deprecated in favor of listWorkRequestLogsResponseIterator function. Creates a new async iterator which will iterate over the responses received from the listWorkRequestLogs operation. This iterator will fetch more data from the server as needed.

    Parameters

    Returns AsyncIterableIterator<ListWorkRequestLogsResponse>

listAllWorkRequests

  • NOTE: This function is deprecated in favor of listWorkRequestsRecordIterator function. Creates a new async iterator which will iterate over the models.WorkRequestSummary objects contained in responses from the listWorkRequests operation. This iterator will fetch more data from the server as needed.

    Parameters

    Returns AsyncIterableIterator<WorkRequestSummary>

listAllWorkRequestsResponses

  • NOTE: This function is deprecated in favor of listWorkRequestsResponseIterator function. Creates a new async iterator which will iterate over the responses received from the listWorkRequests operation. This iterator will fetch more data from the server as needed.

    Parameters

    Returns AsyncIterableIterator<ListWorkRequestsResponse>

listBuckets

  • 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.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm).

    This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.

    throws

    OciError when an error occurs

    example

    Click here to see how to use ListBuckets API.

    Parameters

    Returns Promise<ListBucketsResponse>

    ListBucketsResponse

listBucketsRecordIterator

  • Creates a new async iterator which will iterate over the models.BucketSummary objects contained in responses from the listBuckets operation. This iterator will fetch more data from the server as needed.

    Parameters

    Returns AsyncIterableIterator<BucketSummary>

listBucketsResponseIterator

listMultipartUploadParts

listMultipartUploadPartsRecordIterator

listMultipartUploadPartsResponseIterator

listMultipartUploads

  • Lists all of the in-progress multipart uploads for the given bucket in the given Object Storage namespace.

    This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.

    throws

    OciError when an error occurs

    example

    Click here to see how to use ListMultipartUploads API.

    Parameters

    Returns Promise<ListMultipartUploadsResponse>

    ListMultipartUploadsResponse

listMultipartUploadsRecordIterator

  • Creates a new async iterator which will iterate over the models.MultipartUpload objects contained in responses from the listMultipartUploads operation. This iterator will fetch more data from the server as needed.

    Parameters

    Returns AsyncIterableIterator<MultipartUpload>

listMultipartUploadsResponseIterator

listObjectVersions

  • 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.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm).

    This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.

    throws

    OciError when an error occurs

    example

    Click here to see how to use ListObjectVersions API.

    Parameters

    Returns Promise<ListObjectVersionsResponse>

    ListObjectVersionsResponse

listObjects

  • 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.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm).

    This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.

    throws

    OciError when an error occurs

    example

    Click here to see how to use ListObjects API.

    Parameters

    Returns Promise<ListObjectsResponse>

    ListObjectsResponse

listObjectsRecordIterator

  • Creates a new async iterator which will iterate over the models.ObjectSummary objects contained in responses from the listObjects operation. This iterator will fetch more data from the server as needed.

    Parameters

    Returns AsyncIterableIterator<ObjectSummary>

listObjectsResponseIterator

listPreauthenticatedRequests

listPreauthenticatedRequestsRecordIterator

listPreauthenticatedRequestsResponseIterator

listReplicationPolicies

listReplicationPoliciesRecordIterator

listReplicationPoliciesResponseIterator

listReplicationSources

listReplicationSourcesRecordIterator

listReplicationSourcesResponseIterator

listRetentionRules

  • 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.

    This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.

    throws

    OciError when an error occurs

    example

    Click here to see how to use ListRetentionRules API.

    Parameters

    Returns Promise<ListRetentionRulesResponse>

    ListRetentionRulesResponse

listWorkRequestErrors

listWorkRequestErrorsRecordIterator

  • Creates a new async iterator which will iterate over the models.WorkRequestError objects contained in responses from the listWorkRequestErrors operation. This iterator will fetch more data from the server as needed.

    Parameters

    Returns AsyncIterableIterator<WorkRequestError>

listWorkRequestErrorsResponseIterator

listWorkRequestLogs

listWorkRequestLogsRecordIterator

  • Creates a new async iterator which will iterate over the models.WorkRequestLogEntry objects contained in responses from the listWorkRequestLogs operation. This iterator will fetch more data from the server as needed.

    Parameters

    Returns AsyncIterableIterator<WorkRequestLogEntry>

listWorkRequestLogsResponseIterator

listWorkRequests

listWorkRequestsRecordIterator

  • Creates a new async iterator which will iterate over the models.WorkRequestSummary objects contained in responses from the listWorkRequests operation. This iterator will fetch more data from the server as needed.

    Parameters

    Returns AsyncIterableIterator<WorkRequestSummary>

listWorkRequestsResponseIterator

makeBucketWritable

  • 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.

    This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.

    throws

    OciError when an error occurs

    example

    Click here to see how to use MakeBucketWritable API.

    Parameters

    Returns Promise<MakeBucketWritableResponse>

    MakeBucketWritableResponse

putObject

  • 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.cloud.oracle.com/Content/Object/Tasks/managingobjects.htm#namerequirements) for object naming requirements.

    See [Special Instructions for Object Storage PUT](https://docs.cloud.oracle.com/Content/API/Concepts/signingrequests.htm#ObjectStoragePut) for request signature requirements.

    This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.

    throws

    OciError when an error occurs

    example

    Click here to see how to use PutObject API.

    Parameters

    Returns Promise<PutObjectResponse>

    PutObjectResponse

putObjectLifecyclePolicy

reencryptBucket

  • 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.

    This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.

    throws

    OciError when an error occurs

    example

    Click here to see how to use ReencryptBucket API.

    Parameters

    Returns Promise<ReencryptBucketResponse>

    ReencryptBucketResponse

reencryptObject

  • 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).

    This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.

    throws

    OciError when an error occurs

    example

    Click here to see how to use ReencryptObject API.

    Parameters

    Returns Promise<ReencryptObjectResponse>

    ReencryptObjectResponse

renameObject

  • Rename an object in the given Object Storage namespace.

    See [Object Names](https://docs.cloud.oracle.com/Content/Object/Tasks/managingobjects.htm#namerequirements) for object naming requirements.

    This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.

    throws

    OciError when an error occurs

    example

    Click here to see how to use RenameObject API.

    Parameters

    Returns Promise<RenameObjectResponse>

    RenameObjectResponse

restoreObjects

  • Restores one or more objects specified by the objectName parameter. By default objects will be restored for 24 hours. Duration can be configured using the hours parameter.

    This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.

    throws

    OciError when an error occurs

    example

    Click here to see how to use RestoreObjects API.

    Parameters

    Returns Promise<RestoreObjectsResponse>

    RestoreObjectsResponse

shutdownCircuitBreaker

  • shutdownCircuitBreaker(): void

updateBucket

  • 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.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes).

    This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.

    throws

    OciError when an error occurs

    example

    Click here to see how to use UpdateBucket API.

    Parameters

    Returns Promise<UpdateBucketResponse>

    UpdateBucketResponse

updateNamespaceMetadata

  • 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.

    This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.

    throws

    OciError when an error occurs

    example

    Click here to see how to use UpdateNamespaceMetadata API.

    Parameters

    Returns Promise<UpdateNamespaceMetadataResponse>

    UpdateNamespaceMetadataResponse

updateObjectStorageTier

updateRetentionRule

  • Updates the specified retention rule. Rule changes take effect typically within 30 seconds.

    This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.

    throws

    OciError when an error occurs

    example

    Click here to see how to use UpdateRetentionRule API.

    Parameters

    Returns Promise<UpdateRetentionRuleResponse>

    UpdateRetentionRuleResponse

uploadPart

  • Uploads a single part of a multipart upload.

    This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.

    throws

    OciError when an error occurs

    example

    Click here to see how to use UploadPart API.

    Parameters

    Returns Promise<UploadPartResponse>

    UploadPartResponse

Object literals

Static Protected serviceEndpointTemplatePerRealm

serviceEndpointTemplatePerRealm: object

oc1

oc1: string = "https://{namespaceName+Dot}objectstorage.{region}.oci.customer-oci.com"