Question

Droplet action history on deleted droplets?

Posted March 9, 2021 136 views
APIDigitalOcean Droplets

I’m trying to maintain an audit log of all actions on my 400+ droplets. New droplets are created almost every day and others are deleted. Is there a way to query actions on deleted droplets? Or perhaps DO offers a specific API for this kind of audit log functionality?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
Submit an Answer
1 answer

Hello @securityelf

Once the Droplet is destroyed, all the data on it will be purged and deleted from our platform. Really sorry for the issue. We absolutely will not have any copy of your information or data with us.

Please let us know if you have any additional questions!

Cheers,
Sri Charan

  • Hello Sri,

    I did not mean droplet details, but actions associated with it.

    And actually, I was able to find history events that go back to the first droplet creations made in 2019:

    $ doctl compute action list --resource-type droplet | head
    ID            Status       Type               Started At                       Completed At                     Resource ID    Resource Type    Region
    750438XXX     completed    create             2019-08-30 04:59:20 +0000 UTC    2019-08-30 05:00:19 +0000 UTC    15687XXXX      droplet          sfo2
    750449XXX     completed    power_off          2019-08-30 05:25:13 +0000 UTC    2019-08-30 05:25:49 +0000 UTC    15687XXXX      droplet          sfo2
    750449XXX     completed    power_on           2019-08-30 05:25:53 +0000 UTC    2019-08-30 05:25:58 +0000 UTC    15687XXXX      droplet          sfo2
    750456XXX     completed    destroy            2019-08-30 05:39:45 +0000 UTC    2019-08-30 05:39:57 +0000 UTC    15687XXXX      droplet          sfo2
    750878XXX     completed    create             2019-08-30 20:51:09 +0000 UTC    2019-08-30 20:52:16 +0000 UTC    15696XXXX      droplet          sfo2
    750903XXX     completed    create             2019-08-30 21:44:25 +0000 UTC    2019-08-30 21:45:31 +0000 UTC    15697XXXX      droplet          sfo2
    750932XXX     completed    create             2019-08-30 22:58:41 +0000 UTC    2019-08-30 22:59:43 +0000 UTC    15697XXXX      droplet          sfo2
    750965XXX     completed    rename             2019-08-31 00:17:53 +0000 UTC    2019-08-31 00:17:55 +0000 UTC    15697XXXX      droplet          sfo2
    750966XXX     completed    create             2019-08-31 00:19:40 +0000 UTC    2019-08-31 00:20:40 +0000 UTC    15698XXXX      droplet          sfo2