ls
Creates, updates, deletes, gets or lists a ls resource.
Overview​
| Name | ls |
| Type | Resource |
| Id | oci.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:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
put_object_lifecycle_policy | exec | namespaceName, bucketName, region | opc-client-request-id, if-match, if-none-match | Creates 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.
| Name | Datatype | Description |
|---|---|---|
bucketName | string | The name of the bucket. Avoid entering confidential information. Example: my-new-bucket1 |
namespaceName | string | The Object Storage namespace used for the request. |
region | string | OCI 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-match | string | The 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-match | string | The 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-id | string | The client request ID for tracing. |
Lifecycle Methods​
- put_object_lifecycle_policy
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 }}"
}'
;