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.
Bastion Event Types
Friendly Name | Event Type |
---|---|
Bastion - Create Bastion Begin |
|
Bastion - Create Bastion End |
|
Bastion - Update Bastion Begin |
|
Bastion - Update Bastion End |
|
Bastion - Change Bastion Compartment |
|
Bastion - Delete Bastion Begin |
|
Bastion - Delete Bastion 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 |
|
Bastion - Create Session End |
|
Bastion - Delete Session Begin |
|
Bastion - Delete Session 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": {}
}
}