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 Integration 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 Integration resource emits events:

  • Integration Instance

Integration Instance Event Types

These are the event types that Integration Instances emit:

Friendly Name Event Type

Create Integration Instance

Begin

com.oraclecloud.integration.createintegrationinstance.begin

Create Integration Instance

End

com.oraclecloud.integration.createintegrationinstance.end

Update Integration Instance

Begin

com.oraclecloud.integration.updateintegrationinstance.begin

Update Integration Instance

End

com.oraclecloud.integration.updateintegrationinstance.end

Start Integration Instance

Begin

com.oraclecloud.integration.startintegrationinstance.begin

Start Integration Instance

End

com.oraclecloud.integration.startintegrationinstance.end

Stop Integration Instance

Begin

com.oraclecloud.integration.stopintegrationinstance.begin

Stop Integration Instance

End

com.oraclecloud.integration.stopintegrationinstance.end

Delete Integration Instance

Begin

com.oraclecloud.integration.deleteintegrationinstance.begin

Delete Integration Instance

End

com.oraclecloud.integration.deleteintegrationinstance.end

Change Integration Instance Compartment

Begin

com.oraclecloud.integration.changeintegrationcompartment.begin

Change Integration Instance Compartment

End

com.oraclecloud.integration.changeintegrationcompartment.end

Integration Instance Event Example

This is a reference event for Integration Instances:


{
    "eventType": "com.oraclecloud.integration.updateintegrationinstance.begin",
    "cloudEventsVersion": "0.1",
    "eventTypeVersion": "2.0",
    "eventID": "<unique_ID>",
    "source": "integration",
    "eventTime": "2019-01-10T21:19:24Z",
    "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.integrationinstance.oc1.phx.<unique_ID>",
      "availabilityDomain": "<availability_domain>",
      "freeFormTags": {
        "Department": "Finance"
      },
      "definedTags": {
        "Operations": {
          "CostCenter": "42"
        }
      },
      "additionalDetails": {
        "integrationInstanceType": "STANDARD",
        "isByol": "false",
        "messagePacks": 1
          }
    }
  }