DrydockDrydock
API

Trigger API

This API allows to query the state of the triggers.

This API allows to query the state of the triggers.

Get all Triggers

This operation lets you get all the configured triggers.

curl http://drydock:3000/api/triggers

[
   {
      "id":"smtp.gmail",
      "type":"smtp",
      "name":"gmail",
      "configuration":{
         "host":"smtp.gmail.com",
         "port":465,
         "user":"[email protected]",
         "pass":"secret",
         "from":"[email protected]",
         "to":"[email protected]"
      }
   }
]

Get a Trigger by id

This operation lets you get a specific Trigger.

curl http://drydock:3000/api/triggers/smtp/gmail

{
  "id":"smtp.gmail",
  "type":"smtp",
  "name":"gmail",
  "configuration":{
     "host":"smtp.gmail.com",
     "port":465,
     "user":"[email protected]",
     "pass":"secret",
     "from":"[email protected]",
     "to":"[email protected]"
  }
}

Running a trigger

This operation lets you run a specific Trigger with simulated data.

export CONTAINER='{"id":"123456789","name":"container_test","watcher":"watcher_test","updateKind":{"kind":"tag","semverDiff":"patch","localValue":"1.2.3","remoteValue":"1.2.4","result":{"link":"https://my-container/release-notes/"}}}'
curl -X POST -H "Content-Type: application/json" -d $CONTAINER http://drydock:3000/api/triggers/smtp/gmail

On this page