Skip to main content

object_storage_tiers

Creates, updates, deletes, gets or lists an object_storage_tiers resource.

Overview​

Nameobject_storage_tiers
TypeResource
Idoci.object_storage.object_storage_tiers

Fields​

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
updateupdatenamespaceName, bucketName, region, objectName, storageTieropc-client-request-idChanges the storage tier of the object specified by the objectName parameter.<br />

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
bucketNamestringThe name of the bucket. Avoid entering confidential information. Example: my-new-bucket1
namespaceNamestringThe Object Storage namespace used for the request.
regionstringOCI region identifier (e.g. us-ashburn-1, ap-sydney-1); resolves from OCI_REGION when not supplied in the query. (default: us-ashburn-1, x-stackQL-envVar: OCI_REGION)
opc-client-request-idstringThe client request ID for tracing.

UPDATE examples​

Changes the storage tier of the object specified by the objectName parameter.<br />

UPDATE oci.object_storage.object_storage_tiers
SET
objectName = '{{ objectName }}',
storageTier = '{{ storageTier }}',
versionId = '{{ versionId }}'
WHERE
namespaceName = '{{ namespaceName }}' --required
AND bucketName = '{{ bucketName }}' --required
AND region = '{{ region }}' --required
AND objectName = '{{ objectName }}' --required
AND storageTier = '{{ storageTier }}' --required
AND opc-client-request-id = '{{ opc-client-request-id}}';