Automate with Events

You can create automation based on state changes for your Oracle Cloud Infrastructure resources by using event types, rules, and actions.

Oracle Cloud Infrastructure services emit events, which are structured messages that indicate changes in resources. An Oracle Cloud Infrastructure Process Automation administrator can create rules to track these events, such as when instances are created, updated, or deleted, and compartments changed.

For more information, see Overview of Events.

The following Oracle Cloud Infrastructure Process Automation resource emits events.

  • process-automation-instance

Process Automation Instance Event Types

These are the event types that Process Automation instances emit.

Friendly Name Event Type

Create Process Automation Instance

Begin

com.oraclecloud.processautomation.createopainstance.begin

Create Process Automation Instance

End

com.oraclecloud.processautomation.createopainstance.end

Update Process Automation Instance

Begin

com.oraclecloud.processautomation.updateopainstance.begin

Update Process Automation Instance

End

com.oraclecloud.processautomation.updateopainstance.end

Delete Process Automation Instance

Begin

com.oraclecloud.processautomation.deleteopainstance.begin

Delete Process Automation Instance

End

com.oraclecloud.processautomation.deleteopainstance.end

Change Process Automation Instance Compartment

Begin

com.oraclecloud.processautomation.changeopainstancecompartment.begin

Change Process Automation Instance Compartment

End

com.oraclecloud.processautomation.changeopainstancecompartment.end

Process Automation Instance Event Example

This is a reference event for Process Automation instances:

{
    "eventType": "com.oraclecloud.processautomation.createopainstance.begin",
    "cloudEventsVersion": "0.1",
    "eventTypeVersion": "2.0",
    "eventID": "<unique_ID>",
    "source": "process-automation",
    "eventTime": "2022-03-18T17:24:42.987Z",
    "contentType": "application/json",
    "extensions": {
      "compartmentId": "ocid1.compartment.oc1..<unique_ID>"
    },
    "data": {
      "compartmentId": "ocid1.compartment.oc1..<unique_ID>",
      "compartmentName": "example_compartment",
      "resourceName": "My test resource",
      "resourceId": "ocid1.processautomationinstance.oc1.phx.<unique_ID>",
      "availabilityDomain": "<availability_domain>",
      "freeFormTags": {
        "Department": "Finance"
      },
      "definedTags": {
        "Operations": {
          "CostCenter": "42"
        }
      },
      "additionalDetails": {
        "shape": "PRODUCTION",
        "isBreakglassEnabled": "false"
      }
    }
  }