Skip to main content

ls

Creates, updates, deletes, gets or lists a ls resource.

Overview​

Namels
TypeResource
Idoci.object_storage.ls

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
put_object_lifecycle_policyexecnamespaceName, bucketName, regionopc-client-request-id, if-match, if-none-matchCreates or replaces the object lifecycle policy for the bucket.<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)
if-matchstringThe entity tag (ETag) to match with the ETag of an existing resource. If the specified ETag matches the ETag of the existing resource, GET and HEAD requests will return the resource and PUT and POST requests will upload the resource.
if-none-matchstringThe entity tag (ETag) to avoid matching. The only valid value is '*', which indicates that the request should fail if the resource already exists.
opc-client-request-idstringThe client request ID for tracing.

Lifecycle Methods​

Creates or replaces the object lifecycle policy for the bucket.<br />

EXEC oci.object_storage.ls.put_object_lifecycle_policy
@namespaceName='{{ namespaceName }}' --required,
@bucketName='{{ bucketName }}' --required,
@region='{{ region }}' --required,
@opc-client-request-id='{{ opc-client-request-id }}',
@if-match='{{ if-match }}',
@if-none-match='{{ if-none-match }}'
@@json=
'{
"items": "{{ items }}"
}'
;