OCI Events for OS Management Hub

Certain OS Management Hub resources emit information used by the OCI Events service.

OS Management Hub resources that emit event information include:

You can create automation based on state changes of resources by using event types, rules, and actions. You can define rules that trigger a specific action when an event occurs. For more information, see Overview of Events and Get Started with Events. For information about managing rules for events, see Managing Rules for Events.

Event Resource Event Types

These are the event types that OS Management Hub event resource emits. The OS Management Hub event resource is distinct and separate from an OCI event. However, each OS Management Hub event emits an event that can be tracked using the OCI Events service. See What's the difference between OS Management Hub Events and OCI Events?.

Friendly Name Event Type
Change Event Compartment
com.oraclecloud.osmh.changeeventcompartment
Create Agent List Packages Event
com.oraclecloud.osmh.createevent.agent.listpackages
Create Sync Agent Config Event
com.oraclecloud.osmh.createevent.agent.syncagentconfig
Create Agent Upload Content Event
com.oraclecloud.osmh.createevent.agent.uploadcontent
Create Exploit Attempt Event
com.oraclecloud.osmh.createevent.exploitattempt
Create Kernel Crash Event
com.oraclecloud.osmh.createevent.kernelcrash
Create Kernel Oops Event
com.oraclecloud.osmh.createevent.kerneloops
Create Update Ksplice Kernel Event
com.oraclecloud.osmh.createevent.kspliceupdate.updateksplicekernel
Create Update Ksplice Userspace Event
com.oraclecloud.osmh.createevent.kspliceupdate.updatekspliceuserspace
Create Set Management Station Config Event
com.oraclecloud.osmh.createevent.managementstation.setmanagementstationconfig
Create Set Management Station Healthy State Event
com.oraclecloud.osmh.createevent.managementstation.setmanagementstationhealthstate.healthy
Create Set Management Station Unavailable State Event
com.oraclecloud.osmh.createevent.managementstation.setmanagementstationhealthstate.unavailable
Create Set Management Station Unhealthy State Event
com.oraclecloud.osmh.createevent.managementstation.setmanagementstationhealthstate.unhealthy
Create Sync Management Station Config Event
com.oraclecloud.osmh.createevent.managementstation.syncmanagementstationconfig
Create Update Management Station Config Event
com.oraclecloud.osmh.createevent.managementstation.updatemanagementstationconfig
Create Reboot Failed Event
com.oraclecloud.osmh.createevent.reboot.rebootfailed
Create Reboot Started Event
com.oraclecloud.osmh.createevent.reboot.rebootstarted
Create Reboot Succeeded Event
com.oraclecloud.osmh.createevent.reboot.rebootsucceeded
Create Reboot Succeeded After Timeout Event
com.oraclecloud.osmh.createevent.reboot.rebootsucceededaftertimeout
Create Software Source Event
com.oraclecloud.osmh.createevent.softwaresource.createsoftwaresource
Disable Module Streams Event
com.oraclecloud.osmh.createevent.softwaresource.disablemodulestreams
Create Enable Module Streams Event
com.oraclecloud.osmh.createevent.softwaresource.enablemodulestreams
Create Install Module Profiles Event
com.oraclecloud.osmh.createevent.softwaresource.installmoduleprofile
Create Lifecycle Promotion Event
com.oraclecloud.osmh.createevent.softwaresource.lifecyclepromotion
Create Remove Module Profile Event
com.oraclecloud.osmh.createevent.softwaresource.removemoduleprofile
Create Set Software Source Event
com.oraclecloud.osmh.createevent.softwaresource.setsoftwaresources
Create Switch Module Stream Event
com.oraclecloud.osmh.createevent.softwaresource.switchmodulestream
Create Update Software Source Event
com.oraclecloud.osmh.createevent.softwaresource.updatesoftwaresource
Create Install Packages Event
com.oraclecloud.osmh.createevent.softwareupdate.installpackages
Create Remove Packages Event
com.oraclecloud.osmh.createevent.softwareupdate.removepackages
Create Update All Packages Event
com.oraclecloud.osmh.createevent.softwareupdate.updateallpackages
Create Update Bugfix Event
com.oraclecloud.osmh.createevent.softwareupdate.updatebugfix
Create Update Enhancement Event
com.oraclecloud.osmh.createevent.softwareupdate.updateenhancement
Create Update Other Event
com.oraclecloud.osmh.createevent.softwareupdate.updateother
Create Update Packages Event
com.oraclecloud.osmh.createevent.softwareupdate.updatepackages
Create Update Security Event
com.oraclecloud.osmh.createevent.softwareupdate.updatesecurity
Create Sysadmin Failed Event
com.oraclecloud.osmh.createevent.sysadmin.failed
Create Sysadmin Succeeded Event
com.oraclecloud.osmh.createevent.sysadmin.succeeded
Delete Event
com.oraclecloud.osmh.deleteevent
Update Event
com.oraclecloud.osmh.updateevent

Event Example

This is a reference event for an OS Management Hub event:

{
  "eventType": "com.oraclecloud.osmh.createevent.reboot.rebootsucceeded",
  "cloudEventsVersion": "0.1",
  "eventTypeVersion": "2.0",
  "source": "osmh",
  "eventTime": "2024-11-20T23:30:38.051Z",
  "contentType": "application/json",
  "data": {
    "compartmentId": "ocid1.compartment.oc1..<unique_ID>",
    "compartmentName": "example_compartment",
    "resourceName": "My test resource",
    "resourceId": "ocid1.example_regional_resource.oc1.iad.<unique_ID>",
    "availabilityDomain": "<availability_domain>"
  },
  "eventID": "<unique_ID>",
  "extensions": {
    "compartmentId": "ocid1.compartment.oc1..<unique_ID>"
  }
}

Lifecycle Environment Event Types

These are the event types that the lifecycle environment resource emits:

Friendly Name Event Type
Attach Managed Instances To Lifecycle Stage
com.oraclecloud.osmh.attachmanagedinstancestolifecyclestage
Create Lifecycle Environment
com.oraclecloud.osmh.createlifecycleenvironment
Delete Lifecycle Environment
com.oraclecloud.osmh.deletelifecycleenvironment
Detach Managed Instances From Lifecycle Stage
com.oraclecloud.osmh.detachmanagedinstancesfromlifecyclestage
Promote Software Source To Lifecycle Stage
com.oraclecloud.osmh.promotesoftwaresourcetolifecyclestage
Update Lifecycle Environment
com.oraclecloud.osmh.updatelifecycleenvironment

Lifecycle Environment Example

This is a reference event for a lifecycle environment:

{
  "eventType": "com.oraclecloud.osmh.attachmanagedinstancestolifecyclestage",
  "cloudEventsVersion": "0.1",
  "eventTypeVersion": "2.0",
  "source": "osmhprod-lifecycle-environment",
  "eventTime": "2024-01-08T22:04:53Z",
  "contentType": "application/json",
  "data": {
    "eventName": "AttachManagedInstancesToLifecycleStage",
    "compartmentId": "ocid1.compartment.oc1..<unique_ID>",
    "compartmentName": "example_compartment",
    "resourceName": "My test resource",
    "resourceId": "ocid1.example_regional_resource.oc1.iad.<unique_ID>",
    "availabilityDomain": "<availability_domain>"
  },
  "eventID": "<unique_ID>",
  "extensions": {
    "compartmentId": "ocid1.compartment.oc1..<unique_ID>",
  }
}

Managed Instance Event Types

These are the event types that the managed instance resource emits:

Friendly Name Event Type
Attach Profile to Managed Instance
com.oraclecloud.osmh.attachprofiletomanagedinstance
Attach Software Sources to Managed Instance
com.oraclecloud.osmh.attachsoftwaresourcestomanagedinstance
Delete Managed Instance
com.oraclecloud.osmh.deletemanagedinstance
Disable Module Stream On Managed Instance
com.oraclecloud.osmh.disablemodulestreamonmanagedinstance
Enable Module Stream On Managed Instance
com.oraclecloud.osmh.enablemodulestreamonmanagedinstance
Install All Windows Updates On Managed Instances In Compartment
com.oraclecloud.osmh.installallwindowsupdatesonmanagedinstancesincompartment
Install Module Stream Profile On Managed Instance
com.oraclecloud.osmh.installmodulestreamprofileonmanagedinstance
Install Packages On Managed Instance
com.oraclecloud.osmh.installpackagesonmanagedinstance
Install Windows Updates On Managed Instance
com.oraclecloud.osmh.installwindowsupdatesonmanagedinstance
Manage Module Streams On Managed Instance
com.oraclecloud.osmh.managemodulestreamsonmanagedinstance
Refresh Software On Managed Instance
com.oraclecloud.osmh.refreshsoftwareonmanagedinstance
Remove Module Stream Profile From Managed Instance
com.oraclecloud.osmh.removemodulestreamprofilefrommanagedinstance
Remove Packages From Managed Instance
com.oraclecloud.osmh.removepackagesfrommanagedinstance
Switch Module Stream On Managed Instance
com.oraclecloud.osmh.switchmodulestreamonmanagedinstance
Update All Packages On Managed Instances In Compartment
com.oraclecloud.osmh.updateallpackagesonmanagedinstancesincompartment
Update Managed Instance
com.oraclecloud.osmh.updatemanagedinstance
Update Packages On Managed Instance
com.oraclecloud.osmh.updatepackagesonmanagedinstance

Managed Instance Example

This is a reference event for a managed instance:

{
  "eventType": "com.oraclecloud.osmh.installpackagesonmanagedinstance",
  "cloudEventsVersion": "0.1",
  "eventTypeVersion": "2.0",
  "source": "osmhprod-managed-instance",
  "eventTime": "2024-01-08T17:13:55Z",
  "contentType": "application/json",
  "data": {
    "eventName": "InstallPackagesOnManagedInstance",
    "compartmentId": "ocid1.compartment.oc1..<unique_ID>",
    "compartmentName": "example_compartment",
    "resourceName": "My test resource",
    "resourceId": "ocid1.example_regional_resource.oc1.iad.<unique_ID>",
    "availabilityDomain": "<availability_domain>"
  },
  "eventID": "<unique_ID>",
  "extensions": {
    "compartmentId": "ocid1.compartment.oc1..<unique_ID>"
  }
}

Managed Instance Group Event Types

These are the event types that the managed instance group resource emits:

Friendly Name Event Type
Attach Managed Instances to Managed Instance Group
com.oraclecloud.osmh.attachmanagedinstancestomanagedinstancegroup
Attach Software Sources to Managed Instance Group

com.oraclecloud.osmh.attachsoftwaresourcestomanagedinstancegroup
Change Managed Instance Group Compartment
com.oraclecloud.osmh.changemanagedinstancegroupcompartment
Create Managed Instance Group
com.oraclecloud.osmh.createmanagedinstancegroup
Detach Managed Instances From Managed Instance Group
com.oraclecloud.osmh.detachmanagedinstancesfrommanagedinstancegroup
Detach Software Sources From Managed Instance Group
com.oraclecloud.osmh.detachsoftwaresourcesfrommanagedinstancegroup
Disable Module Stream On Managed Instance Group
com.oraclecloud.osmh.disablemodulestreamonmanagedinstancegroup
Enable Module Stream On Managed Instance Group
com.oraclecloud.osmh.enablemodulestreamonmanagedinstancegroup
Install Module Stream Profile On Managed Instance Group
com.oraclecloud.osmh.installmodulestreamprofileonmanagedinstancegroup
Install Packages On Managed Instance Group
com.oraclecloud.osmh.installpackagesonmanagedinstancegroup
Remove Module Stream Profile From Managed Instance Group
com.oraclecloud.osmh.removemodulestreamprofilefrommanagedinstancegroup
Remove Packages From Managed Instance Group
com.oraclecloud.osmh.removepackagesfrommanagedinstancegroup
Update All Packages On Managed Instance Group
com.oraclecloud.osmh.updateallpackagesonmanagedinstancegroup
Update Managed Instance Group
com.oraclecloud.osmh.updatemanagedinstancegroup

Managed Instance Group Example

This is a reference event for a managed instance group:

{
  "eventType": "com.oraclecloud.osmh.attachmanagedinstancetomanagedinstancegroup",
  "cloudEventsVersion": "0.1",
  "eventTypeVersion": "2.0",
  "source": "osmhprod-managed-instance-group",
  "eventTime": "2024-01-11T17:02:13Z",
  "contentType": "application/json",
  "data": {
    "eventName": "AttachManagedInstanceToManagedInstanceGroup",
    "compartmentId": "ocid1.compartment.oc1..<unique_ID>",
    "compartmentName": "example_compartment",
    "resourceName": "My test resource",
    "resourceId": "ocid1.example_regional_resource.oc1.iad.<unique_ID>",
    "availabilityDomain": "<availability_domain>"
  },
  "eventID": "<unique_ID>",
  "extensions": {
    "compartmentId": "ocid1.compartment.oc1..<unique_ID>"
  }
}

Scheduled Job Event Types

These are the event types that the scheduled job resource emits:

Friendly Name Event Type
Change Scheduled Job Compartment
com.oraclecloud.osmh.changescheduledjobcompartment
Create Scheduled Job
com.oraclecloud.osmh.createscheduledjob
Delete Scheduled Job
com.oraclecloud.osmh.deletescheduledjob
Run Scheduled Job Now
com.oraclecloud.osmh.runscheduledjobnow
Update Scheduled Job
com.oraclecloud.osmh.updatescheduledjob

Scheduled Job Example

This is a reference event for a scheduled job:

{
  "eventType": "com.oraclecloud.osmh.updatescheduledjob",
  "cloudEventsVersion": "0.1",
  "eventTypeVersion": "2.0",
  "source": "osmhprod-scheduled-job",
  "eventTime": "2024-01-09T18:33:49Z",
  "contentType": "application/json",
  "data": {
    "eventName": "UpdateScheduledJob",
    "compartmentId": "ocid1.compartment.oc1..<unique_ID>",
    "compartmentName": "example_compartment",
    "resourceName": "My test resource",
    "resourceId": "ocid1.example_regional_resource.oc1.iad.<unique_ID>",
    "availabilityDomain": "<availability_domain>"
  },
  "eventID": "<unique_ID>",
  "extensions": {
    "compartmentId": "ocid1.compartment.oc1..<unique_ID>"
  }
}

Software Source Event Types

These are the event types that the software source resource emits:

Friendly Name Event Type
Add Packages To Software Source
com.oraclecloud.osmh.addpackagestosoftwaresource
Change Availability Of Software Sources
com.oraclecloud.osmh.changeavailabilityofsoftwaresources
Change Software Source Compartment
com.oraclecloud.osmh.changesoftwaresourcecompartment
Create Software Source
com.oraclecloud.osmh.createsoftwaresource
Delete Software Source
com.oraclecloud.osmh.deletesoftwaresource
Update Software Source
com.oraclecloud.osmh.updatesoftwaresource

Software Source Example

This is a reference event for a software source:

{
  "eventType": "com.oraclecloud.osmh.addpackagestosoftwaresource",
  "cloudEventsVersion": "0.1",
  "eventTypeVersion": "2.0",
  "source": "osmhprod-software-source",
  "eventTime": "2024-01-09T17:33:56Z",
  "contentType": "application/json",
  "data": {
    "eventName": "AddPackagesToSoftwareSource",
    "compartmentId": "ocid1.compartment.oc1..<unique_ID>",
    "compartmentName": "example_compartment",
    "resourceName": "My test resource",
    "resourceId": "ocid1.example_regional_resource.oc1.iad.<unique_ID>",
    "availabilityDomain": "<availability_domain>"
  },
  "eventID": "<unique_ID>",
  "extensions": {
    "compartmentId": "ocid1.compartment.oc1..<unique_ID>"
  }
}