DevOps Events

Oracle Cloud Infrastructure Events are JSON files that are emitted with some service operations and carry information about that operation.

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. DevOps emits an event for the following actions:

  • A DevOps project is created, updated, or deleted.
  • A deployment artifact is created, updated, or deleted.
  • A code repository is created, updated, deleted, mirrored, or committed using git push command.
  • A pull request is created, declined, merged, reopened, updated, patched, reviewed, or a comment created for the pull request.
  • Update project setting or repository setting.
  • A connection is created, updated, or deleted.
  • A deployment environment is created, updated, or deleted.
  • A build pipeline is created, updated, or deleted.
  • A build pipeline stage is created, updated, or deleted.
  • A build run is created, updated, or deleted.
  • A trigger is created, updated, or deleted.
  • A deployment pipeline is created, updated, or deleted.
  • A deployment pipeline stage is created, updated, or deleted.
  • A deployment is created or updated.
DevOps Project Events
Event Name Event Type
Create Project Begin
com.oraclecloud.devopsproject.createproject.begin
Create Project End
com.oraclecloud.devopsproject.createproject.end
Update Project Begin
com.oraclecloud.devopsproject.updateproject.begin
Update Project End
com.oraclecloud.devopsproject.updateproject.end
Delete Project Begin
com.oraclecloud.devopsproject.deleteproject.begin
Delete Project End
com.oraclecloud.devopsproject.deleteproject.end
Schedule Cascade Delete Project Begin
com.oraclecloud.devopsproject.schedulecascadingprojectdeletion.begin
Schedule Cascade Delete Project End
com.oraclecloud.devopsproject.schedulecascadingprojectdeletion.end
Cancel Scheduled Cascade Delete Project Begin
com.oraclecloud.devopsproject.cancelscheduledcascadingprojectdeletion.begin
Cancel Scheduled Cascade Delete Project End
com.oraclecloud.devopsproject.cancelscheduledcascadingprojectdeletion.end

Example event for creating a DevOps project:

{
    "eventType": "com.oraclecloud.devopsproject.createproject.begin",
    "cloudEventsVersion": "0.1",
    "eventTypeVersion": "2.0",
    "source": "devopsproject",
    "eventTime": "2021-04-16T20:24:35Z",
    "contentType": "application/json",
    "data": {
      "compartmentId": "ocid1.compartment.oc1..unique_ID",
      "compartmentName": "example_compartment",
      "resourceName": "My test resource",
      "resourceId": "ocid1.example_regional_resource.oc1.phx.unique_ID",
      "availabilityDomain": "availability_domain"
    },
    "eventID": "unique_ID",
    "extensions": {
      "compartmentId": "ocid1.compartment.oc1..unique_ID"
    }
  }
Artifact Events
Event Name Event Type
Create Deploy Artifact Begin
com.oraclecloud.devopsdeploy.createdeployartifact.begin
Create Deploy Artifact End
com.oraclecloud.devopsdeploy.createdeployartifact.end
Update Deploy Artifact Begin
com.oraclecloud.devopsdeploy.updatedeployartifact.begin
Update Deploy Artifact End
com.oraclecloud.devopsdeploy.updatedeployartifact.end
Delete Deploy Artifact Begin
com.oraclecloud.devopsdeploy.deletedeployartifact.begin
Delete Deploy Artifact End
com.oraclecloud.devopsdeploy.deletedeployartifact.end

Example event for creating an artifact:

{
    "eventType": "com.oraclecloud.devopsdeploy.createdeployartifact.begin",
    "cloudEventsVersion": "0.1",
    "eventTypeVersion": "2.0",
    "source": "devopsdeploy",
    "eventTime": "2021-04-15T21:32:04Z",
    "contentType": "application/json",
    "data": {
      "compartmentId": "ocid1.compartment.oc1..unique_ID",
      "compartmentName": "example_compartment",
      "resourceName": "example_resource",
      "resourceId": "ocid1.devopsdeployartifact.oc1.phx.unique_ID",
      "availabilityDomain": "availability_domain"
    },
    "eventID": "unique_ID",
    "extensions": {
      "compartmentId": "ocid1.compartment.oc1..unique_ID"
    }
  }
Code Repository Events
Event Name Event Type
Create Repository Begin
com.oraclecloud.devopscoderepo.createrepository.begin
Create Repository End
com.oraclecloud.devopscoderepo.createrepository.end
Update Repository
com.oraclecloud.devopscoderepo.updaterepository
Delete Repository Begin
com.oraclecloud.devopscoderepo.deleterepository.begin
Delete Repository End
com.oraclecloud.devopscoderepo.deleterepository.end
Mirror Repository Begin
com.oraclecloud.devopscoderepo.mirrorrepository.begin
Mirror Repository End
com.oraclecloud.devopscoderepo.mirrorrepository.end
HTTP Receive Pack
com.oraclecloud.devopscoderepo.httpreceivepack
SSH Receive Pack
com.oraclecloud.devopscoderepo.sshreceivepack
Update Repository Setting
com.oraclecloud.devopscoderepo.UpdateRepositorySetting.end
Update Project Setting
com.oraclecloud.devopscoderepo.UpdateProjectSetting.end

Example event for creating a code repository:

{
  "eventType": "com.oraclecloud.devopscoderepo.createrepository.begin",
  "cloudEventsVersion": "0.1",
  "eventTypeVersion": "2.0",
  "source": "devopscoderepo",
  "eventTime": "2021-04-15T21:32:04Z",
  "contentType": "application/json",
  "data": {
    "compartmentId": "ocid1.compartment.oc1..unique_ID",
    "compartmentName": "example_compartment",
    "resourceName": "example_resource",
    "resourceId": "ocid1.devopsrepository.oc1.iad.unique_ID",
    "availabilityDomain": "availability_domain"
  },
  "eventID": "unique_ID",
  "extensions": {
    "compartmentId": "ocid1.compartment.oc1..unique_ID"
  }
}
Pull Request Events
Event Name Event Type
Create PullRequest
com.oraclecloud.devopscoderepo.CreatePullRequest.end
Decline PullRequest
com.oraclecloud.devopscoderepo.DeclinePullRequest.end
Merge PullRequest
com.oraclecloud.devopscoderepo.MergePullRequest.end
Reopen PullRequest
com.oraclecloud.devopscoderepo.ReopenPullRequest.end
Update PullRequest
com.oraclecloud.devopscoderepo.UpdatePullRequest.end
Create PullRequest Comment
com.oraclecloud.devopscoderepo.CreatePullRequestComment.end
Patch PullRequest
com.oraclecloud.devopscoderepo.PatchPullRequest.end
Review PullRequest
com.oraclecloud.devopscoderepo.ReviewPullRequest.end

Example event for MergePullRequest.begin:

{
    "eventType": "com.oraclecloud.devopscoderepo.MergePullRequest.begin",
    "cloudEventsVersion": "0.1",
    "eventTypeVersion": "2.0",
    "source": "devopscoderepo",
    "eventTime": "2021-04-15T21:32:04Z",
    "contentType": "application/json",
    "data": {
      "compartmentId": "ocid1.compartment.oc1..unique_ID",
      "compartmentName": "example_compartment",
      "resourceName": "example_resource",
      "resourceId": "ocid1.devopspullrequest.oc1.iad.unique_ID",
      "availabilityDomain": "availability_domain"
    },
    "eventID": "unique_ID",
    "extensions": {
      "compartmentId": "ocid1.compartment.oc1..unique_ID"
    }
}

Example event for MergePullRequest.end:

{
    "eventType": "com.oraclecloud.devopscoderepo.mergepullrequest.end",
    "cloudEventsVersion": "0.1",
    "eventTypeVersion": "2.0",
    "source": "devopscoderepo",
    "eventTime": "2021-04-15T21:32:04Z",
    "contentType": "application/json",
    "data": {
      "compartmentId": "ocid1.compartment.oc1..unique_ID",
      "compartmentName": "example_compartment",
      "resourceName": "example_resource",
      "resourceId": "ocid1.devopspullrequest.oc1.iad.unique_ID",
      "availabilityDomain": "availability_domain",
      "additionalDetails": {
        "destinationBranch": "destinationBranch",
        "displayName": "PullRequestTestName",
        "id": "ocid1.devopspullrequest.oc1.iad.unique_ID",
        "lifecycleDetails": "Closed",
        "repositoryId": "ocid1.devopsrepository.oc1.iad.unique_ID",
        "sourceBranch": "sourceBranch",
        "sourceRepositoryId": "ocid1.devopsrepository.oc1.iad.unique_ID"
      }
    },
    "eventID": "unique_ID",
    "extensions": {
      "compartmentId": "ocid1.compartment.oc1..unique_ID"
    }
  }
Connection Events
Event Name Event Type
Create Connection Begin
com.oraclecloud.devopsbuild.createconnection.begin
Create Connection End
com.oraclecloud.devopsbuild.createconnection.end
Update Connection Begin
com.oraclecloud.devopsbuild.updateconnection.begin
Update Connection End
com.oraclecloud.devopsbuild.updateconnection.end
Delete Connection Begin
com.oraclecloud.devopsbuild.deleteconnection.begin
Delete Connection End
com.oraclecloud.devopsbuild.deleteconnection.end

Example event for createconnection.begin:

{
   "eventType":"com.oraclecloud.devopsbuild.createconnection.begin",
   "cloudEventsVersion":"0.1",
   "eventTypeVersion":"2.0",
   "source":"devopsbuild",
   "eventTime":"2021-08-17T15:19:21Z",
   "contentType":"application/json",
   "data":{
      "eventName":"CreateConnection",
      "compartmentId":"ocid1.compartment.oc1..unique_ID",
      "compartmentName":"example_compartment",
      "resourceName":"My test resource",
      "availabilityDomain":"availability_domain"
   },
   "eventID":"unique_ID",
   "extensions":{
      "compartmentId":"ocid1.compartment.oc1..unique_ID"
   }
}

Example event for createconnection.end:

{
   "eventType":"com.oraclecloud.devopsbuild.createconnection.end",
   "cloudEventsVersion":"0.1",
   "eventTypeVersion":"2.0",
   "source":"devopsbuild",
   "eventTime":"2021-08-17T15:19:31Z",
   "contentType":"application/json",
   "data":{
      "eventName":"CreateConnection",
      "compartmentId":"ocid1.compartment.oc1..unique_ID",
      "compartmentName":"example_compartment",
      "resourceName":"My test resource",
      "availabilityDomain":"availability_domain",
      "resourceId": "ocid1.devopsconnection.oc1.phx.unique_ID"
   },
   "eventID":"unique_ID",
   "extensions":{
      "compartmentId":"ocid1.compartment.oc1..unique_ID"
   }
}
Environment Events
Event Name Event Type
Create Deploy Environment Begin
com.oraclecloud.devopsdeploy.createdeployenvironment.begin
Create Deploy Environment End
com.oraclecloud.devopsdeploy.createdeployenvironment.end
Update Deploy Environment Begin
com.oraclecloud.devopsdeploy.updatedeployenvironment.begin
Update Deploy Environment End
com.oraclecloud.devopsdeploy.updatedeployenvironment.end
Delete Deploy Environment Begin
com.oraclecloud.devopsdeploy.deletedeployenvironment.begin
Delete Deploy Environment End
com.oraclecloud.devopsdeploy.deletedeployenvironment.end

Example event for creating an environment:

{
    "eventType": "com.oraclecloud.devopsdeploy.createdeployenvironment.begin",
    "cloudEventsVersion": "0.1",
    "eventTypeVersion": "2.0",
    "source": "devopsdeploy",
    "eventTime": "2021-04-15T21:32:04Z",
    "contentType": "application/json",
    "data": {
      "compartmentId": "ocid1.compartment.oc1..unique_ID",
      "compartmentName": "example_compartment",
      "resourceName": "example_resource",
      "resourceId": "ocid1.devopsdeployenvironment.oc1.phx.unique_ID",
      "availabilityDomain": "availability_domain"
    },
    "eventID": "unique_ID",
    "extensions": {
      "compartmentId": "ocid1.compartment.oc1..unique_ID"
    }
  }
Build Pipeline Events
Event Name Event Type
Create Build Pipeline Begin
com.oraclecloud.devopsbuild.createbuildpipeline.begin
Create Build Pipeline End
com.oraclecloud.devopsbuild.createbuildpipeline.end
Update Build Pipeline Begin
com.oraclecloud.devopsbuild.updatebuildpipeline.begin
Update Build Pipeline End
com.oraclecloud.devopsbuild.updatebuildpipeline.end
Delete Build Pipeline Begin
com.oraclecloud.devopsbuild.deletebuildpipeline.begin
Delete Build Pipeline End
com.oraclecloud.devopsbuild.deletebuildpipeline.end

Example event for createbuildpipeline.begin:

{
   "eventType":"com.oraclecloud.devopsbuild.createbuildpipeline.begin",
   "cloudEventsVersion":"0.1",
   "eventTypeVersion":"2.0",
   "source":"devopsbuild",
   "eventTime":"2021-08-17T15:20:55Z",
   "contentType":"application/json",
   "data":{
      "eventName":"CreateBuildPipeline",
      "compartmentId":"ocid1.compartment.oc1..unique_ID",
      "compartmentName":"example_compartment",
      "resourceName":"My test resource",
      "availabilityDomain":"availability_domain"
   },
   "eventID":"unique_ID",
   "extensions":{
      "compartmentId":"ocid1.compartment.oc1..unique_ID"
   }
}

Example event for createbuildpipeline.end:

{
   "eventType":"com.oraclecloud.devopsbuild.createbuildpipeline.end",
   "cloudEventsVersion":"0.1",
   "eventTypeVersion":"2.0",
   "source":"devopsbuild",
   "eventTime":"2021-08-17T15:21:10Z",
   "contentType":"application/json",
   "data":{
      "eventName":"CreateBuildPipeline",
      "compartmentId":"ocid1.compartment.oc1..unique_ID",
      "compartmentName":"example_compartment",
      "resourceName":"My test resource",
      "availabilityDomain":"availability_domain",
      "resourceId": "ocid1.devopsbuildpipeline.oc1.phx.unique_ID"
   },
   "eventID":"unique_ID",
   "extensions":{
      "compartmentId":"ocid1.compartment.oc1..unique_ID"
   }
}
Build Pipeline Stage Events
Event Name Event Type
Create Build Pipeline Stage Begin
com.oraclecloud.devopsbuild.createbuildpipelinestage.begin
Create Build Pipeline Stage End
com.oraclecloud.devopsbuild.createbuildpipelinestage.end
Update Build Pipeline Stage Begin
com.oraclecloud.devopsbuild.updatebuildpipelinestage.begin
Update Build Pipeline Stage End
com.oraclecloud.devopsbuild.updatebuildpipelinestage.end
Delete Build Pipeline Stage Begin
com.oraclecloud.devopsbuild.deletebuildpipelinestage.begin
Delete Build Pipeline Stage End
com.oraclecloud.devopsbuild.deletebuildpipelinestage.end

Example event for createbuildpipelinestage.begin:

{
   "eventType":"com.oraclecloud.devopsbuild.createbuildpipelinestage.begin",
   "cloudEventsVersion":"0.1",
   "eventTypeVersion":"2.0",
   "source":"devopsbuild",
   "eventTime":"2021-08-17T15:22:13Z",
   "contentType":"application/json",
   "data":{
      "eventName":"CreateBuildPipelineStage",
      "compartmentId":"ocid1.compartment.oc1..unique_ID",
      "compartmentName":"example_compartment",
      "resourceName":"My test resource",
      "availabilityDomain":"availability_domain"
   },
   "eventID":"unique_ID",
   "extensions":{
      "compartmentId":"ocid1.compartment.oc1..unique_ID"
   }
}

Example event for createbuildpipelinestage.end:

{
   "eventType":"com.oraclecloud.devopsbuild.createbuildpipelinestage.end",
   "cloudEventsVersion":"0.1",
   "eventTypeVersion":"2.0",
   "source":"devopsbuild",
   "eventTime":"2021-08-17T15:22:18Z",
   "contentType":"application/json",
   "data":{
      "eventName":"CreateBuildPipelineStage",
      "compartmentId":"ocid1.compartment.oc1..unique_ID",
      "compartmentName":"example_compartment",
      "resourceName":"My test resource",
      "availabilityDomain":"availability_domain",
      "resourceId":"ocid1.devopsbuildpipelinestage.oc1.iad.unique_ID"
   },
   "eventID":"unique_ID",
   "extensions":{
      "compartmentId":"ocid1.compartment.oc1..unique_ID"
   }
}
Build Run Events
Event Name Event Type
Create Build Run
com.oraclecloud.devopsbuild.createbuildrun
Update Build Run
com.oraclecloud.devopsbuild.updatebuildrun
Delete Build Run
com.oraclecloud.devopsbuild.deletebuildrun

Example event for creating a build run:

{
   "eventType":"com.oraclecloud.devopsbuild.createbuildrun",
   "cloudEventsVersion":"0.1",
   "eventTypeVersion":"2.0",
   "source":"devopsbuild",
   "eventTime":"2021-08-18T10:02:45Z",
   "contentType":"application/json",
   "data":{
      "eventName":"CreateBuildRun",
      "compartmentId":"ocid1.compartment.oc1..unique_ID",
      "compartmentName":"example_compartment",
      "resourceName":"TestBuildRun_2263040347883644",
      "availabilityDomain":"availability_domain"
   },
   "eventID":"unique_ID",
   "extensions":{
      "compartmentId":"ocid1.compartment.oc1..unique_ID"
   }
}
Trigger Events
Event Name Event Type
Create Trigger Begin
com.oraclecloud.devopsbuild.createtrigger.begin
Create Trigger End
com.oraclecloud.devopsbuild.createtrigger.end
Update Trigger Begin
com.oraclecloud.devopsbuild.updatetrigger.begin
Update Trigger End
com.oraclecloud.devopsbuild.updatetrigger.end
Delete Trigger Begin
com.oraclecloud.devopsbuild.deletetrigger.begin
Delete Trigger End
com.oraclecloud.devopsbuild.deletetrigger.end

Example event for createtrigger.begin:

{
   "eventType":"com.oraclecloud.devopsbuild.createtrigger.begin",
   "cloudEventsVersion":"0.1",
   "eventTypeVersion":"2.0",
   "source":"devopsbuild",
   "eventTime":"2021-08-17T15:24:13Z",
   "contentType":"application/json",
   "data":{
      "eventName":"CreateTrigger",
      "compartmentId":"ocid1.compartment.oc1..unique_ID",
      "compartmentName":"example_compartment",
      "resourceName":"My test resource",
      "availabilityDomain":"availability_domain"
   },
   "eventID":"unique_ID",
   "extensions":{
      "compartmentId":"ocid1.compartment.oc1..unique_ID"
   }
}

Example event for createtrigger.end:

{
   "eventType":"com.oraclecloud.devopsbuild.createtrigger.end",
   "cloudEventsVersion":"0.1",
   "eventTypeVersion":"2.0",
   "source":"devopsbuild",
   "eventTime":"2021-08-17T15:24:19Z",
   "contentType":"application/json",
   "data":{
      "eventName":"CreateTrigger",
      "compartmentId":"ocid1.compartment.oc1..unique_ID",
      "compartmentName":"example_compartment",
      "resourceName":"My test resource",
      "availabilityDomain":"availability_domain",
      "resourceId":"ocid1.devopstrigger.oc1.iad.unique_ID"
   },
   "eventID":"unique_ID",
   "extensions":{
      "compartmentId":"ocid1.compartment.oc1..unique_ID"
   }
}
Pipeline Events
Event Name Event Type
Create Deploy Pipeline Begin
com.oraclecloud.devopsdeploy.createdeploypipeline.begin
Create Deploy Pipeline End
com.oraclecloud.devopsdeploy.createdeploypipeline.end
Update Deploy Pipeline Begin
com.oraclecloud.devopsdeploy.updatedeploypipeline.begin
Update Deploy Pipeline End
com.oraclecloud.devopsdeploy.updatedeploypipeline.end
Delete Deploy Pipeline Begin
com.oraclecloud.devopsdeploy.deletedeploypipeline.begin
Delete Deploy Pipeline End
com.oraclecloud.devopsdeploy.deletedeploypipeline.end

Example event for creating a pipeline:

{
    "eventType": "com.oraclecloud.devopsdeploy.createdeploypipeline.begin",
    "cloudEventsVersion": "0.1",
    "eventTypeVersion": "2.0",
    "source": "devopsdeploy",
    "eventTime": "2021-04-15T21:32:04Z",
    "contentType": "application/json",
    "data": {
      "compartmentId": "ocid1.compartment.oc1..unique_ID",
      "compartmentName": "example_compartment",
      "resourceName": "example_resource",
      "resourceId": "ocid1.devopsdeploypipeline.oc1.phx.unique_ID",
      "availabilityDomain": "availability_domain"
    },
    "eventID": "unique_ID",
    "extensions": {
      "compartmentId": "ocid1.compartment.oc1..unique_ID"
    }
  }
Stage Events
Event Name Event Type
Create Deploy Stage Begin
com.oraclecloud.devopsdeploy.createdeploystage.begin
Create Deploy Stage End
com.oraclecloud.devopsdeploy.createdeploystage.end
Update Deploy Stage Begin
com.oraclecloud.devopsdeploy.updatedeploystage.begin
Update Deploy Stage End
com.oraclecloud.devopsdeploy.updatedeploystage.end
Delete Deploy Stage Begin
com.oraclecloud.devopsdeploy.deletedeploystage.begin
Delete Deploy Stage End
com.oraclecloud.devopsdeploy.deletedeploystage.end

Example event for creating a stage:

{
    "eventType": "com.oraclecloud.devopsdeploy.createdeploystage.begin",
    "cloudEventsVersion": "0.1",
    "eventTypeVersion": "2.0",
    "source": "devopsdeploy",
    "eventTime": "2021-04-15T21:32:04Z",
    "contentType": "application/json",
    "data": {
      "compartmentId": "ocid1.compartment.oc1..unique_ID",
      "compartmentName": "example_compartment",
      "resourceName": "example_resource",
      "resourceId": "ocid1.devopsdeploystage.oc1.phx.unique_ID",
      "availabilityDomain": "availability_domain"
    },
    "eventID": "unique_ID",
    "extensions": {
      "compartmentId": "ocid1.compartment.oc1..unique_ID"
    }
  }
Deployment Events
Event Name Event Type
Create Deployment
com.oraclecloud.devopsdeploy.createdeployment
Update Deployment
com.oraclecloud.devopsdeploy.updatedeployment

Example event for creating a deployment:

{
    "eventType": "com.oraclecloud.devopsdeploy.createdeployment",
    "cloudEventsVersion": "0.1",
    "eventTypeVersion": "2.0",
    "source": "devopsdeploy",
    "eventTime": "2021-04-15T21:32:04Z",
    "contentType": "application/json",
    "data": {
      "compartmentId": "ocid1.compartment.oc1..unique_ID",
      "compartmentName": "example_compartment",
      "resourceName": "example_resource",
      "resourceId": "ocid1.devopsdeployment.oc1.phx.unique_ID",
      "availabilityDomain": "availability_domain"
    },
    "eventID": "unique_ID",
    "extensions": {
      "compartmentId": "ocid1.compartment.oc1..unique_ID"
    }
  }