OS Management Hub Events
Some OS Management Hub resources emit events as part of the Oracle Cloud Infrastructure Events service.
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.
OS Management Hub resources that emit events include:
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 |
|
Create Lifecycle Environment |
|
Delete Lifecycle Environment |
|
Detach Managed Instances From Lifecycle Stage |
|
Promote Software Source To Lifecycle Stage |
|
Update Lifecycle Environment |
|
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 |
|
Attach Software Sources to Managed Instance |
|
Delete Managed Instance |
|
Disable Module Stream On Managed Instance |
|
Enable Module Stream On Managed Instance |
|
Install All Windows Updates On Managed Instances In Compartment |
|
Install Module Stream Profile On Managed Instance |
|
Install Packages On Managed Instance |
|
Install Windows Updates On Managed Instance |
|
Manage Module Streams On Managed Instance |
|
Refresh Software On Managed Instance |
|
Remove Module Stream Profile From Managed Instance |
|
Remove Packages From Managed Instance |
|
Switch Module Stream On Managed Instance |
|
Update All Packages On Managed Instances In Compartment |
|
Update Managed Instance |
|
Update Packages On Managed Instance |
|
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 managed instance group resource emits:
Friendly Name | Event Type |
---|---|
Attach Managed Instances to Managed Instance Group |
|
Attach Software Sources to Managed Instance Group |
|
Change Managed Instance Group Compartment |
|
Create Managed Instance Group |
|
Detach Managed Instances From Managed Instance Group |
|
Detach Software Sources From Managed Instance Group |
|
Disable Module Stream On Managed Instance Group |
|
Enable Module Stream On Managed Instance Group |
|
Install Module Stream Profile On Managed Instance Group |
|
Install Packages On Managed Instance Group |
|
Remove Module Stream Profile From Managed Instance Group |
|
Remove Packages From Managed Instance Group |
|
Update All Packages On Managed Instance Group |
|
Update Managed Instance Group |
|
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 |
|
Create Scheduled Job |
|
Delete Scheduled Job |
|
Run Scheduled Job Now |
|
Update Scheduled Job |
|
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 |
|
Change Availability Of Software Sources |
|
Change Software Source Compartment |
|
Create Software Source |
|
Delete Software Source |
|
Update Software Source |
|
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>"
}
}