Enabling or Disabling Emitting Events for Object State Changes
Specify whether events are emitted for object state changes in a bucket in Object Storage.
You can create automation based on state changes for your Oracle Cloud Infrastructure resources by using event types, rules, and actions. For more information, see Overview of Events.
- Open the navigation menu and click Storage. Under Object Storage & Archive Storage, click Buckets.
- Choose the compartment that contains your buckets.
- Click the to the right of the bucket name, and then click View Bucket Details.
- Next to Emit Object Events, click Edit.
- In the dialog box, select (to enable) or clear (to disable) Emit Object Events.
- Click Save Changes.
You can create automation based on state changes for your Oracle Cloud Infrastructure resources by using event types, rules, and actions. For more information, see Overview of Events.
oci os bucket update --namespace <object_storage_namespace> --name <bucket_name> --object-events-enabled [true|false]
For example, to enable emitting events for all objects in the bucket named
MyBucket
:oci os bucket update --namespace MyNamespace --name MyBucket --object-events-enabled true { "data": { "approximate-count": null, "approximate-size": null, "auto-tiering": null, "compartment-id": "ocid1.compartment.oc1..exampleuniqueID", "created-by": "ocid1:user:oc1:phx:1458751937789:exampleuniqueID", "defined-tags": { "operations": { "costcenter": "42" } }, "etag": "39d1db02-27d0-4263-b3ff-5e6450495457", "freeform-tags": { "Chicago_Team": "marketing_videos" }, "id": "ocid1.bucket.oc1..exampleuniqueID", "is-read-only": false, "kms-key-id": null, "metadata": { "department": "Finance" }, "name": "MyBucket", "namespace": "MyNamespace", "object-events-enabled": true, "object-lifecycle-policy-etag": null, "public-access-type": "NoPublicAccess", "replication-enabled": false, "storage-tier": "Standard", "time-created": "2020-06-22T19:04:05.879000+00:00", "versioning": "Disabled" }, "etag": "39d1db02-27d0-4263-b3ff-5e6450495457" }
This task is not available in the API.