Bastion Events

Oracle Cloud Infrastructure Events allows your development teams to automatically respond when a resource changes its state. Bastion resources emit the following events.

See Getting Started with Events.

Bastion Event Types

Friendly Name Event Type
Bastion - Create Bastion Begin
com.oraclecloud.bastion.createbastion.begin
Bastion - Create Bastion End
com.oraclecloud.bastion.createbastion.end
Bastion - Update Bastion Begin
com.oraclecloud.bastion.updatebastion.begin
Bastion - Update Bastion End
com.oraclecloud.bastion.updatebastion.end
Bastion - Change Bastion Compartment
com.oraclecloud.bastion.changebastioncompartment
Bastion - Delete Bastion Begin
com.oraclecloud.bastion.deletebastion.begin
Bastion - Delete Bastion End
com.oraclecloud.bastion.deletebastion.end

Example event:

{
  "eventType": "com.oraclecloud.bastion.createbastion.end",
  "cloudEventsVersion": "0.1",
  "eventTypeVersion": "2.0",
  "source": "bastion",
  "eventID": "unique_ID",
  "eventTime": "2020-09-18T20:52:59.032Z",
  "contentType": "application/json",
  "data": {
    "eventGroupingId": "ocid1.bastionworkrequest.oc1.phx.unique_ID",
    "eventName": "CreateBastion",
    "compartmentId": "ocid1.compartment.oc1..unique_ID",
    "compartmentName": "TestCompartment",
    "resourceName": "Bastion-20200918-1352",
    "resourceId": "ocid1.bastion.oc1.phx.unique_ID",
    "availabilityDomain": "AD1"
  },
  "stateChange": {
    "previous": {},
    "current": {}
  }
}

Session Event Types

Friendly Name Event Type
Bastion - Create Session Begin
com.oraclecloud.bastion.createsession.begin
Bastion - Create Session End
com.oraclecloud.bastion.createsession.end
Bastion - Delete Session Begin
com.oraclecloud.bastion.deletesession.begin
Bastion - Delete Session End
com.oraclecloud.bastion.deletesession.end

Example event:

{
  "eventType": "com.oraclecloud.bastion.createsession.end",
  "cloudEventsVersion": "0.1",
  "eventTypeVersion": "2.0",
  "source": "bastion",
  "eventID": "unique_ID",
  "eventTime": "2020-09-18T20:53:12.800Z",
  "contentType": "application/json",
  "data": {
    "eventGroupingId": "ocid1.bastionworkrequest.oc1.phx.unique_ID",
    "eventName": "CreateSession",
    "compartmentId": "ocid1.compartment.oc1..unique_ID",
    "compartmentName": "TestCompartment",
    "resourceName": "Session-20200918-1353",
    "resourceId": "ocid1.bastionsession.oc1.phx.unique_ID",
    "availabilityDomain": "AD1"
  },
  "stateChange": {
    "previous": {},
    "current": {}
  }
}