Artifact Registry Events

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

Artifact Registry emits events when you:

  • Create, update, or delete a repository.
  • List the repositories of a specific compartment.
  • Move a repository and its artifacts to a new compartment.
  • Upload an artifact into a repository.
  • Download, get details, update, or delete an artifact from a repository.
  • List the artifacts of a specific repository.

Repository Events

When you create, update, list, delete or change compartment of a repository, Artifact Registry creates an event.

Here are the event types that repositories emit:

Friendly Name Event Type
Artifact Repository Create
com.oraclecloud.artifacts.createrepository
Artifact Repository List
com.oraclecloud.artifacts.listrepositories
Artifact Repository Update
com.oraclecloud.artifacts.updaterepository
Artifact Repository Change Compartment
com.oraclecloud.artifacts.changerepositorycompartment
Artifact Repository Delete
com.oraclecloud.artifacts.deleterepository
Example for Creating a Repository
{
    "eventType": "com.oraclecloud.artifacts.createrepository",
    "cloudEventsVersion": "0.1",
    "eventTypeVersion": "2.0",
    "source": "RepositoryService",
    "eventTime": "2019-08-16T15:09:04.550Z",
    "contentType": "application/json",
    "data": {
      "compartmentId": "ocid1.compartment.oc1..<unique_ID>",
      "compartmentName": "example_compartment",
      "resourceName": "repo1",
      "resourceId": "ocid1.artifactrepository.oc1..<unique_ID>",
      "availabilityDomain": "all"
    },
    "eventID": "<unique_ID>"
  }
  

Artifact Events

When you upload, update, delete, or get details of an artifact, or when you list the artifacts of a repository, Artifact Registry creates an event.

Here are the event types that artifacts emit:

Friendly Name Event Type
Generic Artifact Upload By Path
com.oraclecloud.artifacts.putgenericartifactcontentbypath
Generic Artifact List
com.oraclecloud.artifacts.listgenericartifacts
Generic Artifact Update
com.oraclecloud.artifacts.updategenericartifact
Generic Artifact Update By Path
com.oraclecloud.artifacts.updategenericartifactbypath
Generic Artifact Download
com.oraclecloud.artifacts.getgenericartifactcontent
Generic Artifact Download By Path
com.oraclecloud.artifacts.getgenericartifactcontentbypath
Generic Artifact Get
com.oraclecloud.artifacts.getgenericartifact
Generic Artifact Get By Path
com.oraclecloud.artifacts.getgenericartifactbypath
Generic Artifact Delete
com.oraclecloud.artifacts.deletegenericartifact
Example for Uploading an Artifact
{
    "eventType": "com.oraclecloud.artifacts.putgenericartifactcontentbypath",
    "cloudEventsVersion": "0.1",
    "eventTypeVersion": "2.0",
    "source": "GenericArtifactService",
    "eventTime": "2019-08-16T15:09:04.550Z",
    "contentType": "application/json",
    "data": {
      "compartmentId": "ocid1.compartment.oc1..<unique_ID>",
      "compartmentName": "example_compartment",
      "resourceName": "path:version",
      "resourceId": "ocid1.genericartifact.oc1..<unique_ID>",
      "availabilityDomain": "all"
    },
    "eventID": "<unique_ID>"
  }